25cc8f56f2a4e46dcdbf9cde2a6740dc5c74d1cd
[gnulib.git] / ChangeLog
1 2011-11-08  Bruno Haible  <bruno@clisp.org>
2
3         renameat: Fix dependencies.
4         * modules/renameat (Depends-on): Add stdbool.
5
6 2011-11-08  Bruno Haible  <bruno@clisp.org>
7
8         mkfifoat: Fix module description.
9         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10         not gl_UNISTD_MODULE_INDICATOR.
11
12 2011-11-08  Bruno Haible  <bruno@clisp.org>
13
14         fstatat: Remove unused dependency.
15         * modules/fstatat (Depends-on): Remove fstat.
16
17 2011-11-08  Simon Josefsson  <simon@josefsson.org>
18
19         GNUmakefile: behave when Makefile is missing.
20         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
21
22 2011-11-08  Bruno Haible  <bruno@clisp.org>
23
24         openat: Conditionalize dependencies.
25         * lib/openat.c: Reduce the scope of some #includes.
26         * modules/openat (Depends-on): Add conditions.
27
28 2011-11-07  Jim Meyering  <meyering@redhat.com>
29
30         maint.mk: extract GPG key ID without using a temporary file
31         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
32         without using a temporary file.  Based on a suggestion from Werner Koch
33         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
34
35 2011-11-07  Eric Blake  <eblake@redhat.com>
36
37         grantpt: fix typo
38         * lib/stdlib.in.h (grantpt): Check correct function.
39
40         maint.mk: silence new syntax check
41         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
42
43 2011-11-06  Bruno Haible  <bruno@clisp.org>
44
45         Doc about floating-point and math API.
46         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
47         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
48
49 2011-11-06  Bruno Haible  <bruno@clisp.org>
50
51         stdalign tests: Skip the test when compiled by Sun C.
52         * tests/test-stdalign.c (main): Skip the test on Sun C.
53
54 2011-11-06  Bruno Haible  <bruno@clisp.org>
55
56         ansi-c++-opt: Complete the 2011-06-05 change.
57         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
58         does not support namespaces, set the variable to "no", not to ":".
59
60 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61
62         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
63
64 2011-11-06  Bruno Haible  <bruno@clisp.org>
65
66         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
67         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
68         (minus_zerol) [HP-UX]: New macro.
69         (unary_minus) [HP-UX]: New function.
70         (copysignl) [HP-UX]: Use unary_minus function.
71
72 2011-11-06  Bruno Haible  <bruno@clisp.org>
73
74         ldexp, ldexpf, ldexpl: Enhance tests.
75         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
76         and tests/test-ldexpl.c.
77         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
78         LDEXP, MIN_EXP, MAX_EXP): New macros.
79         Include test-ldexp.h.
80         (main): Just call test_function.
81         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
82         infinity.h, nan.h.
83         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
84         MAX_EXP): New macros.
85         Include test-ldexp.h.
86         (x, y): Remove variables.
87         (main): Just call test_function.
88         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
89         infinity.h, nan.h.
90         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
91         MAX_EXP): New macros.
92         Include test-ldexp.h.
93         (x, y): Remove variables.
94         (main): Just call test_function.
95         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
96         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
97         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
98         (Depends-on): Add isnand-nolibm, signbit, float.
99         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
100         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
101         (Depends-on): Add isnanf-nolibm, signbit, float.
102
103 2011-11-06  Bruno Haible  <bruno@clisp.org>
104
105         math tests: Cosmetics.
106         * tests/test-math-c++.cc: Reorder declarations.
107
108 2011-11-05  Bruno Haible  <bruno@clisp.org>
109
110         fma*: Simplify test.
111         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
112         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
113
114         Tests for module 'fmal'.
115         * modules/fmal-tests: New file.
116         * tests/test-fmal1.c: New file.
117         * tests/test-fmal2.c: New file.
118
119         New module 'fmal'.
120         * lib/math.in.h (fmal): New declaration.
121         * lib/fmal.c: New file.
122         * m4/fmal.m4: New file.
123         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
125         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
126         REPLACE_FMAL.
127         * modules/fmal: New file.
128         * doc/posix-functions/fmal.texi: Mention the new module and the various
129         bugs.
130
131         Tests for module 'fmaf'.
132         * modules/fmaf-tests: New file.
133         * tests/test-fmaf1.c: New file.
134         * tests/test-fmaf2.c: New file.
135
136         New module 'fmaf'.
137         * lib/math.in.h (fmaf): New declaration.
138         * lib/fmaf.c: New file.
139         * m4/fmaf.m4: New file.
140         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
142         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
143         REPLACE_FMAF.
144         * modules/fmaf: New file.
145         * doc/posix-functions/fmaf.texi: Mention the new module and the various
146         bugs.
147
148         Tests for module 'fma'.
149         * modules/fma-tests: New file.
150         * tests/test-fma1.c: New file.
151         * tests/test-fma1.h: New file.
152         * tests/test-fma2.c: New file.
153         * tests/test-fma2.h: New file.
154
155         New module 'fma'.
156         * lib/math.in.h (fma): New declaration.
157         * lib/fma.c: New file.
158         * m4/fma.m4: New file.
159         * m4/fegetround.m4: New file.
160         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
162         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
163         REPLACE_FMA.
164         * modules/fma: New file.
165         * doc/posix-functions/fma.texi: Mention the new module and the various
166         bugs.
167
168         Extend gl_MATHFUNC.
169         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
170         Support 'void' as argument type.
171         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
172
173 2011-11-05  Jim Meyering  <meyering@redhat.com>
174
175         maint.mk: also prohibit inclusion of dirent.h without use
176         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
177
178 2011-11-05  Bruno Haible  <bruno@clisp.org>
179
180         ldexpl tests: Avoid test failure on MSVC 9.
181         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
182         value. Needed in order to enforce the conversion from a value greater
183         than LDBL_MAX to Infinity.
184
185 2011-11-05  Bruno Haible  <bruno@clisp.org>
186
187         New modules 'at-internal', 'openat-h', split off from module 'openat'.
188         * modules/at-internal: New file, extracted from modules/openat.
189         * modules/openat-h: New file.
190         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
191         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
192         * modules/openat (Description): Add reference to POSIX function.
193         (Files): Remove lib/openat.h, lib/openat-proc.c.
194         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
195         intprops, unistd.
196         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
197         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
198         gl_FCNTL_MODULE_INDICATOR.
199         (Include): Remove unistd.h, openat.h.
200         * modules/areadlinkat (Files): Add lib/at-func.c.
201         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
202         openat-die, openat-h, save-cwd.
203         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
204         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
205         openat-die, openat-h, save-cwd, unistd.
206         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
207         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
208         openat-h, save-cwd. Remove fcntl-h, openat.
209         * modules/fchmodat (Files): Remove lib/openat.h.
210         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
211         openat, stdbool, unistd.
212         * modules/fchownat (Files): Remove lib/openat.h.
213         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
214         openat, stdbool, sys_stat.
215         * modules/fdopendir (Files): Remove lib/openat-priv.h,
216         lib/openat-proc.c.
217         (Depends-on): Add at-internal.
218         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
219         * modules/fstatat (Files): Remove lib/openat.h.
220         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
221         stdbool, unistd.
222         * modules/fts (Depends-on): Add openat-h.
223         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
224         openat.
225         * modules/mkdirat (Files): Remove lib/openat.h.
226         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
227         openat, stdbool, sys_stat.
228         * modules/mkfifoat (Files): Add lib/at-func.c.
229         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
230         openat-h, save-cwd. Remove fcntl-h, openat.
231         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
232         * modules/readlinkat (Files): Add lib/at-func.c.
233         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
234         openat-h, save-cwd. Remove fcntl-h, openat.
235         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
236         openat.
237         * modules/selinux-at (Files): Add lib/at-func.c.
238         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
239         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
240         * modules/symlinkat (Files): Add lib/at-func.c.
241         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
242         openat-h, save-cwd. Remove fcntl-h, openat.
243         * modules/unlinkat (Files): Remove lib/openat.h.
244         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
245         stdbool.
246         * modules/utimensat (Files): Add lib/at-func.c.
247         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
248         openat-die, openat-h, save-cwd.
249         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
250         * modules/fdutimensat-tests (Depends-on): Add openat.
251         * modules/fstatat-tests (Depends-on): Add openat-h.
252         * modules/readlinkat-tests (Depends-on): Add openat.
253         * modules/symlinkat-tests (Depends-on): Add openat.
254
255 2011-11-05  Bruno Haible  <bruno@clisp.org>
256
257         openat: Include <stdbool.h>.
258         * lib/openat.c: Include <stdbool.h>.
259
260 2011-11-04  Bruno Haible  <bruno@clisp.org>
261
262         fchownat, renameat, unlinkat: Fix dependencies.
263         * modules/fchownat (Depends-on): Add fstatat.
264         * modules/renameat (Depends-on): Likewise.
265         * modules/unlinkat (Depends-on): Likewise.
266
267 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
268
269         openat: remove direct dependency on dirent
270         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
271         and hasn't been needed ever since fdopendir was split into its own
272         module on 2009-08-31.
273         * modules/openat (Depends-on): Remove dirent.
274
275 2011-11-04  Bruno Haible  <bruno@clisp.org>
276
277         renameat: Optimize code size.
278         * modules/renameat (configure.ac): Don't compile at-func2.c if
279         REPLACE_RENAMEAT is 1.
280
281 2011-11-04  Bruno Haible  <bruno@clisp.org>
282
283         openat tests: Fix file list.
284         * modules/openat-tests (Files): Add tests/test-open.h.
285
286 2011-11-04  Bruno Haible  <bruno@clisp.org>
287
288         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
289         * modules/fchmodat (Depends-on): Add openat-die.
290         * modules/fchownat (Depends-on): Likewise.
291         * modules/linkat (Depends-on): Likewise.
292         * modules/renameat (Depends-on): Likewise.
293         * modules/openat (Depends-on): Add dirent.
294
295 2011-11-04  Jim Meyering  <meyering@redhat.com>
296
297         at-func*.c: fix comments
298         * lib/at-func2.c: Correct/improve first-line comment.
299         * lib/at-func.c: Correct grammar in first-line comment.
300
301 2011-11-04  Bruno Haible  <bruno@clisp.org>
302
303         New module 'mkdirat', split off from module 'openat'.
304         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
305         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
306         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
307         * modules/mkdirat: New file, extracted from modules/openat.
308         * modules/openat (Files): Remove lib/mkdirat.c.
309         (Depends-on): Remove mkdir.
310         (configure.ac): Remove AC_LIBOBJ of mkdirat.
311         (Include): Remove <sys/stat.h>.
312         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
313         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
314         tests/test-mkdir.h.
315         (Depends-on): Remove ignore-value.
316         (Makefile.am): Remove rules for test-mkdirat.
317         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
318         of module 'openat'.
319         * NEWS: Mention the change.
320
321 2011-11-04  Bruno Haible  <bruno@clisp.org>
322
323         closedir: Avoid warning on mingw.
324         * lib/closedir.c: Include <unistd.h>.
325
326 2011-11-04  Bruno Haible  <bruno@clisp.org>
327
328         New module 'fstatat', split off from module 'openat'.
329         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
330         defined.
331         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
332         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
333         gl_FUNC_FSTATAT.
334         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
335         * modules/fstatat: New file, extracted from modules/openat.
336         * modules/openat (Files): Remove lib/fstatat.c.
337         (Depends-on): Remove lstat.
338         (configure.ac): Remove AC_LIBOBJ of fstatat.
339         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
340         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
341         tests/test-lstat.h, tests/test-stat.h.
342         (Depends-on): Remove getcwd-lgpl.
343         (Makefile.am): Remove rules for test-fstatat.
344         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
345         of module 'openat'.
346         * NEWS: Mention the change.
347         * modules/getcwd (Depends-on): Add fstatat.
348         * modules/linkat (Depends-on): Likewise.
349         * modules/mkfifoat-tests (Depends-on): Likewise.
350         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
351
352 2011-11-03  Bruno Haible  <bruno@clisp.org>
353
354         New module 'unlinkat', split off from module 'openat'.
355         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
356         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
357         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
358         * modules/unlinkat: New file, extracted from modules/openat. Correct
359         the dependency conditions.
360         * modules/openat (Files): Remove lib/unlinkat.c.
361         (Depends-on): Remove rmdir, unlink.
362         (configure.ac): Remove AC_LIBOBJ of unlinkat.
363         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
364         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
365         tests/test-rmdir.h, tests/test-unlink.h.
366         (Depends-on): Remove unlinkdir.
367         (Makefile.am): Remove rules for test-unlinkat.
368         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
369         of module 'openat'.
370         * NEWS: Mention the change.
371         * modules/linkat-tests (Depends-on): Add unlinkat.
372         * modules/mkfifoat-tests (Depends-on): Likewise.
373         * modules/readlinkat-tests (Depends-on): Likewise.
374
375 2011-11-02  Bruno Haible  <bruno@clisp.org>
376
377         New module 'fchmodat', split off from module 'openat'.
378         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
379         defined.
380         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
381         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
382         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
383         * modules/fchmodat: New file, extracted from modules/openat.
384         * modules/openat (Files): Remove lib/fchmodat.c.
385         (configure.ac): Remove AC_LIBOBJ of fchmodat.
386         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
387         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
388         (Makefile.am): Remove rules for test-fchmodat.
389         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
390         of module 'openat'.
391         * NEWS: Mention the change.
392
393 2011-11-02  Jim Meyering  <meyering@redhat.com>
394
395         putenv: indent #definition of "environ" to placate cppi
396         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
397
398         gitlog-to-changelog: provide a ChangeLog-repair mechanism
399         Git logs are often treated as immutable, because editing them
400         changes the SHA1 checksums of all descendants.  Thus, errors in
401         git logs tend to stay there forever.  However, when we generate
402         a ChangeLog file -- typically for distribution -- from that git log,
403         we can actually make corrections in the generated file.  The key
404         lies in recording in machine-readable/applicable form the desired
405         corrections.  See --help for description and an example.
406         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
407         (usage): Describe it; alphabetize option descriptions.
408         (main): Honor the new option, carefully.
409
410 2011-11-01  Jim Meyering  <meyering@redhat.com>
411
412         gitlog-to-changelog: avoid an infloop
413         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
414         that ends up being empty.
415
416 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
417
418         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
419         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
420         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
421         contains (possibly-quoted) backslashes.  This should avoid
422         all-too-common shell bugs if COMPLICATED contains backslashes in
423         the "wrong" places.  Reported by David Evans in
424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
425         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
426         because we want ASCII ranges.  Is there some reason we don't use
427         the C locale everywhere in this script?
428         (func_module, top level): Avoid unwanted pathname expansion when
429         $repo_url_prefix or $repo_url_suffix_repl contain shell
430         metacharacters like '?' and '*'.
431
432 2011-11-01  Bruno Haible  <bruno@clisp.org>
433
434         fchownat: Improve description.
435         * modules/fchownat (Description): Add link to function.
436
437 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
438
439         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
440         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
442         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
443
444 2011-11-01  Bruno Haible  <bruno@clisp.org>
445
446         alignof: Avoid collision with stdalign module.
447         * lib/alignof.h (alignof): Remove macro.
448         * NEWS: Mention the change.
449         Reported by Paul Eggert.
450
451 2011-11-01  Bruno Haible  <bruno@clisp.org>
452
453         New module 'fchownat', split off from module 'openat'.
454         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
455         defined.
456         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
457         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
458         invoke gl_FUNC_FCHOWNAT.
459         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
460         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
461         * modules/fchownat: New file, extracted from modules/openat.
462         * modules/openat (Files): Remove lib/fchownat.c.
463         (Depends-on): Remove lchown.
464         (configure.ac): Remove AC_LIBOBJ of fchownat.
465         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
466         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
467         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
468         (Depends-on): Remove mgetgroups, usleep, stat-time.
469         (configure.ac): Remove test for getegid.
470         (Makefile.am): Remove rules for test-fchownat.
471         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
472         of module 'openat'.
473         * NEWS: Mention the change.
474
475 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
476
477         stdalign: port better to MSVC and to Sun C 5.11
478         This fixes some of the problems reported by Bruno Haible in
479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
480         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
481         shortcomings of MSVC and of Sun C 5.11.
482         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
483         around __declspec arg.
484         * modules/stdalign-tests (Files): Add tests/macros.h.
485         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
486         Include macros.h, for ASSERT.
487         (DECLARE_ALIGNED): Remove.
488         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
489         to catch bug), and to 1 if not (simplifies the rest of the code).
490         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
491         (CHECK_AUTO): Remove.
492         (CHECK_ALIGNED): Check only the alignment of the static vars,
493         since auto var alignment isn't supported by Sun C 5.11.
494         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
495         ASSERT failures are easier to diagnose.
496
497 2011-10-31  Bruno Haible  <bruno@clisp.org>
498
499         doc about some IRIX 5.3 problems.
500         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
501         on IRIX 5.3.
502         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
503         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
504         5.3.
505         * doc/posix-functions/grantpt.texi: Likewise.
506         * doc/posix-functions/unlockpt.texi: Likewise.
507         * doc/posix-functions/lgamma.texi: Likewise.
508         * doc/posix-functions/nextafter.texi: Likewise.
509         * doc/posix-functions/remainder.texi: Likewise.
510         * doc/posix-functions/select.texi: Mention misplaced declaration on
511         IRIX 5.3.
512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
513
514 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
515
516         gitlog-to-changelog: fix git-log invocation.
517         git-log mishandles date strings before 1970-01-01 UTC, and there is
518         no use to specify --since=1970-01-01 by default anyway.
519         * build-aux/gitlog-to-changelog: By default, when no --since option
520         was given, do not specify explicit --since option to git-log.
521
522 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
523
524         gitlog-to-changelog: new option --append-dot.
525         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
526         first non-blank line of each commit message terminated with a dot.
527
528 2011-10-30  Bruno Haible  <bruno@clisp.org>
529
530         ffsl, ffsll: Avoid compilation error due to 'restrict'.
531         * lib/ffsl.h: Include <config.h>.
532         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
533
534 2011-10-30  Jim Meyering  <meyering@redhat.com>
535
536         GNUmakefile: reenable "make syntax-check" for most projects
537         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
538         build-aux variable", "syntax-check" would do nothing but succeed with
539         the "No version control files detected..." diagnostic (unless you
540         happened to override _build-aux via cfg.mk).
541         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
542         to precede inclusion of maint.mk.  Otherwise, these variables would
543         be used undefined in any project that does not override the default.
544
545 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
546
547         gitlog-to-changelog: treat a message with only blank lines as empty.
548         * build-aux/gitlog-to-changelog: Move the code that removes leading and
549         trailing blank lines before the code that issues a warning about an
550         empty commit message.
551
552 2011-10-30  Jim Meyering  <meyering@redhat.com>
553
554         test-parse-datetime.c: avoid new DST-related false positive test failure
555         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
556         based on the time/date we'll convert, not the current time.
557         Otherwise, the moment we cross a DST boundary like today's in
558         Europe, (CEST to CET), that offset ends up being one hour off.
559
560 2011-10-27  Bruno Haible  <bruno@clisp.org>
561
562         fstat: Tweak documentation.
563         * modules/fstat (Description): More precise description.
564
565 2011-10-27  Bruno Haible  <bruno@clisp.org>
566
567         Update documentation regarding 'largefile' module.
568         * doc/posix-functions/fstat.texi: Tweak wording.
569         * doc/posix-functions/opendir.texi: Mention that the module fixes the
570         problems with huge directories and/or small ino_t types.
571         * doc/posix-functions/readdir.texi: Likewise.
572         * doc/posix-functions/rewinddir.texi: Likewise.
573
574 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
575
576         maint.mk: don't maintain a second build-aux variable.
577         * maint.mk (build_aux): Removed.  The maintainer-makefile module
578         depends on GNUmakefile, which already maintains a cfg.mk
579         overridable $(_build-aux) for projects with a non-standard
580         build-aux directory location, although without the $(srcdir)
581         prefix.  Use that variable consistently instead of introducing a
582         second one.  Adjust all call sites.
583
584 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
585
586         Add stdalign module and use it in other modules.
587         This is based on a previous proposal by Bruno Haible
588         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
589
590         stdalign: new module
591         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
592         * modules/stdalign: New files.
593         * MODULES.html.sh (c1x_core_properties): Add stdalign.
594         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
595
596         stdalign-tests: new module
597         * modules/stdalign-tests, tests/test-stdalign.c: New files.
598
599         argp: use stdalign
600         * lib/argp-parse.c: Include <stdalign.h>.
601         (alignof): Remove.
602         * modules/argp (Depends-on): Add stdalign.
603
604         crypto libraries: use stdalign
605         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
606         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
607         Do not include <stdlib.h> twice, in md4.c.
608         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
609         because we are accessing a pointer's bit-pattern, not a size.
610         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
611         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
612         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
613         * modules/crypto/sha512: Likewise.
614
615         sys_socket: use stdalign, not alignof
616         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
617         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
618
619 2011-10-27  Bruno Haible  <bruno@clisp.org>
620
621         raise test: Avoid a test failure on Linux/MIPS.
622         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
623         because 99 is a valid signal on Linux/MIPS.
624
625 2011-10-27  Bruno Haible  <bruno@clisp.org>
626
627         nonblocking tests: Fix test failure on Linux/MIPS.
628         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
629         Set to 270000.
630
631 2011-10-27  Bruno Haible  <bruno@clisp.org>
632
633         utimensat: Work around problem on Linux/hppa.
634         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
635         values.
636         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
637
638 2011-10-25  Jim Meyering  <meyering@redhat.com>
639
640         maint.mk: fix a bug in sc_prohibit_stddef_without_use
641         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
642         after symbols like NULL, size_t, etc.
643         Reported by Alfred M. Szmidt.
644
645         maint.mk: exempt ENODATA from a syntax-check rule
646         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
647         from the sc_prohibit_always-defined_macros syntax-check rule.
648         Add a comment.  See this for more details:
649         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
650
651 2011-10-23  Jim Meyering  <meyering@redhat.com>
652
653         fts: close parent dir FD before returning from post-traversal fts_read
654         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
655         unlink A, even though an FD open on A remained.  This is suboptimal
656         (holding a file descriptor open longer than needed), but otherwise not
657         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
658         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
659         that represents a real problem: it causes the removal of A to fail
660         with e.g., "rm: cannot remove `A': Device or resource busy"
661
662         fts visits each directory twice and keeps a cache (fts_fd_ring) of
663         directory file descriptors.  After completing the final, FTS_DP,
664         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
665         cache, but then proceeded to add a new FD to it via the subsequent
666         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
667         final file descriptor would be closed only via fts_close's call to
668         fd_ring_clear.  Now, it is usually closed earlier, via the final
669         FTS_DP-returning fts_read call.
670         * lib/fts.c (restore_initial_cwd): New function, converted from
671         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
672         Update callers.
673         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
674         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
675
676 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
677             Bruno Haible  <bruno@clisp.org>
678             Jim Meyering  <jim@meyering.net>
679
680         readme-release: improve safety of release prep instructions.
681         * README-release: Don't git pull all branches when only master
682         is needed for the release process.
683         Run make maintainer-clean before changing trees and merging.
684         Don't try to run ./configure right after git pull in case files
685         that influence the bootstrap process have changed, move the
686         ./configure step to after running ./bootstrap.
687         Don't bootstrap "one last time"... it's the first time!
688
689 2011-10-22  Bruno Haible  <bruno@clisp.org>
690
691         errno, strerror-override: Support for MSVC 10.
692         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
693         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
694         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
695         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
696         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
697         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
698         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
699         Assign values compatible with MSVC 10.
700         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
701         New macros.
702         (GNULIB_defined_EWINSOCK): New macro.
703         * lib/strerror-override.c (strerror_override): Update accordingly.
704         * lib/strerror-override.h: Likewise.
705         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
706         longer equal to the corresponding errno value.
707         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
708
709 2011-10-22  Bruno Haible  <bruno@clisp.org>
710
711         perror: Recognize when test program crashes.
712         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
713         strerror, set gl_cv_func_perror_works to no.
714         Reported by Daniel Richard G. <skunk@iskunk.org>.
715
716         perror: Fix indentation.
717         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
718
719 2011-10-22  Bruno Haible  <bruno@clisp.org>
720
721         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
722         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
723         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
724         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
725         functions, not as a macro.
726         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
727         macros.
728         (isfinite, isinf, isnan, signbit): Check overloaded functions and
729         absence of macro.
730         Suggested by Eric Blake.
731         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
732
733 2011-10-21  Bruno Haible  <bruno@clisp.org>
734
735         relocatable-prog-wrapper: Don't leave object files behind.
736         * build-aux/install-reloc: Re-synchronize list of .o files to be
737         removed with list of compilation units.
738
739 2011-10-20  Bruno Haible  <bruno@clisp.org>
740
741         openpty, posix_openpt: Remove code duplication.
742         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
743         * lib/openpty.c: Include <stdlib.h>.
744         (openpty): Use posix_openpt on all platforms except IRIX.
745         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
746
747 2011-10-20  Bruno Haible  <bruno@clisp.org>
748
749         unlockpt: Detect invalid argument.
750         * lib/unlockpt.c: Include <fcntl.h>.
751         (unlockpt): Check whether fd is valid, using fcntl().
752         * modules/unlockpt (Depends-on): Add fcntl-h.
753
754 2011-10-20  Bruno Haible  <bruno@clisp.org>
755
756         openpty: Avoid compilation error on AIX 6.1.
757         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
758
759 2011-10-20  Bruno Haible  <bruno@clisp.org>
760
761         posix_openpt: Support for OpenBSD.
762         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
763         (posix_openpt) [OpenBSD]: New code.
764         * lib/grantpt.c: Include <fcntl.h>.
765         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
766         * modules/grantpt (Depends-on): Add fcntl-h.
767
768 2011-10-20  Bruno Haible  <bruno@clisp.org>
769
770         posix_openpt test: Coding style.
771         * tests/test-posix_openpt.c: Use GNU coding style.
772
773 2011-10-20  Bruno Haible  <bruno@clisp.org>
774
775         grantpt: Support --avoid=pt_chown.
776         * modules/grantpt (Files): Add lib/pty-private.h.
777
778 2011-10-20  Bruno Haible  <bruno@clisp.org>
779
780         posix_openpt: Fix autoconf macro.
781         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
782         unneeded check for _getpty.
783
784 2011-10-20  Bruno Haible  <bruno@clisp.org>
785
786         openpty: Update comments.
787         * lib/openpty.c: Add comments about Minix.
788
789 2011-10-19  Eric Blake  <eblake@redhat.com>
790
791         openpty: relax license
792         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
793
794         pt_chown: use configmake to simplify build
795         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
796
797         ptsname and others: relax license
798         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
799         * modules/unlockpt (License): Likewise.
800         * modules/pt_chown (License): Likewise.
801         * modules/ptsname (License): Likewise.
802         * modules/ttyname_r (License): Likewise.
803
804 2011-10-19  Jim Meyering  <meyering@redhat.com>
805
806         posix_openpt: remove spurious #endif
807         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
808
809 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
810
811         maint.mk: Respect $(build_aux) in web-manual rule.
812         * top/maint.mk (web-manual): Find gen-announce script in user's
813         $(build_aux) directory instead of hard-coding 'build-aux'.
814
815 2011-10-19  Bruno Haible  <bruno@clisp.org>
816
817         posix_openpt: Fix compilation error.
818         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
819         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
820         Mention the openpty module as an alternative.
821
822 2011-10-19  Bruno Haible  <bruno@clisp.org>
823
824         Support for old NeXTstep 3.3 frexp().
825         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
826         execution time of the test to 5 seconds.
827         Reported by Daniel Richard G. <skunk@iskunk.org>.
828
829 2011-10-19  Bruno Haible  <bruno@clisp.org>
830
831         Support for old NeXTstep 3.3 sed.
832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
833         part, use /.../, not \|...|. Escape periods in the header file name.
834         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
835         Reported by Daniel Richard G. <skunk@iskunk.org>.
836
837 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
838
839         Support for old NeXTstep 3.3 gcc.
840         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
841         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
842         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
843         * lib/spawn.in.h (_Restrict_arr_): Likewise.
844         * lib/regex.h (_Restrict_arr_): Likewise.
845         * lib/regex_internal.h (re_token_t): Likewise.
846         * lib/regexec.c (check_node_accept_bytes): Likewise.
847         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
848
849 2011-10-18  Eric Blake  <eblake@redhat.com>
850
851         posix_openpt: new module
852         * modules/posix_openpt: New module.
853         * m4/posix_openpt.m4: New file.
854         * lib/posix_openpt.c: Likewise.
855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
856         (gl_STDLIB_H_DEFAULTS): Set defaults.
857         * modules/stdlib (Makefile.am): Substitute macros.
858         * lib/stdlib.in.h (posix_openpt): Declare.
859         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
860         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
861         * modules/posix_openpt-tests: New test module.
862         * tests/test-posix_openpt.c: New test.
863
864 2011-10-15  Bruno Haible  <bruno@clisp.org>
865
866         xstrtoll: Fix compilation failure.
867         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
868         from lib/strtol.c.
869         * doc/posix-headers/limits.texi: Mention missing numerical limits on
870         some platforms.
871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
872
873 2011-10-15  Bruno Haible  <bruno@clisp.org>
874
875         vasnprintf: Optimize bit search operation.
876         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
878         gl_DOUBLE_EXPONENT_LOCATION.
879         * modules/vasnprintf (Files): Add m4/exponentd.m4.
880         * modules/unistdio/u8-vasnprintf (Files): Likewise.
881         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
882         * modules/unistdio/u16-vasnprintf (Files): Likewise.
883         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
884         * modules/unistdio/u32-vasnprintf (Files): Likewise.
885         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
886         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
887         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
888
889 2011-10-15  Bruno Haible  <bruno@clisp.org>
890
891         vasnprintf: Fix comments.
892         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
893
894 2011-10-14  Bruno Haible  <bruno@clisp.org>
895
896         Tests for module 'integer_length_ll'.
897         * modules/integer_length_ll-tests: New file.
898         * tests/test-integer_length_ll.c: New file.
899
900         New module 'integer_length_ll'.
901         * lib/integer_length_ll.c: New file.
902         * modules/integer_length_ll: New file.
903
904 2011-10-14  Bruno Haible  <bruno@clisp.org>
905
906         Tests for module 'integer_length_l'.
907         * modules/integer_length_l-tests: New file.
908         * tests/test-integer_length_l.c: New file.
909
910         New module 'integer_length_l'.
911         * lib/integer_length_l.c: New file.
912         * modules/integer_length_l: New file.
913
914 2011-10-14  Bruno Haible  <bruno@clisp.org>
915
916         Tests for module 'integer_length'.
917         * modules/integer_length-tests: New file.
918         * tests/test-integer_length.c: New file.
919
920         New module 'integer_length'.
921         * lib/integer_length.h: New file.
922         * lib/integer_length.c: New file.
923         * modules/integer_length: New file.
924
925 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
926
927         popen: Fix dependency conditions.
928         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
929
930 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
931
932         perror: Fix autoconf test.
933         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
934         <stdlib.h> and <string.h>.
935
936 2011-10-14  Bruno Haible  <bruno@clisp.org>
937
938         ffsl: Optimize on 64-bit platforms.
939         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
940         unrolling.
941
942 2011-10-13  Bruno Haible  <bruno@clisp.org>
943
944         ffsl: Optimize on 32-bit platforms.
945         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
946         use ffs() without a loop.
947
948         ffsl, ffsll: Optimize for GCC.
949         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
950         * lib/ffsl.c (GCC_BUILTIN): New macro.
951         * lib/ffsll.c (GCC_BUILTIN): Likewise.
952
953 2011-10-13  Bruno Haible  <bruno@clisp.org>
954
955         ffs, bcopy, memset: Support symbol renaming via config.h.
956         * lib/ffs.c: Include <config.h>.
957         * lib/bcopy.c: Likewise.
958         * lib/memset.c: Likewise.
959
960 2011-10-10  Bruno Haible  <bruno@clisp.org>
961
962         atanl: Simplify for platforms where 'long double' == 'double'.
963         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
964         alternative implementation.
965         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
966         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
967         * modules/atanl (Depends-on): Add atan. Update conditions.
968
969 2011-10-10  Bruno Haible  <bruno@clisp.org>
970
971         acosl: Simplify for platforms where 'long double' == 'double'.
972         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
973         alternative implementation.
974         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
975         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
976         * modules/acosl (Depends-on): Add acos. Update conditions.
977
978 2011-10-10  Bruno Haible  <bruno@clisp.org>
979
980         asinl: Simplify for platforms where 'long double' == 'double'.
981         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
982         alternative implementation.
983         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
984         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
985         * modules/asinl (Depends-on): Add asin. Update conditions.
986
987 2011-10-10  Bruno Haible  <bruno@clisp.org>
988
989         tanl: Simplify for platforms where 'long double' == 'double'.
990         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
991         implementation.
992         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
993         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
994         * modules/tanl (Depends-on): Add tan. Update conditions.
995         (configure.ac): Don't compile trigl.c if
996         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
997
998 2011-10-10  Bruno Haible  <bruno@clisp.org>
999
1000         cosl: Simplify for platforms where 'long double' == 'double'.
1001         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1002         implementation.
1003         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1004         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1005         * modules/cosl (Depends-on): Add cos. Update conditions.
1006         (configure.ac): Don't compile sincosl.c and trigl.c if
1007         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1008
1009 2011-10-10  Bruno Haible  <bruno@clisp.org>
1010
1011         sinl: Simplify for platforms where 'long double' == 'double'.
1012         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1013         implementation.
1014         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1015         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1016         * modules/sinl (Depends-on): Add sin. Update conditions.
1017         (configure.ac): Don't compile sincosl.c and trigl.c if
1018         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1019
1020 2011-10-10  Bruno Haible  <bruno@clisp.org>
1021
1022         logl: Simplify for platforms where 'long double' == 'double'.
1023         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1024         implementation.
1025         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1026         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1027         * modules/logl (Depends-on): Add log. Update conditions.
1028
1029 2011-10-10  Bruno Haible  <bruno@clisp.org>
1030
1031         expl: Simplify for platforms where 'long double' == 'double'.
1032         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1033         implementation.
1034         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1035         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1036         * modules/expl (Depends-on): Add exp. Update conditions.
1037
1038 2011-10-10  Bruno Haible  <bruno@clisp.org>
1039
1040         sqrtl: Simplify for platforms where 'long double' == 'double'.
1041         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1042         alternative implementation.
1043         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1044         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1045         * modules/sqrtl (Depends-on): Update conditions.
1046
1047 2011-10-10  Bruno Haible  <bruno@clisp.org>
1048
1049         ldexpl: Simplify for platforms where 'long double' == 'double'.
1050         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1051         alternative implementation.
1052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1053         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1054         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1055
1056 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1057
1058         ffsll: set correct witness
1059         * modules/ffsll (configure.ac): Fix typo.
1060
1061 2011-10-10  Bruno Haible  <bruno@clisp.org>
1062
1063         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1064         * lib/printf-frexpl.c: Include <config.h>.
1065         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1066         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1067         second time.
1068         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1069         gl_LONG_DOUBLE_VS_DOUBLE.
1070         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1071         conditions.
1072
1073 2011-10-10  Bruno Haible  <bruno@clisp.org>
1074
1075         frexpl: Simplify for platforms where 'long double' == 'double'.
1076         * lib/frexpl.c: Include <config.h>.
1077         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1078         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1079         time.
1080         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1081         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1082         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1083         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1084         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1085         conditions.
1086
1087 2011-10-10  Jim Meyering  <meyering@redhat.com>
1088
1089         test-renameat: don't leave behind a temporary file
1090         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1091           ERROR: files left in build directory after distclean:
1092           ./gltests/test-renameat.too
1093           make[1]: *** [distcleancheck] Error 1
1094         Reported by Tom G. Christensen.
1095
1096 2011-10-09  Bruno Haible  <bruno@clisp.org>
1097
1098         rint: Determine RINT_LIBM correctly on AIX 7.
1099         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1100         directly, not only through a function pointer. Also accept an optional
1101         4th argument with extra code.
1102         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1103         rintf() call by gcc when optimizing.
1104
1105         mathfunc.m4: Refactor.
1106         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1107         m4 variable.
1108
1109 2011-10-09  Bruno Haible  <bruno@clisp.org>
1110
1111         rintl: Simplify for platforms where 'long double' == 'double'.
1112         * lib/rintl.c: Include <config.h>.
1113         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1114         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1115         time.
1116         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1117         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1118         * modules/rintl (Depends-on): Add rint. Update conditions.
1119
1120 2011-10-09  Bruno Haible  <bruno@clisp.org>
1121
1122         roundl: Simplify for platforms where 'long double' == 'double'.
1123         * lib/roundl.c: Include <config.h>.
1124         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1125         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1126         time.
1127         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1128         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1129         * modules/roundl (Depends-on): Add round. Update conditions.
1130
1131 2011-10-09  Bruno Haible  <bruno@clisp.org>
1132
1133         truncl: Simplify for platforms where 'long double' == 'double'.
1134         * lib/truncl.c: Include <config.h>.
1135         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1136         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1137         time.
1138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1139         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1140         * modules/truncl (Depends-on): Add trunc. Update conditions.
1141
1142 2011-10-09  Bruno Haible  <bruno@clisp.org>
1143
1144         ceill: Simplify for platforms where 'long double' == 'double'.
1145         * lib/ceill.c: Include <config.h>.
1146         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1147         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1148         time.
1149         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1150         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1151         * modules/ceill (Depends-on): Add ceil. Update conditions.
1152
1153 2011-10-09  Bruno Haible  <bruno@clisp.org>
1154
1155         floorl: Simplify for platforms where 'long double' == 'double'.
1156         * lib/floorl.c: Include <config.h>.
1157         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1158         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1159         time.
1160         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1161         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1162         * modules/floorl (Depends-on): Add floor. Update conditions.
1163
1164 2011-10-09  Bruno Haible  <bruno@clisp.org>
1165
1166         rint: Fix ordering constraints.
1167         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1168         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1169         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1170
1171 2011-10-09  Bruno Haible  <bruno@clisp.org>
1172
1173         copysignl: Simplify for platforms where 'long double' == 'double'.
1174         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1175         alternative.
1176         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1177         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1178         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1179
1180 2011-10-09  Bruno Haible  <bruno@clisp.org>
1181
1182         Tests for module 'rintl'.
1183         * modules/rintl-tests: New file.
1184         * tests/test-rintl.c: New file.
1185
1186         New module 'rintl'.
1187         * lib/math.in.h (rintl): New declaration.
1188         * lib/rintl.c: New file.
1189         * m4/rintl.m4: New file.
1190         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1192         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1193         * modules/rintl: New file.
1194         * tests/test-math-c++.cc: Check the declaration of rintl.
1195         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1196         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1197         * doc/posix-functions/rintl.texi: Mention the new module.
1198
1199 2011-10-09  Bruno Haible  <bruno@clisp.org>
1200
1201         Tests for module 'rintf'.
1202         * modules/rintf-tests: New file.
1203         * tests/test-rintf.c: New file.
1204
1205         New module 'rintf'.
1206         * lib/math.in.h (rintf): New declaration.
1207         * lib/rintf.c: New file.
1208         * m4/rintf.m4: New file.
1209         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1211         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1212         * modules/rintf: New file.
1213         * tests/test-math-c++.cc: Check the declaration of rintf.
1214         * doc/posix-functions/rintf.texi: Mention the new module.
1215
1216 2011-10-09  Bruno Haible  <bruno@clisp.org>
1217
1218         rint: Support for MSVC.
1219         * lib/math.in.h (rint): New declaration.
1220         * lib/rint.c: New file.
1221         * m4/rint.m4: New file.
1222         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1224         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1225         * modules/rint (Description): Fix.
1226         (Files): Add lib/rint.c, m4/rint.m4.
1227         (Depends-on): Add math.
1228         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1229         gl_MATH_MODULE_INDICATOR.
1230         * tests/test-math-c++.cc: Check the declaration of rint.
1231         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1232         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1233         * doc/posix-functions/rint.texi: Mention the replacement provided by
1234         the module.
1235
1236         rint tests: More tests.
1237         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1238         minus-zero.h, infinity.h, nan.h.
1239         (main): Skip the test if the current rounding mode is not standard. Add
1240         tests for negative numbers, minus zero, infinity, NaN.
1241         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1242         tests/nan.h.
1243         (Depends-on): Add isnand-nolibm.
1244
1245 2011-10-09  Bruno Haible  <bruno@clisp.org>
1246
1247         Tests for module 'copysignl'.
1248         * modules/copysignl-tests: New file.
1249         * tests/test-copysignl.c: New file.
1250
1251         New module 'copysignl'.
1252         * lib/math.in.h (copysignl): New declaration.
1253         * lib/copysignl.c: New file.
1254         * m4/copysignl.m4: New file.
1255         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1257         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1258         HAVE_COPYSIGNL.
1259         * modules/copysignl: New file.
1260         * tests/test-math-c++.cc: Check the declaration of copysignl.
1261         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1262         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1263         * doc/posix-functions/copysignl.texi: Mention the new module.
1264
1265 2011-10-09  Bruno Haible  <bruno@clisp.org>
1266
1267         Tests for module 'copysignf'.
1268         * modules/copysignf-tests: New file.
1269         * tests/test-copysignf.c: New file.
1270
1271         New module 'copysignf'.
1272         * lib/math.in.h (copysignf): New declaration.
1273         * lib/copysignf.c: New file.
1274         * m4/copysignf.m4: New file.
1275         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1277         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1278         HAVE_COPYSIGNF.
1279         * modules/copysignf: New file.
1280         * tests/test-math-c++.cc: Check the declaration of copysignf.
1281         * doc/posix-functions/copysignf.texi: Mention the new module.
1282
1283 2011-10-09  Bruno Haible  <bruno@clisp.org>
1284
1285         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1286         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1287         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1288         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1289         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1290         gl_SIGNAL_H_DEFAULTS.
1291
1292 2011-10-09  Bruno Haible  <bruno@clisp.org>
1293
1294         poll: Make macro safer.
1295         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1296         ac_cv_header_poll_h is not set.
1297
1298 2011-10-09  Bruno Haible  <bruno@clisp.org>
1299
1300         copysign: Provide replacement.
1301         * lib/math.in.h (copysign): New declaration.
1302         * lib/copysign.c: New file.
1303         * m4/copysign.m4: New file.
1304         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1306         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1307         HAVE_COPYSIGN.
1308         * modules/copysign (Description): Clarify.
1309         (Files): Add lib/copysign.c, m4/copysign.m4.
1310         (Depends-on): Add math, signbit.
1311         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1312         gl_MATH_MODULE_INDICATOR.
1313         * tests/test-math-c++.cc: Check the declaration of copysign.
1314         * doc/posix-functions/copysign.texi: Mention the effects of the module
1315         on Minix and MSVC.
1316
1317 2011-10-09  Bruno Haible  <bruno@clisp.org>
1318
1319         isinf: Ensure macro on AIX 5.1.
1320         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1321         macro.
1322         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1323
1324 2011-10-09  Bruno Haible  <bruno@clisp.org>
1325
1326         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1327         * modules/snprintf-posix-tests (configure.ac): Require
1328         gl_LONG_DOUBLE_VS_DOUBLE.
1329         * modules/sprintf-posix-tests (configure.ac): Likewise.
1330         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1331         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1332         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1333         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1334         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1335         tests on platforms where 'long double' is the same as 'double'.
1336         * tests/test-sprintf-posix.h (test_function): Likewise.
1337         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1338         * tests/test-vasprintf-posix.c (test_function): Likewise.
1339
1340         *printf: Fix for platforms where 'long double' == 'double'.
1341         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1342         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1343         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1344         * modules/fprintf-posix (Files): Likewise.
1345         * modules/obstack-printf-posix (Files): Likewise.
1346         * modules/snprintf-posix (Files): Likewise.
1347         * modules/sprintf-posix (Files): Likewise.
1348         * modules/vasnprintf (Files): Likewise.
1349         * modules/vasnprintf-posix (Files): Likewise.
1350         * modules/vasprintf-posix (Files): Likewise.
1351         * modules/vdprintf-posix (Files): Likewise.
1352         * modules/vfprintf-posix (Files): Likewise.
1353         * modules/vsnprintf-posix (Files): Likewise.
1354         * modules/vsprintf-posix (Files): Likewise.
1355         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1356         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1357         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1358         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1359         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1360         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1361         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1362
1363         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1364         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1365         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1366         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1367         'long double'.
1368         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1369
1370         isinf: Fix for platforms where 'long double' == 'double'.
1371         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1372         Don't blindly assume 80-bit 'long double'.
1373
1374         isfinite: Fix for platforms where 'long double' == 'double'.
1375         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1376         Don't blindly assume 80-bit 'long double'.
1377
1378         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1379         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1380         * modules/isfinite-tests (configure.ac): Require
1381         gl_LONG_DOUBLE_VS_DOUBLE.
1382         * modules/isinf-tests (configure.ac): Likewise.
1383         * modules/isnan-tests (configure.ac): Likewise.
1384         * modules/isnanl-tests (configure.ac): Likewise.
1385         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1386         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1387         tests on platforms where 'long double' is the same as 'double'.
1388         * tests/test-isinf.c (test_isinfl): Likewise.
1389         * tests/test-isnan.c (test_long_double): Likewise.
1390         * tests/test-isnanl.h (main): Likewise.
1391
1392 2011-10-08  Bruno Haible  <bruno@clisp.org>
1393
1394         Tests for module 'tanhf'.
1395         * modules/tanhf-tests: New file.
1396         * tests/test-tanhf.c: New file.
1397
1398         New module 'tanhf'.
1399         * lib/math.in.h (tanhf): New declaration.
1400         * lib/tanhf.c: New file.
1401         * m4/tanhf.m4: New file.
1402         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1404         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1405         * modules/tanhf: New file.
1406         * tests/test-math-c++.cc: Check the declaration of tanhf.
1407         * doc/posix-functions/tanhf.texi: Mention the new module.
1408
1409         tanh: Use a .m4 file.
1410         * m4/tanh.m4: New file.
1411         * modules/tanh (Files): Add it.
1412         (configure.ac): Just invoke gl_FUNC_TANH.
1413
1414 2011-10-08  Bruno Haible  <bruno@clisp.org>
1415
1416         Tests for module 'coshf'.
1417         * modules/coshf-tests: New file.
1418         * tests/test-coshf.c: New file.
1419
1420         New module 'coshf'.
1421         * lib/math.in.h (coshf): New declaration.
1422         * lib/coshf.c: New file.
1423         * m4/coshf.m4: New file.
1424         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1426         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1427         * modules/coshf: New file.
1428         * tests/test-math-c++.cc: Check the declaration of coshf.
1429         * doc/posix-functions/coshf.texi: Mention the new module.
1430
1431         cosh: Use a .m4 file.
1432         * m4/cosh.m4: New file.
1433         * modules/cosh (Files): Add it.
1434         (configure.ac): Just invoke gl_FUNC_COSH.
1435
1436 2011-10-08  Bruno Haible  <bruno@clisp.org>
1437
1438         Tests for module 'sinhf'.
1439         * modules/sinhf-tests: New file.
1440         * tests/test-sinhf.c: New file.
1441
1442         New module 'sinhf'.
1443         * lib/math.in.h (sinhf): New declaration.
1444         * lib/sinhf.c: New file.
1445         * m4/sinhf.m4: New file.
1446         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1448         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1449         * modules/sinhf: New file.
1450         * tests/test-math-c++.cc: Check the declaration of sinhf.
1451         * doc/posix-functions/sinhf.texi: Mention the new module.
1452
1453         sinh: Use a .m4 file.
1454         * m4/sinh.m4: New file.
1455         * modules/sinh (Files): Add it.
1456         (configure.ac): Just invoke gl_FUNC_SINH.
1457
1458 2011-10-08  Bruno Haible  <bruno@clisp.org>
1459
1460         Tests for module 'atan2f'.
1461         * modules/atan2f-tests: New file.
1462         * tests/test-atan2f.c: New file.
1463
1464         New module 'atan2f'.
1465         * lib/math.in.h (atan2f): New declaration.
1466         * lib/atan2f.c: New file.
1467         * m4/atan2f.m4: New file.
1468         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1470         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1471         * modules/atan2f: New file.
1472         * tests/test-math-c++.cc: Check the declaration of atan2f.
1473         * doc/posix-functions/atan2f.texi: Mention the new module.
1474
1475         atan2: Use a .m4 file.
1476         * m4/atan2.m4: New file.
1477         * modules/atan2 (Files): Add it.
1478         (configure.ac): Just invoke gl_FUNC_ATAN2.
1479
1480 2011-10-08  Bruno Haible  <bruno@clisp.org>
1481
1482         Tests for module 'atanf'.
1483         * modules/atanf-tests: New file.
1484         * tests/test-atanf.c: New file.
1485
1486         New module 'atanf'.
1487         * lib/math.in.h (atanf): New declaration.
1488         * lib/atanf.c: New file.
1489         * m4/atanf.m4: New file.
1490         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1492         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1493         * modules/atanf: New file.
1494         * tests/test-math-c++.cc: Check the declaration of atanf.
1495         * doc/posix-functions/atanf.texi: Mention the new module.
1496
1497         atan: Use a .m4 file.
1498         * m4/atan.m4: New file.
1499         * modules/atan (Files): Add it.
1500         (configure.ac): Just invoke gl_FUNC_ATAN.
1501
1502 2011-10-08  Bruno Haible  <bruno@clisp.org>
1503
1504         Tests for module 'acosf'.
1505         * modules/acosf-tests: New file.
1506         * tests/test-acosf.c: New file.
1507
1508         New module 'acosf'.
1509         * lib/math.in.h (acosf): New declaration.
1510         * lib/acosf.c: New file.
1511         * m4/acosf.m4: New file.
1512         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1514         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1515         * modules/acosf: New file.
1516         * tests/test-math-c++.cc: Check the declaration of acosf.
1517         * doc/posix-functions/acosf.texi: Mention the new module.
1518
1519         acos: Use a .m4 file.
1520         * m4/acos.m4: New file.
1521         * modules/acos (Files): Add it.
1522         (configure.ac): Just invoke gl_FUNC_ACOS.
1523
1524 2011-10-08  Bruno Haible  <bruno@clisp.org>
1525
1526         Tests for module 'asinf'.
1527         * modules/asinf-tests: New file.
1528         * tests/test-asinf.c: New file.
1529
1530         New module 'asinf'.
1531         * lib/math.in.h (asinf): New declaration.
1532         * lib/asinf.c: New file.
1533         * m4/asinf.m4: New file.
1534         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1536         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1537         * modules/asinf: New file.
1538         * tests/test-math-c++.cc: Check the declaration of asinf.
1539         * doc/posix-functions/asinf.texi: Mention the new module.
1540
1541         asin: Use a .m4 file.
1542         * m4/asin.m4: New file.
1543         * modules/asin (Files): Add it.
1544         (configure.ac): Just invoke gl_FUNC_ASIN.
1545
1546 2011-10-08  Bruno Haible  <bruno@clisp.org>
1547
1548         Tests for module 'tanf'.
1549         * modules/tanf-tests: New file.
1550         * tests/test-tanf.c: New file.
1551
1552         New module 'tanf'.
1553         * lib/math.in.h (tanf): New declaration.
1554         * lib/tanf.c: New file.
1555         * m4/tanf.m4: New file.
1556         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1558         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1559         * modules/tanf: New file.
1560         * tests/test-math-c++.cc: Check the declaration of tanf.
1561         * doc/posix-functions/tanf.texi: Mention the new module.
1562
1563         tan: Use a .m4 file.
1564         * m4/tan.m4: New file.
1565         * modules/tan (Files): Add it.
1566         (configure.ac): Just invoke gl_FUNC_TAN.
1567
1568 2011-10-08  Bruno Haible  <bruno@clisp.org>
1569
1570         Tests for module 'cosf'.
1571         * modules/cosf-tests: New file.
1572         * tests/test-cosf.c: New file.
1573
1574         New module 'cosf'.
1575         * lib/math.in.h (cosf): New declaration.
1576         * lib/cosf.c: New file.
1577         * m4/cosf.m4: New file.
1578         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1580         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1581         * modules/cosf: New file.
1582         * tests/test-math-c++.cc: Check the declaration of cosf.
1583         * doc/posix-functions/cosf.texi: Mention the new module.
1584
1585         cos: Use a .m4 file.
1586         * m4/cos.m4: New file.
1587         * modules/cos (Files): Add it.
1588         (configure.ac): Just invoke gl_FUNC_COS.
1589
1590 2011-10-08  Bruno Haible  <bruno@clisp.org>
1591
1592         Tests for module 'sinf'.
1593         * modules/sinf-tests: New file.
1594         * tests/test-sinf.c: New file.
1595
1596         New module 'sinf'.
1597         * lib/math.in.h (sinf): New declaration.
1598         * lib/sinf.c: New file.
1599         * m4/sinf.m4: New file.
1600         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1602         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1603         * modules/sinf: New file.
1604         * tests/test-math-c++.cc: Check the declaration of sinf.
1605         * doc/posix-functions/sinf.texi: Mention the new module.
1606
1607         sin: Use a .m4 file.
1608         * m4/sin.m4: New file.
1609         * modules/sin (Files): Add it.
1610         (configure.ac): Just invoke gl_FUNC_SIN.
1611
1612 2011-10-08  Bruno Haible  <bruno@clisp.org>
1613
1614         Tests for module 'powf'.
1615         * modules/powf-tests: New file.
1616         * tests/test-powf.c: New file.
1617
1618         New module 'powf'.
1619         * lib/math.in.h (powf): New declaration.
1620         * lib/powf.c: New file.
1621         * m4/powf.m4: New file.
1622         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1624         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1625         * modules/powf: New file.
1626         * tests/test-math-c++.cc: Check the declaration of powf.
1627         * doc/posix-functions/powf.texi: Mention the new module.
1628
1629         pow: Use a .m4 file.
1630         * m4/pow.m4: New file.
1631         * modules/pow (Files): Add it.
1632         (configure.ac): Just invoke gl_FUNC_POW.
1633
1634 2011-10-08  Bruno Haible  <bruno@clisp.org>
1635
1636         Tests for module 'log10f'.
1637         * modules/log10f-tests: New file.
1638         * tests/test-log10f.c: New file.
1639
1640         New module 'log10f'.
1641         * lib/math.in.h (log10f): New declaration.
1642         * lib/log10f.c: New file.
1643         * m4/log10f.m4: New file.
1644         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1646         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1647         * modules/log10f: New file.
1648         * tests/test-math-c++.cc: Check the declaration of log10f.
1649         * doc/posix-functions/log10f.texi: Mention the new module.
1650
1651         log10: Use a .m4 file.
1652         * m4/log10.m4: New file.
1653         * modules/log10 (Files): Add it.
1654         (configure.ac): Just invoke gl_FUNC_LOG10.
1655
1656 2011-10-08  Bruno Haible  <bruno@clisp.org>
1657
1658         Tests for module 'logf'.
1659         * modules/logf-tests: New file.
1660         * tests/test-logf.c: New file.
1661
1662         New module 'logf'.
1663         * lib/math.in.h (logf): New declaration.
1664         * lib/logf.c: New file.
1665         * m4/logf.m4: New file.
1666         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1668         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1669         * modules/logf: New file.
1670         * tests/test-math-c++.cc: Check the declaration of logf.
1671         * doc/posix-functions/logf.texi: Mention the new module.
1672
1673         log: Use a .m4 file.
1674         * m4/log.m4: New file.
1675         * modules/log (Files): Add it.
1676         (configure.ac): Just invoke gl_FUNC_LOG.
1677
1678 2011-10-08  Bruno Haible  <bruno@clisp.org>
1679
1680         Tests for module 'expf'.
1681         * modules/expf-tests: New file.
1682         * tests/test-expf.c: New file.
1683
1684         New module 'expf'.
1685         * lib/math.in.h (expf): New declaration.
1686         * lib/expf.c: New file.
1687         * m4/expf.m4: New file.
1688         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1690         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1691         * modules/expf: New file.
1692         * tests/test-math-c++.cc: Check the declaration of expf.
1693         * doc/posix-functions/expf.texi: Mention the new module.
1694
1695         exp: Use a .m4 file.
1696         * m4/exp.m4: New file.
1697         * modules/exp (Files): Add it.
1698         (configure.ac): Just invoke gl_FUNC_EXP.
1699
1700 2011-10-08  Bruno Haible  <bruno@clisp.org>
1701
1702         Tests for module 'sqrtf'.
1703         * modules/sqrtf-tests: New file.
1704         * tests/test-sqrtf.c: New file.
1705
1706         New module 'sqrtf'.
1707         * lib/math.in.h (sqrtf): New declaration.
1708         * lib/sqrtf.c: New file.
1709         * m4/sqrtf.m4: New file.
1710         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1712         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1713         * modules/sqrtf: New file.
1714         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1715         * doc/posix-functions/sqrtf.texi: Mention the new module.
1716
1717 2011-10-08  Bruno Haible  <bruno@clisp.org>
1718
1719         Tests: Avoid link failures w.r.t. libintl.
1720         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1721         $(LIBINTL).
1722         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1723         $(LIBINTL).
1724         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1725         against $(LIBINTL).
1726         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1727         $(LIBINTL).
1728         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1729         $(LIBINTL).
1730         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1731
1732 2011-10-08  Bruno Haible  <bruno@clisp.org>
1733
1734         pow tests: Defeat compiler optimizations.
1735         * tests/test-pow.c (main): Assign arguments to x and y before use.
1736
1737 2011-10-08  Bruno Haible  <bruno@clisp.org>
1738
1739         gnulib-tool: Improve last commit.
1740         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1741         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1742         ignore dependencies that are not among the modules list.
1743
1744 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1745
1746         gnulib-tool: don't follow dependencies to avoided modules
1747         This fixes a bug that is related to the previous one.
1748         * gnulib-tool (func_modules_transitive_closure)
1749         (func_emit_autoconf_snippets):
1750         Check whether a dependency is acceptable before using it.
1751         (--extract-dependencies): Report an error if --avoid is also used,
1752         since this combination of options is not yet supported.
1753
1754         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1755         Problem reported by Peter Dyballa in
1756         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1757         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1758         when echoing "$condition".
1759
1760 2011-10-07  Bruno Haible  <bruno@clisp.org>
1761
1762         Fix documentation about math functions on MacOS X.
1763         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1764         MacOS X 10.5.
1765         * doc/posix-functions/fdim.texi: Likewise.
1766         * doc/posix-functions/feclearexcept.texi: Likewise.
1767         * doc/posix-functions/fegetenv.texi: Likewise.
1768         * doc/posix-functions/fegetround.texi: Likewise.
1769         * doc/posix-functions/feholdexcept.texi: Likewise.
1770         * doc/posix-functions/feraiseexcept.texi: Likewise.
1771         * doc/posix-functions/fesetenv.texi: Likewise.
1772         * doc/posix-functions/fesetround.texi: Likewise.
1773         * doc/posix-functions/fetestexcept.texi: Likewise.
1774         * doc/posix-functions/feupdateenv.texi: Likewise.
1775         * doc/posix-functions/fmax.texi: Likewise.
1776         * doc/posix-functions/fmin.texi: Likewise.
1777         * doc/posix-functions/log2.texi: Likewise.
1778         * doc/posix-functions/modff.texi: Likewise.
1779         * doc/posix-functions/nan.texi: Likewise.
1780         * doc/posix-functions/nanf.texi: Likewise.
1781         * doc/posix-functions/nextafterf.texi: Likewise.
1782         * doc/posix-functions/remquo.texi: Likewise.
1783
1784 2011-10-07  Bruno Haible  <bruno@clisp.org>
1785
1786         modff: Drop assumption about library that defines modff.
1787         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1788         AC_CHECK_FUNCS.
1789         * modules/modff (Files): Add m4/mathfunc.m4.
1790
1791 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1792
1793         raise tests: Avoid a GCC warning.
1794         * tests/test-raise.c (handler): Use _Noreturn.
1795
1796 2011-10-07  Bruno Haible  <bruno@clisp.org>
1797
1798         Tests for module 'ldexpf'.
1799         * modules/ldexpf-tests: New file.
1800         * tests/test-ldexpf.c: New file.
1801
1802         New module 'ldexpf'.
1803         * lib/math.in.h (ldexpf): New declaration.
1804         * lib/ldexpf.c: New file.
1805         * m4/ldexpf.m4: New file.
1806         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1808         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1809         * modules/ldexpf: New file.
1810         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1811         * doc/posix-functions/ldexpf.texi: Mention the new module.
1812
1813 2011-10-06  Bruno Haible  <bruno@clisp.org>
1814
1815         frexpf: Work around problems on IRIX and mingw.
1816         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1818         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1819         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1820         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1821         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1822         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1823
1824 2011-10-06  Bruno Haible  <bruno@clisp.org>
1825
1826         fabsf: Drop assumption about library that defines fabsf.
1827         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1828         AC_CHECK_FUNCS.
1829         * modules/fabsf (Files): Add m4/mathfunc.m4.
1830
1831 2011-10-06  Bruno Haible  <bruno@clisp.org>
1832
1833         frexpf: Drop assumption about library that defines frexpf.
1834         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1835         'int *', 'float *', 'long double *', 'float', 'long double'.
1836         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1837         AC_CHECK_FUNCS.
1838         * modules/frexpf (Files): Add m4/mathfunc.m4.
1839
1840         Tests for module 'frexpf'.
1841         * modules/frexpf-tests: New file.
1842         * tests/test-frexpf.c: New file.
1843
1844         New module 'frexpf'.
1845         * lib/math.in.h (frexpf): New declaration.
1846         * lib/frexpf.c: New file.
1847         * m4/frexpf.m4: New file.
1848         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1850         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1851         * modules/frexpf: New file.
1852         * tests/test-math-c++.cc: Check the declaration of frexpf.
1853         * doc/posix-functions/frexpf.texi: Mention the new module.
1854
1855 2011-10-06  Bruno Haible  <bruno@clisp.org>
1856
1857         math: Sort function declarations of math.in.h.
1858         * lib/math.in.h (frexp, logb): Move declarations.
1859
1860 2011-10-05  Bruno Haible  <bruno@clisp.org>
1861
1862         Tests for module 'modff'.
1863         * modules/modff-tests: New file.
1864         * tests/test-modff.c: New file.
1865
1866         New module 'modff'.
1867         * lib/math.in.h (modff): New declaration.
1868         * lib/modff.c: New file.
1869         * m4/modff.m4: New file.
1870         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1872         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1873         * modules/modff: New file.
1874         * tests/test-math-c++.cc: Check the declaration of modff.
1875         * doc/posix-functions/modff.texi: Mention the new module.
1876
1877         modf tests: Make test sharper.
1878         * tests/test-modf.c (main): Strengthen upper bound.
1879
1880         modf: Use a .m4 file.
1881         * m4/modf.m4: New file.
1882         * modules/modf (Files): Add it.
1883         (configure.ac): Just invoke gl_FUNC_MODF.
1884
1885 2011-10-05  Bruno Haible  <bruno@clisp.org>
1886
1887         Tests for module 'fmodf'.
1888         * modules/fmodf-tests: New file.
1889         * tests/test-fmodf.c: New file.
1890
1891         New module 'fmodf'.
1892         * lib/math.in.h (fmodf): New declaration.
1893         * lib/fmodf.c: New file.
1894         * m4/fmodf.m4: New file.
1895         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1897         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1898         * modules/fmodf: New file.
1899         * tests/test-math-c++.cc: Check the declaration of fmodf.
1900         * doc/posix-functions/fmodf.texi: Mention the new module.
1901
1902         fmod: Use a .m4 file.
1903         * m4/fmod.m4: New file.
1904         * modules/fmod (Files): Add it.
1905         (configure.ac): Just invoke gl_FUNC_FMOD.
1906
1907 2011-10-05  Bruno Haible  <bruno@clisp.org>
1908
1909         Tests for module 'fabsf'.
1910         * modules/fabsf-tests: New file.
1911         * tests/test-fabsf.c: New file.
1912
1913         New module 'fabsf'.
1914         * lib/math.in.h (fabsf): New declaration.
1915         * lib/fabsf.c: New file.
1916         * m4/fabsf.m4: New file.
1917         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1919         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1920         * modules/fabsf: New file.
1921         * tests/test-math-c++.cc: Check the declaration of fabsf.
1922         * doc/posix-functions/fabsf.texi: Mention the new module.
1923
1924         fabs: Use a .m4 file.
1925         * m4/fabs.m4: New file.
1926         * modules/fabs (Files): Add it.
1927         (configure.ac): Just invoke gl_FUNC_FABS.
1928
1929 2011-10-05  Jim Meyering  <meyering@redhat.com>
1930
1931         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1932         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1933         ls -lL regression introduced in coreutils-8.12, it does so at the
1934         cost of an additional stat call in the common case.  Besides, now
1935         that the kernel change that prompted commit 95f7c57f has been reverted
1936         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1937         we have no use for commit 95f7c57f, "file-has-acl: use
1938         acl_extended_file_nofollow if available".
1939
1940 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1941
1942         file-has-acl: revert unintended change in behavior of ls -L
1943         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1944         derived from...
1945         (file_has_acl): ...code here.  Call it.
1946         This problem was introduced with 2011-07-22 commit 95f7c57f,
1947         "file-has-acl: use acl_extended_file_nofollow if available".
1948         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1949
1950 2011-10-03  Bruno Haible  <bruno@clisp.org>
1951
1952         poll: Avoid link errors on MSVC.
1953         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1954         * modules/poll (Depends-on): Add sockets.
1955         (Link): New section.
1956         * NEWS: Mention the change.
1957         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1958         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1959         $(LIB_POLL) instead of $(LIBSOCKET).
1960
1961 2011-10-03  Bruno Haible  <bruno@clisp.org>
1962
1963         sys_select tests: Fix link error on MSVC 9.
1964         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1965         with $(LIB_SELECT) instead of $(LIBSOCKET).
1966
1967 2011-10-03  Bruno Haible  <bruno@clisp.org>
1968
1969         sys_select: Fix compilation error on mingw.
1970         * lib/sys_select.in.h: On native Windows, include <io.h>.
1971
1972 2011-10-03  Bruno Haible  <bruno@clisp.org>
1973
1974         wmemset: Support for MSVC.
1975         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1976         whether wmemset() exists.
1977
1978 2011-10-03  Bruno Haible  <bruno@clisp.org>
1979
1980         wmemmove: Support for MSVC.
1981         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1982         whether wmemmove() exists.
1983
1984 2011-10-03  Bruno Haible  <bruno@clisp.org>
1985
1986         wmemcpy: Support for MSVC.
1987         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1988         whether wmemcpy() exists.
1989
1990 2011-10-03  Bruno Haible  <bruno@clisp.org>
1991
1992         wmemcmp: Support for MSVC.
1993         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1994         whether wmemcmp() exists.
1995
1996 2011-10-03  Bruno Haible  <bruno@clisp.org>
1997
1998         wmemchr: Support for MSVC.
1999         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2000         whether wmemchr() exists.
2001
2002 2011-10-03  Bruno Haible  <bruno@clisp.org>
2003
2004         glthread/*, strsignal: Support for MSVC.
2005         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2006         including <winsock.h> on MSVC 9.
2007         * lib/glthread/lock.h: Likewise.
2008         * lib/glthread/thread.h: Likewise.
2009         * lib/glthread/tls.h: Likewise.
2010         * lib/glthread/yield.h: Likewise.
2011         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2012         if HAVE_UNISTD_H is false.
2013         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2014
2015 2011-10-03  Bruno Haible  <bruno@clisp.org>
2016
2017         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2018         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2019         Set to 100000.
2020
2021 2011-10-03  Bruno Haible  <bruno@clisp.org>
2022
2023         acl: Fix specification.
2024         * lib/file-has-acl.c (file_has_acl): Fix specification.
2025
2026 2011-10-03  Bruno Haible  <bruno@clisp.org>
2027
2028         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2029         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2030         (compute_curr_prefix, shared_library_fullname,
2031         find_shared_library_fullname, get_shared_library_fullname, relocate):
2032         Use it together with PIC && INSTALLDIR.
2033         Reported by <jojelino@gmail.com>
2034         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2035
2036 2011-10-01  Jim Meyering  <meyering@redhat.com>
2037
2038         maint.mk: adjust a release-related rule not to require use of gzip
2039         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2040         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2041         projects that build only .tar.xz files.  Also fix an erroneous test.
2042
2043         test-linkat: don't leave behind a temporary file
2044         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2045         Otherwise, coreutils' "make distcheck" would fail with this:
2046           Only in /c/cu/tests/torture/coreutils/test/\
2047             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2048           make[2]: *** [my-distcheck] Error 1
2049
2050         float, math: add omitted file
2051         * lib/itold.c: Add file, required for yesterday's float change.
2052
2053 2011-10-01  Bruno Haible  <bruno@clisp.org>
2054
2055         isinf: Fix for OpenBSD/x86.
2056         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2057         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2058         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2059
2060 2011-10-01  Bruno Haible  <bruno@clisp.org>
2061
2062         isfinite: Fix syntax error in configure test.
2063         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2064
2065         isfinite: Fix typo.
2066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2067         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2068
2069 2011-10-01  Bruno Haible  <bruno@clisp.org>
2070
2071         nonblocking tests: Fix test failure on Linux/IA-64.
2072         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2073         Set to 270000.
2074
2075 2011-10-01  Bruno Haible  <bruno@clisp.org>
2076
2077         mkfifoat tests: Fix a test failure on mingw.
2078         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2079         with error ENOSYS.
2080
2081 2011-09-30  Bruno Haible  <bruno@clisp.org>
2082
2083         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2084         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2085         'long double'. Set REPLACE_ITOLD.
2086         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2087         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2088         * lib/itold.c: New file.
2089         * modules/float (Files): Add lib/itold.c.
2090         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2091         (Makefile.am): Substitute REPLACE_ITOLD.
2092         * modules/math (Depends-on): Add float.
2093         (Makefile.am): Substitute REPLACE_ITOLD.
2094         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2095         * doc/posix-headers/math.texi: Likewise.
2096         * doc/posix-functions/logl.texi: Likewise.
2097
2098 2011-09-30  Bruno Haible  <bruno@clisp.org>
2099
2100         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2101         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2102         Set to 140000.
2103
2104 2011-09-30  Bruno Haible  <bruno@clisp.org>
2105
2106         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2107         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2108         invocation, say "right after AC_PROG_CC_STDC", not "right after
2109         AC_PROG_CC".
2110         Reported by Gary V. Vaughan <gary@gnu.org>.
2111
2112 2011-09-30  Bruno Haible  <bruno@clisp.org>
2113
2114         Centralize C99 requirement.
2115         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2116         * modules/stdarg (configure.ac-early): Invoke it instead of
2117         AC_PROG_CC_STDC.
2118         Reported by Gary V. Vaughan and Paul Eggert.
2119
2120 2011-09-29  Bruno Haible  <bruno@clisp.org>
2121
2122         float: Fix LDBL_MAX value on Linux/PowerPC.
2123         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2124         on Linux/PowerPC.
2125         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2126         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2127         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2128         platform.
2129         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2130
2131 2011-09-29  Bruno Haible  <bruno@clisp.org>
2132
2133         doc: Improve doc about gl_EARLY.
2134         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2135         AC_PROG_CC_STDC invocation.
2136         Reported by Gary V. Vaughan <gary@gnu.org>.
2137
2138 2011-09-28  Bruno Haible  <bruno@clisp.org>
2139
2140         fgetc, fputc, fread, fwrite tests: Fix link error.
2141         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2142         on non-MSVC platforms.
2143         * tests/test-fputc.c (main): Likewise.
2144         * tests/test-fread.c (main): Likewise.
2145         * tests/test-fwrite.c (main): Likewise.
2146         Reported by Jim Meyering.
2147
2148 2011-09-27  Bruno Haible  <bruno@clisp.org>
2149
2150         fputc, fwrite tests: Avoid test failure on MSVC.
2151         * tests/test-fgetc.c: Include msvc-inval.h.
2152         (main): Invoke gl_msvc_inval_ensure_handler.
2153         * tests/test-fputc.c: Include msvc-inval.h.
2154         (main): Invoke gl_msvc_inval_ensure_handler.
2155         * tests/test-fread.c: Include msvc-inval.h.
2156         (main): Invoke gl_msvc_inval_ensure_handler.
2157         * tests/test-fwrite.c: Include msvc-inval.h.
2158         (main): Invoke gl_msvc_inval_ensure_handler.
2159         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2160         * modules/fputc-tests (Depends-on): Likewise.
2161         * modules/fread-tests (Depends-on): Likewise.
2162         * modules/fwrite-tests (Depends-on): Likewise.
2163
2164 2011-09-27  Bruno Haible  <bruno@clisp.org>
2165
2166         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2167         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2168         (raise): Remove older, duplicated declaration.
2169         (_gl_raise_SIGPIPE): New declaration.
2170         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2171         (rpl_raise): Remove function.
2172         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2173         a gnulib-defined SIGPIPE here.
2174         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2175         'sigprocmask' has detected missing signal-blocking and the module
2176         'sigpipe' is enabled.
2177         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2178
2179 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2180
2181         base64-tests: avoid memory leak
2182         * tests/test-base64.c (main): Plug memory leak.
2183
2184         base32: new module
2185         * modules/base32: New module.
2186         * lib/base32.c: New file.
2187         * lib/base32.h: Likewise.
2188         * m4/base32.m4: Likewise.
2189         * modules/base32-tests: New test.
2190         * tests/test-base32.c: Likewise.
2191         * MODULES.html.sh (Misc): Mention it.
2192
2193 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         gnulib: use more-standard license notice wording
2196         * gnulib-tool (func_emit_copyright_notice): When emitting a
2197         license notice into a file, use the standard wording as suggested
2198         by the current information for GNU maintainers, except say "file"
2199         rather than "program".  The new wording gives a license version
2200         number, which addresses an issue raised by Glenn Morris in
2201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2202         * m4/onceonly.m4: Use that same wording here, too.
2203
2204         dup2: minor simplification
2205         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2206         as lib/dup2.c no longer uses 'inline'.
2207
2208 2011-09-25  Bruno Haible  <bruno@clisp.org>
2209
2210         strings: Fix compilation error on MSVC.
2211         * lib/strings.in.h: Include <stddef.h> for size_t.
2212
2213 2011-09-25  Bruno Haible  <bruno@clisp.org>
2214
2215         fflush et al.: Document limitation on MSVC.
2216         * doc/posix-functions/fflush.texi: Document possible crash in handling
2217         mode other than DEFAULT_HANDLING.
2218         * doc/posix-functions/fgetc.texi: Likewise.
2219         * doc/posix-functions/fputc.texi: Likewise.
2220         * doc/posix-functions/fread.texi: Likewise.
2221         * doc/posix-functions/fwrite.texi: Likewise.
2222
2223 2011-09-25  Bruno Haible  <bruno@clisp.org>
2224
2225         msvc-inval: Allow three invalid parameter handling modes.
2226         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2227         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2228         macros.
2229         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2230         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2231         SANE_LIBRARY_HANDLING as a no-op.
2232         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2233         <stdlib.h>.
2234         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2235
2236 2011-09-25  Bruno Haible  <bruno@clisp.org>
2237
2238         msvc-inval: Make handler multithread-safe.
2239         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2240         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2241         declarations.
2242         (gl_msvc_inval_current): New declaration.
2243         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2244         Operate on the structure returned by gl_msvc_inval_current().
2245         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2246         Remove varaiables.
2247         (tls_index, tls_initialized): New variables.
2248         (not_per_thread): New variable.
2249         (gl_msvc_inval_current): New function.
2250         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2251         returned by gl_msvc_inval_current().
2252
2253 2011-09-25  Bruno Haible  <bruno@clisp.org>
2254
2255         msvc-inval: Install handler globally.
2256         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2257         !_MSC_VER.
2258         (gl_msvc_invalid_parameter_handler): Remove declaration.
2259         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2260         declarations.
2261         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2262         Install the handler globally, don't uninstall it.
2263         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2264         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2265         currently valid, call RaiseException instead.
2266         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2267         for !_MSC_VER.
2268
2269 2011-09-25  Bruno Haible  <bruno@clisp.org>
2270
2271         strerror_r-posix: Fix for MSVC 9.
2272         * lib/strerror_r.c (local_snprintf): New function.
2273         (snprintf): Define to local_snprintf, not to _snprintf.
2274
2275 2011-09-25  Bruno Haible  <bruno@clisp.org>
2276
2277         ftruncate: Support for MSVC 9.
2278         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2279         (chsize_nothrow): New function.
2280         (chsize): Redefine as a macro.
2281         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2282         * modules/ftruncate (Depends-on): Add msvc-inval.
2283
2284 2011-09-25  Bruno Haible  <bruno@clisp.org>
2285
2286         New module 'fstat'.
2287         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2288         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2289         * lib/fchdir.c (rpl_fstat): Remove function.
2290         * m4/fstat.m4: New file.
2291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2293         declared.
2294         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2295         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2296         * modules/fstat: New file.
2297         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2298         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2299         is set.
2300         * doc/posix-functions/fstat.texi: Mention the new module and the
2301         problem on MSVC.
2302         * NEWS: Mention the change.
2303         * modules/acl (Depends-on): Add fstat.
2304         * modules/chdir-safer (Depends-on): Likewise.
2305         * modules/chown (Depends-on): Likewise.
2306         * modules/copy-file (Depends-on): Likewise.
2307         * modules/fchdir (Depends-on): Likewise.
2308         * modules/fdopendir (Depends-on): Likewise.
2309         * modules/fopen (Depends-on): Likewise.
2310         * modules/fts (Depends-on): Likewise.
2311         * modules/getcwd (Depends-on): Likewise.
2312         * modules/isapipe (Depends-on): Likewise.
2313         * modules/linkat (Depends-on): Likewise.
2314         * modules/lseek (Depends-on): Likewise.
2315         * modules/mkdir-p (Depends-on): Likewise.
2316         * modules/open (Depends-on): Likewise.
2317         * modules/openat (Depends-on): Likewise.
2318         * modules/read-file (Depends-on): Likewise.
2319         * modules/renameat (Depends-on): Likewise.
2320         * modules/utimens (Depends-on): Likewise.
2321
2322 2011-09-25  Bruno Haible  <bruno@clisp.org>
2323
2324         linkat: Fix compilation on MSVC 9.
2325         * lib/linkat.c: Don't include <stdint.h>.
2326
2327 2011-09-25  Bruno Haible  <bruno@clisp.org>
2328
2329         fclose: Support for MSVC 9.
2330         * lib/fclose.c: Include msvc-inval.h.
2331         (fclose_nothrow): New function.
2332         (rpl_fclose): Use it.
2333         * modules/fclose (Depends-on): Add msvc-inval.
2334         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2335
2336 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2337
2338         dup2: minor simplifications
2339         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2340         that it's a performance win.
2341         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2342         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2343
2344 2011-09-24  Jim Meyering  <meyering@redhat.com>
2345
2346         test-futimens: avoid a warning from gcc -Wshadow
2347         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2348         to avoid a shadowing warning.
2349
2350 2011-09-24  Bruno Haible  <bruno@clisp.org>
2351
2352         fdopen: Support for MSVC 9.
2353         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2354         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2355         * lib/fdopen.c: Include msvc-inval.h.
2356         (fdopen_nothrow): New function.
2357         (rpl_fdopen): Use it.
2358         * modules/fdopen (Depends-on): Add msvc-inval.
2359         * modules/fclose-tests (Depends-on): Add fdopen.
2360         * modules/fflush-tests (Depends-on): Likewise.
2361         * modules/fgetc-tests (Depends-on): Likewise.
2362         * modules/fputc-tests (Depends-on): Likewise.
2363         * modules/fread-tests (Depends-on): Likewise.
2364         * modules/freopen-tests (Depends-on): Likewise.
2365         * modules/fseeko-tests (Depends-on): Likewise.
2366         * modules/ftello-tests (Depends-on): Likewise.
2367         * modules/fwrite-tests  (Depends-on): Likewise.
2368         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2369
2370 2011-09-24  Bruno Haible  <bruno@clisp.org>
2371
2372         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2373         * modules/fgetc-tests (Depends-on): Add unistd.
2374         * modules/fputc-tests (Depends-on): Likewise.
2375         * modules/fread-tests (Depends-on): Likewise.
2376         * modules/fwrite-tests (Depends-on): Likewise.
2377
2378 2011-09-24  Bruno Haible  <bruno@clisp.org>
2379
2380         dup: Simplify autoconf test.
2381         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2382         on gl_MSVC_INVAL's result.
2383
2384 2011-09-24  Bruno Haible  <bruno@clisp.org>
2385
2386         Tests for function fwrite().
2387         * modules/fwrite-tests: New file.
2388         * tests/test-fwrite.c: New file.
2389         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2390
2391         Tests for function fread().
2392         * modules/fread-tests: New file.
2393         * tests/test-fread.c: New file.
2394         * modules/stdio-tests (Depends-on): Add fread-tests.
2395
2396         Activate fputc tests.
2397         * modules/stdio-tests (Depends-on): Add fputc-tests.
2398
2399         Enhance fgetc, fputc tests.
2400         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2401         * tests/test-fputc.c (main): Likewise.
2402
2403 2011-09-24  Bruno Haible  <bruno@clisp.org>
2404
2405         write: Support for MSVC 9.
2406         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2407         is not 1.
2408         * lib/write.c (write_nothrow): New function.
2409         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2410         not 1. Use write_nothrow.
2411         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2412         invalid parameter handler.
2413         (gl_PREREQ_WRITE): New macro.
2414         * modules/write (Depends-on): Add msvc-inval.
2415         (configure.ac): Invoke gl_PREREQ_WRITE.
2416         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2417
2418 2011-09-24  Bruno Haible  <bruno@clisp.org>
2419
2420         read: Fix last commit.
2421         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2422
2423 2011-09-24  Bruno Haible  <bruno@clisp.org>
2424
2425         dup2: Fix last commit.
2426         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2427         (rpl_dup2): Disable fcntl workaround on native Windows.
2428
2429         sigprocmask: Make code safer.
2430         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2431         section that changes macro definitions for this compilation unit.
2432
2433 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2434
2435         dup2: clarify by coalescing Windows-specific material
2436         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2437         "msvc-nothrow.h"' to the Windows-specific section, so that the
2438         Emacs source need not contain these include files.
2439         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2440         Windows-specific fixes into this function rather than just the
2441         nothrow fix, as this shortens and clarifies the code.  Always
2442         define as a function, as that's a bit cleaner than having it be
2443         sometimes a function and sometimes a macro.
2444         (rpl_dup2): Move the Windows-specific stuff out of here and into
2445         ms_windows_dup2.  Don't protect the Haiku-related fix with
2446         "#if !defined __linux__", as the same code also works around
2447         a Linux kernel bug, and it doesn't add any system calls on any
2448         platform.  Add comment about FreeBSD 6.1.
2449
2450         sigprocmask: move #include directive
2451         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2452         Windows-specific section, so that the Emacs source need not
2453         contain msvc-inval.h.
2454
2455 2011-09-23  Bruno Haible  <bruno@clisp.org>
2456
2457         read: Support for MSVC 9.
2458         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2459         is not 1.
2460         * lib/read.c (read_nothrow): New function.
2461         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2462         read_nothrow.
2463         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2464         invalid parameter handler.
2465         (gl_PREREQ_READ): New macro.
2466         * modules/read (Depends-on): Add msvc-inval.
2467         (configure.ac): Invoke gl_PREREQ_READ.
2468         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2469
2470 2011-09-23  Bruno Haible  <bruno@clisp.org>
2471
2472         close: Support for MSVC 9.
2473         * lib/close.c: Include <errno.h>, msvc-inval.h.
2474         (close_nothrow): New function.
2475         (rpl_close): Use it.
2476         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2477         invalid parameter handler.
2478         * modules/close (Depends-on): Add msvc-inval.
2479         * modules/dup2-tests (Depends-on): Add close.
2480         * modules/dup3-tests (Depends-on): Likewise.
2481         * modules/fcntl-tests (Depends-on): Likewise.
2482         * modules/spawn-pipe-tests (Depends-on): Likewise.
2483         * modules/unistd-safer-tests (Depends-on): Likewise.
2484         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2485
2486 2011-09-23  Bruno Haible  <bruno@clisp.org>
2487
2488         New module 'dup'.
2489         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2490         Allow replacement.
2491         * lib/dup.c: New file.
2492         * lib/fchdir.c (rpl_dup): Remove function.
2493         * m4/dup.m4: New file.
2494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2495         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2496         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2497         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2498         * modules/dup: New file.
2499         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2500         'dup' module is in use.
2501         * modules/fdopendir (Depends-on): Add dup.
2502         * modules/fdutimensat-tests (Depends-on): Likewise.
2503         * modules/fts (Depends-on): Likewise.
2504         * modules/futimens-tests (Depends-on): Likewise.
2505         * modules/posix_spawnp-tests (Depends-on): Likewise.
2506         * modules/unistd-safer-tests (Depends-on): Likewise.
2507         * modules/utimens-tests (Depends-on): Likewise.
2508         * doc/posix-functions/dup.texi: Mention the new module and the problem
2509         on MSVC.
2510
2511 2011-09-23  Bruno Haible  <bruno@clisp.org>
2512
2513         getdtablesize: Support for MSVC 9.
2514         * lib/getdtablesize.c: Include msvc-inval.h.
2515         (_setmaxstdio_nothrow): New function.
2516         (_setmaxstdio): Redefine it.
2517         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2518         * modules/getdtablesize (Depends-on): Add msvc-inval.
2519         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2520
2521 2011-09-23  Bruno Haible  <bruno@clisp.org>
2522
2523         signal-h: Rename from signal.
2524         * modules/signal-h: Renamed from modules/signal.
2525         * modules/pthread_sigmask (Depends-on): Update.
2526         * modules/raise (Depends-on): Likewise.
2527         * modules/sigaction (Depends-on): Likewise.
2528         * modules/sigpipe (Depends-on): Likewise.
2529         * modules/sigprocmask (Depends-on): Likewise.
2530         * modules/sys_select (Depends-on): Likewise.
2531         * modules/signal-h-tests: Renamed from modules/signal-tests.
2532         (Files, Depends-on, Makefile.am): Update.
2533         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2534         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2535         (Files, Makefile.am): Update.
2536         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2537         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2538         * modules/signal: New placeholder file.
2539         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2540         * doc/posix-headers/signal.texi: Update.
2541         * NEWS: Mention the change.
2542
2543 2011-09-23  Bruno Haible  <bruno@clisp.org>
2544
2545         sigprocmask: Avoid crashes through signal() on MSVC 9.
2546         * lib/sigprocmask.c: Include msvc-inval.h.
2547         (signal_nothrow): New function.
2548         (signal): Redefine it.
2549         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2550         * modules/sigprocmask (Depends-on): Add msvc-inval.
2551         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2552
2553 2011-09-23  Bruno Haible  <bruno@clisp.org>
2554
2555         Tests for module 'raise'.
2556         * modules/raise-tests: New file.
2557         * tests/test-raise.c: New file.
2558
2559         raise: Support for MSVC.
2560         * lib/signal.in.h (raise): New declaration.
2561         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2562         for native Windows platforms.
2563         * m4/raise.m4: New file.
2564         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2565         HAVE_RAISE, REPLACE_RAISE.
2566         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2567         REPLACE_RAISE.
2568         * modules/raise (Status, Notice): Remove fields.
2569         (Files): Add m4/raise.m4.
2570         (Depends-on): Add signal, msvc-inval.
2571         (configure.ac): Use the common idioms.
2572         (Maintainer): Add me.
2573         * tests/test-signal-c++.cc: Check the signature of raise.
2574         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2575
2576 2011-09-23  Bruno Haible  <bruno@clisp.org>
2577
2578         pipe2: Fix compilation on pre-C99 compilers.
2579         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2580
2581 2011-09-23  Bruno Haible  <bruno@clisp.org>
2582
2583         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2584         * lib/msvc-nothrow.h: New file.
2585         * lib/msvc-nothrow.c: New file.
2586         * m4/msvc-nothrow.m4: New file.
2587         * modules/msvc-nothrow: New file.
2588         * lib/dup2.c: Include msvc-nothrow.h.
2589         (rpl_dup2): No need to protect _get_osfhandle call here.
2590         * lib/accept4.c: Include msvc-nothrow.h.
2591         * lib/error.c: Likewise.
2592         * lib/fcntl.c: Likewise.
2593         * lib/lseek.c: Likewise.
2594         * lib/nonblocking.c: Likewise.
2595         * lib/poll.c: Likewise.
2596         * lib/read.c: Likewise.
2597         * lib/select.c: Likewise.
2598         * lib/sockets.h: Likewise.
2599         * lib/sockets.c: Likewise.
2600         * lib/stdio-read.c: Likewise.
2601         * lib/stdio-write.c: Likewise.
2602         * lib/write.c: Likewise.
2603         * lib/w32sock.h: Likewise.
2604         * lib/w32spawn.h: Likewise.
2605         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2606         * lib/fsync.c: Likewise.
2607         * lib/isapipe.c: Likewise.
2608         * modules/dup2 (Depends-on): Add msvc-nothrow.
2609         * modules/accept4 (Depends-on): Likewise.
2610         * modules/error (Depends-on): Likewise.
2611         * modules/fcntl (Depends-on): Likewise.
2612         * modules/lseek (Depends-on): Likewise.
2613         * modules/nonblocking (Depends-on): Likewise.
2614         * modules/poll (Depends-on): Likewise.
2615         * modules/read (Depends-on): Likewise.
2616         * modules/select (Depends-on): Likewise.
2617         * modules/sockets (Depends-on): Likewise.
2618         * modules/sigpipe (Depends-on): Likewise.
2619         * modules/write (Depends-on): Likewise.
2620         * modules/accept (Depends-on): Likewise.
2621         * modules/bind (Depends-on): Likewise.
2622         * modules/connect (Depends-on): Likewise.
2623         * modules/gethostname (Depends-on): Likewise.
2624         * modules/getpeername (Depends-on): Likewise.
2625         * modules/getsockname (Depends-on): Likewise.
2626         * modules/getsockopt (Depends-on): Likewise.
2627         * modules/ioctl (Depends-on): Likewise.
2628         * modules/listen (Depends-on): Likewise.
2629         * modules/recv (Depends-on): Likewise.
2630         * modules/recvfrom (Depends-on): Likewise.
2631         * modules/send (Depends-on): Likewise.
2632         * modules/sendto (Depends-on): Likewise.
2633         * modules/setsockopt (Depends-on): Likewise.
2634         * modules/shutdown (Depends-on): Likewise.
2635         * modules/socket (Depends-on): Likewise.
2636         * modules/execute (Depends-on): Likewise.
2637         * modules/spawn-pipe (Depends-on): Likewise.
2638         * modules/flock (Depends-on): Likewise.
2639         * modules/fsync (Depends-on): Likewise.
2640         * modules/isapipe (Depends-on): Likewise.
2641         * tests/test-cloexec.c: Include msvc-nothrow.h.
2642         * tests/test-dup-safer.c: Likewise.
2643         * tests/test-dup2.c: Likewise.
2644         * tests/test-dup3.c: Likewise.
2645         * tests/test-fcntl.c: Likewise.
2646         * tests/test-pipe.c: Likewise.
2647         * tests/test-pipe2.c: Likewise.
2648         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2649         * modules/unistd-safer-tests (Depends-on): Likewise.
2650         * modules/dup2-tests (Depends-on): Likewise.
2651         * modules/dup3-tests (Depends-on): Likewise.
2652         * modules/fcntl-tests (Depends-on): Likewise.
2653         * modules/pipe-posix-tests (Depends-on): Likewise.
2654         * modules/pipe2-tests (Depends-on): Likewise.
2655
2656 2011-09-23  Bruno Haible  <bruno@clisp.org>
2657
2658         dup2: Make code more maintainable.
2659         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2660         (rpl_dup2): Use it.
2661         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2662         * modules/dup2 (configure.ac): Invoke it.
2663         Reported by Paul Eggert.
2664
2665 2011-09-23  Bruno Haible  <bruno@clisp.org>
2666
2667         msvc-inval: Fix compilation error.
2668         * lib/msvc-inval.h: Include <excpt.h>.
2669
2670 2011-09-23  Bruno Haible  <bruno@clisp.org>
2671
2672         mkdir: Tweak for MSVC 9.
2673         * lib/sys_stat.in.h: Update comments.
2674         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2675
2676         Tests for module 'chdir'.
2677         * modules/chdir-tests: New file.
2678         * tests/test-chdir.c: New file.
2679
2680         New module 'chdir'.
2681         * modules/chdir: New file.
2682         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2683         (chdir): New declaration.
2684         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2685         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2686         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2687         * tests/test-unistd-c++.cc: Check signature of chdir.
2688         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2689         * modules/chdir-long (Depends-on): Add chdir.
2690         * modules/fchdir (Depends-on): Likewise.
2691         * modules/rename (Depends-on): Likewise.
2692         * modules/savewd (Depends-on): Likewise.
2693
2694         rmdir: Support for mingw, MSVC 9.
2695         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2696         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2697
2698         getcwd: Tweak for MSVC 9.
2699         * lib/unistd.in.h: Update comments.
2700         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2701
2702 2011-09-22  Bruno Haible  <bruno@clisp.org>
2703
2704         strerror_r-posix: Avoid a link error on MSVC.
2705         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2706         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2707
2708 2011-09-22  Bruno Haible  <bruno@clisp.org>
2709
2710         select: Avoid link errors on MSVC.
2711         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2712         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2713         * modules/pselect (Link): Likewise.
2714         * NEWS: Mention the change.
2715         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2716         test-select-stdin against $(LIB_SELECT).
2717         * modules/pselect-tests (Makefile.am): Link test-pselect against
2718         $(LIB_SELECT).
2719
2720 2011-09-22  Bruno Haible  <bruno@clisp.org>
2721
2722         select: Avoid compilation error on MSVC.
2723         * lib/select.c: Don't include <stdbool.h>.
2724
2725 2011-09-21  Bruno Haible  <bruno@clisp.org>
2726
2727         Consolidate all uses of PATH_MAX in *.m4 files.
2728         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2729         macros.
2730         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2731         and gl_PATHMAX_SNIPPET.
2732         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2733         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2734         * modules/chdir-long (Files): Add m4/pathmax.m4.
2735         * modules/getcwd (Files): Likewise.
2736
2737 2011-09-21  Bruno Haible  <bruno@clisp.org>
2738
2739         ftruncate: Un-deprecate, concentrate on Win32 support.
2740         * modules/ftruncate (Status, Notice): Remove sections.
2741         (Depends-on): Add largefile.
2742         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2743         non-mingw platforms.
2744         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2745         include <io.h>.
2746         * modules/perror-tests (Depends-on): Add ftruncate.
2747         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2748         'ftruncate' module.
2749
2750 2011-09-21  Bruno Haible  <bruno@clisp.org>
2751
2752         Add dependencies to new dirent related modules.
2753         * modules/opendir (Depends-on): Add closedir.
2754         * modules/getcwd (Depends-on): Add opendir, closedir.
2755         * modules/dirent-safer-tests (Depends-on): Likewise.
2756         * modules/fdopendir-tests (Depends-on): Likewise.
2757         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2758         * modules/renameat-tests (Depends-on): Likewise.
2759
2760 2011-09-21  Bruno Haible  <bruno@clisp.org>
2761
2762         opendir: Avoid compilation error on mingw.
2763         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2764         * modules/opendir (Depends-on): Add unistd.
2765
2766 2011-09-21  Bruno Haible  <bruno@clisp.org>
2767
2768         ftruncate tests: Avoid a test failure on mingw.
2769         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2770
2771 2011-09-21  Bruno Haible  <bruno@clisp.org>
2772
2773         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2774         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2775         native Windows.
2776
2777 2011-09-21  Bruno Haible  <bruno@clisp.org>
2778
2779         New module 'fdopen'.
2780         * lib/stdio.in.h (fdopen): New declaration.
2781         * lib/fdopen.c: New file.
2782         * m4/fdopen.m4: New file.
2783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2784         REPLACE_FDOPEN.
2785         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2786         REPLACE_FDOPEN.
2787         * modules/fdopen: New file.
2788         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2789         * tests/test-stdio-c++.cc: Check signature of fdopen.
2790         * doc/posix-functions/fdopen.texi: Mention the new module.
2791
2792 2011-09-21  Bruno Haible  <bruno@clisp.org>
2793
2794         unlockpt tests: Avoid test failure on NetBSD 5.1.
2795         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2796         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2797
2798 2011-09-21  Bruno Haible  <bruno@clisp.org>
2799
2800         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2801         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2802         * tests/test-getlogin_r.c (main): Likewise.
2803
2804 2011-09-20  Bruno Haible  <bruno@clisp.org>
2805
2806         time tests: Don't require pid_t.
2807         * doc/posix-headers/time.texi: Revert last change.
2808         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2809         * tests/test-time.c: Comment out the check for pid_t.
2810
2811 2011-09-20  Bruno Haible  <bruno@clisp.org>
2812
2813         fsync tests: Avoid a test failure on mingw.
2814         * tests/test-fsync.c (main): Allow a failure with EIO.
2815
2816 2011-09-20  Bruno Haible  <bruno@clisp.org>
2817
2818         euidaccess: Update comments.
2819         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2820
2821 2011-09-20  Bruno Haible  <bruno@clisp.org>
2822
2823         Ensure EBADF returns for socket functions on mingw.
2824         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2825         descriptor is invalid.
2826         * lib/bind.c (rpl_bind): Likewise.
2827         * lib/connect.c (rpl_connect): Likewise.
2828         * lib/getpeername.c (rpl_getpeername): Likewise.
2829         * lib/getsockname.c (rpl_getsockname): Likewise.
2830         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2831         * lib/listen.c (rpl_listen): Likewise.
2832         * lib/recv.c (rpl_recv): Likewise.
2833         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2834         * lib/send.c (rpl_send): Likewise.
2835         * lib/sendto.c (rpl_sendto): Likewise.
2836         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2837         * lib/shutdown.c (rpl_shutdown): Likewise.
2838
2839 2011-09-20  Bruno Haible  <bruno@clisp.org>
2840
2841         select tests: EBADF tests.
2842         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2843         test_bad_fd): New functions.
2844         (test_function): Invoke also test_bad_fd.
2845
2846 2011-09-20  Bruno Haible  <bruno@clisp.org>
2847
2848         Tests for module 'posix_spawn_file_actions_addopen.
2849         * modules/posix_spawn_file_actions_addopen-tests: New file.
2850         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2851
2852         Tests for module 'posix_spawn_file_actions_adddup2'.
2853         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2854         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2855
2856         Tests for module 'posix_spawn_file_actions_addclose'.
2857         * modules/posix_spawn_file_actions_addclose-tests: New file.
2858         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2859
2860 2011-09-20  Bruno Haible  <bruno@clisp.org>
2861
2862         Tests for module 'unlockpt'.
2863         * modules/unlockpt-tests: New file.
2864         * tests/test-unlockpt.c: New file.
2865         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2866
2867         Tests for module 'grantpt'.
2868         * modules/grantpt-tests: New file.
2869         * tests/test-grantpt.c: New file.
2870         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2871
2872 2011-09-20  Bruno Haible  <bruno@clisp.org>
2873
2874         freopen tests: EBADF tests.
2875         * tests/test-freopen.c: Include errno.h, unistd.h.
2876         (main): Add tests for EBADF, commented out for the moment.
2877
2878         fclose tests: EBADF tests.
2879         * tests/test-fclose.c (main): Add tests for EBADF.
2880
2881         fflush tests: EBADF tests.
2882         * tests/test-fflush.c: Include errno.h, macros.h.
2883         (main): Add tests for EBADF.
2884
2885         ftello tests: EBADF tests.
2886         * tests/test-ftello4.sh: New file.
2887         * tests/test-ftello4.c: New file.
2888         * modules/ftello-tests (Files): Add them.
2889         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2890
2891         fseeko tests: EBADF tests.
2892         * tests/test-fseeko4.sh: New file.
2893         * tests/test-fseeko4.c: New file.
2894         * modules/fseeko-tests (Files): Add them.
2895         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2896
2897         Tests for function fputc().
2898         * modules/fputc-tests: New file.
2899         * tests/test-fputc.c: New file.
2900         * modules/stdio-tests (Depends-on): Add fputc-tests.
2901
2902         Tests for function fgetc().
2903         * modules/fgetc-tests: New file.
2904         * tests/test-fgetc.c: New file.
2905         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2906
2907         Tests for function fdopen().
2908         * modules/fdopen-tests: New file.
2909         * tests/test-fdopen.c: New file.
2910         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2911
2912         Tests for module 'vdprintf'.
2913         * modules/vdprintf-tests: New file.
2914         * tests/test-vdprintf.c: New file.
2915
2916         Tests for module 'dprintf'.
2917         * modules/dprintf-tests: New file.
2918         * tests/test-dprintf.c: New file.
2919
2920 2011-09-20  Bruno Haible  <bruno@clisp.org>
2921
2922         Tests for module 'ioctl'.
2923         * modules/ioctl-tests: New file.
2924         * tests/test-ioctl.c: New file.
2925
2926 2011-09-20  Bruno Haible  <bruno@clisp.org>
2927
2928         fcntl tests: EBADF tests.
2929         * tests/test-fcntl.c (main): Add more tests for EBADF.
2930
2931 2011-09-20  Bruno Haible  <bruno@clisp.org>
2932
2933         utimensat tests: EBADF tests.
2934         * tests/test-utimensat.c (main): Add tests for EBADF.
2935
2936         renameat tests: EBADF tests.
2937         * tests/test-renameat.c (main): Add tests for EBADF.
2938
2939         mkfifoat tests: EBADF tests.
2940         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2941
2942         readlinkat tests: EBADF tests.
2943         * tests/test-readlinkat.c (main): Add tests for EBADF.
2944
2945         symlinkat tests: EBADF tests.
2946         * tests/test-symlinkat.c (main): Add tests for EBADF.
2947
2948         linkat tests: EBADF tests.
2949         * tests/test-linkat.c (main): Add tests for EBADF.
2950
2951         Tests for module 'faccessat'.
2952         * modules/faccessat-tests: New file.
2953         * tests/test-faccessat.c: New file.
2954
2955         fdopendir tests: EBADF tests.
2956         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2957
2958         openat tests: EBADF tests.
2959         * tests/test-fchownat.c (main): Add tests for EBADF.
2960         * tests/test-fstatat.c (main): Likewise.
2961         * tests/test-mkdirat.c (main): Likewise.
2962         * tests/test-openat.c (main): Likewise.
2963         * tests/test-unlinkat.c (main): Likewise.
2964         * tests/test-fchmodat.c: New file.
2965         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2966         (Makefile.am): Also run 'test-fchmodat'.
2967
2968 2011-09-20  Bruno Haible  <bruno@clisp.org>
2969
2970         utimens, futimens, fdutimensat tests: EBADF tests.
2971         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2972
2973         Tests for function fstat().
2974         * modules/fstat-tests: New file.
2975         * tests/test-fstat.c: New file.
2976         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2977
2978 2011-09-20  Bruno Haible  <bruno@clisp.org>
2979
2980         test-ttyname_r tests: EBADF tests.
2981         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2982
2983         Tests for module 'isatty'.
2984         * modules/isatty-tests: New file.
2985         * tests/test-isatty.c: New file.
2986
2987         Tests for module 'write'.
2988         * modules/write-tests: New file.
2989         * tests/test-write.c: New file.
2990
2991         Tests for module 'read'.
2992         * modules/read-tests: New file.
2993         * tests/test-read.c: New file.
2994
2995         pwrite tests: EBADF tests.
2996         * tests/test-pwrite.c (main): Add tests for EBADF.
2997
2998         pread tests: EBADF tests.
2999         * tests/test-pread.c (main): Add tests for EBADF.
3000
3001         lseek tests: EBADF tests.
3002         * tests/test-lseek.c (main): Add more tests for EBADF.
3003
3004         Tests for module 'ftruncate'.
3005         * modules/ftruncate-tests: New file.
3006         * tests/test-ftruncate.sh: New file.
3007         * tests/test-ftruncate.c: New file.
3008
3009         fsync tests: EBADF tests.
3010         * tests/test-fsync.c (main): Add more tests for EBADF.
3011
3012         fdatasync tests: EBADF tests.
3013         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3014
3015         Tests for module 'fchown'.
3016         * modules/fchown-tests: New file.
3017         * tests/test-fchown.c: New file.
3018
3019         Tests for module 'fchmod'.
3020         * modules/fchmod-tests: New file.
3021         * tests/test-fchmod.c: New file.
3022
3023         fchdir tests: EBADF tests.
3024         * tests/test-fchdir.c (main): Add more tests for EBADF.
3025
3026         dup2 tests: EBADF tests.
3027         * tests/test-dup2.c (main): Add more tests for EBADF.
3028
3029         Tests for module 'dup'.
3030         * modules/dup-tests: New file.
3031         * tests/test-dup.c: New file.
3032
3033         Tests for module 'close'.
3034         * modules/close-tests: New file.
3035         * tests/test-close.c: New file.
3036
3037 2011-09-20  Bruno Haible  <bruno@clisp.org>
3038
3039         Tests for module 'shutdown'.
3040         * modules/shutdown-tests: New file.
3041         * tests/test-shutdown.c: New file.
3042
3043         Tests for module 'setsockopt'.
3044         * modules/setsockopt-tests: New file.
3045         * tests/test-setsockopt.c: New file.
3046
3047         Tests for module 'sendto'.
3048         * modules/sendto-tests: New file.
3049         * tests/test-sendto.c: New file.
3050
3051         Tests for module 'send'.
3052         * modules/send-tests: New file.
3053         * tests/test-send.c: New file.
3054
3055         Tests for module 'recvfrom'.
3056         * modules/recvfrom-tests: New file.
3057         * tests/test-recvfrom.c: New file.
3058
3059         Tests for module 'recv'.
3060         * modules/recv-tests: New file.
3061         * tests/test-recv.c: New file.
3062
3063         Tests for module 'listen'.
3064         * modules/listen-tests: New file.
3065         * tests/test-listen.c: New file.
3066
3067         Tests for module 'getsockopt'.
3068         * modules/getsockopt-tests: New file.
3069         * tests/test-getsockopt.c: New file.
3070
3071         Tests for module 'getsockname'.
3072         * modules/getsockname-tests: New file.
3073         * tests/test-getsockname.c: New file.
3074
3075         Tests for module 'getpeername'.
3076         * modules/getpeername-tests: New file.
3077         * tests/test-getpeername.c: New file.
3078
3079         Tests for module 'connect'.
3080         * modules/connect-tests: New file.
3081         * tests/test-connect.c: New file.
3082
3083         Tests for module 'bind'.
3084         * modules/bind-tests: New file.
3085         * tests/test-bind.c: New file.
3086
3087         accept4 tests: Fix for native Windows.
3088         * tests/test-accept4.c: Include sockets.h.
3089         (main): Invoke gl_sockets_startup.
3090         * modules/accept4-tests (Depends-on): Add sockets.
3091
3092         accept tests: Fix for native Windows.
3093         * tests/test-accept.c: Include sockets.h.
3094         (main): Invoke gl_sockets_startup.
3095         * modules/accept-tests (Depends-on): Add sockets.
3096
3097 2011-09-19  Bruno Haible  <bruno@clisp.org>
3098
3099         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3100         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3101         do...while(0).
3102         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3103         Suggested by Paul Eggert.
3104
3105 2011-09-19  Bruno Haible  <bruno@clisp.org>
3106
3107         sched: Ensure pid_t is defined.
3108         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3109         not define pid_t.
3110         * lib/sched.in.h: Include <sys/types.h>.
3111         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3113
3114 2011-09-19  Bruno Haible  <bruno@clisp.org>
3115
3116         msvc-inval: Ensure the entire expansion is a single statement.
3117         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3118         of braces.
3119
3120 2011-09-19  Jim Meyering  <meyering@redhat.com>
3121
3122         tests: use printf, not echo in init.sh's warn_ function
3123         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3124         misbehave when given strings containing a backslash or starting
3125         with e.g., -n.  James Youngman suggested setting IFS.
3126
3127 2011-09-19  Eric Blake  <eblake@redhat.com>
3128
3129         futimens: enhance test
3130         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3131         closed non-negative fd.
3132
3133         date: accept 'hence' as opposite of 'ago'
3134         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3135         * tests/test-parse-datetime.c (main): Enhance test.
3136         Suggested by Jesse Wilson.
3137
3138 2011-09-19  Jim Meyering  <meyering@redhat.com>
3139
3140         getcwd: don't fail in a deep directory on a system without openat
3141         Before this change, getcwd would fail when called from a directory
3142         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3143         the non-openat implementation used "..", "../..", "../../..", etc.
3144         to access ancestor directories.  With too many, that string would
3145         be longer than PATH_MAX.
3146         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3147         using gnulib's openat replacement.
3148         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3149         we're using the replacement function.
3150
3151 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3152
3153         maint.mk: avoid warnings from perl about missing files
3154         * top/maint.mk (def_sym_regex): Ignore files listed in
3155         $(gl_other_headers_) that do not exist, say because a project
3156         does not use a corresponding module.
3157
3158 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         stat: use pathmax.h only if needed
3161         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3162         This is better for Emacs, which does not have a mingw port and
3163         therefore can avoid the pathmax module.
3164
3165         utimens: remove dependency on dup2
3166         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3167         to work around the Linux kernel bug.
3168         * modules/utimens (Depends-on): Remove dup2.
3169
3170 2011-09-18  Bruno Haible  <bruno@clisp.org>
3171
3172         inet_ntop, inet_pton: Look for it also in libresolv.
3173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3174         libnsl, search for it in libresolv.
3175         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3176         Needed on Solaris 7.
3177
3178 2011-09-18  Bruno Haible  <bruno@clisp.org>
3179
3180         accept, accept4 tests: Avoid link error on Solaris.
3181         * modules/accept-tests (Makefile.am): Link test-accept against
3182         $(LIBSOCKET).
3183         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3184         $(LIBSOCKET).
3185
3186         accept4: Avoid link error on Solaris.
3187         * modules/accept4 (Link): New section.
3188
3189         socket functions: Avoid link errors on Solaris.
3190         * modules/accept (Depends-on): Add socketlib.
3191         (Link): New section.
3192         * modules/bind (Depends-on): Add socketlib.
3193         (Link): New section.
3194         * modules/connect (Depends-on): Add socketlib.
3195         (Link): New section.
3196         * modules/getpeername (Depends-on): Add socketlib.
3197         (Link): New section.
3198         * modules/getsockname (Depends-on): Add socketlib.
3199         (Link): New section.
3200         * modules/getsockopt (Depends-on): Add socketlib.
3201         (Link): New section.
3202         * modules/listen (Depends-on): Add socketlib.
3203         (Link): New section.
3204         * modules/recv (Depends-on): Add socketlib.
3205         (Link): New section.
3206         * modules/recvfrom (Depends-on): Add socketlib.
3207         (Link): New section.
3208         * modules/send (Depends-on): Add socketlib.
3209         (Link): New section.
3210         * modules/sendto (Depends-on): Add socketlib.
3211         (Link): New section.
3212         * modules/setsockopt (Depends-on): Add socketlib.
3213         (Link): New section.
3214         * modules/shutdown (Depends-on): Add socketlib.
3215         (Link): New section.
3216         * modules/socket (Depends-on): Add socketlib.
3217         (Link): New section.
3218
3219 2011-09-18  Bruno Haible  <bruno@clisp.org>
3220
3221         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3222         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3223         than 5 seconds.
3224         * modules/ptsname-tests (configure.ac): Test for alarm.
3225
3226 2011-09-18  Bruno Haible  <bruno@clisp.org>
3227
3228         posix_spawn_file_actions_add*: Fix module dependencies.
3229         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3230         posix_spawn_file_actions_init.
3231         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3232         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3233
3234 2011-09-18  Bruno Haible  <bruno@clisp.org>
3235
3236         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3237         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3238         * tests/test-renameat.c (main): Likewise.
3239
3240 2011-09-18  Bruno Haible  <bruno@clisp.org>
3241
3242         Tests for module 'accept4'.
3243         * modules/accept4-tests: New file.
3244         * tests/test-accept4.c: New file.
3245
3246 2011-09-18  Bruno Haible  <bruno@clisp.org>
3247
3248         Tests for module 'accept'.
3249         * modules/accept-tests: New file.
3250         * tests/test-accept.c: New file.
3251
3252 2011-09-18  Bruno Haible  <bruno@clisp.org>
3253
3254         dup2: Support for MSVC.
3255         * lib/dup2.c: Include msvc-inval.h.
3256         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3257         _get_osfhandle calls.
3258         * modules/dup2 (Depends-on): Add msvc-inval.
3259         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3260
3261         New module 'msvc-inval'.
3262         * lib/msvc-inval.h: New file.
3263         * lib/msvc-inval.c: New file.
3264         * m4/msvc-inval.m4: New file.
3265         * modules/msvc-inval: New file.
3266
3267 2011-09-17  Bruno Haible  <bruno@clisp.org>
3268
3269         Tests for module 'pclose'.
3270         * modules/pclose-tests: New file.
3271
3272         New module 'pclose'.
3273         * lib/stdio.in.h (pclose): New declaration.
3274         * lib/pclose.c: New file.
3275         * m4/pclose.m4: New file.
3276         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3277         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3278         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3279         * modules/pclose: New file.
3280         * modules/popen-tests (Depends-on): Add pclose.
3281         * modules/popen-safer-tests (Depends-on): Likewise.
3282         * doc/posix-functions/pclose.texi: Mention the new module.
3283
3284 2011-09-17  Bruno Haible  <bruno@clisp.org>
3285
3286         popen: Support for MSVC.
3287         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3288         * lib/popen.c (popen): Provide alternate definition for native Windows.
3289         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3291         * modules/popen (Depends-on, configure.ac): Update condition.
3292         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3293         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3294         fixed.
3295
3296 2011-09-17  Bruno Haible  <bruno@clisp.org>
3297
3298         isnanl, isnand, isnanf: Work around MSVC bug.
3299         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3300
3301 2011-09-17  Bruno Haible  <bruno@clisp.org>
3302
3303         sys_socket tests: Fix recent mistake.
3304         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3305
3306 2011-09-17  Bruno Haible  <bruno@clisp.org>
3307
3308         putenv: Support for MSVC.
3309         * modules/putenv (Depends-on): Add environ.
3310         * lib/putenv.c (environ): Disable declaration.
3311         * lib/unistd.in.h: Update comment.
3312
3313 2011-09-17  Bruno Haible  <bruno@clisp.org>
3314
3315         math: Avoid macro redefinition warnings on MSVC.
3316         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3317         Undefine before redefining.
3318
3319 2011-09-17  Bruno Haible  <bruno@clisp.org>
3320
3321         doc: Mention functions which are declared as macros.
3322         * doc/posix-functions/*[fl].texi: Mention that some functions are
3323         defined as macros with arguments only.
3324
3325 2011-09-17  Bruno Haible  <bruno@clisp.org>
3326
3327         Add dependencies to new dirent related modules.
3328         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3329         * modules/fts (Depends-on): Likewise.
3330         * modules/glob (Depends-on): Likewise.
3331         * modules/savedir (Depends-on): Likewise.
3332         * modules/scandir (Depends-on): Likewise.
3333         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3334         * modules/fdopendir (Depends-on): Add opendir.
3335
3336 2011-09-17  Bruno Haible  <bruno@clisp.org>
3337
3338         inet_pton: Support for MSVC on Windows Vista or newer.
3339         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3340         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3341         HAVE_DECL_INET_PTON is defined.
3342         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3343         On platforms with <winsock2.h>, test whether inet_pton is declared in
3344         <ws2tcpip.h>. If so, arrange to replace it.
3345         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3346         REPLACE_INET_PTON.
3347         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3348         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3349         (Depends-on, configure.ac): Update condition.
3350         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3351
3352 2011-09-17  Bruno Haible  <bruno@clisp.org>
3353
3354         inet_ntop: Support for MSVC on Windows Vista or newer.
3355         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3356         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3357         HAVE_DECL_INET_NTOP is defined.
3358         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3359         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3360         <ws2tcpip.h>. If so, arrange to replace it.
3361         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3362         REPLACE_INET_NTOP.
3363         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3364         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3365         (Depends-on, configure.ac): Update condition.
3366         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3367
3368 2011-09-16  Eric Blake  <eblake@redhat.com>
3369
3370         test-fsync: yet another enhancement
3371         * tests/test-fsync.c (main): Also test behavior on read-only text
3372         file.
3373
3374 2011-09-16  Bruno Haible  <bruno@clisp.org>
3375
3376         Enhance fsync, fdatasync tests.
3377         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3378         * tests/test-fdatasync.c (main): Likewise.
3379
3380 2011-09-16  Bruno Haible  <bruno@clisp.org>
3381
3382         Support for MSVC compiler: Ensure mode_t gets defined.
3383         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3384         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3386         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3387         * tests/test-fcntl-h.c: Check that mode_t is defined.
3388         * tests/test-sys_stat.c: Likewise.
3389         * tests/test-sys_types.c: Likewise.
3390         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3391         * doc/posix-headers/sys_stat.texi: Likewise.
3392         * doc/posix-headers/sys_types.texi: Likewise.
3393
3394 2011-09-16  Bruno Haible  <bruno@clisp.org>
3395
3396         sys_stat: Support for MSVC.
3397         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3398         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3399         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3400         MSVC.
3401
3402 2011-09-16  Bruno Haible  <bruno@clisp.org>
3403
3404         Support for MSVC compiler: Ensure off_t gets defined.
3405         * lib/unistd.in.h: Include <sys/types.h>.
3406         * tests/test-fcntl-h.c: Check that off_t is defined.
3407         * tests/test-sys_stat.c: Likewise.
3408         * tests/test-sys_types.c: Likewise.
3409
3410 2011-09-16  Eric Blake  <eblake@redhat.com>
3411
3412         fdatasync: port to Solaris
3413         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3414         * modules/fdatasync (Link): Document it.
3415         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3416
3417         fdatasync: port to MacOS X 10.7
3418         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3419         declared.
3420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3421         * modules/unistd (Makefile.am): Substitute it.
3422         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3423         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3424
3425         fdatasync: minor improvements
3426         * modules/fdatasync (Depends-on): Add condition for fsync.
3427         * lib/fdatasync.c (fdatasync): Add comment.
3428         * tests/test-unistd-c++.cc: Test fdatasync.
3429
3430         unistd: update refs to newer POSIX
3431         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3432         Suggested by Bruno Haible.
3433
3434         fdatasync: new module
3435         * modules/fsync (Description): Document difference to fdatasync.
3436         * modules/fdatasync: New module.
3437         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3438         * lib/fdatasync.c (fdatasync): Likewise.
3439         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3440         defaults.
3441         * modules/unistd (Makefile.am): Set witnesses.
3442         * lib/unistd.in.h (fdatasync): Declare.
3443         * MODULES.html.sh: Document it.
3444         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3445         * modules/fdatasync-tests: New test.
3446         * tests/test-fdatasync.c: Likewise.
3447
3448 2011-09-16  Eric Blake  <eblake@redhat.com>
3449
3450         test-fsync: enhance tests
3451         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3452         * tests/test-fsync.c (main): Enhance test.
3453
3454 2011-09-15  Bruno Haible  <bruno@clisp.org>
3455
3456         Support for MSVC compiler: Ensure ssize_t gets defined.
3457         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3458         * doc/posix-headers/stdio.texi: Likewise.
3459         * modules/stdio (Depends-on): Add ssize_t.
3460         * modules/sys_socket (Depends-on): Likewise.
3461         * modules/sys_types (Depends-on): Likewise.
3462         * modules/sys_uio (Depends-on): Likewise.
3463         * modules/unistd (Depends-on): Likewise.
3464         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3465         * tests/test-sys_types.c: Check that ssize_t is defined.
3466
3467 2011-09-14  Bruno Haible  <bruno@clisp.org>
3468
3469         Avoid using #, the m4 comment starter character, near brackets.
3470         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3471         delimiter character in sed expressions.
3472         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3473         Suggested by Eric Blake.
3474
3475         Properly quote AC_CHECK_DECLS' 4th argument.
3476         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3477         argument.
3478         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3479         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3481         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3482         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3483         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3485         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3486         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3487         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3488         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3489         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3490         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3491         * m4/isinf.m4 (gl_ISINF): Likewise.
3492         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3493         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3494         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3495         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3498         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3499         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3500         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3501         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3502         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3505         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3507         Reported by Eric Blake.
3508
3509         Properly quote AC_CHECK_DECL's 4th argument.
3510         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3511         argument.
3512         * m4/argp.m4 (gl_ARGP): Likewise.
3513         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3514         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3515         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3516         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3517         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3518         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3519         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3520         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3522         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3523         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3524         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3525         Reported by Eric Blake.
3526
3527 2011-09-14  Eric Blake  <eblake@redhat.com>
3528
3529         opendir: avoid compile warning
3530         * lib/opendir.c (includes): Always include errno.h.
3531         Reported by Tatsuro MATSUOKA.
3532
3533 2011-09-14  Jim Meyering  <meyering@redhat.com>
3534
3535         maint.mk: sc_tight_scope: propagate failure from sub-make
3536         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3537         Reported by Martin von Gagern.
3538
3539 2011-09-13  Bruno Haible  <bruno@clisp.org>
3540
3541         tempname: Support for MSVC.
3542         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3543         MSVC.
3544         * modules/tempname (Depends-on): Add fcntl-h.
3545
3546 2011-09-13  Bruno Haible  <bruno@clisp.org>
3547
3548         sys_time: Support for MSVC.
3549         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3550         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3551         include <winsock2.h>.
3552         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3553         function declarations that collide with POSIX.
3554         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3555         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3556
3557 2011-09-13  Bruno Haible  <bruno@clisp.org>
3558
3559         stat: Support for MSVC.
3560         * lib/stat.c: Include pathmax.h.
3561         * modules/stat (Depends-on): Add pathmax.
3562
3563         pathmax: Support for native Windows.
3564         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3565
3566 2011-09-12  Bruno Haible  <bruno@clisp.org>
3567
3568         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3569         * lib/dirent.in.h (struct dirent): New type.
3570         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3571         DT_WHT): New macros.
3572         (DIR): New type.
3573         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3574         (readdir, rewinddir): New declarations.
3575         * lib/dirent-private.h: New file.
3576         * lib/opendir.c: New file.
3577         * lib/readdir.c: New file.
3578         * lib/rewinddir.c: New file.
3579         * lib/closedir.c: New file.
3580         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3581         * m4/opendir.m4: New file.
3582         * m4/readdir.m4: New file.
3583         * m4/rewinddir.m4: New file.
3584         * m4/closedir.m4: New file.
3585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3586         REPLACE_CLOSEDIR here.
3587         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3588         readdir, rewinddir are declared.
3589         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3590         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3591         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3592         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3593         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3594         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3595         * modules/opendir: New file.
3596         * modules/readdir: New file.
3597         * modules/rewinddir: New file.
3598         * modules/closedir: New file.
3599         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3600         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3601         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3602         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3603         * NEWS: Mention the 'fchdir' change.
3604
3605 2011-09-11  Bruno Haible  <bruno@clisp.org>
3606
3607         asm-underscore.m4: Support for MSVC.
3608         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3609         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3610
3611 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3612
3613         Doc about crypt functions.
3614         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3615         needing for _GNU_SOURCE to get crypt.
3616         * doc/posix-functions/encrypt.texi: Likewise.
3617         * doc/posix-functions/setkey.texi: Likewise.
3618
3619 2011-09-11  Bruno Haible  <bruno@clisp.org>
3620
3621         doc: Update regarding MSVC 9.
3622         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3623         tested".
3624         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3625         * doc/posix-headers/*.texi: Likewise.
3626         * doc/pastposix-functions/*.texi: Likewise.
3627         * doc/glibc-functions/*.texi: Likewise.
3628         * doc/glibc-headers/*.texi: Likewise.
3629
3630 2011-09-11  Bruno Haible  <bruno@clisp.org>
3631
3632         unistd et al.: Don't assume <unistd.h> exists.
3633         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3634         does not exist.
3635         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3636         exist. But include <stdlib.h>.
3637         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3638         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3639         symlink() does not exist.
3640         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3641         include <io.h> instead.
3642         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3643         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3644         include <direct.h> instead.
3645         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3646         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3647         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3648         <io.h> instead.
3649         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3650         correctly if the system does not have hard links.
3651         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3652         <direct.h> instead.
3653         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3654         it when looking for function declarations.
3655         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3656         <direct.h> and <io.h> instead.
3657         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3658
3659 2011-09-11  Bruno Haible  <bruno@clisp.org>
3660
3661         strcase: Support for MSVC.
3662         * modules/strcase (Status, Notice): Remove obsoletion mark.
3663         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3664         * doc/posix-functions/strncasecmp.texi: Likewise.
3665
3666         strings: Don't assume <strings.h> exists.
3667         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3668         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3669         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3670         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3671
3672 2011-09-11  Bruno Haible  <bruno@clisp.org>
3673
3674         dirent: Don't assume <dirent.h> exists.
3675         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3676         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3677         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3678         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3679
3680 2011-09-11  Bruno Haible  <bruno@clisp.org>
3681
3682         Fix wint_t on MSVC.
3683         * lib/wchar.in.h (wint_t): On MSVC, override it.
3684         * lib/wctype.in.h (wint_t): Likewise.
3685         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3686         MSVC.
3687         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3688         * doc/posix-headers/wctype.texi: Likewise.
3689
3690 2011-09-11  Bruno Haible  <bruno@clisp.org>
3691
3692         sys_types: Fix typo.
3693         * lib/sys_types.in.h: Fix typo in comment.
3694         Reported by Paul Eggert.
3695
3696         Support for MSVC compiler: Ensure size_t gets defined.
3697         * modules/strings (Depends-on): Add 'sys_types'.
3698         * modules/sys_uio (Depends-on): Likewise.
3699         * lib/sys_uio.in.h: Update comment.
3700
3701         C++ tests for module 'sys_types'.
3702         * modules/sys_types-c++-tests: New file.
3703         * tests/test-sys_types-c++.cc: New file.
3704
3705         Tests for module 'sys_types'.
3706         * modules/sys_types-tests: New file.
3707         * tests/test-sys_types.c: New file.
3708
3709         New module 'sys_types'.
3710         * lib/sys_types.in.h: New file.
3711         * m4/sys_types_h.m4: New file.
3712         * modules/sys_types: New file.
3713         * doc/posix-headers/sys_types.texi: Mention the new module and the
3714         size_t problem on MSVC 9.
3715
3716 2011-09-11  Bruno Haible  <bruno@clisp.org>
3717
3718         Support for MSVC compiler: Avoid division by a literal 0.
3719         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3720         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3721         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3722         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3723         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3724         * tests/infinity.h: New file.
3725         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3726         on MSVC.
3727         * tests/test-ceilf1.c: Include infinity.h.
3728         (main): Use Infinityf.
3729         * tests/test-ceil1.c: Include infinity.h.
3730         (main): Use Infinityd.
3731         * tests/test-ceill.c: Include infinity.h.
3732         (main): Use Infinityl.
3733         * tests/test-dprintf-posix.c: Include infinity.h.
3734         (test_function): Use Infinityd.
3735         * tests/test-floorf1.c: Include infinity.h.
3736         (main): Use Infinityf.
3737         * tests/test-floor1.c: Include infinity.h.
3738         (main): Use Infinityd.
3739         * tests/test-floorl.c: Include infinity.h.
3740         (main): Use Infinityl.
3741         * tests/test-fprintf-posix.c: Include infinity.h.
3742         (test_function): Use Infinityd.
3743         * tests/test-frexp.c: Include infinity.h.
3744         (main): Use Infinityd.
3745         * tests/test-frexpl.c: Include infinity.h.
3746         (main): Use Infinityl.
3747         * tests/test-isfinite.c: Include infinity.h.
3748         (test_isfinitef): Use Infinityf.
3749         (test_isfinited): Use Infinityd.
3750         (test_isfinitel): Use Infinityl.
3751         * tests/test-isinf.c: Include infinity.h.
3752         (test_isinff): Use Infinityf.
3753         (test_isinfd): Use Infinityd.
3754         (test_isinfl): Use Infinityl.
3755         * tests/test-isnan.c: Include infinity.h.
3756         (test_float): Use Infinityf.
3757         (test_double): Use Infinityd.
3758         (test_long_double): Use Infinityl.
3759         * tests/test-isnanf.h: Include infinity.h.
3760         (main): Use Infinityf.
3761         * tests/test-isnand.h: Include infinity.h.
3762         (main): Use Infinityd.
3763         * tests/test-isnanl.h: Include infinity.h.
3764         (main): Use Infinityl.
3765         * tests/test-ldexpl.c: Include infinity.h.
3766         (main): Use Infinityl.
3767         * tests/test-printf-posix.h: Include infinity.h.
3768         (test_function): Use Infinityd.
3769         * tests/test-roundf1.c: Include infinity.h.
3770         (main): Use Infinityf.
3771         * tests/test-round1.c: Include infinity.h.
3772         (main): Use Infinityd.
3773         * tests/test-roundl.c: Include infinity.h.
3774         (main): Use Infinityl.
3775         * tests/test-signbit.c: Include infinity.h.
3776         (test_signbitf): Use Infinityf.
3777         (test_signbitd): Use Infinityd.
3778         (test_signbitl): Use Infinityl.
3779         * tests/test-snprintf-posix.h: Include infinity.h.
3780         (test_function): Use Infinityd, Infinityl.
3781         * tests/test-sprintf-posix.h: Include infinity.h.
3782         (test_function): Use Infinityd, Infinityl.
3783         * tests/test-truncf1.c: Include infinity.h.
3784         (main): Use Infinityf.
3785         * tests/test-trunc1.c: Include infinity.h.
3786         (main): Use Infinityd.
3787         * tests/test-truncl.c: Include infinity.h.
3788         (main): Use Infinityl.
3789         * tests/test-vasnprintf-posix.c: Include infinity.h.
3790         (test_function): Use Infinityd, Infinityl.
3791         * tests/test-vasprintf-posix.c: Include infinity.h.
3792         (test_function): Use Infinityd, Infinityl.
3793         * modules/ceilf-tests (Files): Add tests/infinity.h.
3794         * modules/ceil-tests (Files): Likewise.
3795         * modules/ceill-tests (Files): Likewise.
3796         * modules/dprintf-posix-tests (Files): Likewise.
3797         * modules/floorf-tests (Files): Likewise.
3798         * modules/floor-tests (Files): Likewise.
3799         * modules/floorl-tests (Files): Likewise.
3800         * modules/fprintf-posix-tests (Files): Likewise.
3801         * modules/frexp-tests (Files): Likewise.
3802         * modules/frexp-nolibm-tests (Files): Likewise.
3803         * modules/frexpl-tests (Files): Likewise.
3804         * modules/frexpl-nolibm-tests (Files): Likewise.
3805         * modules/isfinite-tests (Files): Likewise.
3806         * modules/isinf-tests (Files): Likewise.
3807         * modules/isnan-tests (Files): Likewise.
3808         * modules/isnanf-tests (Files): Likewise.
3809         * modules/isnanf-nolibm-tests (Files): Likewise.
3810         * modules/isnand-tests (Files): Likewise.
3811         * modules/isnand-nolibm-tests (Files): Likewise.
3812         * modules/isnanl-tests (Files): Likewise.
3813         * modules/isnanl-nolibm-tests (Files): Likewise.
3814         * modules/ldexpl-tests (Files): Likewise.
3815         * modules/printf-posix-tests (Files): Likewise.
3816         * modules/roundf-tests (Files): Likewise.
3817         * modules/round-tests (Files): Likewise.
3818         * modules/roundl-tests (Files): Likewise.
3819         * modules/signbit-tests (Files): Likewise.
3820         * modules/snprintf-posix-tests (Files): Likewise.
3821         * modules/sprintf-posix-tests (Files): Likewise.
3822         * modules/truncf-tests (Files): Likewise.
3823         * modules/trunc-tests (Files): Likewise.
3824         * modules/truncl-tests (Files): Likewise.
3825         * modules/vasnprintf-posix-tests (Files): Likewise.
3826         * modules/vasprintf-posix-tests (Files): Likewise.
3827         * modules/vdprintf-posix-tests (Files): Likewise.
3828         * modules/vfprintf-posix-tests (Files): Likewise.
3829         * modules/vprintf-posix-tests (Files): Likewise.
3830         * modules/vsnprintf-posix-tests (Files): Likewise.
3831         * modules/vsprintf-posix-tests (Files): Likewise.
3832         * modules/xprintf-posix-tests (Files): Likewise.
3833
3834 2011-09-11  Bruno Haible  <bruno@clisp.org>
3835
3836         Ensure pid_t gets defined.
3837         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3838         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3839         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3840         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3841         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3842         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3843         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3844         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3845         * tests/test-fcntl-h.c: Check that pid_t is defined.
3846         * tests/test-sched.c: Likewise.
3847         * tests/test-termios.c: Likewise.
3848         * tests/test-time.c: Likewise.
3849         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3850         * doc/posix-headers/signal.texi: Likewise.
3851         * doc/posix-headers/sys_types.texi: Likewise.
3852         * doc/posix-headers/time.texi: Likewise.
3853
3854 2011-09-11  Bruno Haible  <bruno@clisp.org>
3855
3856         acl: Fix compilation on Solaris 10 (older version).
3857         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3858         of ACE_EVERYONE.
3859         * lib/set-mode-acl.c (qset_acl): Likewise.
3860         Reported by Christian Jullien <eligis@orange.fr>.
3861
3862 2011-09-10  Bruno Haible  <bruno@clisp.org>
3863
3864         iconv, unsetenv: Add support for MSVC compiler.
3865         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3867
3868 2011-09-10  Bruno Haible  <bruno@clisp.org>
3869
3870         *printf: Add support for MSVC compiler.
3871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3872         handles the exception caused by the %n directive. When cross-compiling,
3873         guess no on native Windows.
3874         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3875         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3876         emulate it through vsnprintf.
3877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3878         * doc/posix-functions/dprintf.texi: Update documentation regarding
3879         MSVC 9.
3880         * doc/posix-functions/fprintf.texi: Likewise.
3881         * doc/posix-functions/printf.texi: Likewise.
3882         * doc/posix-functions/snprintf.texi: Likewise.
3883         * doc/posix-functions/sprintf.texi: Likewise.
3884         * doc/posix-functions/swprintf.texi: Likewise.
3885         * doc/posix-functions/vdprintf.texi: Likewise.
3886         * doc/posix-functions/vfprintf.texi: Likewise.
3887         * doc/posix-functions/vprintf.texi: Likewise.
3888         * doc/posix-functions/vsnprintf.texi: Likewise.
3889         * doc/posix-functions/vsprintf.texi: Likewise.
3890         * doc/glibc-functions/asprintf.texi: Likewise.
3891         * doc/glibc-functions/obstack_printf.texi: Likewise.
3892         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3893         * doc/glibc-functions/vasprintf.texi: Likewise.
3894
3895 2011-09-10  Bruno Haible  <bruno@clisp.org>
3896
3897         nocrash: Add support for native Windows.
3898         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3899
3900 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3901             Bruno Haible  <bruno@clisp.org>
3902
3903         absolute-header, include-next: Add support for MSVC compiler.
3904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3905         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3906         directory separator in #line directives.
3907         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3908         recognize also backslash as directory separator in #line directives.
3909
3910 2011-09-08  Jim Meyering  <meyering@redhat.com>
3911
3912         maint.mk: mark the post-release commit log with "maint: " prefix
3913         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3914         one-line commit-log summary.
3915
3916 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3917             Bruno Haible  <bruno@clisp.org>
3918
3919         Doc about crypt functions.
3920         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3921         systems.
3922         * doc/posix-functions/encrypt.texi: Likewise.
3923         * doc/posix-functions/setkey.texi: Likewise.
3924
3925 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3926
3927         * lib/gc.h: Fix copyright header.
3928
3929 2011-09-07  Bruno Haible  <bruno@clisp.org>
3930
3931         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3932         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3933         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3934
3935 2011-09-07  Bruno Haible  <bruno@clisp.org>
3936
3937         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3938         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3939         * lib/freopen.c: Likewise.
3940         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3941         * lib/lstat.c: Likewise.
3942         * lib/stat.c: Likewise.
3943         * lib/open.c: Use different syntax for include of <fcntl.h>.
3944         * lib/openat.c: Include fcntl.h again, explicitly.
3945
3946 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3947
3948         parse-datetime: document the newly accepted format
3949         * doc/parse-datetime.texi (Combined date and time of day items):
3950         New section.
3951
3952 2011-09-06  Bruno Haible  <bruno@clisp.org>
3953
3954         acl: Fix a test failure on newer Solaris 10 with ZFS.
3955         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3956         ENOSYS as no ACL.
3957         Reported by Jim Meyering.
3958
3959 2011-09-06  Bruno Haible  <bruno@clisp.org>
3960
3961         acl: Update for AIX >= 5.3 with NFS.
3962         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3963         ENOSYS as no ACL.
3964
3965         acl: Fix a test failure on AIX >= 5.3 with NFS.
3966         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3967         as no ACL.
3968
3969 2011-09-06  Bruno Haible  <bruno@clisp.org>
3970
3971         acl: Fix a test failure on IRIX 6.5 with NFS.
3972         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3973         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3974         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3975         * lib/copy-acl.c (qcopy_acl): Likewise.
3976
3977 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3978
3979         openat: port to AIX 7.1 with large files
3980         AIX 7.1 does a "#define openat open64at" if large files are in use,
3981         so we can't simply #undef openat.  Use the orig_openat trick (similar
3982         to orig_open in lib/open.c) to work around the problem.  Problem
3983         reported by Kevin Brott for GNU tar, in the thread containing
3984         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3985         * lib/openat.c (__need_system_fcntl_h): Define first.
3986         Include <fcntl.h> and <sys/types.h> before undefining.
3987         (orig_openat) [HAVE_OPENAT]: New inline function.
3988         (openat) [HAVE_OPENAT]: Do not undef.
3989         (rpl_openat): Use orig_openat, not openat.
3990
3991 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3992             Bruno Haible  <bruno@clisp.org>
3993
3994         acl: Avoid errors on NonStop Kernel.
3995         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3996         ENOTSUP errors.
3997
3998 2011-09-05  Bruno Haible  <bruno@clisp.org>
3999
4000         acl: Clean up Solaris code.
4001         * lib/acl-internal.h: Remove no-op #if.
4002         * lib/file-has-acl.c: Likewise.
4003         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4004         * lib/copy-acl.c (qcopy_acl): Likewise.
4005
4006 2011-09-05  Bruno Haible  <bruno@clisp.org>
4007
4008         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4009         binaries built on the original Solaris 10.
4010         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4011         trivial.
4012
4013 2011-09-05  Bruno Haible  <bruno@clisp.org>
4014
4015         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4016         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4017         10.
4018         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4019         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4020         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4021         instead of acl_get, facl_get, acl_set, facl_set.
4022
4023 2011-09-05  Bruno Haible  <bruno@clisp.org>
4024
4025         copy-file: Try unit tests on more file systems.
4026         * tests/test-copy-file-1.sh: New file.
4027         * tests/test-copy-file-2.sh: New file.
4028         * modules/copy-file-tests (Files): Add them.
4029         (Makefile.am): Add them to TESTS.
4030
4031         acl: Try unit tests on more file systems.
4032         * tests/test-file-has-acl-1.sh: New file.
4033         * tests/test-file-has-acl-2.sh: New file.
4034         * tests/test-set-mode-acl-1.sh: New file.
4035         * tests/test-set-mode-acl-2.sh: New file.
4036         * tests/test-copy-acl-1.sh: New file.
4037         * tests/test-copy-acl-2.sh: New file.
4038         * modules/acl-tests (Files): Add them.
4039         (Makefile.am): Add them to TESTS.
4040
4041 2011-09-04  Bruno Haible  <bruno@clisp.org>
4042
4043         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4044         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4045         10.
4046         (OLD_ALLOW, OLD_DENY): New macros.
4047         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4048         ACE_ACCESS_ALLOWED_ACE_TYPE.
4049         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4050         ACE_ACCESS_DENIED_ACE_TYPE.
4051         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4052         (NEW_ACE_EXECUTE): Fix value.
4053         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4054         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4055         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4056         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4057         NEW_ACE_SYNCHRONIZE): New macros.
4058         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4059         instead of acl_fromtext, acl_set, facl_set.
4060         Fixes a coreutils/tests/cp/perm failure.
4061
4062 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4063
4064         openat: test for fstatat (..., 0) bug
4065         Further testing with tar suggests that fstatat (..., 0)
4066         does not work in general, on AIX 7.1; see
4067         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4068         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4069         replacement fstatat (which is what older AIX releases were using
4070         anyway).
4071         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4072         use is now changed to orig_fstatat.  This was probably the right
4073         thing to do anyway.
4074         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4075         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4076         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4077         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4078         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4079         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4080         if the bug is found.
4081
4082         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4083         This tests for another fstatat bug on AIX 7.1:
4084         fstatat (AT_FDCWD, ..., 0) does not work.  See
4085         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4086         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4087         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4088         (rpl_fstatat): Adjust so that it works around either (or both)
4089         bugs if present.
4090         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4091
4092 2011-09-03  Karl Berry  <karl@gnu.org>
4093
4094         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4095         in index entries.
4096
4097 2011-09-02  Bruno Haible  <bruno@clisp.org>
4098
4099         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4100         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4101         values of AR, ARFLAGS, RANLIB.
4102         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4103
4104 2011-09-02  Bruno Haible  <bruno@clisp.org>
4105
4106         Find 'ar' program that fits with --host argument.
4107         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4108
4109 2011-09-02  Bruno Haible  <bruno@clisp.org>
4110
4111         tests: init.sh: Support any non-GNU diff.
4112         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4113         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4114         Solaris 8.
4115
4116 2011-09-02  Bruno Haible  <bruno@clisp.org>
4117
4118         tests: init.sh: work also with any non-GNU diff that supports -u
4119         * tests/init.sh: Relax check for diff -u support.
4120         Rather than checking for GNU diff via --version, simply check
4121         for support for -u itself.  Useful at least on OpenBSD 4.9,
4122         AIX 7.1, IRIX 6.5, and Solaris 10.
4123
4124 2011-09-01  Bruno Haible  <bruno@clisp.org>
4125
4126         strtoimax, strtoumax: Document problem on HP-UX 11.
4127         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4128         * doc/posix-functions/strtoumax.texi: Likewise.
4129
4130 2011-09-01  Bruno Haible  <bruno@clisp.org>
4131
4132         strtoumax: Avoid link error on OSF/1 with DTK cc.
4133         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4134         defined as a function.
4135         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4136         strtoumax is defined, not whether it is declared.
4137
4138 2011-09-01  Bruno Haible  <bruno@clisp.org>
4139
4140         strtoimax: Avoid link error on OSF/1 with DTK cc.
4141         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4142         defined as a function.
4143         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4144         strtoimax is defined, not whether it is declared.
4145
4146 2011-09-01  Bruno Haible  <bruno@clisp.org>
4147
4148         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4149         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4150         as a function.
4151         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4152         whether it is declared.
4153
4154 2011-09-01  Bruno Haible  <bruno@clisp.org>
4155
4156         imaxabs: Avoid link error on OSF/1 with DTK cc.
4157         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4158         as a function.
4159         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4160         whether it is declared.
4161
4162 2011-09-01  Bruno Haible  <bruno@clisp.org>
4163
4164         Tests for module 'strtoumax'.
4165         * modules/strtoumax-tests: New file.
4166         * tests/test-strtoumax.c: New file.
4167
4168         Tests for module 'strtoimax'.
4169         * modules/strtoimax-tests: New file.
4170         * tests/test-strtoimax.c: New file.
4171
4172         Tests for module 'imaxdiv'.
4173         * modules/imaxdiv-tests: New file.
4174         * tests/test-imaxdiv.c: New file.
4175
4176         Tests for module 'imaxabs'.
4177         * modules/imaxabs-tests: New file.
4178         * tests/test-imaxabs.c: New file.
4179
4180 2011-09-01  Bruno Haible  <bruno@clisp.org>
4181
4182         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4183         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4184         pthread_create.
4185
4186 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4187
4188         openat: work around AIX 7.1 fstatat issue
4189         This should fix the problem that was not properly fixed
4190         in the previous change, dated 2011-08-30.
4191         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4192         __need_system_stat_h defined.
4193         (orig_fstatat) [HAVE_FSTATAT]: New function.
4194         (rpl_fstatat): Go back to the old way of doing things,
4195         except call orig_fstatat instead of fstatat.
4196         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4197         Remove unnecessary check whether fstatat fills in st_size etc.
4198
4199 2011-09-01  Bruno Haible  <bruno@clisp.org>
4200
4201         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4202         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4203         just include the system's header.
4204
4205 2011-08-31  Jim Meyering  <meyering@redhat.com>
4206
4207         tests: avoid spurious assertion failure in test-float.c on ppc64
4208         * tests/test-float.c (test_long_double): Comment out an assertion,
4209         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4210         with gcc-4.4.4.
4211
4212         maint: indent with spaces, not TABs
4213         I need to get in the habit of running gnulib's "make check".
4214         Both of these would have been caught.
4215         * m4/largefile.m4: Indent with spaces, not TABs.
4216         * lib/parse-datetime.y (iso_8601_time): Likewise.
4217         Spotted by Pádraig Brady.
4218
4219         test-parse-datetime.c: accommodate a relatively strict gcc warning
4220         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4221         to avoid a warning from gcc's -Werror=missing-declarations.
4222         Insert a few spaces-before-funcall-parenthesis.
4223
4224 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4225
4226         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4227         The parser now accepts ISO 8601 date-time strings with "T" as the
4228         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4229         with a space between the date and time strings.  Now it also parses
4230         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4231         variants like "2004-02-29T16:21:42.333-07:00"
4232         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4233         of day representation using the 'T' separator character.
4234         * doc/parse-datetime.texi (General date syntax): replace use of
4235         deprecated --iso-8601 option with --rfc-3339 in example of date
4236         command output formats that can be parsed.
4237         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4238         lib/parse-datetime.y.
4239         (gmt_offset): New function.
4240         (main): Add additional test cases to validate ISO8601 extended
4241         date and time of day parsing.
4242
4243 2011-08-31  Bruno Haible  <bruno@clisp.org>
4244
4245         freopen: Documentation.
4246         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4247         name.
4248         Reported by Claudio Bley <claudio.bley@gmail.com>.
4249
4250 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4251
4252         freopen: Don't crash if the filename argument is NULL.
4253         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4254         NULL.
4255
4256 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4257
4258         openat: work around AIX 7.1 fstatat bug
4259         Problem reported by Kevin Brott for GNU tar, in the thread containing
4260         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4261         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4262         FSTATAT_ST_SIZE_ETC_BROKEN.
4263         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4264         rpl_fstatat.
4265         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4266         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4267         AC_CHECK_FUNCS_ONCE for fstatat.
4268         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4269         fchmodat, mkdirat, openat and unlinkat.
4270
4271 2011-08-30  Bruno Haible  <bruno@clisp.org>
4272
4273         Avoid endless recursions if config.h includes some header files.
4274         * lib/fopen.c (__need_FILE): Define already before including config.h.
4275         * lib/freopen.c (__need_FILE): Likewise.
4276         * lib/open.c (__need_system_fcntl_h): Likewise.
4277         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4278         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4279         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4280
4281 2011-08-25  Karl Berry  <karl@gnu.org>
4282
4283         * config/srclist.txt (ylwrap): new try.
4284         * build-aux/ylwrap: new file.
4285
4286 2011-08-23  Bruno Haible  <bruno@clisp.org>
4287
4288         tmpdir: Use a good default directory on native Windows.
4289         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4290         (P_tmpdir): Default to _P_tmpdir on native Windows.
4291         (path_search): On native Windows, try the value returned by GetTempPath
4292         before trying P_tmpdir.
4293         * modules/tmpdir (Depends-on): Add pathmax.
4294         Suggested by John Darrington <john@darrington.wattle.id.au>.
4295
4296 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4297
4298         doc: fix typo in README-release
4299         * top/README-release: Capitalize first word of a sentence.
4300
4301 2011-08-19  Jim Meyering  <meyering@redhat.com>
4302
4303         fts: do not exhaust memory when processing million-entry directories
4304         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4305         directory would require about 256*N bytes of memory.  Thus, it was
4306         easy to construct a directory too large to be processed by any of
4307         those tools.  With this change, fts' maximum memory utilization is
4308         now limited to around 30MB.
4309         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4310         (fts_read): When we've processed the final entry (i.e., when
4311         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4312         using the parent entry to read any remaining entries.  Dispatch
4313         depending on what fts_build returns:
4314         - NULL+stop, aka failure: stop
4315         - NULL otherwise: move up in the dir hierarchy
4316         - non-NULL: handle this new entry
4317         (fts_build): Declare and use new local, continue_readdir.
4318         Prepare to be called from fts_read, when the entries
4319         from a partially-read directory have just been exhausted.
4320         In that case, we'll skip the opendir and instead use the parent's
4321         fts_dirp and derive dir_fd from that.
4322         Finally, in the readdir loop, if we read max_entries entries,
4323         exit the loop ensuring *not* to call closedir.  This is required
4324         so that fts_dirp can be reused on a subsequent call.
4325         Prompted by Ben England's report of memory exhaustion in find
4326         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4327
4328         maint: fts: move decl of `dp' down into while loop; split a long line
4329         * lib/fts.c (fts_build): No semantic change.
4330
4331         fts: add/use new struct member, fts_dirp
4332         We are about to use this to manage any directory with
4333         too many entries to read all of them into memory at once.
4334         To do that, we'll need to save the DIR* pointer in each
4335         affected FTSENT struct.
4336         * lib/fts_.h: Include <dirent.h>.
4337         (struct FTSENT) [fts_dirp]: New member.
4338         * lib/fts.c (closedir_and_clear): Define.
4339         Use it in place of closedir so that we are sure to
4340         clear the new fts_dirp member when done with it.
4341         (fts_alloc): Initialize the new member.
4342         (fts_lfree): Free, if needed.
4343
4344         maint: fts: give __opendir2 a new parameter and rename
4345         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4346         than surreptitiously using sole caller's "dir_fd".
4347         (fts_opendir): Rename from __opendir2.
4348
4349         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4350         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4351
4352         maint: fts.c: correct off-by-one indentation
4353         * lib/fts.c (fts_build): Correct indentation, change style
4354         of a couple of block comments, and bracing style.
4355
4356         maint: fts.c: move __opendir2 #define "up" out of function body
4357         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4358
4359         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4360         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4361         out for a long time and besides was useful only on BSD systems.
4362
4363 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4364
4365         regex: port to Stratus OpenVOS
4366         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4367         define to empty, rather than attempting nonportable optimizations.
4368         Problem reported by Paul Green in:
4369         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4370         and fix suggested by Eric Blake in:
4371         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4372
4373 2011-08-17  Eric Blake  <eblake@redhat.com>
4374
4375         getcwd: fix test failures on mingw
4376         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4377         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4378         test if long directory cannot be created, and allow mingw errno.
4379
4380         getcwd-lgpl: fix m4 to match relaxed test for BSD
4381         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4382         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4383         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4384         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4385         signature problem.
4386
4387         getcwd: fix compilation on mingw64
4388         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4389         getcwd.
4390         Reported by Marc-André Lureau.
4391
4392         pipe2: silence compiler warning
4393         * lib/pipe2.c (pipe2): Hide label if it is not used.
4394
4395 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4396
4397         relocatable-prog: fix link error
4398         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4399         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4400         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4401         into modules/relocatable-lib without noticing that
4402         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4403         also needs to build relocatable.c.
4404
4405 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4408         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4409         shell code: it contained a 'break' that was not in a loop.
4410         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4411         via a shell-language loop; this may have been true in old Autoconf
4412         versions, but it's not true in Autoconf 2.68.  I found this bug
4413         when testing coreutils git on Solaris 8, whose shell complains
4414         about the syntax error.
4415
4416 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4417
4418         * lib/base64.c: Fix comment to reference RFC 4648.
4419         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4420         <gvtulder@gmail.com>.
4421
4422 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4423
4424         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4425
4426         po/Makefile.in.in: fix make -q problem
4427         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4428         rule, since there's no file named 'check-macro-version' and its
4429         use as a file breaks make -q.
4430         (all): Don't depend on check-macro-version.
4431         (CHECK_MACRO_VERSION): New macro.
4432         (stamp-po): Use it.
4433
4434         configmake: fix make -q problem
4435         * modules/configmake (configmake.h): Update configmake.h's time stamp
4436         even if the file does not change.  Otherwise, 'make -q' fails.
4437         Problem reported by Simon Josefsson in
4438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4439
4440 2011-08-11  Jim Meyering  <meyering@redhat.com>
4441
4442         git-version-gen: correct the advice in a comment
4443         * build-aux/git-version-gen: Correct comment.
4444         Don't recommend to list .tarball-version in .gitignore.
4445
4446 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4447
4448         base64: fix off-by-one buffer size bug
4449         Problem and (trivial) fix reported by Gijs van Tulder in
4450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4451         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4452         * tests/test-base64.c (main): Catch the bug.
4453
4454 2011-08-10  Eric Blake  <eblake@redhat.com>
4455
4456         closein: correct comments
4457         * lib/closein.c (close_stdin): Improve comments.
4458
4459 2011-08-09  Bruno Haible  <bruno@clisp.org>
4460
4461         More tests for 'fseeko'.
4462         * tests/test-fseeko3.c: New file, from Eric Blake.
4463         * tests/test-fseeko3.sh: New file.
4464         * modules/fseeko-tests (Files): Add them.
4465         (TESTS): Add test-fseeko3.sh.
4466         (check_PROGRAMS): Add test-fseeko3.
4467
4468 2011-08-09  Eric Blake  <eblake@redhat.com>
4469
4470         fseeko: remove unneeded hack
4471         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4472
4473         fseeko: fix bug on glibc
4474         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4475         Reported by John W. Eaton.
4476
4477 2011-08-08  Bruno Haible  <bruno@clisp.org>
4478
4479         unictype/base: Fix interoperability with preinstalled libunistring.
4480         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4481         Reported by Simon Josefsson.
4482
4483 2011-08-08  Bruno Haible  <bruno@clisp.org>
4484
4485         iswblank: Detect declaration correctly.
4486         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4487         AC_CHECK_DECLS invocation.
4488
4489 2011-08-08  Bruno Haible  <bruno@clisp.org>
4490
4491         tcgetsid: Detect declaration correctly.
4492         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4493         AC_CHECK_DECLS invocation.
4494         Reported by Simon Josefsson.
4495
4496 2011-08-08  Eric Blake  <eblake@redhat.com>
4497
4498         largefile: fix typo that regressed large file support
4499         * modules/largefile (configure.ac-early): Fix section name.
4500
4501 2011-08-06  Karl Berry  <karl@gnu.org>
4502
4503         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4504         a separate module.
4505
4506 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4507
4508         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4509         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4510         get prototype for free.
4511
4512 2011-08-04  Bruno Haible  <bruno@clisp.org>
4513
4514         Tests for module 'pathmax'.
4515         * modules/pathmax-tests: New file.
4516         * tests/test-pathmax.c: New file.
4517
4518         canonicalize-lgpl: Support larger filenames on the Hurd.
4519         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4520         Reported by Paul Eggert.
4521
4522         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4523         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4524         * lib/chdir-long.h: Include pathmax.h.
4525         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4526         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4527         (PATH_MAX): Remove code that is done by pathmax.h.
4528         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4529         * lib/tmpfile.c: Add a comment.
4530         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4531         * modules/chdir-long (Depends-on): Add pathmax.
4532         * modules/getcwd (Depends-on): Add pathmax.
4533         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4534         is not defined.
4535         * doc/posix-headers/limits.texi: Mention the pathmax module.
4536         * NEWS: Mention the change.
4537
4538 2011-08-02  Bruno Haible  <bruno@clisp.org>
4539
4540         pthread_sigmask: Actually use results of gl_THREADLIB.
4541         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4542         gl_THREADLIB, not gl_[]THREADLIB.
4543         Reported by Eric Blake.
4544
4545 2011-08-02  Jim Meyering  <meyering@redhat.com>
4546
4547         maint.mk: relax the default _gl_TS_function_match regexp
4548         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4549         space between function name and "(" in an "extern" declaration.
4550         That would fail to match a decl with no space there: extern void foo();
4551
4552 2011-07-31  Iain Nicol  <iain@thenicols.net>
4553
4554         git-version-gen: document that EXTRA_DIST must include .version
4555         * build-aux/git-version-gen: In the how-to-use comment, document
4556         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4557         will fail when run from an unpacked distribution tarball.
4558
4559 2011-08-01  Bruno Haible  <bruno@clisp.org>
4560
4561         wctype-h: Fix last change.
4562         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4563         REPLACE_TOWLOWER to 0.
4564         Reported by Sam Steingold <sds@gnu.org>.
4565
4566 2011-07-31  Bruno Haible  <bruno@clisp.org>
4567
4568         frexpl: Update autoconf test.
4569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4570         according to changes of 2011-06-20.
4571
4572 2011-07-31  Bruno Haible  <bruno@clisp.org>
4573
4574         sys_utsname: Add support for Minix.
4575         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4576         <sys/utsname.h>.
4577         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4578         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4579
4580 2011-07-31  Bruno Haible  <bruno@clisp.org>
4581
4582         strings: Add support for Minix.
4583         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4584         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4585         * doc/posix-headers/strings.texi: Document the Minix problem.
4586
4587 2011-07-31  Bruno Haible  <bruno@clisp.org>
4588
4589         wctype-h: Add support for Minix.
4590         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4591         REPLACE_TOWLOWER.
4592         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4593         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4594         REPLACE_ISWCNTRL.
4595
4596 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4597
4598         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4599         This is a performance improvement for 64-bit hosts: it causes the
4600         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4601
4602 2011-07-31  Bruno Haible  <bruno@clisp.org>
4603
4604         stdioext: Add support for Minix.
4605         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4606         * lib/fpurge.c (fpurge): Likewise.
4607         * lib/freadahead.c (freadahead): Likewise.
4608         * lib/freadable.c (freadable): Likewise.
4609         * lib/freading.c (freading): Likewise.
4610         * lib/freadptr.c (freadptr): Likewise.
4611         * lib/freadseek.c (freadptrinc): Likewise.
4612         * lib/fseeko.c (rpl_fseeko): Likewise.
4613         * lib/fseterr.c (fseterr): Likewise.
4614         * lib/fwritable.c (fwritable): Likewise.
4615         * lib/fwriting.c (fwriting): Likewise.
4616         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4617         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4618
4619 2011-07-31  Bruno Haible  <bruno@clisp.org>
4620
4621         errno: Port to Minix.
4622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4623         ECONNABORTED are defined.
4624         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4625         GNULIB_defined_ECONNABORTED): New macros.
4626         * lib/strerror-override.h (strerror_override): Test also
4627         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4628         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4629         ECONNABORTED.
4630         * doc/posix-headers/errno.texi: Mention the Minix problem.
4631
4632 2011-07-31  Bruno Haible  <bruno@clisp.org>
4633
4634         Work around declaration collisions on Minix.
4635         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4636         defined, set REPLACE_MBSINIT.
4637         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4638         defined, set REPLACE_MBRTOWC.
4639         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4640         set REPLACE_MBRLEN.
4641         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4642         defined, set REPLACE_MBSRTOWCS.
4643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4644         defined, set REPLACE_WCRTOMB.
4645         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4646         defined, set REPLACE_WCSRTOMBS.
4647
4648 2011-07-31  Bruno Haible  <bruno@clisp.org>
4649
4650         Add support for Minix with ACK compiler.
4651         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4652         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4653         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4654
4655 2011-07-31  Bruno Haible  <bruno@clisp.org>
4656
4657         Documentation about Minix.
4658         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4659         * doc/glibc-headers/*.texi: Likewise.
4660         * doc/posix-functions/*.texi: Likewise.
4661         * doc/glibc-functions/*.texi: Likewise.
4662
4663 2011-07-31  Bruno Haible  <bruno@clisp.org>
4664
4665         snippet/warn-on-use: Fix indentation.
4666         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4667
4668 2011-07-25  Jim Meyering  <meyering@redhat.com>
4669
4670         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4671         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4672         commands.
4673
4674 2011-07-27  Jim Meyering  <meyering@redhat.com>
4675
4676         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4677         * top/maint.mk (gl_extract_significant_defines_): Now that
4678         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4679         gnulib/lib/signal.in.h, and now that we recommend to
4680         define-if-undefined those two symbols in application code,
4681         we must filter them out of the "significant" list.
4682         This avoids a "make syntax-check" failure in coreutils.
4683
4684 2011-07-26  Eric Blake  <eblake@redhat.com>
4685
4686         warnings: add comments about previous patch
4687         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4688         * m4/include_next.m4: Likewise.
4689         * m4/warn-on-use.m4: Likewise.
4690         * m4/warnings.m4: Likewise, and simplify use.
4691         Suggested by Stefano Lattarini.
4692
4693         include-next, warnings: support older autoconf
4694         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4695         AS_VAR_PUSHDEF in a way that works with older autoconf.
4696         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4697         Reported by Daniel P. Berrange.
4698
4699 2011-07-25  Bruno Haible  <bruno@clisp.org>
4700
4701         fseek, ftell: Fix doc.
4702         * doc/posix-functions/fseek.texi: Reword statement about
4703         AC_SYS_LARGEFILE.
4704         * doc/posix-functions/ftell.texi: Likewise.
4705
4706 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4707             Bruno Haible  <bruno@clisp.org>
4708
4709         Add dependencies to the 'largefile' module.
4710         * modules/fopen (Depends-on): Add 'largefile'.
4711         * modules/freopen (Depends-on): Likewise.
4712         * modules/fseeko (Depends-on): Likewise.
4713         * modules/ftello (Depends-on): Likewise.
4714         * modules/glob (Depends-on): Likewise.
4715         * modules/lseek (Depends-on): Likewise.
4716         * modules/lstat (Depends-on): Likewise.
4717         * modules/mkostemp (Depends-on): Likewise.
4718         * modules/mkostemps (Depends-on): Likewise.
4719         * modules/mkstemp (Depends-on): Likewise.
4720         * modules/mkstemps (Depends-on): Likewise.
4721         * modules/open (Depends-on): Likewise.
4722         * modules/openat (Depends-on): Likewise.
4723         * modules/pread (Depends-on): Likewise.
4724         * modules/pwrite (Depends-on): Likewise.
4725         * modules/scandir (Depends-on): Likewise.
4726         * modules/stat (Depends-on): Likewise.
4727         * modules/tmpfile (Depends-on): Likewise.
4728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4729         since the containing module now depends on the largefile module.
4730         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4731         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4732         off_t is fixed by gnulib.
4733         * doc/posix-functions/freopen.texi: Likewise.
4734         * doc/posix-functions/fseeko.texi: Likewise.
4735         * doc/posix-functions/fstatat.texi: Likewise.
4736         * doc/posix-functions/ftello.texi: Likewise.
4737         * doc/posix-functions/glob.texi: Likewise.
4738         * doc/posix-functions/lseek.texi: Likewise.
4739         * doc/posix-functions/lstat.texi: Likewise.
4740         * doc/posix-functions/mkstemp.texi: Likewise.
4741         * doc/posix-functions/open.texi: Likewise.
4742         * doc/posix-functions/openat.texi: Likewise.
4743         * doc/posix-functions/pread.texi: Likewise.
4744         * doc/posix-functions/pwrite.texi: Likewise.
4745         * doc/posix-functions/scandir.texi: Likewise.
4746         * doc/posix-functions/stat.texi: Likewise.
4747         * doc/posix-functions/tmpfile.texi: Likewise.
4748         * doc/glibc-functions/mkostemp.texi: Likewise.
4749         * doc/glibc-functions/mkostemps.texi: Likewise.
4750         * doc/glibc-functions/mkstemps.texi: Likewise.
4751
4752 2011-07-25  Bruno Haible  <bruno@clisp.org>
4753
4754         fcntl: Move AC_LIBOBJ invocation to module description.
4755         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4756         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4757
4758         fcntl: Remove call-in from fchdir.m4.
4759         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4761
4762         dup3: Remove potential call-in from fchdir.m4.
4763         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4765
4766         dup2: Move AC_LIBOBJ invocation to module description.
4767         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4768         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4769         Don't invoke AC_LIBOBJ.
4770         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4771
4772         dup2: Remove call-in from fchdir.m4.
4773         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4775
4776         fclose: Move AC_LIBOBJ invocation to module description.
4777         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4778         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4779         to 1.
4780         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4781
4782         fclose: Remove call-in from close.m4.
4783         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4784         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4785
4786         close: Move AC_LIBOBJ invocation to module description.
4787         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4788         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4789         1.
4790         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4791
4792         close: Remove call-in from fchdir.m4.
4793         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4795
4796         open: Move AC_LIBOBJ invocation to module description.
4797         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4798         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4799         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4800
4801         open: Remove call-in from fchdir.m4.
4802         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4804
4805         fchdir: Start to remove gl_REPLACE_* idiom.
4806         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4807         (gl_FUNC_FCHDIR): Invoke it.
4808
4809 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4810
4811         * lib/ftell.c (ftell): Comment out cast.
4812
4813         close: use gl_REPLACE_FCLOSE only if defined
4814         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4815         is defined.  The close module doesn't depend on the fclose module
4816         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4818         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4819
4820 2011-07-24  Jim Meyering  <meyering@redhat.com>
4821
4822         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4823         * tests/test-select.h (test_function): Declare as "static".
4824
4825 2011-07-24  Bruno Haible  <bruno@clisp.org>
4826
4827         doc: Mention the effects of AC_SYS_LARGEFILE.
4828         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4829         on this function.
4830         * doc/posix-functions/aio_error.texi: Likewise.
4831         * doc/posix-functions/aio_fsync.texi: Likewise.
4832         * doc/posix-functions/aio_read.texi: Likewise.
4833         * doc/posix-functions/aio_return.texi: Likewise.
4834         * doc/posix-functions/aio_suspend.texi: Likewise.
4835         * doc/posix-functions/aio_write.texi: Likewise.
4836         * doc/posix-functions/fgetpos.texi: Likewise.
4837         * doc/posix-functions/fopen.texi: Likewise.
4838         * doc/posix-functions/freopen.texi: Likewise.
4839         * doc/posix-functions/fsetpos.texi: Likewise.
4840         * doc/posix-functions/fstatvfs.texi: Likewise.
4841         * doc/posix-functions/ftruncate.texi: Likewise.
4842         * doc/posix-functions/ftw.texi: Likewise.
4843         * doc/posix-functions/getrlimit.texi: Likewise.
4844         * doc/posix-functions/glob.texi: Likewise.
4845         * doc/posix-functions/lio_listio.texi: Likewise.
4846         * doc/posix-functions/lockf.texi: Likewise.
4847         * doc/posix-functions/mkstemp.texi: Likewise.
4848         * doc/posix-functions/mmap.texi: Likewise.
4849         * doc/posix-functions/nftw.texi: Likewise.
4850         * doc/posix-functions/openat.texi: Likewise.
4851         * doc/posix-functions/opendir.texi: Likewise.
4852         * doc/posix-functions/posix_fadvise.texi: Likewise.
4853         * doc/posix-functions/posix_fallocate.texi: Likewise.
4854         * doc/posix-functions/pread.texi: Likewise.
4855         * doc/posix-functions/pwrite.texi: Likewise.
4856         * doc/posix-functions/readdir.texi: Likewise.
4857         * doc/posix-functions/readdir_r.texi: Likewise.
4858         * doc/posix-functions/rewinddir.texi: Likewise.
4859         * doc/posix-functions/scandir.texi: Likewise.
4860         * doc/posix-functions/seekdir.texi: Likewise.
4861         * doc/posix-functions/setrlimit.texi: Likewise.
4862         * doc/posix-functions/statvfs.texi: Likewise.
4863         * doc/posix-functions/telldir.texi: Likewise.
4864         * doc/posix-functions/tmpfile.texi: Likewise.
4865         * doc/posix-functions/truncate.texi: Likewise.
4866         * doc/glibc-functions/fallocate.texi: Likewise.
4867         * doc/glibc-functions/fstatfs.texi: Likewise.
4868         * doc/glibc-functions/fts_children.texi: Likewise.
4869         * doc/glibc-functions/fts_read.texi: Likewise.
4870         * doc/glibc-functions/getdirentries.texi: Likewise.
4871         * doc/glibc-functions/mkostemp.texi: Likewise.
4872         * doc/glibc-functions/mkostemps.texi: Likewise.
4873         * doc/glibc-functions/mkstemps.texi: Likewise.
4874         * doc/glibc-functions/preadv.texi: Likewise.
4875         * doc/glibc-functions/pwritev.texi: Likewise.
4876         * doc/glibc-functions/sendfile.texi: Likewise.
4877         * doc/glibc-functions/statfs.texi: Likewise.
4878
4879 2011-07-24  Bruno Haible  <bruno@clisp.org>
4880
4881         doc: Fix typo.
4882         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4883
4884 2011-07-24  Bruno Haible  <bruno@clisp.org>
4885
4886         doc: Mention fsusage.
4887         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4888
4889 2011-07-24  Bruno Haible  <bruno@clisp.org>
4890
4891         doc: Mention new glibc headers and functions.
4892         * doc/glibc-headers/gshadow.texi: New file.
4893         * doc/glibc-functions/endsgent.texi: New file.
4894         * doc/glibc-functions/fgetsgent.texi: New file.
4895         * doc/glibc-functions/fgetsgent_r.texi: New file.
4896         * doc/glibc-functions/getsgent.texi: New file.
4897         * doc/glibc-functions/getsgent_r.texi: New file.
4898         * doc/glibc-functions/getsgnam.texi: New file.
4899         * doc/glibc-functions/getsgnam_r.texi: New file.
4900         * doc/glibc-functions/putsgent.texi: New file.
4901         * doc/glibc-functions/setsgent.texi: New file.
4902         * doc/glibc-functions/sgetsgent.texi: New file.
4903         * doc/glibc-functions/sgetsgent_r.texi: New file.
4904         * doc/glibc-functions/malloc_info.texi: New file.
4905         * doc/glibc-functions/preadv.texi: New file.
4906         * doc/glibc-functions/pwritev.texi: New file.
4907         * doc/glibc-functions/register_printf_modifier.texi: New file.
4908         * doc/glibc-functions/register_printf_specifier.texi: New file.
4909         * doc/glibc-functions/register_printf_type.texi: New file.
4910         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4911         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4912         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4913         * doc/glibc-functions/pthread_getname_np.texi: New file.
4914         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4915         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4916         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4917         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4918         * doc/glibc-functions/pthread_setname_np.texi: New file.
4919         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4920         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4921         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4922         * doc/glibc-functions/qsort_r.texi: New file.
4923         * doc/glibc-functions/quick_exit.texi: New file.
4924         * doc/glibc-functions/syncfs.texi: New file.
4925         * doc/gnulib.texi: Include them.
4926         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4927         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4928         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4929         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4930         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4931         * doc/glibc-functions/execvpe.texi: Likewise.
4932
4933 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4934
4935         ftell: don't include <unistd.h>
4936         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4937         guaranteed to define off_t, and the ftell module depends on the
4938         stdio module.
4939
4940         ftell: do not assume wraparound signed arithmetic
4941         * lib/ftell.c: Include <limits.h>.
4942         (ftell): Don't assume wraparound signed arithmetic.
4943
4944 2011-07-24  Bruno Haible  <bruno@clisp.org>
4945
4946         close: No longer depend on module 'fclose'.
4947         * modules/close (Depends-on): Remove fclose.
4948         * NEWS: Mention the change.
4949         Suggested by Sam Steingold <sds@gnu.org>.
4950
4951 2011-07-24  Bruno Haible  <bruno@clisp.org>
4952
4953         fsusage: Enable large volume support on AIX >= 5.2.
4954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4955         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4956         instead of STAT_STATVFS.
4957         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4958
4959         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4961         f_blocks field only on MacOS X.
4962
4963         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4965         * modules/fsusage (Depends-on): Add largefile.
4966
4967 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4968
4969         * README: Modernize discussion of signed integers.
4970         Assuming overflow wraparound is no longer safe.
4971         Mention ones' complement and signed magnitude.
4972
4973 2011-07-22  Bruno Haible  <bruno@clisp.org>
4974
4975         select tests, pselect tests: Refactor.
4976         * tests/test-select.h: New file, extracted from tests/test-select.c.
4977         (select_fn): New type.
4978         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4979         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4980         test_pipe): Add my_select argument.
4981         (test_function): Renamed from main. Add my_select argument.
4982         * tests/test-select.c: Move most code to tests/test-select.h. Include
4983         test-select.h.
4984         * modules/select-tests (Files): Add tests/test-select.h.
4985         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4986         (my_select, main): New functions.
4987         * modules/pselect-tests (Files): Add tests/test-select.h,
4988         tests/macros.h, tests/signature.h.
4989         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4990         (configure.ac): Check for <sys/wait.h>.
4991
4992 2011-07-22  Bruno Haible  <bruno@clisp.org>
4993
4994         sys_select tests: Check the signature of FD_*.
4995         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4996         signature tests from here...
4997         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4998         here.
4999         * modules/sys_select-tests (Files): Add tests/signature.h.
5000
5001 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5002
5003         largefile: new module, replacing large-inode
5004         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5005         * MODULES.html.sh: Add largefile, remove large-inode.
5006         * modules/largefile, m4/largefile.m4: New files.
5007         * modules/large-inode, m4/large-inode.m4: Remove.
5008
5009         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5010         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5011         implementations that use only 32 bits to count blocks.
5012         On typical hosts with 1024-byte blocks, this fails with file
5013         systems as small as 4 TiB.  Problem reported by Herb Wartens
5014         <http://debbugs.gnu.org/9140> and this should also fix a similar
5015         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5016
5017         large-inode: New module
5018         * MODULES.html.sh: Add it.
5019         * modules/large-inode, m4/large-inode.m4: New files.
5020
5021         extensions: Enable extensions on MacOS X 10.5 and later.
5022         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5023
5024 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5025
5026         file-has-acl: use acl_extended_file_nofollow if available
5027         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5028         (acl_extended_file): New macro.
5029         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5030         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5031
5032 2011-07-21  Bruno Haible  <bruno@clisp.org>
5033
5034         Declare system functions in a way that works with C++.
5035         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5036         declare fdopendir as extern "C".
5037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5038         declare frexpl as extern "C".
5039         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5040         declare gai_strerror as extern "C".
5041         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5042         programs, declare gai_strerror as extern "C".
5043         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5044         declare getlogin_r as extern "C".
5045         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5046         as extern "C".
5047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5048         declare ldexpl as extern "C".
5049         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5050         as extern "C".
5051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5052         program, declare getmntinfo as extern "C".
5053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5054         stpncpy as extern "C".
5055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5056         program, declare __xpg_strerror_r as extern "C".
5057         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5058         strndup as extern "C".
5059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5060         declare memset and bzero as extern "C".
5061         Reported by Sam Steingold <sds@gnu.org>.
5062
5063 2011-07-12  Jim Meyering  <meyering@redhat.com>
5064
5065         maint.mk: prohibit inclusion of "verify.h" without use
5066         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5067
5068 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5069
5070         timer-time: A new module to check for timer_settime()
5071         * m4/timer_time.m4: Check for the posix function.
5072         * modules/timer-time: Add the new module.
5073         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5074         Mention it.
5075
5076 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5077             Bruno Haible  <bruno@clisp.org>
5078
5079         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5081         not defined, assume POSIX threads and look for pthread_sigmask in
5082         $LIBS, without changing $CPPFLAGS.
5083
5084 2011-07-19  Bruno Haible  <bruno@clisp.org>
5085
5086         strstr: Update cross-compilation guess.
5087         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5088         CPUs, guess no, in view of glibc
5089         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5090         Suggested by Eric Blake. Reported by Reuben Thomas.
5091
5092 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5093
5094         getopt-gnu: suppress core dumps from detection code
5095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5096         to suppress core dumps that may well occur on glibc systems.
5097         * modules/getopt-gnu: Depend on nocrash.
5098
5099 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5100
5101         pthread_sigmask: ensure usleep is declared
5102         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5103         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5104
5105 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5106
5107         doc: Document NonStop portability issues.
5108         * doc/posix-functions/sigaction.texi (sigaction):
5109         * doc/posix-headers/signal.texi (signal.h):
5110         Document NonStop.  See Joachim Schmitz in
5111         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5112
5113 2011-07-15  Bruno Haible  <bruno@clisp.org>
5114
5115         ffsl, ffsll: Avoid unportable behaviour.
5116         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5117
5118 2011-07-15  Bruno Haible  <bruno@clisp.org>
5119
5120         ffs: More tests.
5121         * tests/test-ffs.c (NBITS): New macro.
5122         (main): Add more tests.
5123         * tests/test-ffsl.c (NBITS): New macro.
5124         (main): Add more tests.
5125         * tests/test-ffsll.c (NBITS): New macro.
5126         (main): Add more tests.
5127
5128 2011-07-15  Eric Blake  <eblake@redhat.com>
5129
5130         ffsl, ffsll: new modules
5131         * modules/ffsl: New file.
5132         * modules/ffsll: Likewise.
5133         * m4/ffsl.m4: Likewise.
5134         * m4/ffsll.m4: Likewise.
5135         * lib/ffsl.c: Likewise.
5136         * lib/ffsl.h: Likewise.
5137         * lib/ffsll.c: Likewise.
5138         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5139         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5140         * modules/string (Makefile.am): Substitute witnesses.
5141         * lib/strings.in.h (ffsl, ffsll): Declare.
5142         * modules/ffsl-tests: New test file.
5143         * modules/ffsll-tests: Likewise.
5144         * tests/test-ffsl.c: Likewise.
5145         * tests/test-ffsll.c: Likewise.
5146         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5147         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5148         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5149
5150         ffs: fix m4 prerequisite
5151         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5152
5153         ffs: avoid undefined behavior
5154         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5155         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5156         Reported by Bruno Haible.
5157
5158 2011-07-12  Bruno Haible  <bruno@clisp.org>
5159
5160         pthread_sigmask: Rely on module 'threadlib'.
5161         * modules/pthread_sigmask (Depends-on): Add threadlib.
5162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5163         is defined.
5164
5165 2011-07-12  Bruno Haible  <bruno@clisp.org>
5166
5167         regex: Depend on module 'strcase'.
5168         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5169
5170 2011-07-12  Jim Meyering  <meyering@redhat.com>
5171
5172         warn-on-use: fix typo in file name
5173         * modules/snippet/warn-on-use (Files): Correct file name:
5174         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5175
5176 2011-07-12  Bruno Haible  <bruno@clisp.org>
5177
5178         strings: Document module.
5179         * doc/posix-headers/strings.texi: Mention module 'strings'.
5180
5181 2011-07-12  Bruno Haible  <bruno@clisp.org>
5182
5183         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5184         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5185         (Files, Makefile.am): Update.
5186         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5187         * modules/stdlib (Depends-on): Update.
5188
5189 2011-07-12  Bruno Haible  <bruno@clisp.org>
5190
5191         * NEWS: Mention the changes.
5192
5193         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5194         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5195         (Files, Makefile.am): Update.
5196         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5197         * modules/arpa_inet (Depends-on): Update.
5198         * modules/ctype (Depends-on): Update.
5199         * modules/dirent (Depends-on): Update.
5200         * modules/fcntl-h (Depends-on): Update.
5201         * modules/glob (Depends-on): Update.
5202         * modules/iconv-h (Depends-on): Update.
5203         * modules/inttypes-incomplete (Depends-on): Update.
5204         * modules/langinfo (Depends-on): Update.
5205         * modules/locale (Depends-on): Update.
5206         * modules/math (Depends-on): Update.
5207         * modules/netdb (Depends-on): Update.
5208         * modules/poll-h (Depends-on): Update.
5209         * modules/pty (Depends-on): Update.
5210         * modules/search (Depends-on): Update.
5211         * modules/signal (Depends-on): Update.
5212         * modules/spawn (Depends-on): Update.
5213         * modules/stdio (Depends-on): Update.
5214         * modules/stdlib (Depends-on): Update.
5215         * modules/string (Depends-on): Update.
5216         * modules/strings (Depends-on): Update.
5217         * modules/sys_file (Depends-on): Update.
5218         * modules/sys_ioctl (Depends-on): Update.
5219         * modules/sys_select (Depends-on): Update.
5220         * modules/sys_socket (Depends-on): Update.
5221         * modules/sys_stat (Depends-on): Update.
5222         * modules/sys_time (Depends-on): Update.
5223         * modules/sys_times (Depends-on): Update.
5224         * modules/sys_utsname (Depends-on): Update.
5225         * modules/sys_wait (Depends-on): Update.
5226         * modules/termios (Depends-on): Update.
5227         * modules/time (Depends-on): Update.
5228         * modules/unistd (Depends-on): Update.
5229         * modules/wchar (Depends-on): Update.
5230         * modules/wctype-h (Depends-on): Update.
5231         * MODULES.html.sh (Support for building libraries and executables):
5232         Update.
5233
5234         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5235         * modules/snippet/unused-parameter: Renamed from
5236         modules/unused-parameter.
5237         (Files, Makefile.am): Update.
5238         * build-aux/snippet/unused-parameter.h: Renamed from
5239         build-aux/unused-parameter.h.
5240         * modules/selinux-h (Depends-on): Update.
5241         * modules/unistr/base (Depends-on): Update.
5242         * MODULES.html.sh (Core language properties): Update.
5243
5244         Rename module 'link-warning' to 'snippet/link-warning'.
5245         * modules/snippet/link-warning: Renamed from modules/link-warning.
5246         (Files, Makefile.am): Update.
5247         * build-aux/snippet/link-warning.h: Renamed from
5248         build-aux/link-warning.h.
5249         * MODULES.html.sh (Support for building libraries and executables):
5250         Update.
5251
5252         Rename module 'c++defs' to 'snippet/c++defs'.
5253         * modules/snippet/c++defs: Renamed from modules/c++defs.
5254         (Files, Makefile.am): Update.
5255         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5256         * modules/arpa_inet (Depends-on): Update.
5257         * modules/ctype (Depends-on): Update.
5258         * modules/dirent (Depends-on): Update.
5259         * modules/fcntl-h (Depends-on): Update.
5260         * modules/glob (Depends-on): Update.
5261         * modules/iconv-h (Depends-on): Update.
5262         * modules/langinfo (Depends-on): Update.
5263         * modules/locale (Depends-on): Update.
5264         * modules/math (Depends-on): Update.
5265         * modules/netdb (Depends-on): Update.
5266         * modules/poll-h (Depends-on): Update.
5267         * modules/pty (Depends-on): Update.
5268         * modules/search (Depends-on): Update.
5269         * modules/signal (Depends-on): Update.
5270         * modules/spawn (Depends-on): Update.
5271         * modules/stdio (Depends-on): Update.
5272         * modules/stdlib (Depends-on): Update.
5273         * modules/string (Depends-on): Update.
5274         * modules/strings (Depends-on): Update.
5275         * modules/sys_ioctl (Depends-on): Update.
5276         * modules/sys_select (Depends-on): Update.
5277         * modules/sys_socket (Depends-on): Update.
5278         * modules/sys_stat (Depends-on): Update.
5279         * modules/sys_time (Depends-on): Update.
5280         * modules/sys_wait (Depends-on): Update.
5281         * modules/termios (Depends-on): Update.
5282         * modules/time (Depends-on): Update.
5283         * modules/unistd (Depends-on): Update.
5284         * modules/wchar (Depends-on): Update.
5285         * modules/wctype-h (Depends-on): Update.
5286
5287         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5288         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5289         (Files, Makefile.am): Update.
5290         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5291         * modules/argv-iter (Depends-on): Update.
5292         * modules/arpa_inet (Depends-on): Update.
5293         * modules/dirent (Depends-on): Update.
5294         * modules/fcntl-h (Depends-on): Update.
5295         * modules/fnmatch (Depends-on): Update.
5296         * modules/getopt-posix (Depends-on): Update.
5297         * modules/glob (Depends-on): Update.
5298         * modules/iconv-h (Depends-on): Update.
5299         * modules/inttypes-incomplete (Depends-on): Update.
5300         * modules/locale (Depends-on): Update.
5301         * modules/math (Depends-on): Update.
5302         * modules/netdb (Depends-on): Update.
5303         * modules/search (Depends-on): Update.
5304         * modules/signal (Depends-on): Update.
5305         * modules/spawn (Depends-on): Update.
5306         * modules/stdio (Depends-on): Update.
5307         * modules/stdlib (Depends-on): Update.
5308         * modules/string (Depends-on): Update.
5309         * modules/strings (Depends-on): Update.
5310         * modules/sys_socket (Depends-on): Update.
5311         * modules/sys_stat (Depends-on): Update.
5312         * modules/sys_time (Depends-on): Update.
5313         * modules/sys_times (Depends-on): Update.
5314         * modules/sys_utsname (Depends-on): Update.
5315         * modules/time (Depends-on): Update.
5316         * modules/unistd (Depends-on): Update.
5317         * modules/wchar (Depends-on): Update.
5318         * MODULES.html.sh (Support for building libraries and executables):
5319         Update.
5320
5321 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5322
5323         Improvements on _Noreturn and related modules.
5324
5325         modules/_Exit-tests: test _Noreturn too
5326         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5327         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5328         (main): Use them.
5329
5330         stdnoreturn, stdnoreturn-tests: remove modules
5331         They're not needed here and a bit premature for use elsewhere.  See
5332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5333         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5334         * tests/test-stdnoreturn.c: Remove files.
5335         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5336         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5337         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5338         and using noreturn.
5339         * modules/openat, modules/sigpipe-die, modules/xalloc:
5340         * modules/xmemdup0, modules/xstrtol:
5341         Remove dependency on stdnoreturn.
5342
5343         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5344         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5345         Reparenthesize to avoid GCC warning.
5346         Support Microsoft's syntax.
5347         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5348
5349         _Noreturn-tests: remove module
5350         * modules/_Noreturn-tests: Remove.
5351         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5352         * tests/test-_Noreturn.c: Remove.
5353         * tests/test-stdnoreturn.c: Merge from the old
5354         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5355
5356 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5357
5358         _Noreturn, stdnoreturn, and related modules.
5359
5360         * top/maint.mk: Adjust to new noreturn support.
5361         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5362         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5363
5364         xalloc: use stdnoreturn.h
5365         * lib/xalloc.h: Include <stdnoreturn.h>.
5366         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5367         * modules/xalloc (Depends-on): Add stdnoreturn.
5368
5369         xstrtol: use stdnoreturn.h
5370         * lib/xstrtol.h: Include <stdnoreturn.h>.
5371         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5372         * modules/xstrtol (Depends-on): Add stdnoreturn.
5373
5374         xmemdup0: use stdnoreturn.h
5375         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5376         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5377         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5378
5379         sigpipe-die: use stdnoreturn.h
5380         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5381         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5382         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5383
5384         openat: use stdnoreturn.h
5385         * lib/openat.h: Include <stdnoreturn.h>.
5386         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5387         * modules/openat (Depends-on): Add stdnoreturn.
5388
5389         * lib/openat-die.c (openat_save_fail): Modernize comment.
5390
5391         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5392
5393         * lib/glthread/thread.h: Modernize comment.
5394
5395         obstack: use _Noreturn
5396         * lib/obstack.c (__attribute__): Remove macro.
5397         (print_and_abort): Use _Noreturn.
5398
5399         c-stack: use _Noreturn
5400         * lib/c-stack.c (die, overflow_handler, segv_handler):
5401         Use _Noreturn rather than __attribute__((noreturn)).
5402
5403         argmatch-tests, exclude_tests: use _Noreturn
5404         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5405         Remove.
5406         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5407
5408         stdlib: use _Noreturn
5409         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5410         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5411         * modules/stdlib (Depends-on): Add _Noreturn.
5412         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5413
5414         stdnoreturn-tests: new module
5415         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5416
5417         stdnoreturn: new module
5418         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5419         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5420
5421         _Noreturn-tests: new module
5422         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5423
5424         _Noreturn: new module
5425         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5426         New section, mentioning it.
5427         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5428
5429         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5430
5431 2011-07-11  Eric Blake  <eblake@redhat.com>
5432
5433         ffs: new module
5434         * modules/ffs: New file.
5435         * m4/ffs.m4: Likewise.
5436         * lib/ffs.c: Likewise.
5437         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5438         * modules/strings (Makefile.am): Substitute witness.
5439         (Depends-on): Add c++defs.
5440         * lib/strings.in.h (ffs): Declare.
5441         * modules/ffs-tests: New test file.
5442         * tests/test-ffs.c: Test new module.
5443         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5444         * doc/posix-functions/ffs.texi (ffs): Likewise.
5445
5446         regex: avoid compiler warning
5447         * lib/regex.c (includes): Include <strings.h>, for use of
5448         strcasecmp in regcomp.c.
5449         Reported by Joachim Schmitz.
5450
5451 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5452
5453         stdint: respect system's intmax_t if INTMAX_MAX
5454         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5455         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5456         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5457         long but int64_t is long long, and where we will clash with the
5458         system intmax_t if we override it.  See
5459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5460         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5461         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5462         similarly for UINTMAX_C.
5463
5464 2011-07-08  Bruno Haible  <bruno@clisp.org>
5465
5466         pthread_sigmask tests: Avoid a compiler warning.
5467         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5468         non-zero.
5469
5470         sigprocmask tests: A better way to avoid a compiler warning.
5471         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5472         (main): Complain if system() returns non-zero.
5473         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5474
5475 2011-07-08  Bruno Haible  <bruno@clisp.org>
5476
5477         pthread_sigmask: Work around IRIX bug.
5478         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5479         bug.
5480         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5481         there may be unblocked pending signals.
5482         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5483
5484 2011-07-08  Bruno Haible  <bruno@clisp.org>
5485
5486         pthread_sigmask: Work around Cygwin bug.
5487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5488         bug.
5489         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5490         the system's pthread_sigmask function.
5491         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5492
5493 2011-07-08  Bruno Haible  <bruno@clisp.org>
5494
5495         pthread_sigmask: Work around bug in single-threaded implementation.
5496         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5497         FreeBSD, HP-UX, Solaris bug.
5498         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5499         * lib/pthread_sigmask.c: Include <stddef.h>.
5500         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5501         the system's pthread_sigmask function.
5502         * modules/pthread_sigmask (configure.ac): Invoke
5503         gl_PREREQ_PTHREAD_SIGMASK.
5504         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5505         HP-UX, Solaris.
5506
5507 2011-07-08  Eric Blake  <eblake@redhat.com>
5508
5509         test-sigprocmask: avoid compiler warning
5510         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5511         * tests/test-sigprocmask.c (main): Use it to silence warning.
5512         Reported by Jim Meyering.
5513
5514         test-snprintf: avoid compiler warning
5515         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5516         * tests/test-vsnprintf.c (main): Likewise.
5517         Reported by Jim Meyering.
5518
5519 2011-07-08  Bruno Haible  <bruno@clisp.org>
5520
5521         Tests for module 'pthread_sigmask'.
5522         * modules/pthread_sigmask-tests: New file.
5523         * tests/test-pthread_sigmask1.c: New file, based on
5524         tests/test-sigprocmask.c.
5525         * tests/test-pthread_sigmask2.c: New file.
5526
5527 2011-07-08  Jim Meyering  <meyering@redhat.com>
5528
5529         test-getopt.h: avoid warning about an unused variable
5530         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5531
5532 2011-07-07  Jim Meyering  <meyering@redhat.com>
5533
5534         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5535         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5536         now that it no longer contains leading TABs.
5537         Remove unused "url=FIXME" statement.
5538
5539 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5540
5541         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5543         When gl_THREADLIB is not in use, assume that the POSIX sematics
5544         are desired.  This is better for Emacs, which uses POSIX semantics
5545         on GNUish and/or POSIXish platforms, and does not use threads at
5546         all otherwise.
5547
5548         pthread_sigmask: fix typo when testing for libraries
5549         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5550         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5551
5552 2011-07-08  Eric Blake  <eblake@redhat.com>
5553
5554         fts: introduce FTS_NOATIME
5555         * lib/fts_.h (FTS_NOATIME): New bit flag.
5556         (FTS_OPTIONMASK): Adjust.
5557         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5558         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5559
5560 2011-07-08  Bruno Haible  <bruno@clisp.org>
5561
5562         Tests for module 'thread'.
5563         * modules/thread-tests: New file.
5564         * tests/test-thread_self.c: New file.
5565         * tests/test-thread_create.cc: New file.
5566
5567 2011-07-08  Bruno Haible  <bruno@clisp.org>
5568
5569         thread: Avoid gcc warnings when using gl_thread_self().
5570         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5571         'void *'.
5572         (gl_thread_self_pointer): Update.
5573
5574 2011-07-07  Bruno Haible  <bruno@clisp.org>
5575
5576         signal-c++-tests: Check declaration of pthread_sigmask.
5577         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5578         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5579         $(LIB_PTHREAD_SIGMASK).
5580
5581 2011-07-07  Bruno Haible  <bruno@clisp.org>
5582
5583         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5584         * lib/signal.in.h (pthread_sigmask): Override if
5585         REPLACE_PTHREAD_SIGMASK is 1.
5586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5587         REPLACE_PTHREAD_SIGMASK.
5588         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5589         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5590         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5591         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5592         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5593
5594 2011-07-07  Bruno Haible  <bruno@clisp.org>
5595
5596         pthread_sigmask: Ensure declaration in <signal.h>.
5597         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5598         include <pthread.h>.
5599         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5600         problem.
5601
5602 2011-07-07  Bruno Haible  <bruno@clisp.org>
5603
5604         pthread_sigmask: Document the module.
5605         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5606
5607 2011-07-07  Bruno Haible  <bruno@clisp.org>
5608
5609         pthread_sigmask: Follow gnulib conventions.
5610         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5611         gl_PTHREAD_SIGMASK.
5612         * modules/pthread_sigmask (configure.ac): Update.
5613
5614 2011-07-07  Bruno Haible  <bruno@clisp.org>
5615
5616         pthread_sigmask: Make declaration C++ safe.
5617         * lib/signal.in.h: In two special conditions, just do an #include_next.
5618         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5619         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5620         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5621         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5622         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5623         not REPLACE_PTHREAD_MASK.
5624         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5625         not REPLACE_PTHREAD_MASK.
5626         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5627
5628 2011-07-07  Bruno Haible  <bruno@clisp.org>
5629
5630         pthread_sigmask: Fix return value.
5631         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5632         * lib/pthread_sigmask.c: New file.
5633         * modules/pthread_sigmask (Files): Add it.
5634         (configure.ac): Invoke AC_LIBOBJ.
5635
5636 2011-07-07  Eric Blake  <eblake@redhat.com>
5637
5638         getopt: more portable argv creation
5639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5640         const, use char arrays rather than strings.
5641         Suggested by Paul Eggert.
5642
5643 2011-07-07  Bruno Haible  <bruno@clisp.org>
5644
5645         Tests for module 'sigprocmask'.
5646         * modules/sigprocmask-tests: New file.
5647         * tests/test-sigprocmask.c: New file.
5648
5649 2011-07-07  Bruno Haible  <bruno@clisp.org>
5650
5651         float tests: Tweak.
5652         * tests/test-float.c (main): Tweak skip message.
5653
5654 2011-07-07  Eric Blake  <eblake@redhat.com>
5655
5656         getopt: avoid compiler warning during configure
5657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5658         assigning string literals to non-const pointer.
5659
5660         getopt-gnu: avoid crash in glibc getopt
5661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5662         * tests/test-getopt.h (test_getopt): Enhance test.
5663         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5664         * doc/posix-functions/getopt.texi (getopt): Document it.
5665         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5666         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5667         Likewise.
5668
5669 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5670
5671         getopt: handle W; without long options in getopt [BZ #12922]
5672         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5673         but no long options are defined, just return 'W'.
5674
5675 2011-07-07  Bruno Haible  <bruno@clisp.org>
5676
5677         Avoid literal tabs.
5678         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5679         variable containing a tab instead of a literal tab.
5680         Reported by Jim Meyering.
5681
5682 2011-07-07  Bruno Haible  <bruno@clisp.org>
5683
5684         Comments.
5685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5686
5687 2011-07-06  Bruno Haible  <bruno@clisp.org>
5688
5689         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5690         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5691         <winsock2.h>.
5692         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5693         lib/sys_socket.in.h.
5694         (close, gethostname): Hide declarations from <winsock2.h>.
5695         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5696         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5697         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5698         (select): Don't override if gnulib's <sys/select.h> was already
5699         included.
5700         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5701         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5702         setsockopt, shutdown, select): Tweak indentation.
5703
5704 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5705
5706         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5707         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5708         in an application that does not use the sys_select module.
5709
5710 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5711
5712         poll: do not return 0 on timeout=-1
5713         * lib/poll.c: Loop with yield if no events occured
5714
5715 2011-07-06  Eric Blake  <eblake@redhat.com>
5716
5717         pthread_sigmask: always replace when not using pthread
5718         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5719         replacement when using some threading other than pthread.  Fix
5720         logic bug.
5721
5722 2011-07-06  Bruno Haible  <bruno@clisp.org>
5723
5724         Comments.
5725         * m4/printf.m4: Update comments about mingw.
5726
5727 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5728
5729         sys_select: define sigset_t more portably
5730         * lib/sys_select.in.h: Always include <sys/types.h>, since
5731         we now need sigset_t and mingw defines it there.
5732         Include <signal.h> before split inclusion guard, to avoid
5733         mishaps on Solaris, whose <signal.h> eventually includes us.
5734         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5735         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5736         which come from ...
5737         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5738         gl_CHECK_TYPE_SIGSET_T.
5739         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5740         does the real work.
5741         * modules/sys_select (Depends-on): Add 'signal'.
5742
5743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5744         Suggested by Bruno Haible.
5745
5746         pselect: Use pthread_sigmask, not sigprocmask.
5747         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5748         multithreaded apps better than sigprocmask does.
5749         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5750         sigprocmask directly.
5751
5752 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5755         Don't #undef,  since we don't need any underlying pselect.
5756         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5757         (Depends-on): Add select.
5758         (Link): Add $(LIBSOCKET).
5759         These changes suggested by Bruno Haible.
5760
5761         pselect: document better
5762         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5763         * doc/posix-functions/pselect.texi (pselect): Document new module.
5764
5765         pthread_sigmask: new module
5766         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5767         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5768         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5769         This is done only as a macro; I don't know how well that'll
5770         work for C++.  Move <sys/types.h> include before the include_next,
5771         to avoid mishap on Solaris.
5772         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5773         * modules/signal (Makefile.am): Substitute the check's results.
5774         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5775
5776         test-pselect: new module
5777         * modules/pselect-tests, tests/test-pselect.c: New files.
5778         * tests/test-select.c, tests/test-sys_select-c++.cc:
5779         If TEST_PSELECT is defined, test pselect instead of testing select.
5780
5781         * tests/test-sys_select.c (sigset_t): Test for it, too.
5782         Suggested by Bruno Haible.
5783
5784 2011-07-05  Eric Blake  <eblake@redhat.com>
5785
5786         snprintf: guarantee %1$d, for libintl
5787         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5788         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5789         * doc/posix-functions/snprintf.texi (snprintf): Update.
5790         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5791         * tests/test-snprintf.c (main): Enhance test.
5792         * tests/test-vsnprintf.c (main): Likewise.
5793
5794 2011-07-05  Jim Meyering  <meyering@redhat.com>
5795
5796         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5797         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5798         per Bruno's request, to accommodate this idiom (no space after "#")
5799         even when the function is inside an #if block:
5800         char *
5801         gets (char *s)
5802         #undef gets
5803         {
5804           ...
5805         }
5806
5807 2011-07-04  Jim Meyering  <meyering@redhat.com>
5808
5809         maint: indent with spaces, not TABs, and add a rule to check this
5810         * tests/test-userspec.c: Indent with spaces, not TABs.
5811         * tests/test-argp.c: Likewise.
5812         * tests/test-c-stack2.sh: Likewise.
5813         * tests/test-parse-duration.sh: Likewise
5814         * m4/strtod.m4: Likewise.
5815         * m4/alloca.m4: Likewise.
5816         * m4/pselect.m4: Likewise.
5817         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5818
5819 2011-07-03  Jim Meyering  <meyering@redhat.com>
5820
5821         maint.mk: correct omissions in prohibit_argmatch_without_use check
5822         This rule would mistakenly report that argmatch.h is included without
5823         use even when both the argmatch and invalid_arg macro were used.
5824         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5825         of argmatch and invalid_arg.
5826
5827 2011-07-03  Bruno Haible  <bruno@clisp.org>
5828
5829         Comments about EINTR.
5830         * lib/safe-read.h: Explain the purpose of this module.
5831         * lib/safe-write.h: Likewise.
5832         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5833         module.
5834         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5835         module.
5836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5837
5838 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5839
5840         xnanosleep: Rewrite to use new dtotimespec module.
5841         It has the conversion code that used to be in xnanosleep.
5842         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5843         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5844         (TIME_T_MAX): Remove.
5845         (xnanosleep): Rewrite in terms of dtotimespec.
5846         * modules/xnanosleep (Depends-on): Add dtotimespec.
5847         Remove intprops, stdbool.
5848
5849         timespec-add, timespec-sub: new modules
5850         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5851         * lib/timespec-add.c, lib/timespec-sub.c:
5852         * modules/timespec-add, modules/timespec-sub: New files.
5853
5854         dtotimespec: new module
5855         * lib/timespec.h (dtotimespec): New decl.
5856         * lib/dtotimespec.c, modules/dtotimespec: New files.
5857
5858         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5859
5860         pselect: new module
5861         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5862         (pselect): New decls.
5863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5864         since the standard pselect decl uses 'restrict'.
5865         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5866         HAVE_PSELECT, REPLACE_PSELECT.
5867         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5868         HAVE_PSELECT, REPLACE_PSELECT.
5869         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5870
5871         sys_select: don't depend on sys_socket
5872         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5874         This fix works on GNU and GNU-like platforms, but has not been tested
5875         on native Windows.
5876         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5878         gl_HEADER_SYS_SOCKET.
5879         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5880         gl_PREREQ_SYS_H_WINSOCK2.
5881
5882 2011-06-29  Eric Blake  <eblake@redhat.com>
5883
5884         pipe2: fix C89 compile problem
5885         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5886         Reported by Bruno Haible.
5887
5888         pipe, pipe2: don't corrupt fd on error
5889         * lib/pipe.c (pipe): Leave fd unchanged on error.
5890         * lib/pipe2.c (pipe2): Likewise.
5891         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5892         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5893
5894 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5895
5896         mmap-anon: do not use regular expressions inadvertently
5897         * m4/mmap-anon.m4: Remove trailing period from strings sought
5898         in the output.
5899
5900 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5901
5902         nanosleep: fix integer overflow problem
5903         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5904         arithmetic wraps around on overflow.
5905
5906         nanosleep: simplify carrying
5907         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5908         first call to the underyling nanosleep, not for the last one.
5909         This doesn't fix any bugs, but it simplifies the computation of
5910         the remaining delay.  Found while auditing integer overflow issues.
5911
5912         dup2: remove test for existence of fcntl
5913         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5914         "#if HAVE_FCNTL", in the configure-time test program.
5915         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5916         and therefore speeds up "configure" a bit.  Found while
5917         adding the dup2 module to Emacs.
5918
5919 2011-06-24  Eric Blake  <eblake@redhat.com>
5920
5921         maint.mk: enhance useless header checks
5922         * top/maint.mk (_sc_header_without_use): Check both include
5923         styles.
5924         (sc_prohibit_assert_without_use)
5925         (sc_prohibit_close_stream_without_use)
5926         (sc_prohibit_getopt_without_use)
5927         (sc_prohibit_quotearg_without_use)
5928         (sc_prohibit_quote_without_use)
5929         (sc_prohibit_long_options_without_use)
5930         (sc_prohibit_inttostr_without_use)
5931         (sc_prohibit_ignore_value_without_use)
5932         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5933         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5934         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5935         (sc_prohibit_hash_pjw_without_use)
5936         (sc_prohibit_safe_read_without_use)
5937         (sc_prohibit_argmatch_without_use)
5938         (sc_prohibit_canonicalize_without_use)
5939         (sc_prohibit_root_dev_ino_without_use)
5940         (sc_prohibit_openat_without_use)
5941         (sc_prohibit_c_ctype_without_use)
5942         (sc_prohibit_signal_without_use)
5943         (sc_prohibit_stdio--_without_use)
5944         (sc_prohibit_stdio-safer_without_use)
5945         (sc_prohibit_strings_without_use)
5946         (sc_prohibit_intprops_without_use)
5947         (sc_prohibit_stddef_without_use)
5948         (sc_prohibit_xfreopen_without_use): Update clients.
5949
5950 2011-06-24  Jim Meyering  <meyering@redhat.com>
5951
5952         syntax-check: keep one maint.mk rule in sync with its header
5953         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5954         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5955         I prefer to avoid temporary files here, so use <(...), but that
5956         is not supported by /bin/sh, so...
5957         (SHELL): Define to /bin/bash.
5958
5959 2011-06-24  Eric Blake  <eblake@redhat.com>
5960
5961         maint.mk: update sc_prohibit_intprops_without_use
5962         * top/maint.mk (_intprops_names): Match recent changes.
5963
5964 2011-06-24  Bruno Haible  <bruno@clisp.org>
5965
5966         strerror-override: No-op tweak.
5967         * lib/strerror-override.h (strerror_override): Reorder conditions,
5968         for consistency with lib/strerror-override.c.
5969
5970 2011-06-23  Eric Blake  <eblake@redhat.com>
5971
5972         maint.mk: test further PATH_MAX issues
5973         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5974         (sc_prohibit_path_max_allocation): ...and also test alloca.
5975         Suggested by Jim Meyering.
5976
5977 2011-06-22  Eric Blake  <eblake@redhat.com>
5978
5979         maint.mk: add syntax-check to avoid char[PATH_MAX]
5980         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5981
5982         stat: be robust to PATH_MAX definition
5983         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5984         * modules/stat (Depends-on): Add verify.
5985
5986         link: work around IRIX bug
5987         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5988         * lib/link.c (rpl_link): Work around it.
5989         * tests/test-link.h (test_link): Enhance test.
5990         * doc/posix-functions/link.texi (link): Document the bug.
5991
5992         getopt: silence clang warning
5993         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5994         dereference.
5995         Reported by Gustavo Martin Domato.
5996
5997 2011-06-22  Jim Meyering  <meyering@redhat.com>
5998
5999         bootstrap: do not insert a blank line into each .gitignore file
6000         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6001
6002 2011-06-21  Eric Blake  <eblake@redhat.com>
6003
6004         perror: test for output mismatch
6005         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6006         perror on IRIX.
6007
6008         strerror_r: fix OpenBSD behavior on out-of-range
6009         * lib/strerror_r.c (strerror_r): Always use maximal string.
6010         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6011
6012         strerror_r: fix OpenBSD behavior on 0
6013         * lib/strerror-override.c (strerror_override): Also override 0
6014         when needed.
6015         * lib/strerror-override.h (strerror_override): Likewise.
6016         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6017         earlier.
6018         * lib/strerror_r.c (strerror_r): Likewise.
6019         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6020         behavior...
6021         (gl_FUNC_STRERROR_0): ...into new macro.
6022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6023         is overridden.
6024         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6025         * modules/strerror-override (Files): Add strerror.m4.
6026         (configure.ac): Also provide override for 0 when needed.
6027         * doc/posix-functions/strerror.texi (strerror): Document this.
6028         * doc/posix-functions/perror.texi (perror): Likewise.
6029
6030         perror: adjust array size
6031         * modules/perror (Depends-on): Add strerror-override.
6032         * lib/perror.c (perror): Use it to avoid magic number.
6033
6034         strerror-override: reduce size
6035         * lib/strerror-override.c (strerror_override): Use fewer lines.
6036
6037 2011-06-20  Bruno Haible  <bruno@clisp.org>
6038
6039         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6040         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6041
6042 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6043
6044         alloca: port to compilers that can optimize like GCC 4.6.0
6045         * lib/alloca.c (find_stack_direction): New signature, taken from
6046         Autoconf git.  This works with GCC 4.6.0.  This code should never
6047         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6048         be used with other compilers that optimize as well as GCC 4.6.0 does.
6049         (alloca): Adjust to new signature.
6050         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6051         New macro, which patches Autoconf in a similar way.
6052
6053         c-stack: stop worrying about stack direction
6054         * lib/c-stack.c (find_stack_direction): Remove.
6055         (segv_handler): Don't worry about stack direction growth, as it's
6056         too much of a pain to configure this correctly, given how compilers
6057         are optimizing-away our stack-growth detection code.  Instead, assume
6058         that any access to just before or just after the stack is OK.
6059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6060         Don't require AC_FUNC_ALLOCA; no longer needed.
6061
6062 2011-06-20  Eric Blake  <eblake@redhat.com>
6063
6064         test-stat: don't allocate PATH_MAX bytes
6065         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6066         PATH_MAX-sized buffer.
6067         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6068         * modules/stat-tests (Depends-on): Likewise.
6069         * tests/test-fstatat.c (includes): Drop pathmax.h.
6070         * tests/test-stat.c (includes): Likewise.
6071         Reported by Bruno Haible.
6072
6073 2011-06-20  Bruno Haible  <bruno@clisp.org>
6074
6075         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6076         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6077         * lib/float.c: New file.
6078         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6079         REPLACE_FLOAT_LDBL.
6080         * modules/float (Files): Add lib/float.c.
6081         (configure.ac): Invoke AC_LIBOBJ.
6082         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6083
6084 2011-06-20  Bruno Haible  <bruno@clisp.org>
6085
6086         Tests for module 'float'.
6087         * modules/float-tests: New file.
6088         * tests/test-float.c: New file.
6089
6090 2011-06-19  Bruno Haible  <bruno@clisp.org>
6091
6092         isinf: Coding style.
6093         * lib/isinf.c: Use GNU coding style.
6094
6095 2011-06-19  Bruno Haible  <bruno@clisp.org>
6096
6097         linkat test: Avoid test failure on AIX 7.1.
6098         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6099         * tests/test-link.h (test_link): Likewise.
6100
6101 2011-06-19  Bruno Haible  <bruno@clisp.org>
6102
6103         pread test: Avoid test failure on OpenBSD 4.9.
6104         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6105
6106 2011-06-19  Bruno Haible  <bruno@clisp.org>
6107
6108         sprintf-posix: Fix test failure on AIX 7.1.
6109         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6110         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6111         on AIX.
6112         * doc/posix-functions/fprintf.texi: Likewise.
6113         * doc/posix-functions/printf.texi: Likewise.
6114         * doc/posix-functions/snprintf.texi: Likewise.
6115         * doc/posix-functions/sprintf.texi: Likewise.
6116         * doc/posix-functions/vdprintf.texi: Likewise.
6117         * doc/posix-functions/vfprintf.texi: Likewise.
6118         * doc/posix-functions/vprintf.texi: Likewise.
6119         * doc/posix-functions/vsnprintf.texi: Likewise.
6120         * doc/posix-functions/vsprintf.texi: Likewise.
6121
6122 2011-06-19  Bruno Haible  <bruno@clisp.org>
6123
6124         roundl-ieee: Fix test failure on AIX 7.1.
6125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6126         * doc/posix-functions/roundl.texi: Mention problem with negative
6127         arguments.
6128
6129 2011-06-19  Bruno Haible  <bruno@clisp.org>
6130
6131         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6132         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6133         * doc/posix-functions/round.texi: Mention problem with negative
6134         arguments.
6135         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6136
6137 2011-06-19  Bruno Haible  <bruno@clisp.org>
6138
6139         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6141         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6142         * doc/posix-functions/roundf.texi: Mention problem with negative
6143         arguments.
6144         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6145
6146 2011-06-19  Bruno Haible  <bruno@clisp.org>
6147
6148         ceilf-ieee: Work around bug on MacOS X 10.5.
6149         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6150
6151         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6152         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6153         IEEE compliant, avoid compiler optimizations.
6154         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6155         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6156         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6157         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6158         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6159         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6162         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6163         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6164
6165 2011-06-19  Bruno Haible  <bruno@clisp.org>
6166
6167         ceilf-ieee: Work around bug on AIX 7.1.
6168         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6169         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6170
6171 2011-06-19  Bruno Haible  <bruno@clisp.org>
6172
6173         ceil-ieee: Work around bug on AIX 7.1.
6174         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6175         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6176
6177 2011-06-18  Bruno Haible  <bruno@clisp.org>
6178
6179         fsync test: Avoid test failure on MacOS X and AIX.
6180         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6181         EINVAL.
6182
6183 2011-06-18  Bruno Haible  <bruno@clisp.org>
6184
6185         openat, fdopendir tests: Fix link errors.
6186         * modules/openat-tests (Depends-on): Add progname.
6187         * modules/fdopendir-tests (Depends-on): Likewise.
6188         * tests/test-fchownat.c: Include progname.h.
6189         (main): Call set_program_name.
6190         * tests/test-fstatat.c: Include progname.h.
6191         (main): Call set_program_name.
6192         * tests/test-mkdirat.c: Include progname.h.
6193         (main): Call set_program_name.
6194         * tests/test-openat.c: Include progname.h.
6195         (main): Call set_program_name.
6196         * tests/test-unlinkat.c: Include progname.h.
6197         (main): Call set_program_name.
6198         * tests/test-fdopendir.c: Include progname.h.
6199         (main): Call set_program_name.
6200
6201 2011-06-18  Bruno Haible  <bruno@clisp.org>
6202
6203         Doc update.
6204         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6205         HP-UX.
6206         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6207
6208 2011-06-18  Bruno Haible  <bruno@clisp.org>
6209
6210         getcwd tests: Avoid compilation error on HP-UX 11.31.
6211         * modules/getcwd-tests (Depends-on): Add pathmax.
6212         * tests/test-getcwd.c: Include pathmax.h.
6213
6214 2011-06-18  Bruno Haible  <bruno@clisp.org>
6215
6216         isfinite, isinf: Fix link error on AIX 6 and 7.
6217         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6218         needed, also test the macro with a 'float' argument.
6219         * m4/isinf.m4 (gl_ISINF): Likewise.
6220
6221 2011-06-18  Bruno Haible  <bruno@clisp.org>
6222
6223         getloadavg: Don't clobber LIBS. Regression from previous commit.
6224         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6225         AC_CHECK_LIB from here...
6226         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6227         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6228         gl_func_getloadavg_done.
6229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6230
6231 2011-06-18  Bruno Haible  <bruno@clisp.org>
6232
6233         clean-temp: Improve documentation.
6234         * lib/clean-temp.h: Explain better how to use this module.
6235         Reported by John Darrington <john@darrington.wattle.id.au>.
6236
6237 2011-06-17  Bruno Haible  <bruno@clisp.org>
6238
6239         pread, pwrite: Avoid cc warning on AIX.
6240         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6241         (pwrite): Likewise.
6242
6243 2011-06-17  Bruno Haible  <bruno@clisp.org>
6244
6245         spawn-pipe tests: Fix link error.
6246         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6248
6249 2011-06-17  Bruno Haible  <bruno@clisp.org>
6250
6251         Tests: Remove unnecessary dependency.
6252         * modules/canonicalize-tests (Depends-on): Remove progname.
6253         * modules/chown-tests (Depends-on): Likewise.
6254         * modules/dirname-tests (Depends-on): Likewise.
6255         * modules/fdopendir-tests (Depends-on): Likewise.
6256         * modules/fdutimensat-tests (Depends-on): Likewise.
6257         * modules/hash-tests (Depends-on): Likewise.
6258         * modules/lchown-tests (Depends-on): Likewise.
6259         * modules/linkat-tests (Depends-on): Likewise.
6260         * modules/renameat-tests (Depends-on): Likewise.
6261         * modules/spawn-pipe-tests (Depends-on): Likewise.
6262         * modules/utimensat-tests (Depends-on): Likewise.
6263
6264 2011-06-17  Bruno Haible  <bruno@clisp.org>
6265
6266         spawn-pipe tests: Fix link error.
6267         * tests/test-spawn-pipe-child.c: Undefine fflush.
6268
6269 2011-06-17  Bruno Haible  <bruno@clisp.org>
6270
6271         Fix tests link errors.
6272         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6273         * modules/chown-tests (Makefile.am): Don't link test-chown with
6274         LIBINTL.
6275         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6276         LIBINTL.
6277         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6278         LIBINTL.
6279         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6280         LIBINTL.
6281
6282 2011-06-16  Bruno Haible  <bruno@clisp.org>
6283
6284         crypto/gc-sha1: Fix recent regression.
6285         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6286         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6287
6288         crypto/gc-md5: Fix recent regression.
6289         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6290
6291         crypto/gc-md4: Fix recent regression.
6292         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6293         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6294
6295         crypto/gc-arctwo: Fix recent regression.
6296         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6297         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6298
6299         crypto/gc-rijndael: Fix recent regression.
6300         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6301         (configure.ac): Invoke AC_LIBOBJ here.
6302         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6304
6305         crypto/gc-hmac-sha1: Fix recent regression.
6306         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6307         (configure.ac): Invoke AC_LIBOBJ here.
6308         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6310
6311         crypto/gc-hmac-md5: Fix recent regression.
6312         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6313         (configure.ac): Invoke AC_LIBOBJ here.
6314         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6316
6317         crypto/gc-des: Fix recent regression.
6318         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6319         (configure.ac): Invoke AC_LIBOBJ here.
6320         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6322
6323         crypto/gc-arcfour: Fix recent regression.
6324         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6325         (configure.ac): Invoke AC_LIBOBJ here.
6326         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6328
6329 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6330
6331         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6332         After the 2011-05-21 change, this macro requires
6333         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6335
6336 2011-06-16  Bruno Haible  <bruno@clisp.org>
6337
6338         fprintftime: Move AC_LIBOBJ invocations to module description.
6339         * m4/fprintftime.m4: Remove file.
6340         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6341         (configure.ac): Remove gl_FPRINTFTIME call.
6342         (Makefile.am): Augment lib_SOURCES.
6343         Reported by Jim Meyering.
6344
6345 2011-06-16  Bruno Haible  <bruno@clisp.org>
6346
6347         tmpfile-safer: Finish 2011-05-23 commit.
6348         * m4/stdio-safer.m4: Really remove file.
6349         Reported by Jim Meyering.
6350
6351 2011-06-16  Bruno Haible  <bruno@clisp.org>
6352
6353         syntax-check: Fix typo.
6354         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6355         printf-posix.m4.
6356         Reported by Jim Meyering.
6357
6358 2011-06-13  Jim Meyering  <meyering@redhat.com>
6359
6360         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6361         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6362
6363 2011-05-23  Bruno Haible  <bruno@clisp.org>
6364
6365         yesno: Move AC_LIBOBJ invocations to module description.
6366         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6367         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6368
6369 2011-05-23  Bruno Haible  <bruno@clisp.org>
6370
6371         xstrtol: Move AC_LIBOBJ invocations to module description.
6372         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6373         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6374
6375 2011-05-23  Bruno Haible  <bruno@clisp.org>
6376
6377         xstrtold: Move AC_LIBOBJ invocations to module description.
6378         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6379         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6380
6381 2011-05-23  Bruno Haible  <bruno@clisp.org>
6382
6383         xstrtod: Move AC_LIBOBJ invocations to module description.
6384         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6385         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6386
6387 2011-05-23  Bruno Haible  <bruno@clisp.org>
6388
6389         xnanosleep: Move AC_LIBOBJ invocations to module description.
6390         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6391         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6392
6393 2011-05-23  Bruno Haible  <bruno@clisp.org>
6394
6395         xgetcwd: Move AC_LIBOBJ invocations to module description.
6396         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6397         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6398
6399 2011-05-23  Bruno Haible  <bruno@clisp.org>
6400
6401         xalloc: Move AC_LIBOBJ invocations to module description.
6402         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6403         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6404
6405 2011-05-23  Bruno Haible  <bruno@clisp.org>
6406
6407         write-any-file: Move AC_LIBOBJ invocations to module description.
6408         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6409         invocation.
6410         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6411
6412 2011-05-23  Bruno Haible  <bruno@clisp.org>
6413
6414         utimens: Move AC_LIBOBJ invocations to module description.
6415         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6416         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6417
6418 2011-05-23  Bruno Haible  <bruno@clisp.org>
6419
6420         utimecmp: Move AC_LIBOBJ invocations to module description.
6421         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6422         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6423
6424 2011-05-23  Bruno Haible  <bruno@clisp.org>
6425
6426         userspec: Move AC_LIBOBJ invocations to module description.
6427         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6428         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6429
6430 2011-05-23  Bruno Haible  <bruno@clisp.org>
6431
6432         unlinkdir: Move AC_LIBOBJ invocations to module description.
6433         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6434         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6435
6436 2011-05-23  Bruno Haible  <bruno@clisp.org>
6437
6438         unistd-safer: Move AC_LIBOBJ invocations to module description.
6439         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6440         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6441
6442 2011-05-23  Bruno Haible  <bruno@clisp.org>
6443
6444         tempname: Move AC_LIBOBJ invocations to module description.
6445         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6446         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6447
6448 2011-05-23  Bruno Haible  <bruno@clisp.org>
6449
6450         strftime: Move AC_LIBOBJ invocations to module description.
6451         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6452         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6453
6454 2011-05-23  Bruno Haible  <bruno@clisp.org>
6455
6456         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6457         * m4/stdlib-safer.m4: Remove file.
6458         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6459         (configure.ac): Remove gl_STDLIB_SAFER call.
6460         (Makefile.am): Augment lib_SOURCES.
6461
6462 2011-05-23  Bruno Haible  <bruno@clisp.org>
6463
6464         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6465         * m4/stdio-safer.m4: Remove file.
6466         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6467         (configure.ac): Remove gl_TMPFILE_SAFER call.
6468         (Makefile.am): Augment lib_SOURCES.
6469
6470 2011-05-23  Bruno Haible  <bruno@clisp.org>
6471
6472         popen-safer: Move AC_LIBOBJ invocations to module description.
6473         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6474         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6475         (configure.ac): Remove gl_POPEN_SAFER call.
6476         (Makefile.am): Augment lib_SOURCES.
6477
6478 2011-05-23  Bruno Haible  <bruno@clisp.org>
6479
6480         freopen-safer: Move AC_LIBOBJ invocations to module description.
6481         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6482         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6483         (configure.ac): Remove gl_FREOPEN_SAFER call.
6484         (Makefile.am): Augment lib_SOURCES.
6485
6486 2011-05-23  Bruno Haible  <bruno@clisp.org>
6487
6488         fopen-safer: Move AC_LIBOBJ invocations to module description.
6489         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6490         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6491         (configure.ac): Remove gl_FOPEN_SAFER call.
6492         (Makefile.am): Augment lib_SOURCES.
6493
6494 2011-05-23  Bruno Haible  <bruno@clisp.org>
6495
6496         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6497         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6498         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6499
6500 2011-05-23  Bruno Haible  <bruno@clisp.org>
6501
6502         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6503         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6504         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6505
6506 2011-05-23  Bruno Haible  <bruno@clisp.org>
6507
6508         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6509         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6510         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6511
6512 2011-05-23  Bruno Haible  <bruno@clisp.org>
6513
6514         settime: Move AC_LIBOBJ invocations to module description.
6515         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6516         * modules/settime (Makefile.am): Augment lib_SOURCES.
6517
6518 2011-05-23  Bruno Haible  <bruno@clisp.org>
6519
6520         savedir: Move AC_LIBOBJ invocations to module description.
6521         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6522         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6523
6524 2011-05-23  Bruno Haible  <bruno@clisp.org>
6525
6526         save-cwd: Move AC_LIBOBJ invocations to module description.
6527         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6528         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6529
6530 2011-05-23  Bruno Haible  <bruno@clisp.org>
6531
6532         same: Move AC_LIBOBJ invocations to module description.
6533         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6534         * modules/same (Makefile.am): Augment lib_SOURCES.
6535
6536 2011-05-23  Bruno Haible  <bruno@clisp.org>
6537
6538         safe-write: Move AC_LIBOBJ invocations to module description.
6539         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6540         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6541         instead of gl_SAFE_WRITE.
6542         (Makefile.am): Augment lib_SOURCES.
6543
6544 2011-05-23  Bruno Haible  <bruno@clisp.org>
6545
6546         safe-read: Move AC_LIBOBJ invocations to module description.
6547         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6548         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6549         of gl_SAFE_READ.
6550         (Makefile.am): Augment lib_SOURCES.
6551
6552 2011-05-23  Bruno Haible  <bruno@clisp.org>
6553
6554         safe-alloc: Move AC_LIBOBJ invocations to module description.
6555         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6556         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6557
6558 2011-05-23  Bruno Haible  <bruno@clisp.org>
6559
6560         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6561         * m4/rijndael.m4: Remove file.
6562         * modules/crypto/rijndael (Files): Remove it.
6563         (configure.ac): Remove gl_RIJNDAEL call.
6564         (Makefile.am): Augment lib_SOURCES.
6565
6566 2011-05-23  Bruno Haible  <bruno@clisp.org>
6567
6568         readtokens: Move AC_LIBOBJ invocations to module description.
6569         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6570         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6571
6572 2011-05-23  Bruno Haible  <bruno@clisp.org>
6573
6574         read-file: Move AC_LIBOBJ invocations to module description.
6575         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6576         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6577         of gl_FUNC_READ_FILE.
6578         (Makefile.am): Augment lib_SOURCES.
6579
6580 2011-05-23  Bruno Haible  <bruno@clisp.org>
6581
6582         quotearg: Move AC_LIBOBJ invocations to module description.
6583         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6584         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6585
6586 2011-05-23  Bruno Haible  <bruno@clisp.org>
6587
6588         quote: Move AC_LIBOBJ invocations to module description.
6589         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6590         * modules/quote (Makefile.am): Augment lib_SOURCES.
6591
6592 2011-05-23  Bruno Haible  <bruno@clisp.org>
6593
6594         posixver: Move AC_LIBOBJ invocations to module description.
6595         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6596         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6597
6598 2011-05-23  Bruno Haible  <bruno@clisp.org>
6599
6600         posixtm: Move AC_LIBOBJ invocations to module description.
6601         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6602         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6603
6604 2011-05-23  Bruno Haible  <bruno@clisp.org>
6605
6606         physmem: Move AC_LIBOBJ invocations to module description.
6607         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6608         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6609
6610 2011-05-23  Bruno Haible  <bruno@clisp.org>
6611
6612         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6613         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6614         invocation.
6615         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6616
6617 2011-05-23  Bruno Haible  <bruno@clisp.org>
6618
6619         mpsort: Move AC_LIBOBJ invocations to module description.
6620         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6621         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6622
6623 2011-05-23  Bruno Haible  <bruno@clisp.org>
6624
6625         modechange: Move AC_LIBOBJ invocations to module description.
6626         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6627         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6628
6629 2011-05-23  Bruno Haible  <bruno@clisp.org>
6630
6631         mkdir-p: Move AC_LIBOBJ invocations to module description.
6632         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6633         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6634
6635 2011-05-23  Bruno Haible  <bruno@clisp.org>
6636
6637         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6638         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6639         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6640
6641 2011-05-23  Bruno Haible  <bruno@clisp.org>
6642
6643         mgetgroups: Move AC_LIBOBJ invocations to module description.
6644         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6645         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6646
6647 2011-05-23  Bruno Haible  <bruno@clisp.org>
6648
6649         memxor: Move AC_LIBOBJ invocations to module description.
6650         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6651         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6652
6653 2011-05-23  Bruno Haible  <bruno@clisp.org>
6654
6655         memcoll: Move AC_LIBOBJ invocations to module description.
6656         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6657         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6658
6659 2011-05-23  Bruno Haible  <bruno@clisp.org>
6660
6661         memcasecmp: Move AC_LIBOBJ invocations to module description.
6662         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6663         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6664
6665 2011-05-23  Bruno Haible  <bruno@clisp.org>
6666
6667         crypto/md5: Move AC_LIBOBJ invocations to module description.
6668         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6669         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6670
6671 2011-05-23  Bruno Haible  <bruno@clisp.org>
6672
6673         crypto/md4: Move AC_LIBOBJ invocations to module description.
6674         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6675         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6676
6677 2011-05-23  Bruno Haible  <bruno@clisp.org>
6678
6679         crypto/md2: Move AC_LIBOBJ invocations to module description.
6680         * m4/md2.m4: Remove file.
6681         * modules/crypto/md2 (Files): Remove it.
6682         (configure.ac): Remove gl_MD2 call.
6683         (Makefile.am): Augment lib_SOURCES.
6684
6685 2011-05-23  Bruno Haible  <bruno@clisp.org>
6686
6687         long-options: Move AC_LIBOBJ invocations to module description.
6688         * m4/long-options.m4: Remove file.
6689         * modules/long-options (Files): Remove it.
6690         (configure.ac): Remove gl_LONG_OPTIONS call.
6691         (Makefile.am): Augment lib_SOURCES.
6692
6693 2011-05-23  Bruno Haible  <bruno@clisp.org>
6694
6695         i-ring: Move AC_LIBOBJ invocations to module description.
6696         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6697         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6698
6699 2011-05-23  Bruno Haible  <bruno@clisp.org>
6700
6701         idcache: Move AC_LIBOBJ invocations to module description.
6702         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6703         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6704
6705 2011-05-23  Bruno Haible  <bruno@clisp.org>
6706
6707         human: Move AC_LIBOBJ invocations to module description.
6708         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6709         * modules/human (Makefile.am): Augment lib_SOURCES.
6710
6711 2011-05-23  Bruno Haible  <bruno@clisp.org>
6712
6713         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6714         * m4/hmac-sha1.m4: Remove file.
6715         * modules/crypto/hmac-sha1 (Files): Remove it.
6716         (configure.ac): Remove gl_HMAC_SHA1 call.
6717         (Makefile.am): Augment lib_SOURCES.
6718
6719 2011-05-23  Bruno Haible  <bruno@clisp.org>
6720
6721         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6722         * m4/hmac-md5.m4: Remove file.
6723         * modules/crypto/hmac-md5 (Files): Remove it.
6724         (configure.ac): Remove gl_HMAC_MD5 call.
6725         (Makefile.am): Augment lib_SOURCES.
6726
6727 2011-05-23  Bruno Haible  <bruno@clisp.org>
6728
6729         hash: Move AC_LIBOBJ invocations to module description.
6730         * m4/hash.m4: Remove file.
6731         * modules/hash (Files): Remove it.
6732         (configure.ac): Remove gl_HASH call.
6733         (Makefile.am): Augment lib_SOURCES.
6734
6735 2011-05-23  Bruno Haible  <bruno@clisp.org>
6736
6737         hard-locale: Move AC_LIBOBJ invocations to module description.
6738         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6739         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6740
6741 2011-05-23  Bruno Haible  <bruno@clisp.org>
6742
6743         getugroups: Move AC_LIBOBJ invocations to module description.
6744         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6745         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6746
6747 2011-05-23  Bruno Haible  <bruno@clisp.org>
6748
6749         gettime: Move AC_LIBOBJ invocations to module description.
6750         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6751         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6752
6753 2011-05-23  Bruno Haible  <bruno@clisp.org>
6754
6755         getndelim2: Move AC_LIBOBJ invocations to module description.
6756         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6757         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6758
6759 2011-05-23  Bruno Haible  <bruno@clisp.org>
6760
6761         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6762         * m4/gc-pbkdf2-sha1.m4: Remove file.
6763         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6764         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6765         (Makefile.am): Augment lib_SOURCES.
6766
6767 2011-05-23  Bruno Haible  <bruno@clisp.org>
6768
6769         fts: Move AC_LIBOBJ invocations to module description.
6770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6771         * modules/fts (configure.ac): ... to here.
6772
6773 2011-05-23  Bruno Haible  <bruno@clisp.org>
6774
6775         file-type: Move AC_LIBOBJ invocations to module description.
6776         * m4/file-type.m4: Remove file.
6777         * modules/file-type (Files): Remove it.
6778         (configure.ac): Remove gl_FILE_TYPE call.
6779         (Makefile.am): Augment lib_SOURCES.
6780
6781 2011-05-23  Bruno Haible  <bruno@clisp.org>
6782
6783         filenamecat*: Respect rules for use of AC_LIBOBJ.
6784         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6785         Remove AC_LIBOBJ invocation.
6786         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6787         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6788
6789 2011-05-23  Bruno Haible  <bruno@clisp.org>
6790
6791         filemode: Move AC_LIBOBJ invocations to module description.
6792         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6793         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6794
6795 2011-05-23  Bruno Haible  <bruno@clisp.org>
6796
6797         openat-safer: Move AC_LIBOBJ invocations to module description.
6798         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6799         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6800
6801 2011-05-23  Bruno Haible  <bruno@clisp.org>
6802
6803         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6804         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6805         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6806
6807 2011-05-23  Bruno Haible  <bruno@clisp.org>
6808
6809         exclude: Move AC_LIBOBJ invocations to module description.
6810         * m4/exclude.m4: Remove file.
6811         * modules/exclude (Files): Remove it.
6812         (configure.ac): Remove gl_EXCLUDE call.
6813         (Makefile.am): Augment lib_SOURCES.
6814
6815 2011-05-23  Bruno Haible  <bruno@clisp.org>
6816
6817         dirname*: Respect rules for use of AC_LIBOBJ.
6818         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6819         invocations.
6820         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6821         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6822
6823 2011-05-23  Bruno Haible  <bruno@clisp.org>
6824
6825         dirent-safer: Move AC_LIBOBJ invocations to module description.
6826         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6827         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6828
6829 2011-05-23  Bruno Haible  <bruno@clisp.org>
6830
6831         crypto/des: Move AC_LIBOBJ invocations to module description.
6832         * m4/des.m4: Remove file.
6833         * modules/crypto/des (Files): Remove it.
6834         (configure.ac): Remove gl_DES call.
6835         (Makefile.am): Augment lib_SOURCES.
6836
6837 2011-05-23  Bruno Haible  <bruno@clisp.org>
6838
6839         cycle-check: Move AC_LIBOBJ invocations to module description.
6840         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6841         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6842
6843 2011-05-23  Bruno Haible  <bruno@clisp.org>
6844
6845         c-strtold: Move AC_LIBOBJ invocations to module description.
6846         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6847         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6848
6849 2011-05-23  Bruno Haible  <bruno@clisp.org>
6850
6851         c-strtod: Move AC_LIBOBJ invocations to module description.
6852         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6853         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6854
6855 2011-05-23  Bruno Haible  <bruno@clisp.org>
6856
6857         crc: Move AC_LIBOBJ invocations to module description.
6858         * m4/crc.m4: Remove file.
6859         * modules/crc (Files): Remove it.
6860         (configure.ac): Remove gl_CRC call.
6861         (Makefile.am): Augment lib_SOURCES.
6862
6863 2011-05-23  Bruno Haible  <bruno@clisp.org>
6864
6865         close-stream: Move AC_LIBOBJ invocations to module description.
6866         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6867         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6868
6869 2011-05-23  Bruno Haible  <bruno@clisp.org>
6870
6871         closeout: Move AC_LIBOBJ invocations to module description.
6872         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6873         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6874
6875 2011-05-23  Bruno Haible  <bruno@clisp.org>
6876
6877         closein: Move AC_LIBOBJ invocations to module description.
6878         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6879         * modules/closein (Makefile.am): Augment lib_SOURCES.
6880
6881 2011-05-23  Bruno Haible  <bruno@clisp.org>
6882
6883         cloexec: Move AC_LIBOBJ invocations to module description.
6884         * m4/cloexec.m4: Remove file.
6885         * modules/cloexec (Files): Remove it.
6886         (configure.ac): Remove gl_CLOEXEC call.
6887         (Makefile.am): Augment lib_SOURCES.
6888
6889 2011-05-23  Bruno Haible  <bruno@clisp.org>
6890
6891         check-version: Move AC_LIBOBJ invocations to module description.
6892         * m4/check-version.m4: Remove file.
6893         * modules/check-version (Files): Remove it.
6894         (configure.ac): Remove gl_CHECK_VERSION call.
6895         (Makefile.am): Augment lib_SOURCES.
6896
6897 2011-05-23  Bruno Haible  <bruno@clisp.org>
6898
6899         chdir-safer: Move AC_LIBOBJ invocations to module description.
6900         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6901         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6902
6903 2011-05-23  Bruno Haible  <bruno@clisp.org>
6904
6905         canonicalize: Move AC_LIBOBJ invocations to module description.
6906         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6907         AC_LIBOBJ invocation.
6908         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6909
6910 2011-05-23  Bruno Haible  <bruno@clisp.org>
6911
6912         canon-host: Move AC_LIBOBJ invocations to module description.
6913         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6914         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6915         instead of gl_CANON_HOST.
6916         (Makefile.am): Augment lib_SOURCES.
6917
6918 2011-05-23  Bruno Haible  <bruno@clisp.org>
6919
6920         backupfile: Move AC_LIBOBJ invocations to module description.
6921         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6922         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6923
6924 2011-05-23  Bruno Haible  <bruno@clisp.org>
6925
6926         argmatch: Move AC_LIBOBJ invocations to module description.
6927         * m4/argmatch.m4: Remove file.
6928         * modules/argmatch (Files): Remove it.
6929         (configure.ac): Remove gl_ARGMATCH call.
6930         (Makefile.am): Augment lib_SOURCES.
6931
6932 2011-05-23  Bruno Haible  <bruno@clisp.org>
6933
6934         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6935         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6936         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6937
6938 2011-05-23  Bruno Haible  <bruno@clisp.org>
6939
6940         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6941         * m4/arcfour.m4: Remove file.
6942         * modules/crypto/arcfour (Files): Remove it.
6943         (configure.ac): Remove gl_ARCFOUR call.
6944         (Makefile.am): Augment lib_SOURCES.
6945
6946 2011-05-22  Bruno Haible  <bruno@clisp.org>
6947
6948         write: Move AC_LIBOBJ invocations to module description.
6949         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6950         * modules/write (configure.ac): ... to here.
6951
6952 2011-05-22  Bruno Haible  <bruno@clisp.org>
6953
6954         wmemset: Move AC_LIBOBJ invocations to module description.
6955         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6956         here...
6957         * modules/wmemset (configure.ac): ... to here.
6958
6959 2011-05-22  Bruno Haible  <bruno@clisp.org>
6960
6961         wmemmove: Move AC_LIBOBJ invocations to module description.
6962         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6963         here...
6964         * modules/wmemmove (configure.ac): ... to here.
6965
6966 2011-05-22  Bruno Haible  <bruno@clisp.org>
6967
6968         wmemcpy: Move AC_LIBOBJ invocations to module description.
6969         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6970         here...
6971         * modules/wmemcpy (configure.ac): ... to here.
6972
6973 2011-05-22  Bruno Haible  <bruno@clisp.org>
6974
6975         wmemcmp: Move AC_LIBOBJ invocations to module description.
6976         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6977         here...
6978         * modules/wmemcmp (configure.ac): ... to here.
6979
6980 2011-05-22  Bruno Haible  <bruno@clisp.org>
6981
6982         wmemchr: Move AC_LIBOBJ invocations to module description.
6983         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6984         here...
6985         * modules/wmemchr (configure.ac): ... to here.
6986
6987 2011-05-22  Bruno Haible  <bruno@clisp.org>
6988
6989         wcswidth: Move AC_LIBOBJ invocations to module description.
6990         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6991         here...
6992         * modules/wcswidth (configure.ac): ... to here.
6993
6994 2011-05-22  Bruno Haible  <bruno@clisp.org>
6995
6996         wcwidth: Respect rules for use of AC_LIBOBJ.
6997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6998         invocation from here...
6999         * modules/wcwidth (configure.ac): ... to here.
7000         (Depends-on): Update conditions.
7001
7002 2011-05-22  Bruno Haible  <bruno@clisp.org>
7003
7004         wctype: Move AC_LIBOBJ invocations to module description.
7005         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7006         invocation from here...
7007         * modules/wctype (configure.ac): ... to here.
7008         (Depends-on): Update conditions.
7009
7010 2011-05-22  Bruno Haible  <bruno@clisp.org>
7011
7012         wctrans: Move AC_LIBOBJ invocations to module description.
7013         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7014         invocation from here...
7015         * modules/wctrans (configure.ac): ... to here.
7016
7017 2011-05-22  Bruno Haible  <bruno@clisp.org>
7018
7019         wctomb: Move AC_LIBOBJ invocations to module description.
7020         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7021         invocations from here...
7022         * modules/wctomb (configure.ac): ... to here.
7023
7024 2011-05-22  Bruno Haible  <bruno@clisp.org>
7025
7026         wctob: Move AC_LIBOBJ invocations to module description.
7027         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7028         gl_PREREQ_WCTOB invocations from here...
7029         * modules/wctob (configure.ac): ... to here.
7030         (Depends-on): Update conditions.
7031
7032 2011-05-22  Bruno Haible  <bruno@clisp.org>
7033
7034         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7035         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7036         here...
7037         * modules/wcsxfrm (configure.ac): ... to here.
7038
7039 2011-05-22  Bruno Haible  <bruno@clisp.org>
7040
7041         wcstok: Move AC_LIBOBJ invocations to module description.
7042         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7043         * modules/wcstok (configure.ac): ... to here.
7044
7045 2011-05-22  Bruno Haible  <bruno@clisp.org>
7046
7047         wcsstr: Move AC_LIBOBJ invocations to module description.
7048         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7049         * modules/wcsstr (configure.ac): ... to here.
7050
7051 2011-05-22  Bruno Haible  <bruno@clisp.org>
7052
7053         wcsspn: Move AC_LIBOBJ invocations to module description.
7054         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7055         * modules/wcsspn (configure.ac): ... to here.
7056
7057 2011-05-22  Bruno Haible  <bruno@clisp.org>
7058
7059         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7060         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7061         gl_PREREQ_WCSRTOMBS invocations from here...
7062         * modules/wcsrtombs (configure.ac): ... to here.
7063
7064 2011-05-22  Bruno Haible  <bruno@clisp.org>
7065
7066         wcsrchr: Move AC_LIBOBJ invocations to module description.
7067         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7068         here...
7069         * modules/wcsrchr (configure.ac): ... to here.
7070
7071 2011-05-22  Bruno Haible  <bruno@clisp.org>
7072
7073         wcspbrk: Move AC_LIBOBJ invocations to module description.
7074         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7075         here...
7076         * modules/wcspbrk (configure.ac): ... to here.
7077
7078 2011-05-22  Bruno Haible  <bruno@clisp.org>
7079
7080         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7081         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7082         gl_PREREQ_WCSNRTOMBS invocations from here...
7083         * modules/wcsnrtombs (configure.ac): ... to here.
7084
7085 2011-05-22  Bruno Haible  <bruno@clisp.org>
7086
7087         wcsnlen: Move AC_LIBOBJ invocations to module description.
7088         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7089         here...
7090         * modules/wcsnlen (configure.ac): ... to here.
7091
7092 2011-05-22  Bruno Haible  <bruno@clisp.org>
7093
7094         wcsncpy: Move AC_LIBOBJ invocations to module description.
7095         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7096         here...
7097         * modules/wcsncpy (configure.ac): ... to here.
7098
7099 2011-05-22  Bruno Haible  <bruno@clisp.org>
7100
7101         wcsncmp: Move AC_LIBOBJ invocations to module description.
7102         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7103         here...
7104         * modules/wcsncmp (configure.ac): ... to here.
7105
7106 2011-05-22  Bruno Haible  <bruno@clisp.org>
7107
7108         wcsncat: Move AC_LIBOBJ invocations to module description.
7109         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7110         here...
7111         * modules/wcsncat (configure.ac): ... to here.
7112
7113 2011-05-22  Bruno Haible  <bruno@clisp.org>
7114
7115         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7116         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7117         from here...
7118         * modules/wcsncasecmp (configure.ac): ... to here.
7119
7120 2011-05-22  Bruno Haible  <bruno@clisp.org>
7121
7122         wcslen: Move AC_LIBOBJ invocations to module description.
7123         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7124         * modules/wcslen (configure.ac): ... to here.
7125
7126 2011-05-22  Bruno Haible  <bruno@clisp.org>
7127
7128         wcsdup: Move AC_LIBOBJ invocations to module description.
7129         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7130         * modules/wcsdup (configure.ac): ... to here.
7131
7132 2011-05-22  Bruno Haible  <bruno@clisp.org>
7133
7134         wcscspn: Move AC_LIBOBJ invocations to module description.
7135         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7136         here...
7137         * modules/wcscspn (configure.ac): ... to here.
7138
7139 2011-05-22  Bruno Haible  <bruno@clisp.org>
7140
7141         wcscpy: Move AC_LIBOBJ invocations to module description.
7142         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7143         * modules/wcscpy (configure.ac): ... to here.
7144
7145 2011-05-22  Bruno Haible  <bruno@clisp.org>
7146
7147         wcscoll: Move AC_LIBOBJ invocations to module description.
7148         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7149         here...
7150         * modules/wcscoll (configure.ac): ... to here.
7151
7152 2011-05-22  Bruno Haible  <bruno@clisp.org>
7153
7154         wcscmp: Move AC_LIBOBJ invocations to module description.
7155         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7156         * modules/wcscmp (configure.ac): ... to here.
7157
7158 2011-05-22  Bruno Haible  <bruno@clisp.org>
7159
7160         wcschr: Move AC_LIBOBJ invocations to module description.
7161         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7162         * modules/wcschr (configure.ac): ... to here.
7163
7164 2011-05-22  Bruno Haible  <bruno@clisp.org>
7165
7166         wcscat: Move AC_LIBOBJ invocations to module description.
7167         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7168         * modules/wcscat (configure.ac): ... to here.
7169
7170 2011-05-22  Bruno Haible  <bruno@clisp.org>
7171
7172         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7173         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7174         here...
7175         * modules/wcscasecmp (configure.ac): ... to here.
7176
7177 2011-05-22  Bruno Haible  <bruno@clisp.org>
7178
7179         wcrtomb: Move AC_LIBOBJ invocations to module description.
7180         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7181         invocations from here...
7182         * modules/wcrtomb (configure.ac): ... to here.
7183
7184 2011-05-22  Bruno Haible  <bruno@clisp.org>
7185
7186         wcpncpy: Move AC_LIBOBJ invocations to module description.
7187         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7188         here...
7189         * modules/wcpncpy (configure.ac): ... to here.
7190
7191 2011-05-22  Bruno Haible  <bruno@clisp.org>
7192
7193         wcpcpy: Move AC_LIBOBJ invocations to module description.
7194         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7195         * modules/wcpcpy (configure.ac): ... to here.
7196
7197 2011-05-22  Bruno Haible  <bruno@clisp.org>
7198
7199         waitpid: Move AC_LIBOBJ invocations to module description.
7200         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7201         invocation from here...
7202         * modules/waitpid (configure.ac): ... to here.
7203
7204 2011-05-22  Bruno Haible  <bruno@clisp.org>
7205
7206         utimensat: Move AC_LIBOBJ invocations to module description.
7207         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7208         here...
7209         * modules/utimensat (configure.ac): ... to here.
7210
7211 2011-05-22  Bruno Haible  <bruno@clisp.org>
7212
7213         usleep: Move AC_LIBOBJ invocations to module description.
7214         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7215         here...
7216         * modules/usleep (configure.ac): ... to here.
7217
7218 2011-05-22  Bruno Haible  <bruno@clisp.org>
7219
7220         unlockpt: Move AC_LIBOBJ invocations to module description.
7221         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7222         gl_PREREQ_UNLOCKPT invocations from here...
7223         * modules/unlockpt (configure.ac): ... to here.
7224
7225 2011-05-22  Bruno Haible  <bruno@clisp.org>
7226
7227         unlink: Respect rules for use of AC_LIBOBJ.
7228         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7229         * modules/unlink (configure.ac): ... to here.
7230
7231 2011-05-22  Bruno Haible  <bruno@clisp.org>
7232
7233         uname: Move AC_LIBOBJ invocations to module description.
7234         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7236         here...
7237         * modules/uname (configure.ac): ... to here.
7238
7239 2011-05-22  Bruno Haible  <bruno@clisp.org>
7240
7241         ttyname_r: Move AC_LIBOBJ invocations to module description.
7242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7243         gl_PREREQ_TTYNAME_R invocations from here...
7244         * modules/ttyname_r (configure.ac): ... to here.
7245
7246 2011-05-22  Bruno Haible  <bruno@clisp.org>
7247
7248         tsearch: Move AC_LIBOBJ invocations to module description.
7249         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7250         invocations from here...
7251         * modules/tsearch (configure.ac): ... to here.
7252
7253 2011-05-22  Bruno Haible  <bruno@clisp.org>
7254
7255         towctrans: Move AC_LIBOBJ invocations to module description.
7256         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7257         AC_LIBOBJ invocation from here...
7258         * modules/towctrans (configure.ac): ... to here.
7259
7260 2011-05-22  Bruno Haible  <bruno@clisp.org>
7261
7262         tmpfile: Move AC_LIBOBJ invocations to module description.
7263         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7264         invocations from here...
7265         * modules/tmpfile (configure.ac): ... to here.
7266
7267 2011-05-22  Bruno Haible  <bruno@clisp.org>
7268
7269         times: Move AC_LIBOBJ invocations to module description.
7270         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7271         * modules/times (configure.ac): ... to here.
7272
7273 2011-05-22  Bruno Haible  <bruno@clisp.org>
7274
7275         time_r: Move AC_LIBOBJ invocations to module description.
7276         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7277         invocations from here...
7278         * modules/time_r (configure.ac): ... to here.
7279
7280 2011-05-22  Bruno Haible  <bruno@clisp.org>
7281
7282         timegm: Move AC_LIBOBJ invocations to module description.
7283         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7284         invocations from here...
7285         * modules/timegm (configure.ac): ... to here.
7286
7287 2011-05-22  Bruno Haible  <bruno@clisp.org>
7288
7289         tcgetsid: Move AC_LIBOBJ invocations to module description.
7290         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7291         and gl_PREREQ_TCGETSID invocations from here...
7292         * modules/tcgetsid (configure.ac): ... to here.
7293         (Depends-on): Update conditions.
7294
7295 2011-05-22  Bruno Haible  <bruno@clisp.org>
7296
7297         symlinkat: Move AC_LIBOBJ invocations to module description.
7298         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7299         here...
7300         * modules/symlinkat (configure.ac): ... to here.
7301
7302 2011-05-22  Bruno Haible  <bruno@clisp.org>
7303
7304         symlink: Move AC_LIBOBJ invocations to module description.
7305         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7306         here...
7307         * modules/symlink (configure.ac): ... to here.
7308
7309 2011-05-22  Bruno Haible  <bruno@clisp.org>
7310
7311         strverscmp: Move AC_LIBOBJ invocations to module description.
7312         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7314         from here...
7315         * modules/strverscmp (configure.ac): ... to here.
7316
7317 2011-05-22  Bruno Haible  <bruno@clisp.org>
7318
7319         strtok_r: Move AC_LIBOBJ invocations to module description.
7320         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7321         and gl_PREREQ_STRTOK_R invocations from here...
7322         * modules/strtok_r (configure.ac): ... to here.
7323         (Depends-on): Update conditions.
7324
7325 2011-05-22  Bruno Haible  <bruno@clisp.org>
7326
7327         strtoumax: Move AC_LIBOBJ invocations to module description.
7328         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7330         from here...
7331         * modules/strtoumax (configure.ac): ... to here.
7332
7333 2011-05-22  Bruno Haible  <bruno@clisp.org>
7334
7335         strtoimax: Move AC_LIBOBJ invocations to module description.
7336         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7338         from here...
7339         * modules/strtoimax (configure.ac): ... to here.
7340
7341 2011-05-22  Bruno Haible  <bruno@clisp.org>
7342
7343         strtoull: Move AC_LIBOBJ invocations to module description.
7344         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7346         from here...
7347         * modules/strtoull (configure.ac): ... to here.
7348
7349 2011-05-22  Bruno Haible  <bruno@clisp.org>
7350
7351         strtoll: Move AC_LIBOBJ invocations to module description.
7352         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7354         here...
7355         * modules/strtoll (configure.ac): ... to here.
7356
7357 2011-05-22  Bruno Haible  <bruno@clisp.org>
7358
7359         strtoul: Move AC_LIBOBJ invocations to module description.
7360         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7361         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7362         * modules/strtoul (configure.ac): ... to here.
7363
7364 2011-05-22  Bruno Haible  <bruno@clisp.org>
7365
7366         strtol: Move AC_LIBOBJ invocations to module description.
7367         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7368         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7369         * modules/strtol (configure.ac): ... to here.
7370
7371 2011-05-22  Bruno Haible  <bruno@clisp.org>
7372
7373         strtod: Move AC_LIBOBJ invocations to module description.
7374         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7375         invocations from here...
7376         * modules/strtod (configure.ac): ... to here.
7377
7378 2011-05-22  Bruno Haible  <bruno@clisp.org>
7379
7380         strstr*: Move AC_LIBOBJ invocations to module description.
7381         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7382         invocations from here...
7383         * modules/strstr-simple (configure.ac): ... to here.
7384         * modules/strstr (configure.ac): ... and here.
7385
7386 2011-05-22  Bruno Haible  <bruno@clisp.org>
7387
7388         strsignal: Move AC_LIBOBJ invocations to module description.
7389         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7390         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7391         * modules/strsignal (configure.ac): ... to here.
7392         (Depends-on): Update conditions.
7393
7394 2011-05-22  Bruno Haible  <bruno@clisp.org>
7395
7396         strsep: Move AC_LIBOBJ invocations to module description.
7397         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7399         here...
7400         * modules/strsep (configure.ac): ... to here.
7401
7402 2011-05-22  Bruno Haible  <bruno@clisp.org>
7403
7404         strptime: Move AC_LIBOBJ invocations to module description.
7405         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7406         gl_PREREQ_STRPTIME invocations from here...
7407         * modules/strptime (configure.ac): ... to here.
7408
7409 2011-05-22  Bruno Haible  <bruno@clisp.org>
7410
7411         strpbrk: Move AC_LIBOBJ invocations to module description.
7412         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7414         here...
7415         * modules/strpbrk (configure.ac): ... to here.
7416
7417 2011-05-22  Bruno Haible  <bruno@clisp.org>
7418
7419         strnlen: Move AC_LIBOBJ invocations to module description.
7420         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7421         invocations from here...
7422         * modules/strnlen (configure.ac): ... to here.
7423
7424 2011-05-22  Bruno Haible  <bruno@clisp.org>
7425
7426         strndup: Move AC_LIBOBJ invocations to module description.
7427         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7428         invocations from here...
7429         * modules/strndup (configure.ac): ... to here.
7430         (Depends-on): Update conditions.
7431
7432 2011-05-22  Bruno Haible  <bruno@clisp.org>
7433
7434         strncat: Move AC_LIBOBJ invocations to module description.
7435         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7436         invocations from here...
7437         * modules/strncat (configure.ac): ... to here.
7438
7439 2011-05-22  Bruno Haible  <bruno@clisp.org>
7440
7441         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7442         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7443         invocations from here...
7444         * modules/strdup (configure.ac): ... to here.
7445         * modules/strdup-posix (configure.ac): ... and here.
7446
7447 2011-05-22  Bruno Haible  <bruno@clisp.org>
7448
7449         strcspn: Move AC_LIBOBJ invocations to module description.
7450         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7451         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7452         here...
7453         * modules/strcspn (configure.ac): ... to here.
7454
7455 2011-05-22  Bruno Haible  <bruno@clisp.org>
7456
7457         strchrnul: Move AC_LIBOBJ invocations to module description.
7458         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7459         gl_PREREQ_STRCHRNUL invocations from here...
7460         * modules/strchrnul (configure.ac): ... to here.
7461
7462 2011-05-22  Bruno Haible  <bruno@clisp.org>
7463
7464         strcasestr*: Move AC_LIBOBJ invocations to module description.
7465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7466         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7467         * modules/strcasestr-simple (configure.ac): ... to here.
7468         * modules/strcasestr (configure.ac): ... and here.
7469
7470 2011-05-22  Bruno Haible  <bruno@clisp.org>
7471
7472         strcase: Move AC_LIBOBJ invocations to module description.
7473         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7474         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7475         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7476         gl_PREREQ_STRNCASECMP invocations from here...
7477         * modules/strcase (configure.ac): ... to here.
7478
7479 2011-05-22  Bruno Haible  <bruno@clisp.org>
7480
7481         stpncpy: Move AC_LIBOBJ invocations to module description.
7482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7483         here...
7484         * modules/stpncpy (configure.ac): ... to here.
7485
7486 2011-05-22  Bruno Haible  <bruno@clisp.org>
7487
7488         stpcpy: Move AC_LIBOBJ invocations to module description.
7489         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7491         here...
7492         * modules/stpcpy (configure.ac): ... to here.
7493
7494 2011-05-21  Bruno Haible  <bruno@clisp.org>
7495
7496         stat: Move AC_LIBOBJ invocations to module description.
7497         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7498         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7499         here...
7500         * modules/stat (configure.ac): ... to here.
7501
7502 2011-05-21  Bruno Haible  <bruno@clisp.org>
7503
7504         sleep: Move AC_LIBOBJ invocations to module description.
7505         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7506         * modules/sleep (configure.ac): ... to here.
7507
7508 2011-05-21  Bruno Haible  <bruno@clisp.org>
7509
7510         signbit: Move AC_LIBOBJ invocations to module description.
7511         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7512         * modules/signbit (configure.ac): ... to here.
7513
7514 2011-05-21  Bruno Haible  <bruno@clisp.org>
7515
7516         sigprocmask: Move AC_LIBOBJ invocations to module description.
7517         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7518         gl_PREREQ_SIGPROMASK invocations from here...
7519         * modules/sigprocmask (configure.ac): ... to here.
7520
7521 2011-05-21  Bruno Haible  <bruno@clisp.org>
7522
7523         sigaction: Move AC_LIBOBJ invocations to module description.
7524         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7525         gl_PREREQ_SIGACTION invocations from here...
7526         * modules/sigaction (configure.ac): ... to here.
7527
7528 2011-05-21  Bruno Haible  <bruno@clisp.org>
7529
7530         sig2str: Move AC_LIBOBJ invocations to module description.
7531         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7533         here...
7534         * modules/sig2str (configure.ac): ... to here.
7535
7536 2011-05-21  Bruno Haible  <bruno@clisp.org>
7537
7538         setlocale: Move AC_LIBOBJ invocations to module description.
7539         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7540         gl_PREREQ_SETLOCALE invocations from here...
7541         * modules/setlocale (configure.ac): ... to here.
7542
7543 2011-05-21  Bruno Haible  <bruno@clisp.org>
7544
7545         unsetenv: Move AC_LIBOBJ invocations to module description.
7546         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7547         and gl_PREREQ_UNSETENV invocations from here...
7548         * modules/unsetenv (configure.ac): ... to here.
7549         (Depends-on): Update.
7550
7551 2011-05-21  Bruno Haible  <bruno@clisp.org>
7552
7553         setenv: Move AC_LIBOBJ invocations to module description.
7554         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7555         here...
7556         * modules/setenv (configure.ac): ... to here.
7557
7558 2011-05-21  Bruno Haible  <bruno@clisp.org>
7559
7560         selinux-h: Move AC_LIBOBJ invocations to module description.
7561         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7562         AC_LIBOBJ invocation from here...
7563         * modules/selinux-h (configure.ac): ... to here.
7564
7565 2011-05-21  Bruno Haible  <bruno@clisp.org>
7566
7567         select: Respect rules for use of AC_LIBOBJ.
7568         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7569         here...
7570         * modules/select (configure.ac): ... to here.
7571
7572 2011-05-21  Bruno Haible  <bruno@clisp.org>
7573
7574         scandir: Move AC_LIBOBJ invocations to module description.
7575         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7576         invocations from here...
7577         * modules/scandir (configure.ac): ... to here.
7578
7579 2011-05-21  Bruno Haible  <bruno@clisp.org>
7580
7581         rpmatch: Move AC_LIBOBJ invocations to module description.
7582         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7584         here...
7585         * modules/rpmatch (configure.ac): ... to here.
7586
7587 2011-05-21  Bruno Haible  <bruno@clisp.org>
7588
7589         rmdir: Respect rules for use of AC_LIBOBJ.
7590         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7591         * modules/rmdir (configure.ac): ... to here.
7592
7593 2011-05-21  Bruno Haible  <bruno@clisp.org>
7594
7595         renameat: Move AC_LIBOBJ invocations to module description.
7596         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7597         here...
7598         * modules/renameat (configure.ac): ... to here.
7599
7600 2011-05-21  Bruno Haible  <bruno@clisp.org>
7601
7602         rename: Respect rules for use of AC_LIBOBJ.
7603         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7604         here...
7605         * modules/rename (configure.ac): ... to here.
7606
7607 2011-05-21  Bruno Haible  <bruno@clisp.org>
7608
7609         remove: Move AC_LIBOBJ invocations to module description.
7610         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7611         here...
7612         * modules/remove (configure.ac): ... to here.
7613
7614 2011-05-21  Bruno Haible  <bruno@clisp.org>
7615
7616         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7617         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7618         macro.
7619         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7620         * modules/relocatable-lib (configure.ac): ... to here.
7621         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7622         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7623
7624 2011-05-21  Bruno Haible  <bruno@clisp.org>
7625
7626         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7627         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7628         here...
7629         * modules/relocatable-prog (configure.ac): ... to here.
7630
7631 2011-05-21  Bruno Haible  <bruno@clisp.org>
7632
7633         regex: Move AC_LIBOBJ invocations to module description.
7634         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7635         invocations from here...
7636         * modules/regex (configure.ac): ... to here.
7637
7638 2011-05-21  Bruno Haible  <bruno@clisp.org>
7639
7640         realloc-*: Move AC_LIBOBJ invocations to module description.
7641         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7642         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7643         AC_LIBOBJ invocations from here...
7644         * modules/realloc-gnu (configure.ac): ... to here.
7645         * modules/realloc-posix (configure.ac): ... and here.
7646
7647 2011-05-21  Bruno Haible  <bruno@clisp.org>
7648
7649         readutmp: Move AC_LIBOBJ invocations to module description.
7650         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7651         * modules/readutmp (configure.ac): ... to here.
7652
7653 2011-05-21  Bruno Haible  <bruno@clisp.org>
7654
7655         readlinkat: Move AC_LIBOBJ invocations to module description.
7656         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7657         here...
7658         * modules/readlinkat (configure.ac): ... to here.
7659
7660 2011-05-21  Bruno Haible  <bruno@clisp.org>
7661
7662         readlink: Move AC_LIBOBJ invocations to module description.
7663         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7664         gl_PREREQ_READLINK invocations from here...
7665         * modules/readlink (configure.ac): ... to here.
7666
7667 2011-05-21  Bruno Haible  <bruno@clisp.org>
7668
7669         readline: Move AC_LIBOBJ invocations to module description.
7670         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7671         gl_PREREQ_READLINE invocations from here...
7672         * modules/readline (configure.ac): ... to here.
7673
7674 2011-05-21  Bruno Haible  <bruno@clisp.org>
7675
7676         read: Move AC_LIBOBJ invocations to module description.
7677         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7678         * modules/read (configure.ac): ... to here.
7679
7680 2011-05-21  Bruno Haible  <bruno@clisp.org>
7681
7682         rawmemchr: Move AC_LIBOBJ invocations to module description.
7683         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7685         from here...
7686         * modules/rawmemchr (configure.ac): ... to here.
7687
7688 2011-05-21  Bruno Haible  <bruno@clisp.org>
7689
7690         random_r: Move AC_LIBOBJ invocations to module description.
7691         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7692         gl_PREREQ_RANDOM_R invocations from here...
7693         * modules/random_r (configure.ac): ... to here.
7694
7695 2011-05-21  Bruno Haible  <bruno@clisp.org>
7696
7697         pwrite: Move AC_LIBOBJ invocations to module description.
7698         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7699         * modules/pwrite (configure.ac): ... to here.
7700
7701 2011-05-21  Bruno Haible  <bruno@clisp.org>
7702
7703         putenv: Move AC_LIBOBJ invocations to module description.
7704         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7705         * modules/putenv (configure.ac): ... to here.
7706
7707 2011-05-21  Bruno Haible  <bruno@clisp.org>
7708
7709         login_tty: Move AC_LIBOBJ invocations to module description.
7710         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7711         * modules/login_tty (configure.ac): ... to here.
7712
7713 2011-05-21  Bruno Haible  <bruno@clisp.org>
7714
7715         openpty: Move AC_LIBOBJ invocations to module description.
7716         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7717         * modules/openpty (configure.ac): ... to here.
7718
7719 2011-05-21  Bruno Haible  <bruno@clisp.org>
7720
7721         forkpty: Move AC_LIBOBJ invocations to module description.
7722         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7723         * modules/forkpty (configure.ac): ... to here.
7724
7725 2011-05-21  Bruno Haible  <bruno@clisp.org>
7726
7727         ptsname: Move AC_LIBOBJ invocations to module description.
7728         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7729         invocations from here...
7730         * modules/ptsname (configure.ac): ... to here.
7731
7732 2011-05-21  Bruno Haible  <bruno@clisp.org>
7733
7734         pread: Move AC_LIBOBJ invocations to module description.
7735         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7736         * modules/pread (configure.ac): ... to here.
7737
7738 2011-05-21  Bruno Haible  <bruno@clisp.org>
7739
7740         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7741         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7742         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7743         * modules/posix_spawn (configure.ac): ... to here.
7744         * modules/posix_spawnp (configure.ac): ... and here.
7745
7746 2011-05-21  Bruno Haible  <bruno@clisp.org>
7747
7748         popen: Move AC_LIBOBJ invocations to module description.
7749         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7750         invocations from here...
7751         * modules/popen (configure.ac): ... to here.
7752
7753 2011-05-21  Bruno Haible  <bruno@clisp.org>
7754
7755         poll: Move AC_LIBOBJ invocations to module description.
7756         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7757         invocations from here...
7758         * modules/poll (configure.ac): ... to here.
7759
7760 2011-05-21  Bruno Haible  <bruno@clisp.org>
7761
7762         pipe-posix: Move AC_LIBOBJ invocations to module description.
7763         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7764         * modules/pipe-posix (configure.ac): ... to here.
7765
7766 2011-05-21  Bruno Haible  <bruno@clisp.org>
7767
7768         openat: Respect rules for use of AC_LIBOBJ.
7769         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7770         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7771         * modules/openat (configure.ac): ... to here.
7772
7773 2011-05-21  Bruno Haible  <bruno@clisp.org>
7774
7775         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7776         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7777         invocation from here...
7778         * modules/obstack-printf (configure.ac): ... to here.
7779         * modules/obstack-printf-posix (configure.ac): ... and here.
7780
7781 2011-05-21  Bruno Haible  <bruno@clisp.org>
7782
7783         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7784         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7785         from here...
7786         * modules/nl_langinfo (configure.ac): ... to here.
7787
7788 2011-05-21  Bruno Haible  <bruno@clisp.org>
7789
7790         nanosleep: Move AC_LIBOBJ invocations to module description.
7791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7792         gl_PREREQ_NANOSLEEP invocations from here...
7793         * modules/nanosleep (configure.ac): ... to here.
7794
7795 2011-05-21  Bruno Haible  <bruno@clisp.org>
7796
7797         mountlist: Move AC_LIBOBJ invocations to module description.
7798         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7799         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7800         * modules/mountlist (configure.ac): ... to here.
7801
7802 2011-05-21  Bruno Haible  <bruno@clisp.org>
7803
7804         mktime: Respect rules for use of AC_LIBOBJ.
7805         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7806         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7807         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7808         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7809         * modules/mktime (configure.ac): ... to here.
7810         * modules/mktime-internal (configure.ac): ... and here.
7811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7812
7813 2011-05-21  Bruno Haible  <bruno@clisp.org>
7814
7815         mkstemps: Move AC_LIBOBJ invocations to module description.
7816         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7817         here...
7818         * modules/mkstemps (configure.ac): ... to here.
7819
7820 2011-05-21  Bruno Haible  <bruno@clisp.org>
7821
7822         mkstemp: Move AC_LIBOBJ invocations to module description.
7823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7824         gl_PREREQ_MKSTEMP invocations from here...
7825         * modules/mkstemp (configure.ac): ... to here.
7826
7827 2011-05-21  Bruno Haible  <bruno@clisp.org>
7828
7829         mkostemps: Move AC_LIBOBJ invocations to module description.
7830         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7831         here...
7832         * modules/mkostemps (configure.ac): ... to here.
7833
7834 2011-05-21  Bruno Haible  <bruno@clisp.org>
7835
7836         mkostemp: Move AC_LIBOBJ invocations to module description.
7837         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7838         gl_PREREQ_MKOSTEMP invocations from here...
7839         * modules/mkostemp (configure.ac): ... to here.
7840
7841 2011-05-21  Bruno Haible  <bruno@clisp.org>
7842
7843         mknod: Move AC_LIBOBJ invocations to module description.
7844         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7845         * modules/mknod (configure.ac): ... to here.
7846
7847 2011-05-21  Bruno Haible  <bruno@clisp.org>
7848
7849         mkfifoat: Move AC_LIBOBJ invocations to module description.
7850         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7851         here...
7852         * modules/mkfifoat (configure.ac): ... to here.
7853
7854 2011-05-21  Bruno Haible  <bruno@clisp.org>
7855
7856         mkfifo: Respect rules for use of AC_LIBOBJ.
7857         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7858         here...
7859         * modules/mkfifo (configure.ac): ... to here.
7860
7861 2011-05-21  Bruno Haible  <bruno@clisp.org>
7862
7863         mkdtemp: Move AC_LIBOBJ invocations to module description.
7864         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7865         invocations from here...
7866         * modules/mkdtemp (configure.ac): ... to here.
7867
7868 2011-05-21  Bruno Haible  <bruno@clisp.org>
7869
7870         mkdir: Move AC_LIBOBJ invocations to module description.
7871         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7872         * modules/mkdir (configure.ac): ... to here.
7873
7874 2011-05-21  Bruno Haible  <bruno@clisp.org>
7875
7876         memset: Move AC_LIBOBJ invocations to module description.
7877         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7879         here...
7880         * modules/memset (configure.ac): ... to here.
7881
7882 2011-05-21  Bruno Haible  <bruno@clisp.org>
7883
7884         memrchr: Move AC_LIBOBJ invocations to module description.
7885         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7887         here...
7888         * modules/memrchr (configure.ac): ... to here.
7889
7890 2011-05-21  Bruno Haible  <bruno@clisp.org>
7891
7892         mempcpy: Move AC_LIBOBJ invocations to module description.
7893         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7894         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7895         here...
7896         * modules/mempcpy (configure.ac): ... to here.
7897
7898 2011-05-21  Bruno Haible  <bruno@clisp.org>
7899
7900         memmove: Move AC_LIBOBJ invocations to module description.
7901         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7903         here...
7904         * modules/memmove (configure.ac): ... to here.
7905
7906 2011-05-21  Bruno Haible  <bruno@clisp.org>
7907
7908         memmem*: Move AC_LIBOBJ invocations to module description.
7909         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7910         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7911         here...
7912         (gl_FUNC_MEMMEM): ... and here...
7913         * modules/memmem-simple (configure.ac): ... to here.
7914         * modules/memmem (configure.ac): ... and here.
7915
7916 2011-05-21  Bruno Haible  <bruno@clisp.org>
7917
7918         memcpy: Move AC_LIBOBJ invocations to module description.
7919         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7921         here...
7922         * modules/memcpy (configure.ac): ... to here.
7923
7924 2011-05-21  Bruno Haible  <bruno@clisp.org>
7925
7926         memcmp: Simplify autoconf macro.
7927         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7928         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7929         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7930
7931 2011-05-21  Bruno Haible  <bruno@clisp.org>
7932
7933         memcmp: Move AC_LIBOBJ invocations to module description.
7934         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7935         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7936         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7937         * modules/memcmp (configure.ac): ... to here.
7938         (Depends-on): Update conditions.
7939
7940 2011-05-21  Bruno Haible  <bruno@clisp.org>
7941
7942         memchr: Respect rules for use of AC_LIBOBJ.
7943         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7944         invocations from here...
7945         * modules/memchr (configure.ac): ... to here.
7946
7947 2011-05-21  Bruno Haible  <bruno@clisp.org>
7948
7949         mbtowc: Move AC_LIBOBJ invocations to module description.
7950         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7951         invocations from here...
7952         * modules/mbtowc (configure.ac): ... to here.
7953
7954 2011-05-21  Bruno Haible  <bruno@clisp.org>
7955
7956         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7957         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7958         gl_PREREQ_MBSRTOWCS invocations from here...
7959         * modules/mbsrtowcs (configure.ac): ... to here.
7960
7961 2011-05-21  Bruno Haible  <bruno@clisp.org>
7962
7963         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7964         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7965         gl_PREREQ_MBSNRTOWCS invocations from here...
7966         * modules/mbsnrtowcs (configure.ac): ... to here.
7967
7968 2011-05-21  Bruno Haible  <bruno@clisp.org>
7969
7970         mbsinit: Move AC_LIBOBJ invocations to module description.
7971         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7972         invocations from here...
7973         * modules/mbsinit (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         mbrlen: Move AC_LIBOBJ invocations to module description.
7978         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7979         invocations from here...
7980         * modules/mbrlen (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         mbrtowc: Respect rules for use of AC_LIBOBJ.
7985         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7986         invocations from here...
7987         * modules/mbrtowc (configure.ac): ... to here.
7988
7989 2011-05-21  Bruno Haible  <bruno@clisp.org>
7990
7991         malloc-*: Move AC_LIBOBJ invocations to module description.
7992         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7993         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7994         AC_LIBOBJ invocations from here...
7995         * modules/malloc-gnu (configure.ac): ... to here.
7996         * modules/malloc-posix (configure.ac): ... and here.
7997
7998 2011-05-21  Bruno Haible  <bruno@clisp.org>
7999
8000         lstat, openat: Respect rules for use of AC_LIBOBJ.
8001         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8002         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8003         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8004         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8005         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8006         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8007         here.
8008         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8009
8010 2011-05-21  Bruno Haible  <bruno@clisp.org>
8011
8012         lseek: Move AC_LIBOBJ invocations to module description.
8013         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8014         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8015         * modules/lseek (configure.ac): ... to here.
8016
8017 2011-05-21  Bruno Haible  <bruno@clisp.org>
8018
8019         linkat: Move AC_LIBOBJ invocations to module description.
8020         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8021         here...
8022         * modules/linkat (configure.ac): ... to here.
8023
8024 2011-05-21  Bruno Haible  <bruno@clisp.org>
8025
8026         link: Respect rules for use of AC_LIBOBJ.
8027         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8028         * modules/link (configure.ac): ... to here.
8029
8030 2011-05-21  Bruno Haible  <bruno@clisp.org>
8031
8032         lchown: Move AC_LIBOBJ invocations to module description.
8033         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8034         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8035         * modules/lchown (configure.ac): ... to here.
8036
8037 2011-05-21  Bruno Haible  <bruno@clisp.org>
8038
8039         iswctype: Move AC_LIBOBJ invocations to module description.
8040         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8041         here...
8042         * modules/iswctype (configure.ac): ... to here.
8043
8044 2011-05-21  Bruno Haible  <bruno@clisp.org>
8045
8046         iswblank: Move AC_LIBOBJ invocations to module description.
8047         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8048         here...
8049         * modules/iswblank (configure.ac): ... to here.
8050
8051 2011-05-21  Bruno Haible  <bruno@clisp.org>
8052
8053         atanl: Move AC_LIBOBJ invocations to module description.
8054         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8055         * modules/atanl (configure.ac): ... to here.
8056
8057 2011-05-21  Bruno Haible  <bruno@clisp.org>
8058
8059         acosl: Move AC_LIBOBJ invocations to module description.
8060         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8061         * modules/acosl (configure.ac): ... to here.
8062
8063 2011-05-21  Bruno Haible  <bruno@clisp.org>
8064
8065         asinl: Respect rules for use of AC_LIBOBJ.
8066         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8067         * modules/asinl (configure.ac): ... to here.
8068
8069 2011-05-21  Bruno Haible  <bruno@clisp.org>
8070
8071         tanl: Move AC_LIBOBJ invocations to module description.
8072         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8073         * modules/tanl (configure.ac): ... to here.
8074
8075 2011-05-21  Bruno Haible  <bruno@clisp.org>
8076
8077         cosl: Move AC_LIBOBJ invocations to module description.
8078         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8079         * modules/cosl (configure.ac): ... to here.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         sinl: Move AC_LIBOBJ invocations to module description.
8084         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8085         * modules/sinl (configure.ac): ... to here.
8086
8087 2011-05-21  Bruno Haible  <bruno@clisp.org>
8088
8089         logl: Move AC_LIBOBJ invocations to module description.
8090         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8091         * modules/logl (configure.ac): ... to here.
8092
8093 2011-05-21  Bruno Haible  <bruno@clisp.org>
8094
8095         expl: Move AC_LIBOBJ invocations to module description.
8096         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8097         * modules/expl (configure.ac): ... to here.
8098
8099 2011-05-21  Bruno Haible  <bruno@clisp.org>
8100
8101         roundl: Move AC_LIBOBJ invocations to module description.
8102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8103         * modules/roundl (configure.ac): ... to here.
8104
8105 2011-05-21  Bruno Haible  <bruno@clisp.org>
8106
8107         round: Move AC_LIBOBJ invocations to module description.
8108         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8109         * modules/round (configure.ac): ... to here.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         roundf: Move AC_LIBOBJ invocations to module description.
8114         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8115         * modules/roundf (configure.ac): ... to here.
8116
8117 2011-05-21  Bruno Haible  <bruno@clisp.org>
8118
8119         truncl: Move AC_LIBOBJ invocations to module description.
8120         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8121         * modules/truncl (configure.ac): ... to here.
8122
8123 2011-05-21  Bruno Haible  <bruno@clisp.org>
8124
8125         trunc: Move AC_LIBOBJ invocations to module description.
8126         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8127         * modules/trunc (configure.ac): ... to here.
8128
8129 2011-05-21  Bruno Haible  <bruno@clisp.org>
8130
8131         truncf: Move AC_LIBOBJ invocations to module description.
8132         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8133         * modules/truncf (configure.ac): ... to here.
8134
8135 2011-05-21  Bruno Haible  <bruno@clisp.org>
8136
8137         ceill: Move AC_LIBOBJ invocations to module description.
8138         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8139         * modules/ceill (configure.ac): ... to here.
8140
8141 2011-05-21  Bruno Haible  <bruno@clisp.org>
8142
8143         ceil: Move AC_LIBOBJ invocations to module description.
8144         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8145         * modules/ceil (configure.ac): ... to here.
8146
8147 2011-05-21  Bruno Haible  <bruno@clisp.org>
8148
8149         ceilf: Move AC_LIBOBJ invocations to module description.
8150         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8151         * modules/ceilf (configure.ac): ... to here.
8152
8153 2011-05-21  Bruno Haible  <bruno@clisp.org>
8154
8155         floorl: Respect rules for use of AC_LIBOBJ.
8156         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8157         * modules/floorl (configure.ac): ... to here.
8158
8159 2011-05-21  Bruno Haible  <bruno@clisp.org>
8160
8161         floor: Respect rules for use of AC_LIBOBJ.
8162         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8163         * modules/floor (configure.ac): ... to here.
8164
8165 2011-05-21  Bruno Haible  <bruno@clisp.org>
8166
8167         floorf: Move AC_LIBOBJ invocations to module description.
8168         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8169         * modules/floorf (configure.ac): ... to here.
8170
8171 2011-05-20  Bruno Haible  <bruno@clisp.org>
8172
8173         sqrtl: Respect rules for use of AC_LIBOBJ.
8174         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8175         * modules/sqrtl (configure.ac): ... to here.
8176
8177 2011-05-20  Bruno Haible  <bruno@clisp.org>
8178
8179         ldexpl: Respect rules for use of AC_LIBOBJ.
8180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8181         * modules/ldexpl (configure.ac): ... to here.
8182
8183 2011-05-20  Bruno Haible  <bruno@clisp.org>
8184
8185         frexpl*: Respect rules for use of AC_LIBOBJ.
8186         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8187         invocation from here...
8188         * modules/frexpl (configure.ac): ... to here.
8189         * modules/frexpl-nolibm (configure.ac): ... and here.
8190
8191 2011-05-20  Bruno Haible  <bruno@clisp.org>
8192
8193         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8194         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8195         invocation from here...
8196         * modules/frexp (configure.ac): ... to here.
8197         * modules/frexp-nolibm (configure.ac): ... and here.
8198
8199 2011-05-20  Bruno Haible  <bruno@clisp.org>
8200
8201         isnan: Respect rules for use of AC_LIBOBJ.
8202         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8203         invocations here.
8204         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8205         REPLACE_ISNAN.
8206         * modules/isnand (configure.ac): Likewise.
8207         * modules/isnanl (configure.ac): Likewise.
8208
8209 2011-05-20  Bruno Haible  <bruno@clisp.org>
8210
8211         isnanl*: Respect rules for use of AC_LIBOBJ.
8212         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8213         invocation from here...
8214         * modules/isnanl (configure.ac): ... to here.
8215         * modules/isnanl-nolibm (configure.ac): ... and here.
8216
8217 2011-05-20  Bruno Haible  <bruno@clisp.org>
8218
8219         isnand*: Move AC_LIBOBJ invocations to module description.
8220         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8221         invocation from here...
8222         * modules/isnand (configure.ac): ... to here.
8223         * modules/isnand-nolibm (configure.ac): ... and here.
8224
8225 2011-05-20  Bruno Haible  <bruno@clisp.org>
8226
8227         isnanf*: Move AC_LIBOBJ invocations to module description.
8228         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8229         invocation from here...
8230         * modules/isnanf (configure.ac): ... to here.
8231         * modules/isnanf-nolibm (configure.ac): ... and here.
8232
8233 2011-05-20  Bruno Haible  <bruno@clisp.org>
8234
8235         isnan*: Separate the AC_LIBOBJ invocations.
8236         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8237         AC_LIBOBJ invocation.
8238         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8239         here.
8240         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8241         AC_LIBOBJ invocation.
8242         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8243         here.
8244         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8245         AC_LIBOBJ invocation.
8246         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8247         here.
8248         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8249
8250 2011-05-08  Bruno Haible  <bruno@clisp.org>
8251
8252         isinf: Move AC_LIBOBJ invocations to module description.
8253         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8254         * modules/isinf (configure.ac): ... to here.
8255
8256 2011-05-08  Bruno Haible  <bruno@clisp.org>
8257
8258         isfinite: Move AC_LIBOBJ invocations to module description.
8259         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8260         * modules/isfinite (configure.ac): ... to here.
8261
8262 2011-05-08  Bruno Haible  <bruno@clisp.org>
8263
8264         isblank: Move AC_LIBOBJ invocations to module description.
8265         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8266         here...
8267         * modules/isblank (configure.ac): ... to here.
8268
8269 2011-05-08  Bruno Haible  <bruno@clisp.org>
8270
8271         isapipe: Move AC_LIBOBJ invocations to module description.
8272         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8273         gl_PREREQ_ISAPIPE invocations from here...
8274         * modules/isapipe (configure.ac): ... to here.
8275         (Depends-on): Update condition.
8276
8277 2011-05-08  Bruno Haible  <bruno@clisp.org>
8278
8279         ioctl: Move AC_LIBOBJ invocations to module description.
8280         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8281         invocations from here...
8282         * modules/ioctl (configure.ac): ... to here.
8283         (Depends-on): Update condition.
8284
8285 2011-05-08  Bruno Haible  <bruno@clisp.org>
8286
8287         imaxdiv: Move AC_LIBOBJ invocations to module description.
8288         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8289         invocations from here...
8290         * modules/imaxdiv (configure.ac): ... to here.
8291
8292 2011-05-08  Bruno Haible  <bruno@clisp.org>
8293
8294         imaxabs: Move AC_LIBOBJ invocations to module description.
8295         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8296         invocations from here...
8297         * modules/imaxabs (configure.ac): ... to here.
8298
8299 2011-05-08  Bruno Haible  <bruno@clisp.org>
8300
8301         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8302         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8303         AC_LIBOBJ invocations from here...
8304         * modules/getaddrinfo (configure.ac): ... to here.
8305         (Depends-on): Add conditions.
8306
8307 2011-05-08  Bruno Haible  <bruno@clisp.org>
8308
8309         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8310         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8311         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8312         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8313         (gl_PREREQ_INET_PTON): ... from here.
8314         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8315         gl_PREREQ_INET_PTON here.
8316         (Depends-on): Update condition.
8317
8318 2011-05-08  Bruno Haible  <bruno@clisp.org>
8319
8320         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8321         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8322         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8323         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8324         (gl_PREREQ_INET_NTOP): ... from here.
8325         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8326         gl_PREREQ_INET_NTOP here.
8327         (Depends-on): Update condition.
8328
8329 2011-05-08  Bruno Haible  <bruno@clisp.org>
8330
8331         iconv_open: Move AC_LIBOBJ invocations to module description.
8332         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8333         AC_LIBOBJ invocations from here...
8334         * modules/iconv_open (configure.ac): ... to here.
8335
8336 2011-05-08  Bruno Haible  <bruno@clisp.org>
8337
8338         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8339         If module 'iconv_open' is among the main modules and module
8340         'iconv_open-utf' is among the tests dependencies, then
8341         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8342         return the special iconv_t values. Therefore iconv() and iconv_close()
8343         must support these special iconv_t values, already in lib, not only in
8344         tests.
8345         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8346         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8347         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8348         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8349         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8350         (Depends-on): Add the dependencies of iconv_open-utf.
8351         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8352         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8353         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8354
8355 2011-05-08  Bruno Haible  <bruno@clisp.org>
8356
8357         group-member: Move AC_LIBOBJ invocations to module description.
8358         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8359         gl_PREREQ_GROUP_MEMBER invocations from here...
8360         * modules/group-member (configure.ac): ... to here.
8361
8362 2011-05-08  Bruno Haible  <bruno@clisp.org>
8363
8364         grantpt: Move AC_LIBOBJ invocations to module description.
8365         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8366         invocations from here...
8367         * modules/grantpt (configure.ac): ... to here.
8368
8369 2011-05-08  Bruno Haible  <bruno@clisp.org>
8370
8371         glob: Move AC_LIBOBJ invocations to module description.
8372         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8373         from here...
8374         * modules/glob (configure.ac): ... to here.
8375
8376 2011-05-08  Bruno Haible  <bruno@clisp.org>
8377
8378         getusershell: Move AC_LIBOBJ invocations to module description.
8379         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8380         Move AC_LIBOBJ invocation from here...
8381         * modules/getusershell (configure.ac): ... to here.
8382         (Depends-on): Update condition.
8383
8384 2011-05-08  Bruno Haible  <bruno@clisp.org>
8385
8386         gettimeofday: Move AC_LIBOBJ invocations to module description.
8387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8388         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8389         gl_PREREQ_GETTIMEOFDAY invocations from here...
8390         * modules/gettimeofday (configure.ac): ... to here.
8391
8392 2011-05-08  Bruno Haible  <bruno@clisp.org>
8393
8394         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8395         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8396         just gl_FUNC_TZSET.
8397         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8398         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8399         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8400         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8401
8402 2011-05-08  Bruno Haible  <bruno@clisp.org>
8403
8404         getsubopt: Move AC_LIBOBJ invocations to module description.
8405         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8406         gl_PREREQ_GETSUBOPT invocations from here...
8407         * modules/getsubopt (configure.ac): ... to here.
8408
8409 2011-05-08  Bruno Haible  <bruno@clisp.org>
8410
8411         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8412         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8413         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8414         * modules/getpass-gnu (configure.ac): ... to here.
8415
8416 2011-05-08  Bruno Haible  <bruno@clisp.org>
8417
8418         getpass: Move AC_LIBOBJ invocations to module description.
8419         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8420         gl_PREREQ_GETPASS invocations from here...
8421         * modules/getpass (configure.ac): ... to here.
8422
8423 2011-05-08  Bruno Haible  <bruno@clisp.org>
8424
8425         getpagesize: Move AC_LIBOBJ invocations to module description.
8426         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8427         from here...
8428         * modules/getpagesize (configure.ac): ... to here.
8429
8430 2011-05-08  Bruno Haible  <bruno@clisp.org>
8431
8432         getopt: Move AC_LIBOBJ invocations to module description.
8433         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8434         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8435         invocations from here...
8436         * modules/getopt-gnu (configure.ac): ... to here.
8437         * modules/getopt-posix (configure.ac): ... and here.
8438         (Depends-on): Update condition.
8439
8440 2011-05-08  Bruno Haible  <bruno@clisp.org>
8441
8442         getopt, argp: Respect rules for use of AC_LIBOBJ.
8443         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8444         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8445         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8446         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8447
8448 2011-05-08  Bruno Haible  <bruno@clisp.org>
8449
8450         getlogin_r: Move AC_LIBOBJ invocations to module description.
8451         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8452         gl_PREREQ_GETLOGIN_R invocations from here...
8453         * modules/getlogin_r (configure.ac): ... to here.
8454
8455 2011-05-08  Bruno Haible  <bruno@clisp.org>
8456
8457         getlogin: Move AC_LIBOBJ invocations to module description.
8458         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8459         here...
8460         * modules/getlogin (configure.ac): ... to here.
8461
8462 2011-05-08  Bruno Haible  <bruno@clisp.org>
8463
8464         getloadavg: Move AC_LIBOBJ invocations to module description.
8465         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8466         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8467         * modules/getloadavg (configure.ac): ... to here.
8468
8469 2011-05-08  Bruno Haible  <bruno@clisp.org>
8470
8471         gethrxtime: Move AC_LIBOBJ invocations to module description.
8472         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8473         LIB_GETHRXTIME from here...
8474         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8475         invocations from here...
8476         * modules/gethrxtime (configure.ac): ... to here.
8477
8478 2011-05-08  Bruno Haible  <bruno@clisp.org>
8479
8480         gethostname: Move AC_LIBOBJ invocations to module description.
8481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8482         gl_PREREQ_GETHOSTNAME invocations from here...
8483         * modules/gethostname (configure.ac): ... to here.
8484
8485 2011-05-08  Bruno Haible  <bruno@clisp.org>
8486
8487         getgroups: Move AC_LIBOBJ invocations to module description.
8488         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8489         here...
8490         * modules/getgroups (configure.ac): ... to here.
8491
8492 2011-05-08  Bruno Haible  <bruno@clisp.org>
8493
8494         getdtablesize: Move AC_LIBOBJ invocations to module description.
8495         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8496         invocation from here...
8497         * modules/getdtablesize (configure.ac): ... to here.
8498
8499 2011-05-08  Bruno Haible  <bruno@clisp.org>
8500
8501         getdomainname: Move AC_LIBOBJ invocations to module description.
8502         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8503         gl_PREREQ_GETDOMAINNAME invocations from here...
8504         * modules/getdomainname (configure.ac): ... to here.
8505
8506 2011-05-08  Bruno Haible  <bruno@clisp.org>
8507
8508         getline: Move AC_LIBOBJ invocations to module description.
8509         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8510         invocations from here...
8511         * modules/getline (configure.ac): ... to here.
8512
8513 2011-05-08  Bruno Haible  <bruno@clisp.org>
8514
8515         getline: Simplify.
8516         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8517         It's already handled through the module dependency.
8518
8519 2011-05-08  Bruno Haible  <bruno@clisp.org>
8520
8521         getdelim: Move AC_LIBOBJ invocations to module description.
8522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8523         and gl_PREREQ_GETDELIM invocations from here...
8524         * modules/getdelim (configure.ac): ... to here.
8525         (Depends-on): Fix condition.
8526
8527 2011-05-08  Bruno Haible  <bruno@clisp.org>
8528
8529         getcwd: Move AC_LIBOBJ invocations to module description.
8530         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8531         invocations from here...
8532         * modules/getcwd (configure.ac): ... to here.
8533
8534 2011-05-08  Bruno Haible  <bruno@clisp.org>
8535
8536         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8537         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8538         here...
8539         * modules/getcwd-lgpl (configure.ac): ... to here.
8540
8541 2011-05-07  Bruno Haible  <bruno@clisp.org>
8542
8543         crypto/gc: Move AC_LIBOBJ invocations to module description.
8544         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8545         * modules/crypto/gc (configure.ac): ... to here.
8546
8547 2011-05-07  Bruno Haible  <bruno@clisp.org>
8548
8549         fwriting: Move AC_LIBOBJ invocations to module description.
8550         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8551         here...
8552         * modules/fwriting (configure.ac): ... to here.
8553
8554 2011-05-07  Bruno Haible  <bruno@clisp.org>
8555
8556         fwritable: Move AC_LIBOBJ invocations to module description.
8557         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8558         here...
8559         * modules/fwritable (configure.ac): ... to here.
8560
8561 2011-05-07  Bruno Haible  <bruno@clisp.org>
8562
8563         futimens: Move AC_LIBOBJ invocations to module description.
8564         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8565         here...
8566         * modules/futimens (configure.ac): ... to here.
8567
8568 2011-05-07  Bruno Haible  <bruno@clisp.org>
8569
8570         ftruncate: Move AC_LIBOBJ invocations to module description.
8571         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8572         gl_PREREQ_FTRUNCATE invocations from here...
8573         * modules/ftruncate (configure.ac): ... to here.
8574
8575 2011-05-07  Bruno Haible  <bruno@clisp.org>
8576
8577         fsync: Move AC_LIBOBJ invocations to module description.
8578         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8579         invocations from here...
8580         * modules/fsync (configure.ac): ... to here.
8581
8582 2011-05-07  Bruno Haible  <bruno@clisp.org>
8583
8584         fsusage: Move AC_LIBOBJ invocations to module description.
8585         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8586         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8587         * modules/fsusage (configure.ac): ... to here.
8588
8589 2011-05-07  Bruno Haible  <bruno@clisp.org>
8590
8591         freopen: Move AC_LIBOBJ invocations to module description.
8592         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8593         invocations from here...
8594         * modules/freopen (configure.ac): ... to here.
8595
8596 2011-05-07  Bruno Haible  <bruno@clisp.org>
8597
8598         free: Move AC_LIBOBJ invocations to module description.
8599         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8600         invocations from here...
8601         * modules/free (configure.ac): ... to here.
8602
8603 2011-05-07  Bruno Haible  <bruno@clisp.org>
8604
8605         freadable: Move AC_LIBOBJ invocations to module description.
8606         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8607         here...
8608         * modules/freadable (configure.ac): ... to here.
8609
8610 2011-05-07  Bruno Haible  <bruno@clisp.org>
8611
8612         fpurge: Move AC_LIBOBJ invocations to module description.
8613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8614         invocations from here...
8615         * modules/fpurge (configure.ac): ... to here.
8616
8617 2011-05-07  Bruno Haible  <bruno@clisp.org>
8618
8619         fpending: Move AC_LIBOBJ invocations to module description.
8620         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8621         gl_FUNC_FPENDING.
8622         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8623         invocations from here...
8624         * modules/fpending (configure.ac): ... to here.
8625
8626 2011-05-07  Bruno Haible  <bruno@clisp.org>
8627
8628         fopen: Move AC_LIBOBJ invocations to module description.
8629         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8630         invocations from here...
8631         * modules/fopen (configure.ac): ... to here.
8632
8633 2011-05-07  Bruno Haible  <bruno@clisp.org>
8634
8635         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8636         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8637         gl_FUNC_FNMATCH_POSIX.
8638         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8639         invocations from here...
8640         * modules/fnmatch (configure.ac): ... to here.
8641         * modules/fnmatch-gnu (configure.ac): ... and here.
8642
8643 2011-05-07  Bruno Haible  <bruno@clisp.org>
8644
8645         flock: Move AC_LIBOBJ invocations to module description.
8646         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8647         invocations from here...
8648         * modules/flock (configure.ac): ... to here.
8649
8650 2011-05-07  Bruno Haible  <bruno@clisp.org>
8651
8652         fileblocks: Move AC_LIBOBJ invocations to module description.
8653         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8654         gl_PREREQ_FILEBLOCKS invocations from here...
8655         * modules/fileblocks (configure.ac): ... to here.
8656
8657 2011-05-06  Bruno Haible  <bruno@clisp.org>
8658
8659         fflush: Move AC_LIBOBJ invocations to module description.
8660         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8661         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8662         invocations from here...
8663         * modules/fflush (configure.ac): ... to here.
8664
8665 2011-05-06  Bruno Haible  <bruno@clisp.org>
8666
8667         fdopendir: Move AC_LIBOBJ invocations to module description.
8668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8669         here...
8670         * modules/fdopendir (configure.ac): ... to here.
8671         (Depends-on): Improve conditions.
8672
8673 2011-05-06  Bruno Haible  <bruno@clisp.org>
8674
8675         _Exit: Move AC_LIBOBJ invocations to module description.
8676         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8677         invocations from here...
8678         * modules/_Exit (configure.ac): ... to here.
8679
8680 2011-05-21  Bruno Haible  <bruno@clisp.org>
8681
8682         euidaccess: Respect rules for use of AC_LIBOBJ.
8683         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8685         from here...
8686         * modules/euidaccess (configure.ac): ... to here.
8687
8688 2011-05-06  Bruno Haible  <bruno@clisp.org>
8689
8690         error: Move AC_LIBOBJ invocations to module description.
8691         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8692         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8693         invocations from here...
8694         * modules/error (configure.ac): ... to here.
8695
8696 2011-05-06  Bruno Haible  <bruno@clisp.org>
8697
8698         duplocale: Move AC_LIBOBJ invocations to module description.
8699         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8700         gl_PREREQ_DUPLOCALE invocations from here...
8701         * modules/duplocale (configure.ac): ... to here.
8702
8703 2011-05-05  Bruno Haible  <bruno@clisp.org>
8704
8705         dirfd: Move AC_LIBOBJ invocations to module description.
8706         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8707         gl_FUNC_DIRFD.
8708         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8709         here...
8710         * modules/dirfd (configure.ac): ... to here.
8711         (Depends-on): Fix condition.
8712
8713 2011-05-05  Bruno Haible  <bruno@clisp.org>
8714
8715         chown: Respect rules for use of AC_LIBOBJ.
8716         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8717         * modules/chown (configure.ac): ... to here.
8718
8719 2011-05-05  Bruno Haible  <bruno@clisp.org>
8720
8721         chdir-long: Move AC_LIBOBJ invocations to module description.
8722         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8723         gl_PREREQ_CHDIR_LONG invocations from here...
8724         * modules/chdir-long (configure.ac): ... to here.
8725
8726 2011-05-05  Bruno Haible  <bruno@clisp.org>
8727
8728         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8729         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8730         from here...
8731         * modules/canonicalize-lgpl (configure.ac): ... to here.
8732
8733 2011-05-05  Bruno Haible  <bruno@clisp.org>
8734
8735         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8736         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8737         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8738         REPLACE_CALLOC.
8739         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8740         * modules/calloc-gnu (configure.ac): Likewise.
8741
8742 2011-05-05  Bruno Haible  <bruno@clisp.org>
8743
8744         btowc: Move AC_LIBOBJ invocations to module description.
8745         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8746         invocations from here...
8747         * modules/btowc (configure.ac): ... to here.
8748
8749 2011-05-21  Bruno Haible  <bruno@clisp.org>
8750
8751         atexit: Move AC_LIBOBJ invocations to module description.
8752         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8754         here...
8755         * modules/atexit (configure.ac): ... to here.
8756
8757 2011-05-05  Bruno Haible  <bruno@clisp.org>
8758
8759         atoll: Move AC_LIBOBJ invocations to module description.
8760         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8761         invocations from here...
8762         * modules/atoll (configure.ac): ... to here.
8763
8764 2011-05-05  Bruno Haible  <bruno@clisp.org>
8765
8766         argz: Move AC_LIBOBJ invocations to module description.
8767         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8768         * modules/argz (configure.ac): ... to here.
8769
8770 2011-05-05  Bruno Haible  <bruno@clisp.org>
8771
8772         alphasort: Move AC_LIBOBJ invocations to module description.
8773         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8774         gl_PREREQ_ALPHASORT invocations from here...
8775         * modules/alphasort (configure.ac): ... to here.
8776
8777 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8778
8779         verify: new macro verify_expr; verify_true deprecated
8780         * NEWS: Mention this.
8781         * doc/verify.texi (Compile-time Assertions): Document this.
8782         * lib/verify.h (verify_true): Deprecate.
8783         (verify_expr): New macro.
8784         * tests/test-verify.c (function): Test verify_expr.
8785
8786 2011-06-14  Jim Meyering  <meyering@redhat.com>
8787
8788         init.sh: give more portable redirection-related advice in a comment
8789         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8790         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8791         for lots of discussion.  Stefano Lattarini suggested the solution
8792         of putting "9>&2" after the command.  Reported by Bruno Haible.
8793
8794 2011-06-13  Bruno Haible  <bruno@clisp.org>
8795
8796         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8797         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8798         'none'.
8799
8800 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         ftoastr: use strtof only if HAVE_STRTOF
8803         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8805         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8806         * modules/ftoastr (configure.ac): Check for strtof.
8807
8808 2011-06-13  Bruno Haible  <bruno@clisp.org>
8809
8810         gnulib-tool: Addendum to 2011-06-08 commit.
8811         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8812         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8813
8814 2011-06-13  Bruno Haible  <bruno@clisp.org>
8815
8816         fseeko: Provide a non-inline replacement of fseek().
8817         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8818         * modules/fseeko (Depends-on): Add fseek.
8819         * modules/fseek (License): Change to LGPLv2+.
8820
8821 2011-06-13  Bruno Haible  <bruno@clisp.org>
8822
8823         ftello: Provide a non-inline replacement of ftell().
8824         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8825         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8826         not have ftello() (such as on mingw).
8827         * modules/ftello (Depends-on): Add ftell.
8828         * modules/ftell (License): Change to LGPLv2+.
8829
8830 2011-05-07  Bruno Haible  <bruno@clisp.org>
8831
8832         ftell: Move AC_LIBOBJ invocations to module description.
8833         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8834         * modules/ftell (configure.ac): ... to here.
8835
8836 2011-05-07  Bruno Haible  <bruno@clisp.org>
8837
8838         ftello: Respect rules for use of AC_LIBOBJ.
8839         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8840         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8841         here...
8842         * modules/ftello (configure.ac): ... to here.
8843
8844 2011-05-07  Bruno Haible  <bruno@clisp.org>
8845
8846         fseeko: Simplify.
8847         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8848         (gl_FUNC_FSEEKO): Inline it here.
8849
8850 2011-05-07  Bruno Haible  <bruno@clisp.org>
8851
8852         fseek: Move AC_LIBOBJ invocations to module description.
8853         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8854         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8855         * modules/fseek (configure.ac): ... to here.
8856
8857 2011-05-07  Bruno Haible  <bruno@clisp.org>
8858
8859         fseek: Respect rules for use of AC_LIBOBJ.
8860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8861         here...
8862         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8863
8864 2011-05-07  Bruno Haible  <bruno@clisp.org>
8865
8866         fseeko: Respect rules for use of AC_LIBOBJ.
8867         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8868         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8869         here...
8870         * modules/fseeko (configure.ac): ... to here.
8871
8872 2011-06-13  Bruno Haible  <bruno@clisp.org>
8873
8874         gnulib-tool: Allow comments in the 'Depends-on' section.
8875         * doc/gnulib.texi (Module description): Mention comment syntax in the
8876         Depends-on section.
8877         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8878
8879 2011-06-13  Bruno Haible  <bruno@clisp.org>
8880
8881         file-set.h: guard __attibute__ use, now that it's not always defined
8882         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8883         versions that support it.  This fixes a coreutils build failure with
8884         the vendor cc on HP-UX 11.31.
8885
8886 2011-06-12  Bruno Haible  <bruno@clisp.org>
8887
8888         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8889         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8890         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8891         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8892         (acl, aclsort): New declarations.
8893         (aclv_nontrivial): New declaration.
8894         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8895         (file_has_acl): Read also the second kind of HP-UX ACLs.
8896         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8897         kind of HP-UX ACLs if the first kind fails.
8898         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8899         second kind of HP-UX ACLs.
8900         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8901         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8902         agree.
8903         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8904         hpuxjfs.
8905         Handle hpuxjfs.
8906         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8907         hpuxjfs.
8908         Handle hpuxjfs.
8909         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8910         (func_test_same_acls): Use both lsacl and getacl.
8911         Handle hpuxjfs.
8912         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8913         (func_test_same_acls): Use both lsacl and getacl.
8914         Handle hpuxjfs.
8915
8916 2011-06-12  Bruno Haible  <bruno@clisp.org>
8917
8918         acl: Complete the 2010-08-10 fix.
8919         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8920         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8921         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8922         explicitly.
8923         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8924         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8925
8926 2011-06-12  Bruno Haible  <bruno@clisp.org>
8927
8928         spawn-pipe tests: Comments.
8929         * tests/test-spawn-pipe-child.c (main): Update comment.
8930         Reported by James Youngman <jay@gnu.org>.
8931
8932 2011-06-11  James Youngman  <jay@gnu.org>
8933
8934         New module 'stat-size'.
8935         * modules/stat-size: New module.  Provides macros for accessing
8936         file size information in instances of struct stat.  Depends on the
8937         fileblocks module because it calls st_blocks.
8938         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8939         * doc/gnulib.texi: Include stat-size.texi.
8940         * doc/stat-size.texi: Documentation for this module.
8941         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8942         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8943         AC_STRUCT_ST_BLOCKS.
8944
8945 2011-06-09  Bruno Haible  <bruno@clisp.org>
8946
8947         thread: Support pthreads-win32.
8948         * lib/glthread/thread.h (gl_thread_self): Define differently on
8949         pthreads-win32.
8950         (gl_null_thread): New declaration.
8951         (gl_thread_self_pointer): New macro.
8952         * lib/glthread/thread.c (gl_null_thread): New constant.
8953         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8954         gl_thread_self.
8955         * tests/test-tls.c: Likewise.
8956         Suggested by Paul Eggert. Reported by Eric Blake.
8957
8958 2011-06-09  Bruno Haible  <bruno@clisp.org>
8959
8960         thread: Fix confusion between NULL and 0.
8961         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8962         Reported by Paul Eggert.
8963
8964 2011-06-09  Bruno Haible  <bruno@clisp.org>
8965
8966         spawn-pipe tests: Avoid test failure on HP-UX 11.
8967         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8968         is closed.
8969
8970 2011-06-09  Bruno Haible  <bruno@clisp.org>
8971
8972         acl tests: Fix compilation error on HP-UX 11.
8973         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8974
8975 2011-06-09  Bruno Haible  <bruno@clisp.org>
8976
8977         rmdir: Avoid test failure on HP-UX 10.20.
8978         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8979         EEXIST.
8980
8981 2011-06-08  Eric Blake  <eblake@redhat.com>
8982
8983         perror: fix test on mingw
8984         * modules/perror-tests (Depends-on): Add dup2.
8985
8986         strerror_r-posix: fix on MacOS
8987         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8989         logic bug.
8990         * lib/strerror_r.c (strerror_r): Fix the bug.
8991         * lib/strerror.c (strerror): Likewise.
8992         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8993         problem.
8994         * doc/posix-functions/strerror.texi (strerror): Likewise.
8995         * doc/posix-functions/perror.texi (perror): Likewise.
8996         * tests/test-strerror.c (main): Enhance test.
8997         * tests/test-strerror_r.c (main): Likewise.
8998
8999 2011-06-08  Bruno Haible  <bruno@clisp.org>
9000
9001         gnulib-tool: Better isolation between different gnulib-tool invocations.
9002         * gnulib-tool: New option --witness-c-macro.
9003         (witness_c_macro): New variable.
9004         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9005         AM_CPPFLAGS define it as a C macro.
9006         (func_emit_tests_Makefile_am): Likewise.
9007         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9008         read it from there.
9009         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9010         m4_define, not AC_DEFUN.
9011         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9012         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9013         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9014         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9015         s|...|...|, to substitute the values of the GNULIB_* module indicator
9016         variables.
9017         * modules/dirent (Makefile.am): Likewise.
9018         * modules/fcntl-h (Makefile.am): Likewise.
9019         * modules/iconv-h (Makefile.am): Likewise.
9020         * modules/langinfo (Makefile.am): Likewise.
9021         * modules/locale (Makefile.am): Likewise.
9022         * modules/math (Makefile.am): Likewise.
9023         * modules/netdb (Makefile.am): Likewise.
9024         * modules/poll-h (Makefile.am): Likewise.
9025         * modules/pty (Makefile.am): Likewise.
9026         * modules/search (Makefile.am): Likewise.
9027         * modules/signal (Makefile.am): Likewise.
9028         * modules/spawn (Makefile.am): Likewise.
9029         * modules/stdio (Makefile.am): Likewise.
9030         * modules/stdlib (Makefile.am): Likewise.
9031         * modules/string (Makefile.am): Likewise.
9032         * modules/sys_ioctl (Makefile.am): Likewise.
9033         * modules/sys_select (Makefile.am): Likewise.
9034         * modules/sys_socket (Makefile.am): Likewise.
9035         * modules/sys_stat (Makefile.am): Likewise.
9036         * modules/sys_times (Makefile.am): Likewise.
9037         * modules/sys_utsname (Makefile.am): Likewise.
9038         * modules/sys_wait (Makefile.am): Likewise.
9039         * modules/termios (Makefile.am): Likewise.
9040         * modules/time (Makefile.am): Likewise.
9041         * modules/unistd (Makefile.am): Likewise.
9042         * modules/wchar (Makefile.am): Likewise.
9043
9044 2011-06-08  Eric Blake  <eblake@redhat.com>
9045
9046         strerror: simplify replacement
9047         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9048         * modules/strerror (configure.ac): No prereqs needed here...
9049         * modules/strerror-override (configure.ac): ...but this needs it.
9050         (Files): Add file for needed prereq macro.
9051
9052 2011-06-08  Bruno Haible  <bruno@clisp.org>
9053
9054         strerror_r-posix: Tweaks.
9055         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9056         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9057         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9058         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9059         (gl_FUNC_STRERROR_R): ... to here.
9060         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9061
9062 2011-06-07  Eric Blake  <eblake@redhat.com>
9063
9064         perror: document fixed bugs
9065         * doc/posix-functions/perror.texi (perror): Document recent
9066         patches.
9067
9068 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9069
9070         stat-time: get_stat_birthtime failure is better-defined
9071         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9072         return a timestamp whose tv_sec and tv_nsec values are both -1.
9073         Previously, the spec said only that the tv_nsec value was negative.
9074         This upward-compatible change simplifies GNU tar a bit.
9075
9076 2011-06-07  Eric Blake  <eblake@redhat.com>
9077
9078         strerror_r-posix: work around cygwin 1.7.9
9079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9080         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9081         bug without replacing strerror_r.
9082         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9083         strerror_r is buggy, but without requiring strerror_r compilation.
9084         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9085
9086         test-perror: relax test to ignore cygwin bug
9087         * tests/test-perror2.c (main): Relax test on requiring detection
9088         of stream errors, and use unbuffered stream.
9089         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9090         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9091         * doc/posix-functions/fputc.texi (fputc): Likewise.
9092         * doc/posix-functions/fputs.texi (fputs): Likewise.
9093         * doc/posix-functions/fputws.texi (fputws): Likewise.
9094         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9095         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9096         * doc/posix-functions/getopt.texi (getopt): Likewise.
9097         * doc/posix-functions/perror.texi (perror): Likewise.
9098         * doc/posix-functions/printf.texi (printf): Likewise.
9099         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9100         * doc/posix-functions/psignal.texi (psignal): Likewise.
9101         * doc/posix-functions/putc.texi (putc): Likewise.
9102         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9103         Likewise.
9104         * doc/posix-functions/putchar.texi (putchar): Likewise.
9105         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9106         Likewise.
9107         * doc/posix-functions/puts.texi (puts): Likewise.
9108         * doc/posix-functions/putwc.texi (putwc): Likewise.
9109         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9110         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9111         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9112         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9113         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9114         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9115         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9116         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9117
9118 2011-05-22  Bruno Haible  <bruno@clisp.org>
9119
9120         strerror: Move AC_LIBOBJ invocations to module description.
9121         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9122         gl_PREREQ_STRERROR invocations from here...
9123         * modules/strerror (configure.ac): ... to here.
9124
9125 2011-05-21  Bruno Haible  <bruno@clisp.org>
9126
9127         perror: Use common idiom.
9128         * modules/perror (configure.ac): Reorder statements.
9129
9130 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9131
9132         tests: fix usage message in 'mktempd_'
9133         * tests/init.sh (mktempd_): In the usage message, use literal
9134         'mktempd_', not '$ME' (which is even undefined), as the name of
9135         the subroutine.
9136
9137 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9138
9139         tests init: new function 'fatal_', for hard errors
9140         Before this patch, the only way offered by tests/init.sh to
9141         properly signal a hard error was the `framework_failure_'
9142         function.  But the error message issued by that function,
9143         as its name would suggest, refers to a set-up failure in the
9144         testsuite, while hard errors can obviously also be due to
9145         other reasons.  The best way to fix this inconsistency is to
9146         introduce a new function with a more general error message.
9147         * tests/init.sh (fatal_): New function.
9148
9149 2011-06-06  Eric Blake  <eblake@redhat.com>
9150
9151         canonicalize-lgpl: use common idiom
9152         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9153         over newer POSIX -Rf.
9154         Reported by Bruno Haible.
9155
9156         canonicalize-lgpl: work around AIX realpath bug
9157         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9158         * doc/posix-functions/realpath.texi (realpath): Document it.
9159         Reported by Bruno Haible.
9160
9161         strerror: work around FreeBSD bug
9162         * lib/strerror.c (strerror): Special case 0.
9163         Reported by Bruno Haible.
9164
9165         strerror-override: avoid bloating errno module
9166         * modules/errno (Files, configure.ac): Move replacement strings...
9167         * modules/strerror-override: ...to new module.
9168         * modules/strerror (Depends-on): Add strerror-override.
9169         * modules/strerror_r-posix (Depends-on): Likewise.
9170         * MODULES.html.sh: Document new module.
9171         Reported by Bruno Haible.
9172
9173 2011-06-06  Bruno Haible  <bruno@clisp.org>
9174
9175         spawn-pipe tests: Rename program.
9176         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9177         * tests/test-spawn-pipe-child.c: Update comment.
9178         * tests/test-spawn-pipe.sh: Update.
9179         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9180
9181         spawn-pipe tests: Link the child program only against libc.
9182         * tests/test-spawn-pipe-child.c: New file, extracted from
9183         tests/test-spawn-pipe.c.
9184         (main): Expect only one argument.
9185         (is_open): New function, copied from tests/test-pipe.c.
9186         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9187         (child_main): Remove function.
9188         (test_pipe): Pass only one argument to the child program.
9189         (main): Remove child process code. Expect the child program's name as
9190         first argument.
9191         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9192         argument.
9193         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9194         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9195         test-spawn-pipe-child against no libraries.
9196
9197 2011-06-06  Bruno Haible  <bruno@clisp.org>
9198
9199         careadlinkat: Avoid mismatch between ssize_t and int.
9200         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9201         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9202
9203 2011-06-06  Jim Meyering  <meyering@redhat.com>
9204
9205         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9206         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9207         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9208
9209 2011-06-05  Bruno Haible  <bruno@clisp.org>
9210
9211         ansi-c++-opt: Interoperability with libtool.
9212         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9213         set the variable to "no", not to ":".
9214         * NEWS: Mention the change.
9215
9216 2011-06-05  Bruno Haible  <bruno@clisp.org>
9217
9218         acl: Fix test failure on AIX 7.
9219         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9220         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9221
9222 2011-06-05  Bruno Haible  <bruno@clisp.org>
9223
9224         pipe-filter-ii: Fix test failure on AIX and IRIX.
9225         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9226         with EAGAIN, retry with a smaller buffer size.
9227
9228 2011-06-05  Bruno Haible  <bruno@clisp.org>
9229
9230         localename: Fix link dependencies.
9231         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9232         * modules/localename-tests (Makefile.am): Link test-localename with
9233         $(LIBTHREAD).
9234
9235 2011-06-05  Bruno Haible  <bruno@clisp.org>
9236
9237         error: Avoid gcc warning.
9238         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9239
9240 2011-06-05  Bruno Haible  <bruno@clisp.org>
9241
9242         unsetenv: Avoid gcc warning.
9243         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9244
9245 2011-06-05  Bruno Haible  <bruno@clisp.org>
9246
9247         setenv: Avoid gcc warning.
9248         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9249
9250 2011-06-05  Bruno Haible  <bruno@clisp.org>
9251
9252         sys_select: Ensure memset is declared also on AIX 7.
9253         * lib/sys_select.in.h: Include <string.h> also on AIX.
9254         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9255         self-contained also on AIX 7.1.
9256
9257 2011-06-04  Jim Meyering  <meyering@redhat.com>
9258
9259         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9260         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9261         function name, "error".
9262         (_gl_translatable_diag_func_re): New configurable variable.
9263
9264 2011-06-04  Bruno Haible  <bruno@clisp.org>
9265
9266         getopt: Avoid gcc warning.
9267         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9268
9269 2011-06-04  Bruno Haible  <bruno@clisp.org>
9270
9271         strerror_r: Fix comments.
9272         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9273         commit.
9274
9275 2011-06-04  Bruno Haible  <bruno@clisp.org>
9276
9277         perror: Fix compilation error.
9278         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9279         Undefine fprintf, not sprintf.
9280         * modules/perror (Depends-on): Remove intprops, verify.
9281
9282 2011-06-04  Bruno Haible  <bruno@clisp.org>
9283
9284         setlocale: Enable replacement on Cygwin 1.5.
9285         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9286         Cygwin 1.5.x.
9287         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9288         LC_CTYPE category also exists on Cygwin 1.5.x.
9289
9290 2011-06-04  Bruno Haible  <bruno@clisp.org>
9291
9292         strerror-override: Don't disable symbol renamings.
9293         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9294         * lib/strerror-override.c: Include config.h.
9295         (strerror_override): Don't undefine.
9296
9297 2011-06-03  Bruno Haible  <bruno@clisp.org>
9298
9299         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9300         * lib/localename.h: Update copyright header.
9301         * lib/localename.c: Likewise.
9302         * lib/relocatable.h: Likewise.
9303         * lib/relocatable.c: Likewise.
9304
9305 2011-06-02  Bruno Haible  <bruno@clisp.org>
9306
9307         doc: Fix a module name.
9308         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9309
9310 2011-06-02  Bruno Haible  <bruno@clisp.org>
9311
9312         pipe2: Remove dependency on 'nonblocking' module.
9313         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9314         O_NONBLOCK is defined by gnulib.
9315         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9316         is zero.
9317         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9318         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9319         defined by gnulib.
9320         (get_nonblocking_flag): New function.
9321         (main): Test O_NONBLOCK flag only if it is nonzero.
9322         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9323
9324 2011-06-03  Jim Meyering  <meyering@redhat.com>
9325
9326         maint: three new prohibit-header-without-use rules
9327         Prohibit use of cloexec.h, posixver.h, same.h without use.
9328         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9329         (sc_prohibit_posixver_without_use): Likewise.
9330         (sc_prohibit_same_without_use): Likewise.
9331
9332 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9333
9334         allocator: 'die' routine is now given requested size
9335         * lib/allocator.h (struct allocator.die): New size arg.
9336         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9337         If the actual problem is an ssize_t limitation, not a size_t or
9338         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9339
9340 2011-06-01  Eric Blake  <eblake@redhat.com>
9341
9342         strerror: drop strerror_r dependency
9343         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9344         * lib/strerror-override.c (strerror_override): ...to new file.
9345         * lib/strerror-override.h: Add prototype.
9346         * lib/strerror-impl.h: Delete.
9347         * lib/strerror.c (strerror): New implementation.
9348         * modules/errno (Files): Add new files.
9349         (configure.ac): Compile new file as appropriate.
9350         * modules/strerror (Files): Drop unused file.
9351         (Depends-on): Drop strerror_r-posix.
9352         * MODULES.html.sh: Document strerror_r-posix.
9353         Requested by Sam Steingold.
9354
9355         perror: call strerror_r directly
9356         * modules/perror (Files): Drop strerror-impl.h.
9357         * lib/perror.c (perror): Use our own stack buffer, rather than
9358         calling a wrapper that uses static storage.
9359         * doc/posix-functions/perror.texi (perror): Document a limitation
9360         of our replacement.
9361
9362         strerror_r: fix includes for FreeBSD
9363         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9364         since we use abort on some platforms.
9365         Reported by Matthias Bolte.
9366
9367 2011-05-31  Bruno Haible  <bruno@clisp.org>
9368
9369         Fix link errors in tests: openat-die uses gettext-h.
9370         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9371         against $(LIBINTL).
9372         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9373         against $(LIBINTL).
9374         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9375         $(LIBINTL).
9376         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9377         against $(LIBINTL).
9378         * modules/linkat-tests (Makefile.am): Link test-linkat against
9379         $(LIBINTL).
9380         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9381         $(LIBINTL).
9382         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9383         against $(LIBINTL).
9384         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9385         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9386         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9387         $(LIBINTL).
9388         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9389         $(LIBINTL).
9390         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9391         $(LIBINTL).
9392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9393
9394 2011-05-31  Bruno Haible  <bruno@clisp.org>
9395
9396         Fix link errors in tests: wait-process uses gettext-h.
9397         * modules/nonblocking-pipe-tests (Makefile.am): Set
9398         test_nonblocking_pipe_main_LDADD.
9399         * modules/nonblocking-socket-tests (Makefile.am): Link
9400         test-nonblocking-socket-main against $(LIBINTL).
9401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9402
9403 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9404
9405         assert-h: work around 'verify' incompatibility
9406         * lib/verify.h: Use @...@ directives, not ifdef.
9407         * modules/assert-h (assert.h): Implement the directives.
9408         (assert.h): Substitute the symbol-prefix more consistently.
9409
9410 2011-05-29  Jim Meyering  <meyering@redhat.com>
9411
9412         trim: remove three superfluous assignments
9413         * lib/trim.c (trim2): Remove three superfluous assignments
9414         and correct brace positioning.
9415
9416 2011-05-29  Bruno Haible  <bruno@clisp.org>
9417
9418         wctype-h: Avoid namespace pollution on Solaris 2.6.
9419         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9420         identifiers.
9421         * doc/posix-headers/wctype.texi: Mention the problem.
9422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9423
9424 2011-05-28  Jim Meyering  <meyering@redhat.com>
9425
9426         parse-datetime.y: accommodate -Wstrict-overflow
9427         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9428         placate -Wstrict-overflow.
9429
9430         trim: avoid a warning from -O2 -Wstrict-overflow
9431         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9432
9433 2011-05-29  Bruno Haible  <bruno@clisp.org>
9434
9435         gnulib-tool: Fix bug in yesterday's commit.
9436         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9437         twice.
9438
9439 2011-05-29  Bruno Haible  <bruno@clisp.org>
9440
9441         Allow multiple gnulib generated include files to be combined.
9442         * gnulib-tool (func_compute_include_guard_prefix): New function.
9443         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9444         ${gl_include_guard_prefix} references.
9445         (func_import, func_create_testdir): Invoke
9446         func_compute_include_guard_prefix.
9447         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9448         * lib/ctype.in.h: Likewise.
9449         * lib/dirent.in.h: Likewise.
9450         * lib/errno.in.h: Likewise.
9451         * lib/fcntl.in.h: Likewise.
9452         * lib/float.in.h: Likewise.
9453         * lib/getopt.in.h: Likewise.
9454         * lib/iconv.in.h: Likewise.
9455         * lib/langinfo.in.h: Likewise.
9456         * lib/locale.in.h: Likewise.
9457         * lib/math.in.h: Likewise.
9458         * lib/netdb.in.h: Likewise.
9459         * lib/netinet_in.in.h: Likewise.
9460         * lib/poll.in.h: Likewise.
9461         * lib/pthread.in.h: Likewise.
9462         * lib/pty.in.h: Likewise.
9463         * lib/sched.in.h: Likewise.
9464         * lib/se-selinux.in.h: Likewise.
9465         * lib/search.in.h: Likewise.
9466         * lib/signal.in.h: Likewise.
9467         * lib/spawn.in.h: Likewise.
9468         * lib/stdarg.in.h: Likewise.
9469         * lib/stddef.in.h: Likewise.
9470         * lib/stdint.in.h: Likewise.
9471         * lib/stdio.in.h: Likewise.
9472         * lib/stdlib.in.h: Likewise.
9473         * lib/string.in.h: Likewise.
9474         * lib/strings.in.h: Likewise.
9475         * lib/sys_file.in.h: Likewise.
9476         * lib/sys_ioctl.in.h: Likewise.
9477         * lib/sys_select.in.h: Likewise.
9478         * lib/sys_socket.in.h: Likewise.
9479         * lib/sys_stat.in.h: Likewise.
9480         * lib/sys_time.in.h: Likewise.
9481         * lib/sys_times.in.h: Likewise.
9482         * lib/sys_uio.in.h: Likewise.
9483         * lib/sys_utsname.in.h: Likewise.
9484         * lib/sys_wait.in.h: Likewise.
9485         * lib/sysexits.in.h: Likewise.
9486         * lib/termios.in.h: Likewise.
9487         * lib/time.in.h: Likewise.
9488         * lib/unistd.in.h: Likewise.
9489         * lib/wchar.in.h: Likewise.
9490         * lib/wctype.in.h: Likewise.
9491         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9492         * modules/ctype (Makefile.am): Likewise.
9493         * modules/dirent (Makefile.am): Likewise.
9494         * modules/errno (Makefile.am): Likewise.
9495         * modules/fcntl-h (Makefile.am): Likewise.
9496         * modules/float (Makefile.am): Likewise.
9497         * modules/getopt-posix (Makefile.am): Likewise.
9498         * modules/iconv-h (Makefile.am): Likewise.
9499         * modules/langinfo (Makefile.am): Likewise.
9500         * modules/locale (Makefile.am): Likewise.
9501         * modules/math (Makefile.am): Likewise.
9502         * modules/netdb (Makefile.am): Likewise.
9503         * modules/netinet_in (Makefile.am): Likewise.
9504         * modules/poll-h (Makefile.am): Likewise.
9505         * modules/pthread (Makefile.am): Likewise.
9506         * modules/pty (Makefile.am): Likewise.
9507         * modules/sched (Makefile.am): Likewise.
9508         * modules/search (Makefile.am): Likewise.
9509         * modules/selinux-h (Makefile.am): Likewise.
9510         * modules/signal (Makefile.am): Likewise.
9511         * modules/spawn (Makefile.am): Likewise.
9512         * modules/stdarg (Makefile.am): Likewise.
9513         * modules/stddef (Makefile.am): Likewise.
9514         * modules/stdint (Makefile.am): Likewise.
9515         * modules/stdio (Makefile.am): Likewise.
9516         * modules/stdlib (Makefile.am): Likewise.
9517         * modules/string (Makefile.am): Likewise.
9518         * modules/strings (Makefile.am): Likewise.
9519         * modules/sys_file (Makefile.am): Likewise.
9520         * modules/sys_ioctl (Makefile.am): Likewise.
9521         * modules/sys_select (Makefile.am): Likewise.
9522         * modules/sys_socket (Makefile.am): Likewise.
9523         * modules/sys_stat (Makefile.am): Likewise.
9524         * modules/sys_time (Makefile.am): Likewise.
9525         * modules/sys_times (Makefile.am): Likewise.
9526         * modules/sys_uio (Makefile.am): Likewise.
9527         * modules/sys_utsname (Makefile.am): Likewise.
9528         * modules/sys_wait (Makefile.am): Likewise.
9529         * modules/sysexits (Makefile.am): Likewise.
9530         * modules/termios (Makefile.am): Likewise.
9531         * modules/time (Makefile.am): Likewise.
9532         * modules/unistd (Makefile.am): Likewise.
9533         * modules/wchar (Makefile.am): Likewise.
9534         * modules/wctype-h (Makefile.am): Likewise.
9535         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9536
9537 2011-05-29  Bruno Haible  <bruno@clisp.org>
9538
9539         assert-h: Allow multiple gnulib generated replacements to coexist.
9540         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9541
9542 2011-05-29  Bruno Haible  <bruno@clisp.org>
9543
9544         argp: Allow coexistence with strerror_r-posix module.
9545         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9546         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9547         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9548         not the glibc signature.
9549
9550 2011-05-28  Bruno Haible  <bruno@clisp.org>
9551
9552         gnulib-tool: Alternative structure of testdirs, similar to --import.
9553         * gnulib-tool: New option --single-configure.
9554         (func_usage): Document it.
9555         (single_configure): New variable.
9556         (func_modules_transitive_closure_separately,
9557         func_modules_transitive_closure_separately,
9558         func_determine_use_libtests, func_modules_add_dummy_separately,
9559         func_modules_to_filelist_separately): New functions, extracted from
9560         func_import.
9561         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9562         (func_import): Use the new functions.
9563         (func_create_testdir): Set final_modules. Handle $single_configure =
9564         true case.
9565
9566 2011-05-28  Bruno Haible  <bruno@clisp.org>
9567
9568         getloadavg: Remove an unreliable safety check.
9569         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9570         getloadavg.c is in place.
9571         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9572         Reported by Sam Steingold <sds@gnu.org>.
9573
9574 2011-05-28  Bruno Haible  <bruno@clisp.org>
9575
9576         doc: Cleanup yet another file produced by texinfo.tex.
9577         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9578
9579 2011-05-28  Bruno Haible  <bruno@clisp.org>
9580
9581         Finish the conditional dependencies mechanism.
9582         * gnulib-tool: New option --no-conditional-dependencies.
9583         (func_usage): Document it. Don't mark --conditional-dependencies as
9584         experimental.
9585         (cond_dependencies): The possible values can now be true, false, empty.
9586         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9587         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9588         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9589
9590 2011-05-28  Bruno Haible  <bruno@clisp.org>
9591
9592         doc: Use a recent texinfo.tex.
9593         * doc/Makefile (tex_opts): New variable.
9594         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9595
9596 2011-05-28  Jim Meyering  <meyering@redhat.com>
9597
9598         intprops.h: adjust comment to match code change
9599         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9600         only once, it *may* have side effects.  Also fix an unrelated typo.
9601         (_GL_INT_SIGNED): Likewise.
9602
9603 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9604
9605         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9606
9607 2011-05-26  Bruno Haible  <bruno@clisp.org>
9608
9609         mbsrchr: Avoid collision with system function on Interix.
9610         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9611         Reported by Markus Duft <mduft@gentoo.org>.
9612
9613 2011-05-15  James Youngman  <jay@gnu.org>
9614
9615         getopt: for ambiguous options, enumerate the possibilities.
9616         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9617         the ambiguous options when an ambiguous prefix is given. This was
9618         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9619         glibc change was
9620         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9621
9622 2011-05-25  Eric Blake  <eblake@redhat.com>
9623
9624         getcwd: work around mingw bug
9625         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9626         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9627         Reported by Matthias Bolte.
9628
9629 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9630
9631         test-intprops: disable -Wtype-limits diagnostics
9632         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9633         diagnostics.  Otherwise, the integer overflow macros generate many
9634         diagnostics.  Reported by Jim Meyering in
9635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9636
9637         intprops: shorten, to pacify gcc -Woverlength-strings
9638         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9639         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9640         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9641         likely to run afoul of C compiler limits for string constant lengths.
9642         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9643
9644 2011-05-24  Eric Blake  <eblake@redhat.com>
9645
9646         docs: document recently fixed glibc printf bug
9647         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9648         * doc/posix-functions/printf.texi (printf): Likewise.
9649         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9650         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9651
9652         closein-tests: convert to init.sh
9653         * modules/closein-tests (Files): Add init.sh
9654         * tests/test-closein.sh Use it.
9655
9656         yesno-tests: convert to init.sh
9657         * modules/yesno-tests (Files): Add init.sh.
9658         * tests/test-yesno.sh: Use it.
9659
9660         atexit-tests: ensure reliable exit status
9661         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9662         Reported by Bruno Haible.
9663
9664 2011-05-24  Bruno Haible  <bruno@clisp.org>
9665
9666         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9668         gl_PREREQ_STRERROR_R invocations from here...
9669         * modules/strerror_r-posix (configure.ac): ... to here.
9670
9671 2011-05-24  Eric Blake  <eblake@redhat.com>
9672
9673         strerror_r: fix missing header
9674         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9675
9676         strerror_r: fix AIX test failures
9677         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9678         ERANGE failure.
9679
9680         strerror_r: fix Solaris test failures
9681         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9682         failures.
9683         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9684
9685         strerror_r: enforce POSIX recommendations
9686         * lib/strerror_r.c (safe_copy): New helper method.
9687         (strerror_r): Guarantee a non-empty string.
9688         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9689         recent POSIX rulings and to match our strerror guarantees.
9690         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9691
9692 2011-05-24  Jim Meyering  <meyering@redhat.com>
9693
9694         test-perror2.c: avoid warning about unused variable
9695         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9696
9697 2011-05-24  Eric Blake  <eblake@redhat.com>
9698
9699         perror: avoid spurious test failure on HP-UX
9700         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9701
9702         tests: fix logic bug in init.sh
9703         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9704         shell.
9705
9706 2011-05-24  Jim Meyering  <meyering@redhat.com>
9707
9708         utimensat: do not reference an out-of-scope buffer
9709         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9710         declared in an inner scope, yet "times" would be dereferenced outside
9711         the scope in which "ts" was valid.
9712         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9713         of ts[2] "out/up", so that the use of aliased "times" (via
9714         "times = ts;") does not end up referencing an out-of-scope "ts"
9715
9716         opendir-safer.c: don't clobber errno; don't close negative FD
9717         * lib/opendir-safer.c (opendir_safer):
9718         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9719         file descriptor, and more importantly, don't clobber the
9720         offending errno value with EINVAL.  Before, upon failure
9721         of dup_safer, we would pass the negative file descriptor to
9722         fdopendir, which would clobber errno.
9723
9724 2011-05-23  Bruno Haible  <bruno@clisp.org>
9725
9726         idcache: Fix module description.
9727         * modules/idcache (Include): Set to "idcache.h".
9728
9729 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9730
9731         gnulib-tool: fix portability problem with MacOS sed
9732         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9733         before the "}".  Problem reported by Leo in
9734         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9735         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9736         sed_extract_condition1, sed_extract_condition2.
9737
9738 2011-05-23  Bruno Haible  <bruno@clisp.org>
9739
9740         hash: Simplify autoconf macro.
9741         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9742
9743 2011-05-23  Bruno Haible  <bruno@clisp.org>
9744
9745         getugroups: Fix module description.
9746         * modules/getugroups (Include): Set to "getugroups.h".
9747
9748 2011-05-23  Bruno Haible  <bruno@clisp.org>
9749
9750         linkat: Simplify autoconf macro.
9751         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9752
9753 2011-05-23  Bruno Haible  <bruno@clisp.org>
9754             Eric Blake  <eblake@redhat.com>
9755
9756         linkat, renameat: Update dependencies.
9757         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9758         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9759         symlinkat.
9760
9761 2011-05-23  Jim Meyering  <meyering@redhat.com>
9762
9763         maint.mk: more tight_scope improvements
9764         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9765         (_gl_TS_headers): Define only in if-0'd block.
9766         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9767         sometimes we must *not* use it.  Adjust uses accordingly.
9768         (sc_tight_scope): Use much simpler grep-based test to determine
9769         whether we skip this rule.
9770
9771         maint.mk: generalize/improve the tight-scope rule
9772         * top/maint.mk: Emit a warning when the test is skipped.
9773         (_gl_TS_dir): Add $(srcdir)/ prefix.
9774         (_gl_TS_function_match): Simplify, rather than trying
9775         to enumerate common types.  Otherwise, it would fail to match an
9776         "extern unsigned char const *" declaration in idutils.
9777         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9778         a way to support use of that type of macro.
9779         (_gl_TS_var_match): Simplify regexp.
9780         (_gl_TS_obj_files): New configurable variable.
9781         (_gl_TS_headers): Likewise.
9782
9783 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9784
9785         verify: fix bug when gnulib <assert.h> is also included
9786         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9787         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9788         Perhaps there's a better way, but this fixes the immediate problem.
9789         Problem reported by Bruno Haible in
9790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9791
9792 2011-05-22  Bruno Haible  <bruno@clisp.org>
9793
9794         xgetcwd: Simplify autoconf macro.
9795         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9796
9797 2011-05-22  Bruno Haible  <bruno@clisp.org>
9798
9799         New module 'mktime-internal'.
9800         * modules/mktime-internal: New file.
9801         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9802         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9803         mktime_internal as a C macro if libc has __mktime_internal.
9804         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9805         conditions.
9806         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9807
9808 2011-05-22  Bruno Haible  <bruno@clisp.org>
9809
9810         timegm: Correct mktime replacement statements.
9811         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9812         defining mktime as a C macro. This completes a 2009-07-28 commit.
9813
9814 2011-05-22  Bruno Haible  <bruno@clisp.org>
9815
9816         timegm: Simplify autoconf macro.
9817         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9818
9819 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9820
9821         clock-time: change to LGPLv2+.
9822         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9823         BSD-like but we have no mark for that; this is good enough for now.
9824
9825 2011-05-21  Bruno Haible  <bruno@clisp.org>
9826
9827         strerror_r: Fix comments.
9828         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9829
9830 2011-05-21  Bruno Haible  <bruno@clisp.org>
9831
9832         relocatable-prog-wrapper: Fix possible link error.
9833         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9834         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9835         (gl_FUNC_SETENV): ... to here.
9836         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9837         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9838
9839 2011-05-21  Bruno Haible  <bruno@clisp.org>
9840
9841         relocatable-prog-wrapper: Assume strerror() exists.
9842         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9843         m4/strerror.m4.
9844         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9845         * lib/relocwrapper.c: Remove mention of strerror module.
9846         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9847         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9848         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9849         C macro.
9850
9851 2011-05-21  Bruno Haible  <bruno@clisp.org>
9852
9853         select: Simplify replacement idiom.
9854         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9855         Win32 platforms.
9856         * lib/sys_select.in.h (select): Simplify accordingly.
9857         * modules/select (Depends-on): Likewise.
9858
9859 2011-05-21  Bruno Haible  <bruno@clisp.org>
9860
9861         mkdir-p: Simplify autoconf macro.
9862         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9863         gl_FUNC_LCHOWN.
9864
9865 2011-05-21  Eric Blake  <eblake@redhat.com>
9866
9867         strerror_r: avoid clobbering strerror on cygwin
9868         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9869         fall back instead to sys_errlist.
9870         * modules/strerror (configure.ac): Add witness.
9871         * tests/test-strerror_r.c (main): Enhance test.
9872         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9873         * tests/test-perror2.c (main): Free memory before exit.
9874
9875 2011-05-21  Bruno Haible  <bruno@clisp.org>
9876
9877         mkdtemp: Use gnulib naming conventions.
9878         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9879         * modules/mkdtemp (configure.ac): Update.
9880
9881 2011-05-20  Eric Blake  <eblake@redhat.com>
9882
9883         strerror_r: avoid corrupting errno on Solaris
9884         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9885         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9886
9887         strerror_r: avoid compiler warning
9888         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9889
9890         strerror_r: simplify AIX code
9891         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9892
9893         test-perror: avoid spurious failure on FreeBSD
9894         * modules/perror-tests (Depends-on): Add strerror, now that
9895         strerror_r no longer pulls it in.
9896
9897 2011-05-20  Bruno Haible  <bruno@clisp.org>
9898
9899         strerror_r-posix: Remove unused dependencies.
9900         * modules/strerror_r-posix (Depends-on): Remove strerror.
9901         Reported by Eric Blake.
9902
9903 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9904
9905         intprops: remove assumption about A|B representation
9906         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9907         is a valid integer if both A and B are.  Although this is true for
9908         all known practical hosts, the C standard doesn't guarantee it,
9909         and the code need not assume it.  Also, this change may work around
9910         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9912
9913 2011-05-20  Eric Blake  <eblake@redhat.com>
9914
9915         perror: work around FreeBSD bug
9916         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9917         is broken.  Move AC_LIBOBJ...
9918         * modules/perror (configure.ac): Here.
9919         * doc/posix-functions/perror.texi (perror): Document this.
9920         * tests/test-perror2.c (main): Enhance test.
9921
9922         test-perror: check for strerror interactions
9923         * tests/macros.h (STREQ): Add macro.
9924         * modules/perror-tests (Files): Add second test.
9925         * tests/test-perror2.c (main): New file.
9926         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9927
9928         test-perror: rewrite to use init script
9929         * modules/perror-tests (Files): Add init.sh.
9930         * tests/test-perror.sh: Use temporary directory.
9931
9932 2011-05-20  Jim Meyering  <meyering@redhat.com>
9933
9934         maint: replace misused "a" with "an"
9935         * doc/intprops.texi: "a integer"
9936         * doc/regex.texi: "a explanation"
9937         * lib/alignof.h: "a object"
9938         * lib/argmatch.h: "a explanation"
9939         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9940         * lib/stdint.in.h: "a integer"
9941         * lib/userspec.c: "a owner"
9942         * doc/gnulib.texi: Fix "a idea", and reword.
9943
9944 2011-05-19  Jim Meyering  <meyering@redhat.com>
9945
9946         maint: correct misuse of "a" and "an"
9947         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9948         * lib/argp-help.c: "an docum...": s/an/a/
9949         * lib/argp-parse.c: "An vector": s/An/A/
9950         * lib/execute.c: "an native": s/an/a/
9951         * lib/spawn-pipe.c: Likewise.
9952         * lib/gc.h: "an Gc_rc": s/an/a/
9953         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9954         * lib/fts.c: "an stat.st_dev": s/an/a/
9955
9956 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9957
9958         intprops-tests: work around HP-UX 11.23 cc bug with constants
9959         * tests/test-intprops.c (VERIFY): New macro.
9960         (main): Use it, instead of verify, to work around the compiler bug; see
9961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9962
9963         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9964         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9965         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9966         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9967         (_GL_REMAINDER_OVERFLOW): Use it.
9968
9969         intprops-tests: revert unsigned part of previous change
9970         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9971         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9972         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9974
9975 2011-05-19  Bruno Haible  <bruno@clisp.org>
9976
9977         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9978         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9979         strerror_r() returned without filling the buffer.
9980         Reported by Eric Blake.
9981
9982 2011-05-19  Eric Blake  <eblake@redhat.com>
9983
9984         strerror_r: guarantee unchanged errno
9985         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9986         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9987         failure.
9988         * tests/test-strerror_r.c (main): Enhance test.
9989
9990 2011-05-19  Bruno Haible  <bruno@clisp.org>
9991
9992         strerror_r: Reorder #if blocks.
9993         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9994         for consistency with the previous commit.
9995
9996 2011-05-19  Bruno Haible  <bruno@clisp.org>
9997
9998         perror: Avoid clobbering the strerror buffer when possible.
9999         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10000         * lib/strerror.c: Include it.
10001         * modules/strerror (Files): Add lib/strerror-impl.h.
10002         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10003         (my_strerror): New function, defined through lib/strerror-impl.h.
10004         (perror): Use it instead of strerror.
10005         * modules/perror (Files): Add lib/strerror-impl.h.
10006         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10007
10008 2011-05-19  Eric Blake  <eblake@redhat.com>
10009
10010         strerror_r: fix on newer cygwin
10011         * lib/strerror_r.c (strerror_r): Cygwin now has
10012         __xpg_strerror_r, use it.
10013
10014 2011-05-19  Bruno Haible  <bruno@clisp.org>
10015
10016         strerror_r: Avoid clobbering the strerror buffer when possible.
10017         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10018         (sys_nerr, sys_errlist): New declarations.
10019         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10020         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10021         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10022
10023 2011-05-19  Bruno Haible  <bruno@clisp.org>
10024
10025         strerror_r: Fix test failure on mingw.
10026         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10027         EXTEND_STRERROR_R.
10028         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10029         macros from errno.in.h instead.
10030
10031 2011-05-19  Eric Blake  <eblake@redhat.com>
10032
10033         strerror: relax test for Solaris
10034         * tests/test-strerror.c (main): Permit Solaris behavior.
10035         * tests/test-strerror_r.c (main): Likewise.
10036
10037         strerror: enforce POSIX ruling on strerror(0)
10038         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10039         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10040         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10041         * doc/posix-functions/strerror.texi (strerror): Document it.
10042         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10043         * tests/test-strerror.c (main): Strengthen test.
10044         * tests/test-strerror_r.c (main): Likewise.
10045
10046 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10047
10048         intprop-tests: port to older and more-pedantic compilers
10049         * modules/intprops-tests (Files): Add tests/macros.h.
10050         * tests/test-intprops.c: Include macros.h.
10051         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10052         it's no longer documented to expand to an integer constant expression.
10053         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10054         argument is floating point, as it's no longer documented to expand
10055         to an integer constant expression in that case.
10056         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10057         compiler bugs reported by Bruno Haible.  See
10058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10059         (U0, U1): New constants, to work around the same bugs.  Also,
10060         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10061
10062         intprops: work around C compiler bugs
10063         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10064         bug in Sun C 5.11 2010/08/13 and other compilers; see
10065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10066
10067         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10068         * doc/intprops.texi (Integer Type Determination): Fix
10069         documentation for TYPE_IS_INTEGER: it returns an constant
10070         expression, not an integer constant expression.  Fix doc for
10071         TYPE_SIGNED: it returns an integer constant expression only if its
10072         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10073         hardly worth documented that way....)
10074
10075 2011-05-18  Bruno Haible  <bruno@clisp.org>
10076
10077         strerror_r: Avoid clobbering the strerror buffer when possible.
10078         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10079         Handle gnulib defined errno values here. When strerror() returns NULL
10080         or an empty string, return EINVAL.
10081         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10082         gnulib defined errno values here.
10083         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10084
10085 2011-05-18  Eric Blake  <eblake@redhat.com>
10086
10087         fnmatch: avoid compiler warning
10088         * lib/fnmatch_loop.c (FCT): Use correct type.
10089         Reported by Matthias Bolte.
10090
10091 2011-05-13  Jim Meyering  <meyering@redhat.com>
10092
10093         maint.mk: three new prohibit_<HDR>_without_use rules
10094         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10095         (sc_prohibit_stdio-safer_without_use): Likewise.
10096         (sc_prohibit_xfreopen_without_use): Likewise.
10097
10098 2011-05-17  Jim Meyering  <meyering@redhat.com>
10099
10100         announce-gen: fail if the NEWS delta is empty
10101         If there's nothing noteworthy in NEWS, then either you forgot
10102         or you shouldn't be releasing.
10103         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10104
10105 2011-05-17  Pádraig Brady <P@draigBrady.com>
10106
10107         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10108         reserved symbols starting with double underscore from the check.
10109
10110 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10111
10112         intprops: add doc
10113         * doc/intprops.texi: New file, documenting intprops.
10114         * doc/gnulib.texi (Particular Modules): Include it.
10115
10116         verify: add doc to gnulib manual and fix example
10117         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10118         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10119         (Compile-time Assertions): Fix example so it can't overflow.
10120
10121 2011-05-17  Jim Meyering  <meyering@redhat.com>
10122
10123         warnings.m4: don't usurp save_CPPFLAGS variable name
10124         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10125
10126         doc: fix typo
10127         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10128
10129 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10130             Bruno Haible  <bruno@clisp.org>
10131
10132         doc: Tweak recent change.
10133         * README (Portability guidelines): Tweak new text.
10134         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10135         Interix 6.1.
10136
10137 2011-05-16  Eric Blake  <eblake@redhat.com>
10138
10139         inttypes: avoid autoconf warning
10140         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10141         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10142
10143 2011-05-16  Sam Steingold <sds@gnu.org>
10144         and Eric Blake  <eblake@redhat.com>
10145
10146         vc-list-files: accept multiple directory operands
10147         * build-aux/vc-list-files: Iterate over all remaining operands.
10148
10149 2011-05-16  Bruno Haible  <bruno@clisp.org>
10150
10151         Fix confusion regarding deprecated modules.
10152         * modules/calloc (Status, Notice): Mark module as deprecated, not
10153         obsolete.
10154         * modules/fnmatch-posix (Status, Notice): Likewise.
10155         * modules/getdate (Status, Notice): Likewise.
10156         * modules/getopt (Status, Notice): Likewise.
10157         * modules/malloc (Status, Notice): Likewise.
10158         * modules/pipe (Status, Notice): Likewise.
10159         * modules/realloc (Status, Notice): Likewise.
10160         * modules/rename-dest-slash (Status, Notice): Likewise.
10161         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10162         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10163         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10164         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10165         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10166
10167 2011-05-16  Bruno Haible  <bruno@clisp.org>
10168
10169         doc: List the target platforms.
10170         * doc/gnulib-intro.texi (Target Platforms): New section.
10171         * doc/gnulib.texi (Introduction): Update menu.
10172         * README (Portability guidelines): Refer to the new section. Update
10173         statement about oldest supported environment. Remove rationale why
10174         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10175         unportable C89 function.
10176         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10177         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10178
10179 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10180
10181         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10182
10183 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10184
10185         intprops-tests: new module
10186         * modules/intprops-tests, tests/test-intprops.c: New files.
10187
10188         intprops: add safe, portable integer overflow checking
10189         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10190         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10191         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10192         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10193         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10194         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10195         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10196         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10197         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10198         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10199         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10200
10201 2011-05-12  James Youngman  <jay@gnu.org>
10202
10203         Add a test for glibc's Bugzilla bug #12378.
10204         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10205         doesn't allow the literal matching of a lone "[" (which is
10206         required by POSIX).
10207         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10208
10209 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10210
10211         Sync glibc change fixing Bugzilla bug #12378.
10212         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10213         beginning and fall back to matching as normal character if the
10214         string ends before the matching ']' is found.  This is what POSIX
10215         requires.
10216
10217 2011-05-13  Eric Blake  <eblake@redhat.com>
10218
10219         getcwd-lgpl: relax test for FreeBSD
10220         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10221         issue.
10222         * tests/test-getcwd-lgpl.c (main): Relax test.
10223         Reported by Matthias Bolte.
10224
10225 2011-05-11  Eric Blake  <eblake@redhat.com>
10226
10227         test-fflush: silence compiler warning
10228         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10229
10230 2011-05-11  Bruno Haible  <bruno@clisp.org>
10231
10232         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10233         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10234         * modules/canonicalize (Depends-on): Add 'nocrash'.
10235         * modules/canonicalize-lgpl (Depends-on): Likewise.
10236         * doc/posix-functions/realpath.texi: Update platforms list.
10237         Reported by Ryan Schmidt <ryandesign@macports.org>.
10238
10239 2011-05-11  Bruno Haible  <bruno@clisp.org>
10240
10241         group-member: Declare function in <unistd.h>.
10242         * lib/unistd.in.h (group_member): New declaration.
10243         * lib/group-member.h: Remove file.
10244         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10245         * tests/test-unistd-c++.cc: Check signature of group_member.
10246         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10247         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10248         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10249         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10250         HAVE_GROUP_MEMBER.
10251         * modules/group-member (Files): Remove lib/group-member.h.
10252         (Depends-on): Add unistd. Specify conditions.
10253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10254         (Include): Change to <unistd.h>.
10255         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10256         HAVE_GROUP_MEMBER.
10257         * NEWS: Mention the change.
10258         * lib/euidaccess.c: Don't include group-member.h.
10259
10260 2011-05-11  Bruno Haible  <bruno@clisp.org>
10261
10262         group-member: Document module.
10263         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10264         module.
10265
10266 2011-05-11  Bruno Haible  <bruno@clisp.org>
10267
10268         fclose: Fix mistake earlier today.
10269         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10270
10271 2011-05-11  Eric Blake  <eblake@redhat.com>
10272
10273         fclose: preserve fflush errors
10274         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10275         Reported by Jim Meyering.
10276
10277         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10278         * build-aux/bootstrap (check_versions): When no specific version
10279         is required, merely check that the app produces an exit status
10280         that indicates its existence.
10281
10282         maint.mk: drop redundant check
10283         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10284         the same but better.
10285
10286 2011-05-11  Bruno Haible  <bruno@clisp.org>
10287
10288         fclose: Fix possible link error.
10289         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10290         unregister_shadow_fd. Improve comments.
10291         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10292         Eric Blake.
10293
10294 2011-05-11  Jim Meyering  <meyering@redhat.com>
10295
10296         maint.mk: improve "can not" detection and generalize rule name
10297         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10298         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10299         Use the same technique as in sc_prohibit_doubled_word, so that
10300         we recognize "can not" also when the words are separated by a newline.
10301         Suggested by Eric Blake.
10302         (perl_filename_lineno_text_): Define.  Factored out of...
10303         (prohibit_doubled_word_): ...here.  Use the new definition.
10304         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10305         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10306         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10307
10308 2011-05-10  Eric Blake  <eblake@redhat.com>
10309
10310         fclose: avoid double close race when possible
10311         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10312         all but WINDOWS_SOCKETS.
10313
10314 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10315
10316         openat: correct new comment
10317         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10318
10319 2011-05-10  Jim Meyering  <meyering@redhat.com>
10320
10321         openat: add comments
10322         * lib/openat-proc.c (openat_proc_name): Add comments,
10323         mostly from Eric Blake.
10324
10325 2011-05-09  Eric Blake  <eblake@redhat.com>
10326
10327         openat: reduce syscalls in first probe of /proc
10328         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10329         be a directory.  Simplify the probe for .. bugs.
10330         * modules/openat (Depends-on): Drop same-inode.
10331         Reported by Bastien ROUCARIES.
10332
10333 2011-05-09  Jim Meyering  <meyering@redhat.com>
10334
10335         maint.mk: change semantics/name of tight_scope variables
10336         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10337         Rename variables to align with semantics that make them more useful.
10338
10339         maint.mk: tweak new rule's name not to impinge
10340         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10341         (sc_tight_scope): Use new rule name rather than $@-0.
10342
10343         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10344         * top/maint.mk (sc_tight_scope): New rule.
10345         (sc_tight_scope-0): New rule, ifdef'd out.
10346         (_gl_TS_dir): Default.
10347         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10348         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10349
10350 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10351
10352         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10353         Haible <bruno@clisp.org>.
10354
10355 2011-05-08  Bruno Haible  <bruno@clisp.org>
10356
10357         Comments.
10358         * m4/isnanf.m4: Add comment.
10359         * m4/isnanl.m4: Likewise.
10360
10361 2011-05-08  Bruno Haible  <bruno@clisp.org>
10362
10363         glob: Remove obsolete macro.
10364         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10365
10366 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10367
10368         intprops: Sun C 5.11 supports __typeof__
10369         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10370         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10371         which is new.
10372         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10373
10374         intprops: switch to usual gnulib indenting and naming
10375         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10376         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10377
10378         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10379
10380 2011-05-08  Jim Meyering  <meyering@redhat.com>
10381
10382         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10383         * top/maint.mk (release-prep): Use make's --no-print-directory
10384         option when generating the announcement.  This eliminates the
10385         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10386         generated announcement template.
10387
10388 2011-05-08  Bruno Haible  <bruno@clisp.org>
10389
10390         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10391         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10392         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10393
10394 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10395
10396         ignore-value, verify: Omit include files from lib_SOURCES.
10397         * modules/ignore-value, modules/verify (Makefile.am):
10398         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10399         that leads Automake to duplicate use of am__objects_... variables
10400         in Makefile.in.  See
10401         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10402
10403 2011-05-07  Bruno Haible  <bruno@clisp.org>
10404
10405         fclose: Simplify autoconf macro.
10406         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10407         defined.
10408
10409 2011-05-07  Bruno Haible  <bruno@clisp.org>
10410
10411         canonicalize-lgpl: Fix autoconf macro ordering bug.
10412         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10413         gl_STDLIB_H_DEFAULTS.
10414
10415 2011-05-06  Eric Blake  <eblake@redhat.com>
10416
10417         maintainer-makefile: make sc_po_check easier to tune
10418         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10419         to probe for strings, such as an alternate location for gnulib.
10420
10421         fclose: guarantee behavior on seekable stdin
10422         * modules/fclose (Depends-on): Add fflush.
10423         * doc/posix-functions/fclose.texi (fclose): Document this.
10424         * tests/test-fclose.c (main): Make test for this unconditional.
10425
10426 2011-05-06  Bruno Haible  <bruno@clisp.org>
10427
10428         fflush, fpurge: Relicense under LGPLv2+.
10429         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10430         * modules/fpurge (License): Likewise.
10431         With permission from Eric Blake and Jim Meyering.
10432         Suggested by Eric Blake.
10433
10434 2011-05-06  Karl Berry  <karl@gnu.org>
10435
10436         * MODULES.html.sh (func_all_modules): remove exit.
10437
10438 2011-05-06  Jim Meyering  <meyering@redhat.com>
10439
10440         maint.mk: use info-gnu@ as the default only for a stable release
10441         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10442         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10443         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10445
10446 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10447
10448         assert-h: new module, which supports C1X-style static_assert
10449         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10450         * lib/verify.h: Revamp so that this can be copied into assert.h,
10451         while retaining the ability to use it standalone as before.
10452         Rename private identifiers so as not to encroach on the
10453         standard C namespace, since this is now used by assert.h.
10454         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10455         the old verify_true.
10456         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10457         the old verify_true.  Use _GL_VERIFY_TYPE.
10458         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10459         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10460         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10461         defined when this file is copied into the replacement assert.h.
10462         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10463         and _Static_assert is not built in.
10464         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10465         defined, and use the new macros mentioned above.
10466         * doc/posix-headers/assert.texi: Document this.
10467
10468 2011-05-05  Bruno Haible  <bruno@clisp.org>
10469
10470         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10471         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10472         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10473         gl_REPLACE_FCLOSE here.
10474         * modules/fflush (Depends-on): Remove fclose.
10475         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10476         combination with module 'fclose'.
10477
10478 2011-05-05  Bruno Haible  <bruno@clisp.org>
10479
10480         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10481         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10482         gl_FUNC_FFLUSH.
10483         (gl_FUNC_FFLUSH): Use it.
10484         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10486         gl_REPLACE_FSEEKO here.
10487
10488 2011-05-05  Bruno Haible  <bruno@clisp.org>
10489
10490         tzset: Relicense under LGPL.
10491         * modules/tzset (License): Change to LGPL.
10492         No agreement needed; it's a no-op.
10493
10494         strtoimax, strtoumax: Relicense under LGPL.
10495         * modules/strtoimax (License): Change to LGPL.
10496         * modules/strtoumax (License): Likewise.
10497         With permission from Jim Meyering, Paul Eggert:
10498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10500
10501         getgroups: Relicense under LGPL.
10502         * modules/getgroups (License): Change to LGPL.
10503         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10507
10508         nanosleep: Relicense under LGPL.
10509         * modules/nanosleep (License): Change to LGPL.
10510         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10511         Haible:
10512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10516
10517         futimens: Relicense under LGPL.
10518         * modules/futimens (License): Change to LGPL.
10519         With permission from Eric Blake:
10520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10521
10522         fflush: Relicense under LGPL.
10523         * modules/fflush (License): Change to LGPL.
10524         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10528
10529         tmpfile: Relicense under LGPL.
10530         * modules/tmpfile (License): Change to LGPL.
10531         With permission from Ben Pfaff:
10532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10533
10534         isfinite: Relicense under LGPL.
10535         * modules/isfinite (License): Change to LGPL.
10536         With permission from Ben Pfaff, Bruno Haible:
10537         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10539
10540         acosl..tanl: Relicense under LGPL.
10541         * modules/acosl (License): Change to LGPL.
10542         * modules/asinl (License): Likewise.
10543         * modules/atanl (License): Likewise.
10544         * modules/cosl (License): Likewise.
10545         * modules/expl (License): Likewise.
10546         * modules/logl (License): Likewise.
10547         * modules/sinl (License): Likewise.
10548         * modules/sqrtl (License): Likewise.
10549         * modules/tanl (License): Likewise.
10550         Source code originally from glibc and Paolo Bonzini. Agreements:
10551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10553
10554 2011-05-05  Bruno Haible  <bruno@clisp.org>
10555
10556         signal: Define sighandler_t.
10557         * lib/signal.in.h (sighandler_t): New type.
10558         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10559         whether sighandler_t is defined.
10560         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10561         * modules/signal (Depends-on): Add extensions.
10562         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10563         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10564         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10565
10566 2011-05-05  Eric Blake  <eblake@redhat.com>
10567
10568         maint: remove useless REPLACE_*_H macros
10569         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10570         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10571         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10572         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10573         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10574         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10575         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10576         * m4/btowc.m4: Update callers.
10577         * m4/dirfd.m4: Likewise.
10578         * m4/duplocale.m4: Likewise.
10579         * m4/fchdir.m4: Likewise.
10580         * m4/fdopendir.m4: Likewise.
10581         * m4/inet_ntop.m4: Likewise.
10582         * m4/inet_pton.m4: Likewise.
10583         * m4/ioctl.m4: Likewise.
10584         * m4/mbrlen.m4: Likewise.
10585         * m4/mbrtowc.m4: Likewise.
10586         * m4/mbsinit.m4: Likewise.
10587         * m4/mbsnrtowcs.m4: Likewise.
10588         * m4/mbsrtowcs.m4: Likewise.
10589         * m4/poll.m4: Likewise.
10590         * m4/setlocale.m4: Likewise.
10591         * m4/wcrtomb.m4: Likewise.
10592         * m4/wcsnrtombs.m4: Likewise.
10593         * m4/wcsrtombs.m4: Likewise.
10594         * m4/wctob.m4: Likewise.
10595         * m4/wcwidth.m4: Likewise.
10596         * modules/posix_spawn: Likewise.
10597         * modules/posix_spawn_file_actions_addclose: Likewise.
10598         * modules/posix_spawn_file_actions_adddup2: Likewise.
10599         * modules/posix_spawn_file_actions_addopen: Likewise.
10600         * modules/posix_spawn_file_actions_destroy: Likewise.
10601         * modules/posix_spawn_file_actions_init: Likewise.
10602         * modules/posix_spawnattr_destroy: Likewise.
10603         * modules/posix_spawnattr_getflags: Likewise.
10604         * modules/posix_spawnattr_getpgroup: Likewise.
10605         * modules/posix_spawnattr_getschedparam: Likewise.
10606         * modules/posix_spawnattr_getschedpolicy: Likewise.
10607         * modules/posix_spawnattr_getsigdefault: Likewise.
10608         * modules/posix_spawnattr_getsigmask: Likewise.
10609         * modules/posix_spawnattr_init: Likewise.
10610         * modules/posix_spawnattr_setflags: Likewise.
10611         * modules/posix_spawnattr_setpgroup: Likewise.
10612         * modules/posix_spawnattr_setschedparam: Likewise.
10613         * modules/posix_spawnattr_setschedpolicy: Likewise.
10614         * modules/posix_spawnattr_setsigdefault: Likewise.
10615         * modules/posix_spawnattr_setsigmask: Likewise.
10616         * modules/posix_spawnp: Likewise.
10617
10618 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10619
10620         Add option to do-release-commit-and-tag to specify branch.
10621         * build-aux/do-release-commit-and-tag: Add --branch.
10622
10623 2011-05-03  Bruno Haible  <bruno@clisp.org>
10624
10625         Avoid unnecessary compilation units, through conditional dependencies.
10626         * modules/accept (Depends-on): Add conditions to the dependencies.
10627         * modules/acosl (Depends-on): Likewise.
10628         * modules/argz (Depends-on): Likewise.
10629         * modules/asinl (Depends-on): Likewise.
10630         * modules/atanl (Depends-on): Likewise.
10631         * modules/atoll (Depends-on): Likewise.
10632         * modules/bind (Depends-on): Likewise.
10633         * modules/btowc (Depends-on): Likewise.
10634         * modules/canonicalize-lgpl (Depends-on): Likewise.
10635         * modules/ceil (Depends-on): Likewise.
10636         * modules/ceilf (Depends-on): Likewise.
10637         * modules/ceill (Depends-on): Likewise.
10638         * modules/chdir-long (Depends-on): Likewise.
10639         * modules/chown (Depends-on): Likewise.
10640         * modules/close (Depends-on): Likewise.
10641         * modules/connect (Depends-on): Likewise.
10642         * modules/cosl (Depends-on): Likewise.
10643         * modules/dirfd (Depends-on): Likewise.
10644         * modules/dprintf (Depends-on): Likewise.
10645         * modules/dprintf-posix (Depends-on): Likewise.
10646         * modules/error (Depends-on): Likewise.
10647         * modules/euidaccess (Depends-on): Likewise.
10648         * modules/expl (Depends-on): Likewise.
10649         * modules/faccessat (Depends-on): Likewise.
10650         * modules/fchdir (Depends-on): Likewise.
10651         * modules/fclose (Depends-on): Likewise.
10652         * modules/fcntl (Depends-on): Likewise.
10653         * modules/fdopendir (Depends-on): Likewise.
10654         * modules/fflush (Depends-on): Likewise.
10655         * modules/floor (Depends-on): Likewise.
10656         * modules/floorf (Depends-on): Likewise.
10657         * modules/floorl (Depends-on): Likewise.
10658         * modules/fnmatch (Depends-on): Likewise.
10659         * modules/fopen (Depends-on): Likewise.
10660         * modules/fprintf-posix (Depends-on): Likewise.
10661         * modules/frexp (Depends-on): Likewise.
10662         * modules/frexp-nolibm (Depends-on): Likewise.
10663         * modules/frexpl (Depends-on): Likewise.
10664         * modules/frexpl-nolibm (Depends-on): Likewise.
10665         * modules/fseek (Depends-on): Likewise.
10666         * modules/fsusage (Depends-on): Likewise.
10667         * modules/ftell (Depends-on): Likewise.
10668         * modules/ftello (Depends-on): Likewise.
10669         * modules/futimens (Depends-on): Likewise.
10670         * modules/getcwd (Depends-on): Likewise.
10671         * modules/getcwd-lgpl (Depends-on): Likewise.
10672         * modules/getdelim (Depends-on): Likewise.
10673         * modules/getdomainname (Depends-on): Likewise.
10674         * modules/getgroups (Depends-on): Likewise.
10675         * modules/gethostname (Depends-on): Likewise.
10676         * modules/getline (Depends-on): Likewise.
10677         * modules/getlogin_r (Depends-on): Likewise.
10678         * modules/getopt-posix (Depends-on): Likewise.
10679         * modules/getpeername (Depends-on): Likewise.
10680         * modules/getsockname (Depends-on): Likewise.
10681         * modules/getsockopt (Depends-on): Likewise.
10682         * modules/getsubopt (Depends-on): Likewise.
10683         * modules/getusershell (Depends-on): Likewise.
10684         * modules/glob (Depends-on): Likewise.
10685         * modules/grantpt (Depends-on): Likewise.
10686         * modules/iconv_open (Depends-on): Likewise.
10687         * modules/iconv_open-utf (Depends-on): Likewise.
10688         * modules/inet_ntop (Depends-on): Likewise.
10689         * modules/inet_pton (Depends-on): Likewise.
10690         * modules/ioctl (Depends-on): Likewise.
10691         * modules/isapipe (Depends-on): Likewise.
10692         * modules/isfinite (Depends-on): Likewise.
10693         * modules/isinf (Depends-on): Likewise.
10694         * modules/lchown (Depends-on): Likewise.
10695         * modules/ldexpl (Depends-on): Likewise.
10696         * modules/link (Depends-on): Likewise.
10697         * modules/linkat (Depends-on): Likewise.
10698         * modules/listen (Depends-on): Likewise.
10699         * modules/logl (Depends-on): Likewise.
10700         * modules/lstat (Depends-on): Likewise.
10701         * modules/mbrlen (Depends-on): Likewise.
10702         * modules/mbrtowc (Depends-on): Likewise.
10703         * modules/mbsinit (Depends-on): Likewise.
10704         * modules/mbsnrtowcs (Depends-on): Likewise.
10705         * modules/mbsrtowcs (Depends-on): Likewise.
10706         * modules/mbtowc (Depends-on): Likewise.
10707         * modules/memcmp (Depends-on): Likewise.
10708         * modules/mkdir (Depends-on): Likewise.
10709         * modules/mkdtemp (Depends-on): Likewise.
10710         * modules/mkfifo (Depends-on): Likewise.
10711         * modules/mkfifoat (Depends-on): Likewise.
10712         * modules/mknod (Depends-on): Likewise.
10713         * modules/mkostemp (Depends-on): Likewise.
10714         * modules/mkostemps (Depends-on): Likewise.
10715         * modules/mkstemp (Depends-on): Likewise.
10716         * modules/mkstemps (Depends-on): Likewise.
10717         * modules/mktime (Depends-on): Likewise.
10718         * modules/nanosleep (Depends-on): Likewise.
10719         * modules/open (Depends-on): Likewise.
10720         * modules/openat (Depends-on): Likewise.
10721         * modules/perror (Depends-on): Likewise.
10722         * modules/poll (Depends-on): Likewise.
10723         * modules/popen (Depends-on): Likewise.
10724         * modules/posix_spawn (Depends-on): Likewise.
10725         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10726         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10727         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10728         * modules/posix_spawnp (Depends-on): Likewise.
10729         * modules/pread (Depends-on): Likewise.
10730         * modules/printf-posix (Depends-on): Likewise.
10731         * modules/ptsname (Depends-on): Likewise.
10732         * modules/putenv (Depends-on): Likewise.
10733         * modules/pwrite (Depends-on): Likewise.
10734         * modules/readline (Depends-on): Likewise.
10735         * modules/readlink (Depends-on): Likewise.
10736         * modules/readlinkat (Depends-on): Likewise.
10737         * modules/recv (Depends-on): Likewise.
10738         * modules/recvfrom (Depends-on): Likewise.
10739         * modules/regex (Depends-on): Likewise.
10740         * modules/remove (Depends-on): Likewise.
10741         * modules/rename (Depends-on): Likewise.
10742         * modules/renameat (Depends-on): Likewise.
10743         * modules/rmdir (Depends-on): Likewise.
10744         * modules/round (Depends-on): Likewise.
10745         * modules/roundf (Depends-on): Likewise.
10746         * modules/roundl (Depends-on): Likewise.
10747         * modules/rpmatch (Depends-on): Likewise.
10748         * modules/select (Depends-on): Likewise.
10749         * modules/send (Depends-on): Likewise.
10750         * modules/sendto (Depends-on): Likewise.
10751         * modules/setenv (Depends-on): Likewise.
10752         * modules/setlocale (Depends-on): Likewise.
10753         * modules/setsockopt (Depends-on): Likewise.
10754         * modules/shutdown (Depends-on): Likewise.
10755         * modules/sigaction (Depends-on): Likewise.
10756         * modules/signbit (Depends-on): Likewise.
10757         * modules/sigprocmask (Depends-on): Likewise.
10758         * modules/sinl (Depends-on): Likewise.
10759         * modules/sleep (Depends-on): Likewise.
10760         * modules/snprintf (Depends-on): Likewise.
10761         * modules/snprintf-posix (Depends-on): Likewise.
10762         * modules/socket (Depends-on): Likewise.
10763         * modules/sprintf-posix (Depends-on): Likewise.
10764         * modules/sqrtl (Depends-on): Likewise.
10765         * modules/stat (Depends-on): Likewise.
10766         * modules/strchrnul (Depends-on): Likewise.
10767         * modules/strdup-posix (Depends-on): Likewise.
10768         * modules/strerror (Depends-on): Likewise.
10769         * modules/strerror_r-posix (Depends-on): Likewise.
10770         * modules/strndup (Depends-on): Likewise.
10771         * modules/strnlen (Depends-on): Likewise.
10772         * modules/strptime (Depends-on): Likewise.
10773         * modules/strsep (Depends-on): Likewise.
10774         * modules/strsignal (Depends-on): Likewise.
10775         * modules/strstr-simple (Depends-on): Likewise.
10776         * modules/strtod (Depends-on): Likewise.
10777         * modules/strtoimax (Depends-on): Likewise.
10778         * modules/strtok_r (Depends-on): Likewise.
10779         * modules/strtoumax (Depends-on): Likewise.
10780         * modules/symlink (Depends-on): Likewise.
10781         * modules/symlinkat (Depends-on): Likewise.
10782         * modules/tanl (Depends-on): Likewise.
10783         * modules/tcgetsid (Depends-on): Likewise.
10784         * modules/tmpfile (Depends-on): Likewise.
10785         * modules/trunc (Depends-on): Likewise.
10786         * modules/truncf (Depends-on): Likewise.
10787         * modules/truncl (Depends-on): Likewise.
10788         * modules/uname (Depends-on): Likewise.
10789         * modules/unlink (Depends-on): Likewise.
10790         * modules/unlockpt (Depends-on): Likewise.
10791         * modules/unsetenv (Depends-on): Likewise.
10792         * modules/usleep (Depends-on): Likewise.
10793         * modules/utimensat (Depends-on): Likewise.
10794         * modules/vasprintf (Depends-on): Likewise.
10795         * modules/vdprintf (Depends-on): Likewise.
10796         * modules/vdprintf-posix (Depends-on): Likewise.
10797         * modules/vfprintf-posix (Depends-on): Likewise.
10798         * modules/vprintf-posix (Depends-on): Likewise.
10799         * modules/vsnprintf (Depends-on): Likewise.
10800         * modules/vsnprintf-posix (Depends-on): Likewise.
10801         * modules/vsprintf-posix (Depends-on): Likewise.
10802         * modules/wcrtomb (Depends-on): Likewise.
10803         * modules/wcscasecmp (Depends-on): Likewise.
10804         * modules/wcscspn (Depends-on): Likewise.
10805         * modules/wcsdup (Depends-on): Likewise.
10806         * modules/wcsncasecmp (Depends-on): Likewise.
10807         * modules/wcsnrtombs (Depends-on): Likewise.
10808         * modules/wcspbrk (Depends-on): Likewise.
10809         * modules/wcsrtombs (Depends-on): Likewise.
10810         * modules/wcsspn (Depends-on): Likewise.
10811         * modules/wcsstr (Depends-on): Likewise.
10812         * modules/wcstok (Depends-on): Likewise.
10813         * modules/wcswidth (Depends-on): Likewise.
10814         * modules/wctob (Depends-on): Likewise.
10815         * modules/wctomb (Depends-on): Likewise.
10816         * modules/wctype (Depends-on): Likewise.
10817         * modules/wcwidth (Depends-on): Likewise.
10818         * modules/write (Depends-on): Likewise.
10819
10820 2011-05-03  Bruno Haible  <bruno@clisp.org>
10821
10822         Support for conditional dependencies.
10823         * doc/gnulib.texi (Module description): Document the syntax of
10824         conditional dependencies.
10825         * gnulib-tool: New option --conditional-dependencies.
10826         (func_usage): Document it.
10827         (cond_dependencies): New variable.
10828         (func_get_automake_snippet_conditional,
10829         func_get_automake_snippet_unconditional): New functions, extracted from
10830         func_get_automake_snippet.
10831         (func_get_automake_snippet): Use them.
10832         (sed_first_32_chars): New variable.
10833         (func_module_shellfunc_name): New function.
10834         (func_module_shellvar_name): New function.
10835         (func_module_conditional_name): New function.
10836         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10837         func_cond_module_condition): New functions.
10838         (func_modules_transitive_closure): Add support for conditional
10839         dependencies.
10840         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10841         conditional automake snippet in an automake conditional.
10842         (func_emit_autoconf_snippets): Emit shell functions that contain the
10843         code for conditional modules.
10844         (func_import, func_create_testdir): Update specification.
10845
10846 2011-05-03  Eric Blake  <eblake@redhat.com>
10847
10848         test-getaddrinfo: report error information
10849         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10850
10851 2011-05-03  Jim Meyering  <meyering@redhat.com>
10852
10853         bootstrap: avoid build failure when $GZIP is set
10854         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10855         program name.  If defined at all, it is supposed to list gzip options.
10856         Reported by Alan Curry in http://debbugs.gnu.org/8609
10857
10858 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10859
10860         readme-release: new module with release instructions
10861         * modules/readme-release: New module.
10862         * top/README-release: New file, from coreutils, grep, diffutils.
10863         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10864
10865 2011-05-02  Eric Blake  <eblake@redhat.com>
10866
10867         fflush: also replace fclose when fixing fflush
10868         * modules/fflush (Depends-on): Add fclose.
10869         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10870         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10871         memstreams with no backing fd.
10872         * doc/posix-functions/fclose.texi (fclose): Document the use of
10873         fflush module to fix the bug.
10874         * tests/test-fclose.c (main): Relax test when fclose is used in
10875         isolation.
10876
10877         fclose: add some tests
10878         * modules/fclose-tests: New test module.
10879         * tests/test-fclose.c: New file.
10880         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10881
10882         fclose: reduced dependencies
10883         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10884         simpler lseek.
10885         * lib/fclose.c (rpl_fclose): Likewise.
10886         Reported by Simon Josefsson.
10887
10888         exit: drop remaining clients
10889         * modules/argmatch (Depends-on): Replace exit with stdlib.
10890         * modules/copy-file (Depends-on): Likewise.
10891         * modules/execute (Depends-on): Likewise.
10892         * modules/exitfail (Depends-on): Likewise.
10893         * modules/obstack (Depends-on): Likewise.
10894         * modules/pagealign_alloc (Depends-on): Likewise.
10895         * modules/pipe-filter-gi (Depends-on): Likewise.
10896         * modules/pipe-filter-ii (Depends-on): Likewise.
10897         * modules/savewd (Depends-on): Likewise.
10898         * modules/spawn-pipe (Depends-on): Likewise.
10899         * modules/wait-process (Depends-on): Likewise.
10900         * modules/xsetenv (Depends-on): Likewise.
10901         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10902         * modules/git-merge-changelog (Depends-on): Likewise.
10903         * modules/long-options (Depends-on): Likewise.
10904         * modules/pt_chown (Depends-on): Likewise.
10905         * modules/sysexits (Depends-on): Likewise.
10906
10907         freading: relax license from LGPLv3+ to LGPLv2+
10908         * modules/freading (License): Relax LGPL version.
10909
10910 2011-05-02  Bruno Haible  <bruno@clisp.org>
10911
10912         fchdir: Remove unused dependencies.
10913         * modules/fchdir (Depends-on): Remove include_next.
10914
10915 2011-05-02  Bruno Haible  <bruno@clisp.org>
10916
10917         gnulib-tool: Refactor.
10918         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10919         from func_emit_autoconf_snippets.
10920         (func_emit_autoconf_snippets): Use it.
10921
10922 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10923
10924         * NEWS: Document removal of 'exit'.
10925         * modules/exit: Remove file.
10926
10927 2011-05-01  Bruno Haible  <bruno@clisp.org>
10928
10929         Update DEPENDENCIES.
10930         * DEPENDENCIES (gettext): Recommend the newest release.
10931         Reported by Simon Josefsson.
10932
10933 2011-05-01  Bruno Haible  <bruno@clisp.org>
10934
10935         gnulib-tool: Reduce code duplication.
10936         * gnulib-tool (func_emit_autoconf_snippets): New function.
10937         (func_import, func_create_testdir): Use it.
10938
10939 2011-04-30  Eric Blake  <eblake@redhat.com>
10940
10941         fclose: don't fail on non-seekable input stream
10942         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10943         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10944         since fflush is allowed to fail in that case.
10945
10946 2011-04-30  Bruno Haible  <bruno@clisp.org>
10947
10948         dup3: cleanup
10949         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10950
10951 2011-04-30  Bruno Haible  <bruno@clisp.org>
10952
10953         netdb: Make it work in C++ mode.
10954         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10955         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10956         module.
10957         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10958         gl_MODULE_INDICATOR_FOR_TESTS.
10959         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10960         * modules/netdb-c++-tests: New file.
10961         * tests/test-netdb-c++.cc: New file.
10962
10963 2011-04-30  Bruno Haible  <bruno@clisp.org>
10964
10965         New modules 'vfscanf', 'vscanf'.
10966         * modules/vfscanf: New file.
10967         * modules/vscanf: New file.
10968         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10969         here.
10970         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10971         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10972
10973 2011-04-30  Bruno Haible  <bruno@clisp.org>
10974
10975         passfd: Add comments.
10976         * lib/passfd.c: Add comments about platforms.
10977
10978 2011-04-30  Bruno Haible  <bruno@clisp.org>
10979
10980         sys_uio: Make <sys/uio.h> self-contained.
10981         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10982         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10983
10984 2011-04-30  Bruno Haible  <bruno@clisp.org>
10985
10986         sys_socket: Ensure 'struct iovec' definition.
10987         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10988         <sys/socket.h>.
10989         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10990
10991 2011-04-30  Bruno Haible  <bruno@clisp.org>
10992
10993         sys_uio: Protect definition of 'struct iovec'.
10994         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10995         it as a C struct.
10996
10997 2011-04-30  Bruno Haible  <bruno@clisp.org>
10998
10999         manywarnings: fix indentation
11000         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11001
11002 2011-04-30  Pádraig Brady <P@draigBrady.com>
11003
11004         manywarnings: add -Wno-missing-field-initializers if needed.
11005         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11006         option if it's needed to allow initialization with { 0, }
11007
11008 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11009
11010         announce-gen: cosmetic improvement
11011         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11012
11013 2011-04-29  Jim Meyering  <meyering@redhat.com>
11014
11015         vc-list-files: indent with spaces, not TABs
11016         * build-aux/vc-list-files: Convert leading TABs to spaces,
11017         to match the style of most other files in gnulib.
11018
11019         announce-gen: indent with spaces, not TABs
11020         * build-aux/announce-gen: Convert all TABs to spaces, to match
11021         the style of most other files in gnulib.
11022
11023 2011-04-29  Eric Blake  <eblake@redhat.com>
11024
11025         quotearg: avoid uninitialized variable use
11026         * lib/quotearg.c (quoting_options_from_style): Initialize
11027         remaining fields, and ensure that custom styles are only used via
11028         quoting_options rather than quoting_style.
11029
11030 2011-04-29  Jim Meyering  <meyering@redhat.com>
11031
11032         maint.mk: remove unused VC-tag variable
11033         * top/maint.mk (VC-tag): Remove unused variable.
11034
11035 2011-04-29  Bruno Haible  <bruno@clisp.org>
11036
11037         netdb: fix gai_strerror replacements
11038         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11039         * modules/netdb: Substitute it.
11040
11041 2011-04-29  Jim Meyering  <meyering@redhat.com>
11042
11043         test-getcwd.c: avoid new set-but-not-used warning
11044         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11045         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11046         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11047         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11048
11049         test-hash.c: avoid a new shadowing warning
11050         * tests/test-hash.c (main): Don't shadow "dup".
11051
11052 2011-04-28  Eric Blake  <eblake@redhat.com>
11053
11054         getaddrinfo: fix gai_strerror signature
11055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11056         and work around mingw with UNICODE defined.
11057         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11058         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11059         * modules/netdb (Makefile.am): Substitute it.
11060         * lib/netdb.in.h (gai_strerror): Declare replacement.
11061         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11062         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11063         the fix.
11064
11065         getsockopt: avoid compiler warning
11066         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11067         Reported by Matthias Bolte.
11068
11069         tests: drop unused link dependency
11070         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11071         * modules/dirent-safer-tests (Makefile.am): Likewise.
11072         * modules/fdopendir-tests (Makefile.am): Likewise.
11073         * modules/mkfifoat-tests (Makefile.am): Likewise.
11074         * modules/openat-safer-tests (Makefile.am): Likewise.
11075         * modules/openat-tests (Makefile.am): Likewise.
11076         * modules/readlinkat-tests (Makefile.am): Likewise.
11077         * modules/symlinkat-tests (Makefile.am): Likewise.
11078         * modules/linkat-tests (Makefile.am): Likewise.
11079         (Depends-on): Switch to filenamecat-lgpl.
11080         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11081         LIBINTL.
11082         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11083         * tests/test-linkat.c (main): Don't require xalloc.
11084
11085         hash, mgetgroups: drop xalloc dependency
11086         * lib/hash.c (includes): Adjust includes.
11087         * lib/mgetgroups.c (includes): Likewise.
11088         (xgetgroups): Move...
11089         * lib/xgetgroups.c: ...to new file.
11090         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11091         * modules/xgetgroups: New file, split from...
11092         * modules/mgetgroups: ...here.
11093         (Depends-on): Add xalloc-oversized.
11094         * modules/hash (Depends-on): Likewise.
11095         * modules/hash-tests (Depends-on): Drop xalloc.
11096         (test_hash_LDADD): Drop unused library.
11097         * tests/test-hash.c (main): Break xalloc dependency.
11098         (includes): Drop unused include.
11099
11100         xalloc-oversized: new module
11101         * modules/xalloc-oversized: New module.
11102         * modules/xalloc (Depends-on): Add it.
11103         * lib/xalloc.h (xalloc_oversized): Move...
11104         * lib/xalloc-oversized.h: ...into new file.
11105
11106         utimecmp: drop dependency on xmalloc
11107         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11108         due to memory pressure.
11109         * modules/utimecmp (Depends-on): Drop xalloc.
11110
11111 2011-04-27  Eric Blake  <eblake@redhat.com>
11112
11113         getcwd: fix mingw bugs
11114         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11115         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11116         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11117
11118 2011-04-27  Bruno Haible  <bruno@clisp.org>
11119
11120         mkstemps: Ensure declaration on MacOS X 10.5.
11121         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11122         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11123         MacOS X.
11124
11125 2011-04-27  Bruno Haible  <bruno@clisp.org>
11126
11127         mkstemp: More documentation.
11128         * doc/posix-functions/mkstemp.texi: Document header file problem on
11129         MacOS X.
11130
11131 2011-04-27  Bruno Haible  <bruno@clisp.org>
11132
11133         mkstemp: Tweak configure message when cross-compiling.
11134         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11135         result as a guess.
11136
11137 2011-04-27  Bruno Haible  <bruno@clisp.org>
11138
11139         clean-temp: Clarify what it does.
11140         * lib/clean-temp.h: Add more comments.
11141         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11142         module.
11143         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11144         * doc/glibc-functions/mkstemps.texi: Likewise.
11145         * doc/glibc-functions/mkostemps.texi: Likewise.
11146
11147 2011-04-27  Eric Blake  <eblake@redhat.com>
11148
11149         fchdir: avoid extra chdir and fix test
11150         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11151         getcwd-lgpl.
11152         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11153         have to be canonical.
11154         (canonicalize_file_name): Drop unused macro.
11155         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11156
11157         filenamecat-lgpl: fix licence
11158         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11159         when it was first created.
11160
11161         linkat, renameat: add missing dependency
11162         * modules/linkat (Depends-on): Require getcwd-lgpl.
11163         * modules/renameat (Depends-on): Likewise.
11164
11165         tests: reduce dependencies
11166         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11167         * tests/test-renameat.c (main): Likewise.
11168         * modules/linkat-tests (Depends-on): Relax dependency.
11169         * modules/renameat-tests (Depends-on): Likewise.
11170         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11171         dependency explicit.
11172
11173         save-cwd: reduce default dependency
11174         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11175         * lib/save-cwd.c: Update comments.
11176         * NEWS: Document the semantic change.
11177
11178         getcwd: enhance tests
11179         * tests/test-getcwd-lgpl.c: New file, taken from...
11180         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11181         repeat long path stress tests from m4 probe.
11182         * modules/getcwd-lgpl-tests: New module.
11183         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11184         * m4/getcwd-abort-bug.m4: Update comment.
11185         * m4/getcwd-path-max.m4: Likewise.
11186
11187         getcwd-lgpl: new module
11188         * modules/getcwd-lgpl: New module.
11189         * lib/getcwd-lgpl.c: New file.
11190         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11191         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11192         * modules/getcwd (configure.ac): Set C witness.
11193         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11194
11195         getcwd: tweak comments
11196         * m4/getcwd-abort-bug.m4: Fix comments.
11197         * m4/getcwd-path-max.m4: Likewise.
11198         * m4/getcwd.m4: Likewise.
11199
11200 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11201         and Eric Blake  <eblake@redhat.com>
11202
11203         mkstemp: replace if system version uses wrong permissions
11204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11205         read/write mode bits set in file created by mkstemp.
11206         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11207
11208 2011-04-27  Eric Blake  <eblake@redhat.com>
11209
11210         passfd: avoid compiler warning
11211         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11212         Reported by Laine Stump.
11213
11214 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11215
11216         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11217         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11218
11219 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11220         and Eric Blake  <eblake@redhat.com>
11221
11222         mkstemp: mention clean-temp module
11223         * lib/mkstemp.c: Add comment.
11224         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11225
11226 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11227
11228         inttypes: also provide default values for 32-bit tests
11229         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11230         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11231
11232 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11233
11234         strtoumax: remove dependency on strtoimax
11235         This is like the strtoull change of yesterday.
11236         * modules/strtoumax (Files): Add lib/strtoimax.c.
11237         (Depends-on): Remove strtoimax and add verify.
11238
11239         inttypes-incomplete: new module
11240         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11241         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11242         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11243         of gl_INTTYPES_H.
11244         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11245         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11246         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11247         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11248         * modules/strtoumax, modules/xstrtol (Depends-on):
11249         Depend on inttypes-incomplete, not inttypes.
11250         * modules/inttypes-incomplete: New module, containing the contents
11251         of the old modules/inttypes module, except that the Files: section
11252         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11253         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11254         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11255         (Depends-on): Depend only on inttypes-incomplete.
11256         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11257
11258         inttypes: omit now-redundant strtoimax and strtoumax work
11259         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11260         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11261
11262         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11263         This supports apps that need pointers to strtoimax and strtoumax,
11264         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11265         nonexistent functions.  See
11266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11267         et seq.
11268         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11269         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11270         a macro.
11271         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11272
11273 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11274
11275         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11276
11277 2011-04-25  Bruno Haible  <bruno@clisp.org>
11278
11279         strtol, strtoul: Mark modules as obsolete.
11280         * modules/strtol (Status, Notice): New sections.
11281         * modules/strtoul (Status, Notice): New sections.
11282
11283 2011-04-25  Bruno Haible  <bruno@clisp.org>
11284
11285         strtod: Remove check for strtod, unless supporting old platforms.
11286         * modules/strtod-obsolete: New file.
11287         * m4/strtod-obsolete.m4: New file.
11288         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11289         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11290         * modules/strtod (Depends-on): Add strtod-obsolete.
11291         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11292
11293 2011-04-25  Bruno Haible  <bruno@clisp.org>
11294
11295         strcase: Make module obsolete.
11296         * modules/strcase (Status, Notice): New sections.
11297
11298 2011-04-25  Bruno Haible  <bruno@clisp.org>
11299
11300         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11301         * modules/dup2-obsolete: New file.
11302         * m4/dup2-obsolete.m4: New file.
11303         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11304         gl_FUNC_DUP2_OBSOLETE is not also defined.
11305         * modules/dup2 (Depends-on): Add dup2-obsolete.
11306         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11307
11308 2011-04-25  Bruno Haible  <bruno@clisp.org>
11309
11310         strnlen: Avoid memchr related link error on old obsolete platforms.
11311         * modules/memchr-obsolete: New file.
11312         * m4/memchr-obsolete.m4: New file.
11313         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11314         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11315         * modules/memchr (Depends-on): Add memchr-obsolete.
11316         * modules/strnlen (Depends-on): Likewise.
11317         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11318
11319 2011-04-25  Jim Meyering  <meyering@redhat.com>
11320
11321         maint.mk: makefile_at_at_check extend and clean up
11322         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11323         in addition to */Makefile.am.
11324         Exempt legitimate uses of @VAR@ notation, e.g.,
11325         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11326         Remove obsolete coreutils-specific comment.
11327         Prompted by discussion here:
11328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11329
11330 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11331
11332         strtoul: remove dependency on strtol
11333         This is so that 'configure' need not check for strtol merely because
11334         the application needs strtoul.
11335         * modules/strtoul (Files): Add lib/strtol.c.
11336         (Depends-on): Remove strtol.
11337
11338         strtoull: remove dependency on strtoul
11339         This is like the strtoll change.
11340         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11341         (Depends-on): Remove strtoul.
11342
11343         strtoll: remove dependency on strtol
11344         This is so that 'configure' need not check for strtol merely because
11345         the application needs strtoll.
11346         * modules/strtoll (Files): Add lib/strtol.c.
11347         (Depends-on): Remove strtol.
11348
11349 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11350
11351         inttypes: Move some configure check to module 'imaxdiv'.
11352         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11353         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11354         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11355
11356 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11357
11358         inttypes: Move some configure check to module 'imaxabs'.
11359         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11360         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11361         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11362
11363 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11364
11365         inttypes: Remove configure tests that are not needed since 2009-12-31.
11366         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11367         gl_cv_header_working_inttypes_h.
11368
11369 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11370
11371         * modules/strnlen (Depends-on): Remove memchr.
11372         The strnlen implementation doesn't need the memchr module's fixes; see
11373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11374
11375         strtol: remove dependency on wchar
11376         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11377         * modules/strtol (Depends-on): Remove wchar.
11378
11379 2011-04-21  Eric Blake  <eblake@redhat.com>
11380
11381         passfd: fix test regression on Linux
11382         * modules/passfd-tests (configure.ac): Correct socketpair check.
11383
11384         passfd: speed up configure and drop unused code
11385         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11386         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11387         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11388         Instead of probing at configure for unix_scm_rights_bsd44_way,
11389         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11390         check to a struct member probe.
11391         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11392         (sendfd, recvfd): Update preprocessor checks.
11393         * modules/passfd (Files): Reflect rename, and drop unused file.
11394         (Depends-on): Drop unused dependency.
11395
11396         passfd: allow compilation on mingw
11397         * modules/sys_socket (Depends-on): Add sys_uio.
11398         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11399         iovec and a minimal struct msghdr.
11400         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11401         * tests/test-sys_socket.c (main): Enhance test.
11402         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11403         guaranteed to provide what we need.
11404         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11405         * modules/passfd-tests (Depends-on): Add sys_wait.
11406         * tests/test-passfd.c (main): Skip test on mingw, for now.
11407         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11408         partial 'struct msghdr' implementation.
11409
11410         sys_uio: new module
11411         * modules/sys_uio: New module.
11412         * modules/sys_uio-tests: Likewise.
11413         * lib/sys_uio.in.h: New file.
11414         * m4/sys_uio_h.m4: Likewise.
11415         * tests/test-sys_uio.c: Likewise.
11416         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11417         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11418
11419 2011-04-20  Jim Meyering  <meyering@redhat.com>
11420
11421         useless-if-before-free: avoid false-positive
11422         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11423         disjunct so that it too requires a terminating ";".  Without that,
11424         this script would identify as useless one statement from gcc that
11425         was not:
11426           if (aligned_ptr)
11427             free (((void **) aligned_ptr) [-1]);
11428
11429 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11430
11431         doc: update users.txt.
11432         * users.txt: Add barcode.
11433
11434 2011-04-19  Bruno Haible  <bruno@clisp.org>
11435
11436         ioctl: Remove link dependency on native Windows.
11437         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11438         (gl_close_fn, gl_ioctl_fn): New types.
11439         (struct fd_hook): Renamed from struct close_hook. Change type of
11440         private_close_fn field. Add private_ioctl_fn field.
11441         (close_hook_fn): Add parameter for primary close method.
11442         (execute_close_hooks, execute_all_close_hooks): Likewise.
11443         (ioctl_hook_fn): New type.
11444         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11445         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11446         argument.
11447         (unregister_fd_hook): Renamed from unregister_close_hook.
11448         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11449         Don't include <unistd.h>.
11450         (close): Remove undef.
11451         (anchor): Update.
11452         (execute_close_hooks): Add argument for primary close method.
11453         (execute_all_close_hooks): Likewise.
11454         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11455         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11456         argument. Allow each argument to be NULL.
11457         (unregister_fd_hook): Renamed from unregister_close_hook.
11458         * lib/close.c (rpl_close): Pass 'close' function pointer to
11459         execute_all_close_hooks.
11460         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11461         (primary_ioctl): New function.
11462         (ioctl): Don't call ioctlsocket here. Instead, call
11463         execute_all_ioctl_hooks.
11464         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11465         close method.
11466         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11467         (fd_sockets_hook): Renamed from close_sockets_hook.
11468         (gl_sockets_startup, gl_sockets_cleanup): Update.
11469         * modules/fd-hook: Renamed from modules/close-hook. Update.
11470         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11471         * modules/sockets (Depends-on): Likewise.
11472         * modules/ioctl (Depends-on): Add fd-hook.
11473         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11474         GNULIB_SOCKET.
11475
11476 2011-04-19  Bruno Haible  <bruno@clisp.org>
11477
11478         Move the support of O_NONBLOCK in open() to the 'open' module.
11479         * modules/nonblocking (Depends-on): Remove 'open'.
11480         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11481         gl_cv_have_open_O_NONBLOCK.
11482         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11483         O_NONBLOCK support.
11484         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11485
11486 2011-04-17  Bruno Haible  <bruno@clisp.org>
11487
11488         pipe2: Simplify code.
11489         * lib/pipe2.c (pipe2): Reduce code duplication.
11490
11491 2011-04-17  Bruno Haible  <bruno@clisp.org>
11492
11493         nonblocking: Add comment.
11494         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11495
11496 2011-04-17  Bruno Haible  <bruno@clisp.org>
11497
11498         nonblocking: Add tests for sockets.
11499         * tests/test-nonblocking-socket.sh: New file.
11500         * tests/test-nonblocking-socket-main.c: New file.
11501         * tests/test-nonblocking-socket-child.c: New file.
11502         * tests/test-nonblocking-socket.h: New file.
11503         * tests/socket-server.h: New file.
11504         * tests/socket-client.h: New file.
11505         * modules/nonblocking-socket-tests: New file.
11506         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11507
11508 2011-04-17  Bruno Haible  <bruno@clisp.org>
11509
11510         nonblocking: Add tests for pipes.
11511         * tests/test-nonblocking-pipe.sh: New file.
11512         * tests/test-nonblocking-pipe-main.c: New file.
11513         * tests/test-nonblocking-pipe-child.c: New file.
11514         * tests/test-nonblocking-pipe.h: New file.
11515         * tests/test-nonblocking-writer.h: New file.
11516         * tests/test-nonblocking-reader.h: New file.
11517         * tests/test-nonblocking-misc.h: New file.
11518         * modules/nonblocking-pipe-tests: New file.
11519         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11520
11521 2011-04-16  Bruno Haible  <bruno@clisp.org>
11522
11523         gettext: Clarify the needed programmer actions.
11524         * modules/gettext (Notice): New field.
11525         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11526
11527 2011-04-16  Bruno Haible  <bruno@clisp.org>
11528
11529         strchrnul: Tweak last commit.
11530         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11531         bug.
11532         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11533         as in _GL_FUNCDECL_SYS.
11534         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11535         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11536
11537 2011-04-15  Eric Blake  <eblake@redhat.com>
11538
11539         strchrnul: work around cygwin bug
11540         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11541         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11543         * modules/string (Makefile.am): Substitute it.
11544         * lib/string.in.h (strchrnul): Use it.
11545
11546 2011-04-15  Bruno Haible  <bruno@clisp.org>
11547
11548         Don't require lib/stdio-write.c when only module 'stdio' is used.
11549         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11550         invocation.
11551         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11552
11553 2011-04-14  Bruno Haible  <bruno@clisp.org>
11554
11555         Support non-blocking pipe I/O in read() on native Windows.
11556         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11557         (read): New declaration.
11558         * lib/read.c: New file.
11559         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11560         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11561         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11562         vscanf): New declarations.
11563         * lib/stdio-read.c: New file.
11564         * m4/read.m4: New file.
11565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11566         REPLACE_READ.
11567         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11568         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11569         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11570         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11571         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11572         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11573         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11574         * modules/read: New file.
11575         * modules/nonblocking (Files): Add lib/stdio-read.c.
11576         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11577         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11578         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11579         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11580         * modules/pread (Depends-on): Add read.
11581         * modules/safe-read (Depends-on): Likewise.
11582         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11583         gets, scanf, vfscanf, vscanf): Verify signatures.
11584         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11585         problem with non-blocking pipes.
11586         * doc/posix-functions/fgetc.texi: Likewise.
11587         * doc/posix-functions/fgets.texi: Likewise.
11588         * doc/posix-functions/fread.texi: Likewise.
11589         * doc/posix-functions/fscanf.texi: Likewise.
11590         * doc/posix-functions/getc.texi: Likewise.
11591         * doc/posix-functions/getchar.texi: Likewise.
11592         * doc/posix-functions/gets.texi: Likewise.
11593         * doc/posix-functions/scanf.texi: Likewise.
11594         * doc/posix-functions/vfscanf.texi: Likewise.
11595         * doc/posix-functions/vscanf.texi: Likewise.
11596
11597 2011-04-14  Bruno Haible  <bruno@clisp.org>
11598
11599         Support non-blocking pipe I/O in write() on native Windows.
11600         * lib/write.c (rpl_write): Split a write request that failed merely
11601         because the byte count was larger than the pipe buffer's size.
11602         * doc/posix-functions/write.texi: Mention the problem with large byte
11603         counts.
11604
11605 2011-04-14  Bruno Haible  <bruno@clisp.org>
11606
11607         wchar: Ensure that wchar_t gets defined on uClibc.
11608         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11609         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11610
11611 2011-04-13  Bruno Haible  <bruno@clisp.org>
11612
11613         safe-write, full-read: Avoid unnecessary compilation units.
11614         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11615         (Depends-on): Remove safe-read. Add ssize_t.
11616         * modules/full-read (Files): Add lib/full-write.c.
11617         (Depends-on): Add full-write.
11618
11619 2011-04-13  Bruno Haible  <bruno@clisp.org>
11620
11621         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11622         * modules/pwrite (Depends-on): Add 'write'.
11623
11624 2011-04-13  Bruno Haible  <bruno@clisp.org>
11625
11626         Support non-blocking pipe I/O in write() on native Windows.
11627         * lib/unistd.in.h (write): Enable replacement also if
11628         GNULIB_UNISTD_H_NONBLOCKING is 1.
11629         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11630         (rpl_write): When failing to write on a non-blocking pipe, change
11631         errno from ENOSPC to EAGAIN.
11632         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11633         putchar, puts, vfprintf, vprintf): Enable replacement also if
11634         GNULIB_STDIO_H_NONBLOCKING is 1.
11635         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11636         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11637         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11638         CALL_WITH_SIGPIPE_EMULATION.
11639         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11640         * m4/nonblocking.m4: New file.
11641         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11642         for non-blocking I/O support.
11643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11644         GNULIB_UNISTD_H_NONBLOCKING.
11645         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11646         required for non-blocking I/O support.
11647         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11648         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11649         lib/stdio-write.c, m4/asm-underscore.m4.
11650         (Depends-on): Add stdio, unistd.
11651         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11652         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11653         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11654         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11655         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11656         problem with non-blocking pipes.
11657         * doc/posix-functions/fputc.texi: Likewise.
11658         * doc/posix-functions/fputs.texi: Likewise.
11659         * doc/posix-functions/fwrite.texi: Likewise.
11660         * doc/posix-functions/printf.texi: Likewise.
11661         * doc/posix-functions/putc.texi: Likewise.
11662         * doc/posix-functions/putchar.texi: Likewise.
11663         * doc/posix-functions/puts.texi: Likewise.
11664         * doc/posix-functions/vfprintf.texi: Likewise.
11665         * doc/posix-functions/vprintf.texi: Likewise.
11666         * doc/posix-functions/write.texi: Likewise.
11667
11668 2011-04-10  Jim Meyering  <meyering@redhat.com>
11669
11670         maint.mk: prohibit doubled words
11671         Detect them also when they're separated by a newline.
11672         There are 3 ways to customize it:
11673           - disable the test on a per file basis, as usual with rules using
11674             $(VC_LIST_EXCEPT)
11675           - replace the default doubled-word-selecting regexp (affects all files)
11676           - ignore a particular file-vs-doubled-word match
11677         I nearly used that last one to ignore the "is is" match in
11678         coreutils' NEWS file, since the text was "ls -is is ..."
11679         To do that, I would have added this line to cfg.mk:
11680           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11681         but it would have ignored any "is is" match in NEWS.
11682         Low probability, but still...
11683         Instead, I changed the text, slightly:
11684           -  ls -is is now consistent with ls -lis in ignoring values returned
11685           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11686         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11687         (prohibit_doubled_word_): Define.
11688         (sc_prohibit_doubled_word): New rule.
11689         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11690
11691 2011-04-10  Jim Meyering  <meyering@redhat.com>
11692
11693         maint: fix doubled-word typo in comment
11694         * m4/gethostname.m4: s/is is/it is/
11695         * m4/getdomainname.m4: Likewise.
11696
11697 2011-04-10  Jim Meyering  <meyering@redhat.com>
11698
11699         maint: remove doubled word: s/it it/it/
11700         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11701
11702 2011-04-10  Jim Meyering  <meyering@redhat.com>
11703
11704         maint.mk: remove useless semicolon and backslash
11705         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11706         semicolon and backslash.
11707
11708 2011-04-10  Bruno Haible  <bruno@clisp.org>
11709
11710         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11711         * modules/stdint-tests (Depends-on): Add wchar.
11712
11713 2011-04-10  Jim Meyering  <meyering@redhat.com>
11714
11715         maint: remove doubled words in comments, e.g., s/a a/a/
11716         * lib/strptime.c (day_of_the_week): s/the the/the/
11717         * tests/test-chown.h (test_chown): s/a a/a/
11718
11719         test-chown.h: correct a cast
11720         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11721         when the destination is a stat.st_gid.
11722
11723 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11724
11725         getaddrinfo: Fix test for sa_len member.
11726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11727         include <sys/types.h> before <sys/socket.h>.
11728
11729 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11730
11731         maint: change "can not" to "cannot"
11732         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11733         boundaries.
11734
11735 2011-04-09  Jim Meyering  <meyering@redhat.com>
11736
11737         maint: change "a a" to "a"
11738         * tests/test-lchown.h (test_lchown): s/a a/a/
11739
11740         maint.mk: prohibit \<the the\>
11741         * top/maint.mk (sc_prohibit_the_the): New rule.
11742
11743         maint: fix "the the" in comment
11744         * lib/count-one-bits.h: s/the the/the/
11745
11746         maint: change "can not" to "cannot"
11747         But do not change the occurrences in maintain.texi or in
11748         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11749         * doc/gnulib-tool.texi: s/can not/cannot/
11750         * doc/posix-functions/accept.texi (accept): Likewise.
11751         * doc/posix-functions/socket.texi (socket): Likewise.
11752         * lib/mbrtowc.c: Likewise.
11753
11754         maint.mk: prohibit use of "can not"
11755         * top/maint.mk (sc_prohibit_can_not): New rule.
11756         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11757
11758 2011-04-09  Bruno Haible  <bruno@clisp.org>
11759
11760         careadlinkat: Guard against misuse of careadlinkatcwd.
11761         * lib/careadlinkat.c: Include <stdlib.h>.
11762         (careadlinkatcwd): Check that the fd argument is as expected.
11763
11764 2011-04-09  Bruno Haible  <bruno@clisp.org>
11765
11766         careadlinkat: Use common coding style.
11767         * lib/careadlinkat.c: Move gnulib includes after system includes.
11768
11769 2011-04-09  Bruno Haible  <bruno@clisp.org>
11770
11771         careadlinkat: Clarify specification.
11772         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11773         (careadlinkatcwd): Add comment.
11774         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11775
11776 2011-04-09  Bruno Haible  <bruno@clisp.org>
11777
11778         areadlinkat: Avoid link error on many platforms.
11779         * modules/areadlinkat (Depends-on): Add areadlink.
11780
11781 2011-04-09  Bruno Haible  <bruno@clisp.org>
11782
11783         allocator, careadlinkat: Fix double-inclusion guard.
11784         * lib/allocator.h: Fix double-inclusion guard.
11785         * lib/careadlinkat.h: Likewise.
11786
11787 2011-04-09  Bruno Haible  <bruno@clisp.org>
11788
11789         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11790         * lib/relocwrapper.c: Update dependencies hierarchy.
11791         * build-aux/install-reloc: Update list of files to be compiled.
11792         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11793         lib/allocator.[hc].
11794
11795 2011-04-08  Eric Blake  <eblake@redhat.com>
11796
11797         strftime: silence gnulib-tool warning
11798         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11799
11800 2011-04-08  Bruno Haible  <bruno@clisp.org>
11801
11802         verify: Fix syntax error with GCC 4.6 in C++ mode.
11803         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11804         (HAVE_STATIC_ASSERT): New macro.
11805         (verify_true, verify): Use 'static_assert' if it is supported and
11806         '_Static_assert' is not supported.
11807
11808 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11809
11810         allocator: New module.
11811         * modules/allocator, lib/allocator.c: New files.
11812         * lib/allocator.h (stdlib_allocator): New decl.
11813         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11814         Remove.  Do not include <stdlib.h>.
11815         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11816         * modules/careadlinkat (Files): Remove lib/allocator.h.
11817         (Depends-on): Add allocator.
11818
11819         stdlib: let modules use system malloc, realloc
11820         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11821         if !_GL_USE_STDLIB_ALLOC.
11822         (malloc, realloc): Limit this change to a smaller scope.
11823
11824         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11825         (malloc, realloc): Don't #undef; no longer needed.
11826         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11827         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11828         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11829         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11830         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11831         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11832         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11833         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11834
11835         careadlinkat: rename members to avoid problem
11836         * lib/allocator.h (struct allocator): Rename members from
11837         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11838         and realloc are #define'd.  Reported by Eric Blake in
11839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11840         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11841
11842 2011-04-08  Eric Blake  <eblake@redhat.com>
11843
11844         nonblocking: reduce dependency
11845         * tests/test-nonblocking.c: Only test sockets when in use.
11846         * modules/nonblocking-tests (Depends-on): Drop socket.
11847         (Makefile.am): Link even if sockets are not present.
11848         * modules/pipe2-tests (Makefile.am): Likewise.
11849         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11850
11851         pipe2: fix O_NONBLOCK support on mingw
11852         * modules/pipe2 (Depends-on): Add nonblocking.
11853         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11854         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11855         * tests/test-nonblocking.c (main): Likewise.
11856         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11857
11858         fcntl-h: fix O_ACCMODE on cygwin
11859         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11860         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11861
11862         pipe-filter: drop O_NONBLOCK workarounds
11863         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11864         * modules/pipe-filter-ii (Depends-on): Likewise.
11865         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11866
11867         nonblocking: provide O_NONBLOCK for mingw
11868         * modules/nonblocking (Depends-on): Add open.
11869         (configure.ac): Set new witness macro.
11870         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11871         * modules/fcntl-h (Makefile.am): Substitute it.
11872         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11873         nonblocking module is in use.
11874         * lib/nonblocking.c: Adjust portability test.
11875         * lib/open.c (open): Don't let native open see gnulib flag.
11876         * tests/test-fcntl-h.c (main): Enhance test.
11877         * tests/test-open.h (test_open): Likewise.
11878         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11879
11880         careadlinkat: fix compilation error on mingw
11881         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11882         within struct allocator.
11883
11884 2011-04-06  Eric Blake  <eblake@redhat.com>
11885
11886         binary-io: relicense under LGPLv2+
11887         * modules/binary-io (License): Relax to LGPLv2+.
11888         Requested for libvirt, and required by pipe2.
11889
11890 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11891
11892         verify: use _Static_assert if available
11893         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11894         (verify_true, verify): Use it if available.  This generates better
11895         diagnostics with GCC 4.6.0 and later.
11896
11897 2011-04-05  Bruno Haible  <bruno@clisp.org>
11898
11899         Remove leftover generated .h files after config.status changed.
11900
11901         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11902         GL_GENERATE_ALLOCA_H.
11903         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11904         GL_GENERATE_ALLOCA_H evaluates to false.
11905
11906         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11907         GL_GENERATE_ARGZ_H.
11908         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11909         evaluates to false.
11910
11911         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11912         GL_GENERATE_BYTESWAP_H.
11913         * modules/byteswap (Makefile.am): Remove byteswap.h if
11914         GL_GENERATE_BYTESWAP_H evaluates to false.
11915
11916         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11917         GL_GENERATE_ERRNO_H.
11918         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11919         evaluates to false.
11920
11921         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11922         GL_GENERATE_FLOAT_H.
11923         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11924         evaluates to false.
11925
11926         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11927         GL_GENERATE_FNMATCH_H.
11928         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11929         GL_GENERATE_FNMATCH_H evaluates to false.
11930
11931         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11932         GL_GENERATE_GLOB_H.
11933         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11934         evaluates to false.
11935
11936         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11937         automake conditional GL_GENERATE_ICONV_H.
11938         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11939         evaluates to false.
11940
11941         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11942         GL_GENERATE_NETINET_IN_H.
11943         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11944         GL_GENERATE_NETINET_IN_H evaluates to false.
11945
11946         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11947         conditional GL_GENERATE_PTHREAD_H.
11948         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11949         * modules/pthread (Makefile.am): Remove pthread.h if
11950         GL_GENERATE_PTHREAD_H evaluates to false.
11951
11952         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11953         GL_GENERATE_SCHED_H.
11954         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11955         evaluates to false.
11956
11957         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11958         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11959         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11960         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11961
11962         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11963         GL_GENERATE_STDARG_H.
11964         * modules/stdarg (Makefile.am): Remove stdarg.h if
11965         GL_GENERATE_STDARG_H evaluates to false.
11966
11967         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11968         GL_GENERATE_STDBOOL_H.
11969         * modules/stdbool (Makefile.am): Remove stdbool.h if
11970         GL_GENERATE_STDBOOL_H evaluates to false.
11971
11972         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11973         conditional GL_GENERATE_STDDEF_H.
11974         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11975         * modules/stddef (Makefile.am): Remove stddef.h if
11976         GL_GENERATE_STDDEF_H evaluates to false.
11977
11978         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11979         GL_GENERATE_STDINT_H.
11980         * modules/stdint (Makefile.am): Remove stdint.h if
11981         GL_GENERATE_STDINT_H evaluates to false.
11982
11983         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11984         GL_GENERATE_SYSEXITS_H.
11985         * modules/sysexits (Makefile.am): Remove sysexits.h if
11986         GL_GENERATE_SYSEXITS_H evaluates to false.
11987
11988         Reported by Karl Berry and Ralf Wildenhues.
11989
11990 2011-04-05  Bruno Haible  <bruno@clisp.org>
11991
11992         Ensure to rebuild generated .h files when config.status has changed.
11993         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11994         config.status.
11995         * modules/ctype (Makefile.am): Likewise.
11996         * modules/dirent (Makefile.am): Likewise.
11997         * modules/errno (Makefile.am): Likewise.
11998         * modules/fcntl-h (Makefile.am): Likewise.
11999         * modules/float (Makefile.am): Likewise.
12000         * modules/getopt-posix (Makefile.am): Likewise.
12001         * modules/glob (Makefile.am): Likewise.
12002         * modules/iconv-h (Makefile.am): Likewise.
12003         * modules/inttypes (Makefile.am): Likewise.
12004         * modules/langinfo (Makefile.am): Likewise.
12005         * modules/locale (Makefile.am): Likewise.
12006         * modules/math (Makefile.am): Likewise.
12007         * modules/netdb (Makefile.am): Likewise.
12008         * modules/netinet_in (Makefile.am): Likewise.
12009         * modules/poll-h (Makefile.am): Likewise.
12010         * modules/pthread (Makefile.am): Likewise.
12011         * modules/pty (Makefile.am): Likewise.
12012         * modules/sched (Makefile.am): Likewise.
12013         * modules/search (Makefile.am): Likewise.
12014         * modules/selinux-h (Makefile.am): Likewise.
12015         * modules/signal (Makefile.am): Likewise.
12016         * modules/spawn (Makefile.am): Likewise.
12017         * modules/stdarg (Makefile.am): Likewise.
12018         * modules/stdbool (Makefile.am): Likewise.
12019         * modules/stddef (Makefile.am): Likewise.
12020         * modules/stdint (Makefile.am): Likewise.
12021         * modules/stdio (Makefile.am): Likewise.
12022         * modules/stdlib (Makefile.am): Likewise.
12023         * modules/string (Makefile.am): Likewise.
12024         * modules/strings (Makefile.am): Likewise.
12025         * modules/sys_file (Makefile.am): Likewise.
12026         * modules/sys_ioctl (Makefile.am): Likewise.
12027         * modules/sys_select (Makefile.am): Likewise.
12028         * modules/sys_socket (Makefile.am): Likewise.
12029         * modules/sys_stat (Makefile.am): Likewise.
12030         * modules/sys_time (Makefile.am): Likewise.
12031         * modules/sys_times (Makefile.am): Likewise.
12032         * modules/sys_utsname (Makefile.am): Likewise.
12033         * modules/sys_wait (Makefile.am): Likewise.
12034         * modules/sysexits (Makefile.am): Likewise.
12035         * modules/termios (Makefile.am): Likewise.
12036         * modules/time (Makefile.am): Likewise.
12037         * modules/unistd (Makefile.am): Likewise.
12038         * modules/wchar (Makefile.am): Likewise.
12039         * modules/wctype-h (Makefile.am): Likewise.
12040         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12041
12042 2011-04-05  Bruno Haible  <bruno@clisp.org>
12043
12044         pipe2: Relicense under LGPLv2+.
12045         * modules/pipe2 (License): Change to LGPLv2+.
12046         Requested by Eric Blake, for libvirt.
12047
12048 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12049
12050         bootstrap: compute gnulib_extra_files after updating build_aux
12051         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12052         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12053
12054 2011-04-05  Eric Blake  <eblake@redhat.com>
12055
12056         bootstrap: preserve git whitelist item sorting
12057         * build-aux/bootstrap (sort_patterns): New function.
12058         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12059
12060 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12061
12062         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12063         sc_space_tab check.
12064
12065 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12066
12067         areadlink, areadlinkat: rewrite in terms of careadlinkat
12068         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12069         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12070         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12071         (malloc, realloc): Remove #undefs.
12072         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12073         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12074         readlink, ssize_t, stdint, unistd.
12075         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12076         areadlink, stdint.
12077
12078         careadlinkat: new module
12079         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12080         * modules/careadlinkat: New files, written by me with
12081         a review and feedback from Ben Pfaff in
12082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12083
12084 2011-04-01  Bruno Haible  <bruno@clisp.org>
12085
12086         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12087         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12088         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12089         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12090         Reported by Bruce Korb <bruce.korb@gmail.com>.
12091
12092 2011-04-01  Bruno Haible  <bruno@clisp.org>
12093
12094         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12095         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12096         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12097         * modules/wcpcpy (Depends-on): Add extensions.
12098         * modules/wcpncpy (Depends-on): Likewise.
12099         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12100         systems.
12101         * doc/posix-functions/wcpncpy.texi: Likewise.
12102         * doc/posix-functions/wcwidth.texi: Likewise.
12103
12104 2011-03-31  Eric Blake  <eblake@redhat.com>
12105
12106         nonblocking: fix mingw test failures
12107         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12108         non-blocking flag on regular file.
12109         (get_nonblocking_flag): Set errno on invalid fd.
12110         * tests/test-nonblocking.c (main): Avoid test failure on
12111         directories if fchdir is not active.
12112         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12113
12114 2011-03-31  Bruno Haible  <bruno@clisp.org>
12115
12116         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12117         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12118         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12119         Reported by Simon Josefsson <simon@josefsson.org>.
12120
12121 2011-03-31  Bruno Haible  <bruno@clisp.org>
12122         and Eric Blake  <eblake@redhat.com>
12123
12124         nonblocking: new module
12125         * modules/nonblocking: New module.
12126         * modules/nonblocking-tests: Likewise.
12127         * lib/nonblocking.h: New file.
12128         * lib/nonblocking.c: Likewise.
12129         * tests/test-nonblocking.c: New test.
12130         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12131
12132 2011-03-30  Bruno Haible  <bruno@clisp.org>
12133
12134         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12135         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12136         instead of 'printf' format for GCC >= 4.4.
12137         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12138         (fprintf, printf, vfprintf, vprintf): Declare with
12139         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12140         the system's vfprintf() function.
12141         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12142
12143 2011-03-30  Eric Blake  <eblake@redhat.com>
12144
12145         passfd: fix scoping bug
12146         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12147         before sendmsg/recvmsg.
12148
12149         passfd: standardize coding conventions
12150         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12151         can be learned at compile time.
12152         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12153         ifdefs.
12154         (sendfd, recvfd): Follow gnulib code conventions.
12155
12156         passfd: fix incorrect sendmsg arguments
12157         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12158         incorrect msg_controllen value.
12159         * modules/passfd-tests (Depends-on): Check for alarm.
12160         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12161         Reported by Bastien ROUCARIES.
12162
12163 2011-03-30  Bruno Haible  <bruno@clisp.org>
12164
12165         c-strcasestr: Relicense under LGPLv2+.
12166         * modules/c-strcasestr (License): Change to LGPLv2+.
12167         Requested by Eric Blake, for libvirt.
12168
12169 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12170
12171         * users.txt: Add libidn2.  Fix libtasn1 link.
12172
12173 2011-03-30  Jim Meyering  <meyering@redhat.com>
12174
12175         tests: readlink* ("",... fails with EINVAL on newer kernels
12176         readlink and readlinkat have typically failed with ENOENT for
12177         the invalid, empty file name,  "".  However, with the advent
12178         of linux-2.6.39, they fail with EINVAL.
12179         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12180         when operating on the empty file name.
12181         * tests/test-readlink.h (test_readlink): Likewise.
12182
12183 2011-03-29  Bruno Haible  <bruno@clisp.org>
12184
12185         Relicense some modules under LGPLv2+, for libidn2.
12186         * modules/array-mergesort (License): Change to LGPLv2+.
12187         * modules/c-strcaseeq (License): Likewise.
12188         * modules/striconveh (License): Likewise.
12189         * modules/striconveha (License): Likewise.
12190         * modules/uniconv/base (License): Likewise.
12191         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12192         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12193         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12194         * modules/unictype/base (License): Likewise.
12195         * modules/unictype/bidiclass-of (License): Likewise.
12196         * modules/unictype/category-M (License): Likewise.
12197         * modules/unictype/category-none (License): Likewise.
12198         * modules/unictype/category-of (License): Likewise.
12199         * modules/unictype/category-test (License): Likewise.
12200         * modules/unictype/category-test-withtable (License): Likewise.
12201         * modules/unictype/combining-class (License): Likewise.
12202         * modules/unictype/joiningtype-of (License): Likewise.
12203         * modules/unictype/scripts (License): Likewise.
12204         * modules/uninorm/base (License): Likewise.
12205         * modules/uninorm/canonical-decomposition (License): Likewise.
12206         * modules/uninorm/composition (License): Likewise.
12207         * modules/uninorm/decompose-internal (License): Likewise.
12208         * modules/uninorm/decomposition-table (License): Likewise.
12209         * modules/uninorm/nfc (License): Likewise.
12210         * modules/uninorm/nfd (License): Likewise.
12211         * modules/uninorm/u32-normalize (License): Likewise.
12212         * modules/unistr/base (License): Likewise.
12213         * modules/unistr/u32-cpy (License): Likewise.
12214         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12215         * modules/unistr/u32-to-u8 (License): Likewise.
12216         * modules/unistr/u32-uctomb (License): Likewise.
12217         * modules/unistr/u8-check (License): Likewise.
12218         * modules/unistr/u8-mblen (License): Likewise.
12219         * modules/unistr/u8-mbtouc (License): Likewise.
12220         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12221         * modules/unistr/u8-mbtoucr (License): Likewise.
12222         * modules/unistr/u8-prev (License): Likewise.
12223         * modules/unistr/u8-strlen (License): Likewise.
12224         * modules/unistr/u8-to-u32 (License): Likewise.
12225         * modules/unistr/u8-uctomb (License): Likewise.
12226         * modules/unitypes (License): Likewise.
12227         Requested by Simon Josefsson.
12228
12229 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12230
12231         lib-symbol-visibility: Add a notice.
12232         * modules/lib-symbol-visibility (Notice): New field.
12233
12234 2011-03-29  Bruno Haible  <bruno@clisp.org>
12235
12236         getaddrinfo: Doc fix.
12237         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12238         section "fixed in Gnulib".
12239
12240 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12241
12242         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12243         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12244
12245 2011-03-26  Bruno Haible  <bruno@clisp.org>
12246
12247         unictype/property-byname: Reduce the number of load-time relocations.
12248         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12249         (UC_PROPERTY_INDEX_*): New enumeration values.
12250         (uc_property_byname): Convert an index from the lookup table to an
12251         uc_property_t.
12252         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12253         values.
12254
12255 2011-03-26  Bruno Haible  <bruno@clisp.org>
12256
12257         unictype/property-byname: Allow omitted word separators and aliases.
12258         * lib/unictype/pr_byname.gperf: Add property names without word
12259         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12260         for 'space'.
12261
12262 2011-03-26  Bruno Haible  <bruno@clisp.org>
12263
12264         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12265         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12266         also hyphens to space.
12267         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12268         without spaces.
12269         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12270
12271 2011-03-26  Bruno Haible  <bruno@clisp.org>
12272
12273         unictype/joiningtype-byname: Recognize long names as well.
12274         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12275         a long name.
12276         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12277         unictype/joiningtype_byname.h.
12278         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12279         * lib/unictype/joiningtype_byname.gperf: New file.
12280         * modules/unictype/joiningtype-byname (Files): Add
12281         lib/unictype/joiningtype_byname.gperf.
12282         (Depends-on): Add gperf.
12283         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12284         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12285         long names.
12286
12287         Tests for module 'unictype/joiningtype-longname'.
12288         * modules/unictype/joiningtype-longname-tests: New file.
12289         * tests/unictype/test-joiningtype_longname.c: New file.
12290
12291         New module 'unictype/joiningtype-longname'.
12292         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12293         * lib/unictype/joiningtype_longname.c: New file.
12294         * modules/unictype/joiningtype-longname: New file.
12295         * modules/unictype/joiningtype-all (Depends-on): Add
12296         unictype/joiningtype-longname.
12297
12298 2011-03-26  Bruno Haible  <bruno@clisp.org>
12299
12300         unictype/bidiclass-byname: Recognize long names as well.
12301         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12302         name.
12303         * lib/unictype/bidi_byname.c: Include <string.h>,
12304         unictype/bidi_byname.h.
12305         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12306         * lib/unictype/bidi_byname.gperf: New file.
12307         * modules/unictype/bidiclass-byname (Files): Add
12308         lib/unictype/bidi_byname.gperf.
12309         (Depends-on): Add gperf.
12310         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12311         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12312         long names.
12313
12314         Tests for module 'unictype/bidiclass-longname'.
12315         * modules/unictype/bidiclass-longname-tests: New file.
12316         * tests/unictype/test-bidi_longname.c: New file.
12317
12318         New module 'unictype/bidiclass-longname'.
12319         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12320         * lib/unictype/bidi_longname.c: New file.
12321         * modules/unictype/bidiclass-longname: New file.
12322         * modules/unictype/bidiclass-all (Depends-on): Add
12323         unictype/bidiclass-longname.
12324
12325 2011-03-26  Bruno Haible  <bruno@clisp.org>
12326
12327         unictype/bidi*: Rename modules.
12328         * modules/unictype/bidiclass-all: Renamed from
12329         modules/unictype/bidicategory-all.
12330         * modules/unictype/bidiclass-name: Renamed from
12331         modules/unictype/bidiclass-name.
12332         (Description): Update.
12333         * modules/unictype/bidiclass-name-tests: Renamed from
12334         modules/unictype/bidicategory-name-tests.
12335         * modules/unictype/bidiclass-byname: Renamed from
12336         modules/unictype/bidicategory-byname.
12337         (Description): Update.
12338         * modules/unictype/bidiclass-byname-tests: Renamed from
12339         modules/unictype/bidicategory-byname-tests.
12340         * modules/unictype/bidiclass-of: Renamed from
12341         modules/unictype/bidicategory-of.
12342         (Description): Update.
12343         * modules/unictype/bidiclass-of-tests: Renamed from
12344         modules/unictype/bidicategory-of-tests.
12345         * modules/unictype/bidiclass-test: Renamed from
12346         modules/unictype/bidicategory-test.
12347         (Description): Update.
12348         * modules/unictype/bidiclass-test-tests: Renamed from
12349         modules/unictype/bidicategory-test-tests.
12350         * modules/unictype/bidicategory-all: New file, a simple redirection.
12351         * modules/unictype/bidicategory-name: Likewise.
12352         * modules/unictype/bidicategory-byname: Likewise.
12353         * modules/unictype/bidicategory-of: Likewise.
12354         * modules/unictype/bidicategory-test: Likewise.
12355         * modules/unictype/property-bidi-* (Dependencies): Update.
12356         * lib/unictype/bidi_*.c: Update comment.
12357
12358 2011-03-26  Bruno Haible  <bruno@clisp.org>
12359
12360         unictype/bidi*: Rename functions, part 2.
12361         * modules/unictype/bidicategory-name (configure.ac): Update required
12362         libunistring version.
12363         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12364
12365 2011-03-25  Bruno Haible  <bruno@clisp.org>
12366
12367         New module 'unictype/combining-class-all'.
12368         * modules/unictype/combining-class-all: New file.
12369
12370         Tests for module 'unictype/combining-class-byname'.
12371         * modules/unictype/combining-class-byname-tests: New file.
12372         * tests/unictype/test-combiningclass_byname.c: New file.
12373
12374         New module 'unictype/combining-class-byname'.
12375         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12376         * lib/unictype/combiningclass_byname.c: New file.
12377         * lib/unictype/combiningclass_byname.gperf: New file.
12378         * modules/unictype/combining-class-byname: New file.
12379
12380         Tests for module 'unictype/combining-class-longname'.
12381         * modules/unictype/combining-class-longname-tests: New file.
12382         * tests/unictype/test-combiningclass_longname.c: New file.
12383
12384         New module 'unictype/combining-class-longname'.
12385         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12386         * lib/unictype/combiningclass_longname.c: New file.
12387         * modules/unictype/combining-class-longname: New file.
12388
12389         Tests for module 'unictype/combining-class-name'.
12390         * modules/unictype/combining-class-name-tests: New file.
12391         * tests/unictype/test-combiningclass_name.c: New file.
12392
12393         New module 'unictype/combining-class-name'.
12394         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12395         * lib/unictype/combiningclass_name.c: New file.
12396         * modules/unictype/combining-class-name: New file.
12397
12398 2011-03-25  Bruno Haible  <bruno@clisp.org>
12399
12400         unictype/combining-class: Rename source files.
12401         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12402         of unictype/combining.h.
12403         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12404         Update.
12405         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12406         * modules/unictype/combining-class (Description): Fix.
12407         (Files, Makefile.am): Update.
12408         * tests/unictype/test-combiningclass.c: Renamed from
12409         tests/unictype/test-combining.c.
12410         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12411
12412 2011-03-25  Bruno Haible  <bruno@clisp.org>
12413
12414         unictype: Update list of canonical combining classes.
12415         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12416
12417 2011-03-25  Bruno Haible  <bruno@clisp.org>
12418
12419         unictype/category-byname: Recognize long names as well.
12420         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12421         a long name.
12422         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12423         unictype/categ_byname.h.
12424         (UC_CATEGORY_INDEX_*): New enumeration values.
12425         (uc_general_category_byname): Use uc_general_category_lookup and
12426         convert from index to value.
12427         * lib/unictype/categ_byname.gperf: New file.
12428         * modules/unictype/category-byname (Files): Add
12429         lib/unictype/categ_byname.gperf.
12430         (Depends-on): Add gperf.
12431         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12432         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12433         long names.
12434
12435         Tests for module 'unictype/category-longname'.
12436         * modules/unictype/category-longname-tests: New file.
12437         * tests/unictype/test-categ_longname.c: New file.
12438
12439         New module 'unictype/category-longname'.
12440         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12441         * lib/unictype/categ_longname.c: New file.
12442         * modules/unictype/category-longname: New file.
12443         * modules/unictype/category-all (Depends-on): Add it.
12444
12445 2011-03-25  Bruno Haible  <bruno@clisp.org>
12446
12447         Tests for module 'unictype/category-LC'.
12448         * modules/unictype/category-LC-tests: New file.
12449         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12450
12451         New module 'unictype/category-LC'.
12452         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12453         (UC_CATEGORY_LC): New declaration.
12454         (UC_CASED_LETTER): New macro.
12455         * lib/gen-uni-tables.c (is_category_LC): New function.
12456         (output_categories): Also handle category LC.
12457         (UC_CATEGORY_MASK_LC): New enumeration value.
12458         (general_category_byname): Also handle category LC.
12459         * lib/unictype/categ_LC.c: New file.
12460         * lib/unictype/categ_LC.h: New file, automatically generated.
12461         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12462         category LC.
12463         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12464         * modules/unictype/category-LC: New file.
12465         * modules/unictype/category-byname (Depends-on): Add
12466         unictype/category-LC.
12467         * modules/unictype/category-all (Depends-on): Likewise.
12468
12469 2011-03-25  Eric Blake  <eblake@redhat.com>
12470
12471         xmalloc: revert yesterday's regression
12472         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12473         realloc's underlying behavior (allowing allocation of zero-size
12474         objects, especially if malloc-gnu is also in use).
12475
12476 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12477
12478         maint.mk: add missing version to VC-tag
12479         * top/maint.mk: git tag was missing actual tag name; add it.
12480
12481         valgrind: do leak checking, and exit with code 1 on error (not 0)
12482         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12483         to VALGRIND.
12484
12485 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12486
12487         posix-modules: say what it does.
12488         * posix-modules: Add a line to the --help output saying what it does.
12489
12490 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12491
12492         xmalloc: Do not leak if underlying realloc is C99 compatible.
12493         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12494         This avoids a leak on C99-based systems.  See
12495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12496
12497 2011-03-24  Eric Blake  <eblake@redhat.com>
12498
12499         realloc: document portability problem
12500         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12501         passing 0 size to realloc.
12502
12503 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12504
12505         doc: update users.txt
12506         * users.txt: Add cvsps, tmpwatch
12507
12508 2011-03-23  Matt Rice  <ratmice@gmail.com>
12509
12510         doc: update users.txt
12511         * users.txt: Add gdb.
12512
12513 2011-03-23  Jim Meyering  <meyering@redhat.com>
12514
12515         doc: update users.txt
12516         Looking through matches up to the following URL (there are still
12517         several more pages), I found several projects that use gnulib:
12518         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12519         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12520         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12521
12522 2011-03-22  Bruno Haible  <bruno@clisp.org>
12523
12524         unictype/bidi*: Rename functions.
12525         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12526         uc_bidi_class, uc_is_bidi_class): New declarations.
12527         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12528         uc_bidi_category_byname.
12529         (uc_bidi_category_byname): New function.
12530         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12531         u_bidi_category_name.
12532         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12533         (uc_bidi_category_name): New function.
12534         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12535         uc_bidi_category.
12536         (uc_bidi_category): New function.
12537         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12538         uc_is_bidi_category. Invoke uc_bidi_class.
12539         (uc_is_bidi_category): New function.
12540         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12541         instead of uc_bidi_category_byname.
12542         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12543         instead of uc_bidi_category_name.
12544         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12545         uc_bidi_category.
12546         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12547         instead of uc_is_bidi_category.
12548
12549 2011-03-21  Bruno Haible  <bruno@clisp.org>
12550
12551         New module 'unictype/joininggroup-all'.
12552         * modules/unictype/joininggroup-all: New file.
12553
12554         Tests for module 'unictype/joininggroup-of'.
12555         * modules/unictype/joininggroup-of-tests: New file.
12556         * tests/unictype/test-joininggroup_of.c: New file.
12557         * tests/unictype/test-joininggroup_of.h: New file, automatically
12558         generated by gen-uni-tables.
12559
12560         New module 'unictype/joininggroup-of'.
12561         * modules/unictype/joininggroup-of: New file.
12562         * lib/unictype/joininggroup_of.c: New file.
12563         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12564         gen-uni-tables.
12565
12566         Tests for module 'unictype/joininggroup-byname'.
12567         * modules/unictype/joininggroup-byname-tests: New file.
12568         * tests/unictype/test-joininggroup_byname.c: New file.
12569
12570         New module 'unictype/joininggroup-byname'.
12571         * modules/unictype/joininggroup-byname: New file.
12572         * lib/unictype/joininggroup_byname.c: New file.
12573         * lib/unictype/joininggroup_byname.gperf: New file.
12574
12575         Tests for module 'unictype/joininggroup-name'.
12576         * modules/unictype/joininggroup-name-tests: New file.
12577         * tests/unictype/test-joininggroup_name.c: New file.
12578
12579         New module 'unictype/joininggroup-name'.
12580         * modules/unictype/joininggroup-name: New file.
12581         * lib/unictype/joininggroup_name.c: New file.
12582         * lib/unictype/joininggroup_name.h: New file.
12583
12584         New module 'unictype/joiningtype-all'.
12585         * modules/unictype/joiningtype-all: New file.
12586
12587         Tests for module 'unictype/joiningtype-of'.
12588         * modules/unictype/joiningtype-of-tests: New file.
12589         * tests/unictype/test-joiningtype_of.c: New file.
12590         * tests/unictype/test-joiningtype_of.h: New file, automatically
12591         generated by gen-uni-tables.
12592
12593         New module 'unictype/joiningtype-of'.
12594         * modules/unictype/joiningtype-of: New file.
12595         * lib/unictype/joiningtype_of.c: New file.
12596         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12597         gen-uni-tables.
12598
12599         Tests for module 'unictype/joiningtype-byname'.
12600         * modules/unictype/joiningtype-byname-tests: New file.
12601         * tests/unictype/test-joiningtype_byname.c: New file.
12602
12603         New module 'unictype/joiningtype-byname'.
12604         * modules/unictype/joiningtype-byname: New file.
12605         * lib/unictype/joiningtype_byname.c: New file.
12606
12607         Tests for module 'unictype/joiningtype-name'.
12608         * modules/unictype/joiningtype-name-tests: New file.
12609         * tests/unictype/test-joiningtype_name.c: New file.
12610
12611         New module 'unictype/joiningtype-name'.
12612         * modules/unictype/joiningtype-name: New file.
12613         * lib/unictype/joiningtype_name.c: New file.
12614
12615         unictype: Add support for Arabic shaping properties.
12616         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12617         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12618         declarations.
12619         (UC_JOINING_GROUP_*): New enumeration values.
12620         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12621         declarations.
12622         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12623         (unicode_joining_type): New variable.
12624         (UC_JOINING_GROUP_*): New enumeration values.
12625         (unicode_joining_group): New variable.
12626         (fill_arabicshaping, joining_type_as_c_identifier,
12627         output_joining_type_test, output_joining_type,
12628         joining_group_as_c_identifier, output_joining_group_test,
12629         output_joining_group): New functions.
12630         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12631         fill_arabicshaping and output_joining_type_test, output_joining_type,
12632         output_joining_group_test, output_joining_group.
12633         Reported by Simon Josefsson.
12634
12635 2011-03-21  Jim Meyering  <meyering@redhat.com>
12636
12637         strftime: fix a bug in yesterday's change
12638         * lib/strftime.c (add): Accommodate width's initial value of -1.
12639         Otherwise, nstrftime would copy uninitialized data into
12640         the result buffer.
12641
12642 2011-03-21  Jim Meyering  <meyering@redhat.com>
12643
12644         tests: add strftime-tests module
12645         * tests/test-strftime.c: New file.
12646         * modules/strftime-tests: New module.
12647
12648 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12649
12650         strftime: don't assume a byte count fits in 'int'
12651         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12652         found this problem by static analysis, using gcc -Wstrict-overflow
12653         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12654         on an integer overflow having undefined behavior, but it turns out
12655         that the argument is a size, which might not fit in 'int' anyway,
12656
12657 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12658
12659         stdio: don't require ignore_value around fwrite
12660
12661         This patch works around libc bug 11959
12662         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12663         Without this patch, applications must often write
12664         ignore_value (fwrite (...)) even though the ignore_value is
12665         not helpful here.  It's common to write many objects, using
12666         fwrite/printf/etc., and then use ferror to detect output error.
12667
12668         I considered making this patch optional, but decided against it,
12669         because libc is obviously being inconsistent here: there is no
12670         reason libc should insist that user code must inspect fwrite
12671         return's value without also insisting that it inspect printf's,
12672         putchar's, etc.  If user code wants to have a strict style where
12673         all these functions' values are checked (so that ferror need not
12674         be checked), we could add support for that style in a new gnulib
12675         module, but in the meantime it's better to be consistent and to
12676         support common usage.
12677
12678         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12679         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12680         that we are compiling in checking mode, and if not C++, and
12681         if not already wrapping fwrite for some other reason.
12682         (fwrite): #define to rpl_fwrite if the latter is defined.
12683
12684 2011-03-20  Bruno Haible  <bruno@clisp.org>
12685
12686         verror: Fix compilation error introduced on 2011-02-13.
12687         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12688         instead of __attribute__.
12689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12690
12691 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12692             Bruno Haible  <bruno@clisp.org>
12693
12694         socklen: do not depend on sys_socket
12695         While trying to modify Emacs to use gnulib's socklen module,
12696         I discovered a circular dependency: socklen depends on sys_socket
12697         and vice versa.  Emacs can use socklen, but it does not need
12698         sys_socket because it has its own substitute for sys/socket.h.
12699         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12700         gl_TYPE_SOCKLEN_T.
12701         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12702         gl_PREREQ_SYS_H_SOCKET.
12703         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12704         gl_PREREQ_SYS_H_SOCKET.
12705         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12706         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12707         * modules/socklen (Depends-on): Do not depend on sys_socket.
12708         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12709
12710 2011-03-20  Jim Meyering  <meyering@redhat.com>
12711
12712         maint.mk: sort file names *after* new transformation
12713         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12714         prefix would have led to an unwarranted failure in GNU parted.
12715         Sort after that transformation.
12716
12717 2011-03-19  Jim Meyering  <meyering@redhat.com>
12718
12719         maint.mk: fix po-file syntax-check rule
12720         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12721         Patch by Bruno Haible.
12722
12723 2011-03-19  Bruno Haible  <bruno@clisp.org>
12724
12725         socklen: Update comment.
12726         * m4/socklen.m4: Update comment about platforms.
12727
12728 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12729             Bruno Haible  <bruno@clisp.org>
12730
12731         inet_ntop, inet_pton: Simplify.
12732         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12733         documented to provide socklen_t and we already depend on sys_socket.
12734         * modules/inet_pton (Depends-on): Likewise.
12735         * lib/arpa_inet.in.h: Adjust comment.
12736
12737 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12738             Bruno Haible  <bruno@clisp.org>
12739
12740         netdb: Simplify.
12741         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12742         documented to provide socklen_t and we already depend on sys_socket.
12743         * lib/netdb.in.h: Adjust comment.
12744
12745 2011-03-19  Bruno Haible  <bruno@clisp.org>
12746
12747         sys_socket, netdb: Document problem with socklen_t.
12748         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12749         platforms.
12750         * doc/posix-headers/netdb.texi: Likewise.
12751
12752 2011-03-18  Eric Blake  <eblake@redhat.com>
12753
12754         maint.mk: let po check work in VPATH build
12755         * top/maint.mk (po_file): Allow cfg.mk override.
12756         (sc_po_check): Allow VPATH use.
12757         Reported by Jiri Denemark.
12758
12759 2011-03-16  Jim Meyering  <meyering@redhat.com>
12760
12761         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12762         Before, you would have had to create one .x-sc_ file per rule in order
12763         to exempt offending files.  Now, you may instead use a Make variable --
12764         usually defined in cfg.mk -- whose name identifies the affected rule.
12765         * top/maint.mk (_sc_excl): Define.
12766         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12767         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12768
12769 2011-03-13  Bruno Haible  <bruno@clisp.org>
12770
12771         ignore-value tests: Avoid warnings.
12772         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12773         empty for gcc < 3.4.
12774
12775 2011-03-13  Bruno Haible  <bruno@clisp.org>
12776
12777         passfd: Fix link error on Solaris.
12778         * modules/passfd (Description): Correct.
12779         (Depends-on): Add socketlib.
12780         (Link): New section.
12781         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12782
12783 2011-03-13  Bruno Haible  <bruno@clisp.org>
12784
12785         passfd: Fix link error on AIX 5.2.
12786         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12787
12788 2011-03-13  Bruno Haible  <bruno@clisp.org>
12789
12790         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12791         * lib/sys_socket.in.h: Include <stddef.h>.
12792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12793         CMSG_FIRSTHDR. Remove unused variable.
12794
12795 2011-03-13  Bruno Haible  <bruno@clisp.org>
12796
12797         passfd: Fix compilation error on OpenBSD.
12798         * lib/passfd.c: Include <sys/uio.h>.
12799
12800 2011-03-13  Bruno Haible  <bruno@clisp.org>
12801
12802         passfd test: Fix warnings.
12803         * tests/test-passfd.c: Include <sys/wait.h>.
12804         (main): Fix typo.
12805
12806 2011-03-13  Bruno Haible  <bruno@clisp.org>
12807
12808         passfd module, part 4, tweaks.
12809         * tests/test-passfd.c: Reorder includes.
12810         (main): Fix perror and printf calls.
12811
12812 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12813
12814         passfd module, part 4.
12815         * modules/passfd-tests: New file.
12816         * tests/test-passfd.c: New file.
12817
12818 2011-03-13  Jim Meyering  <meyering@redhat.com>
12819
12820         Makefile: rely on GNU make; derive syntax-check rule names
12821         Rather than requiring that each sc_ rule be listed as a dependent
12822         of "check", use features of GNU make to derive the list.
12823         * Makefile (syntax-check-rules): Define.
12824         (check): Depend on the new variable, not the hard-coded list.
12825
12826 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12827             Bruno Haible  <bruno@clisp.org>
12828
12829         passfd module, part 3.
12830         * lib/passfd.h (recvfd): Add a flags argument.
12831         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12832         (recvfd): Add a flags argument.
12833         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12834         exists.
12835         * modules/passfd (Depends-on): Add cloexec.
12836         Suggested by Eric Blake.
12837
12838 2011-03-13  Bruno Haible  <bruno@clisp.org>
12839
12840         passfd module, part 2, tweaks.
12841         * modules/passfd (Files): Reorder.
12842         (Depends-on): Remove errno.
12843         (Include): Remove <sys/socket.h>, <sys/un.h>.
12844         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12845         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12846         specification header. Include <sys/socket.h> always. Don't include
12847         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12848         (sendfd): Clarify that it sets errno when it fails.
12849         (recvfd): Fix specification.
12850
12851 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12852
12853         passfd module, part 2.
12854         * modules/passfd: New file.
12855         * lib/passfd.h: New file.
12856         * lib/passfd.c: New file.
12857
12858 2011-03-12  Bruno Haible  <bruno@clisp.org>
12859
12860         wcswidth, mbswidth: Avoid integer overflow.
12861         * lib/wcswidth.c: Include <limits.h>.
12862         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12863         * lib/mbswidth.c: Include <limits.h>.
12864         (mbsnwidth): Avoid 'int' overflow.
12865         Reported by Jim Meyering.
12866
12867 2011-03-12  Bruno Haible  <bruno@clisp.org>
12868
12869         futimens, utimensat: Avoid endless recursion on Solaris 10.
12870         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12871         Solaris.
12872         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12873         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12874
12875 2011-03-11  Jim Meyering  <meyering@redhat.com>
12876
12877         maint.mk: relax a regexp to accommodate other formatting styles
12878         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12879         between "ngettext" and the following "(".
12880
12881 2011-03-11  Pádraig Brady <P@draigBrady.com>
12882
12883         maint.mk: suppress a false positive warning
12884         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12885         diagnostics are marked with ngettext.
12886
12887 2011-03-10  Eric Blake  <eblake@redhat.com>
12888
12889         wchar: add explicit dependencies, for Tru64
12890         * modules/mbmemcasecoll (Depends-on): Add wchar.
12891         * modules/mbtowc (Depends-on): Likewise.
12892         * modules/vasnprintf (Depends-on): Likewise.
12893         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12894         * modules/wctomb (Depends-on): Likewise.
12895         Reported by Peter O'Gorman.
12896
12897 2011-03-08  Bruno Haible  <bruno@clisp.org>
12898
12899         passfd module, part 1, tweaks.
12900         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12901         Improve indentation. Improve AC_MSG_CHECKING messages.
12902         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12903         gl_SOCKET_FAMILIES.
12904
12905 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12906
12907         passfd module, part 1.
12908         * m4/afunix.m4: New file.
12909         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12910         sockets.
12911
12912 2011-03-08  Bruno Haible  <bruno@clisp.org>
12913
12914         regex-quote: New API.
12915         * lib/regex-quote.h: Include <stdbool.h>.
12916         (struct regex_quote_spec): New type.
12917         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12918         New declarations.
12919         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12920         'const struct regex_quote_spec *' argument.
12921         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12922         (pcre_special): New constant.
12923         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12924         New functions.
12925         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12926         'const struct regex_quote_spec *' argument.
12927         * modules/regex-quote (Depends-on): Add stdbool.
12928         * tests/test-regex-quote.c (check): Update for new API. Add test for
12929         anchored results.
12930         * NEWS: Mention the API change.
12931         Reported by Reuben Thomas and Eric Blake.
12932
12933 2011-03-06  Bruno Haible  <bruno@clisp.org>
12934
12935         regex-quote: Fix creation of POSIX extended regular expressions.
12936         * lib/regex-quote.c (ere_special): Add grouping and alternation
12937         operators.
12938
12939 2011-03-05  Bruno Haible  <bruno@clisp.org>
12940
12941         doc: Improve doc regarding autopoint vs. gnulib.
12942         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12943         disable autopoint while running autoreconf.
12944         Suggested by Ralf Wildenhues.
12945
12946 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12947
12948         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12949         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12950
12951 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12952
12953         parse-duration: remove xalloc.h dependency
12954         * lib/parse-duration.c (parse_period): handle NULL return from
12955         strdup instead of calling xstrdup().
12956         * modules/parse-duration: remove "xalloc" dependency
12957
12958 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12959
12960         bootstrap: honor m4_base when running aclocal
12961         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12962
12963 2011-03-02  Jim Meyering  <meyering@redhat.com>
12964
12965         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12966         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12967         on request from Matt Booth.
12968
12969 2011-03-01  Eric Blake  <eblake@redhat.com>
12970
12971         test-link: work on Hurd
12972         * tests/test-link.h (test_link): Hurd rejects linking directories
12973         with EISDIR instead of the POSIX-mandated EPERM.
12974
12975 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12976
12977         stdio: simplify by moving files to printf-posix, sigpipe
12978         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12979         since this symbol is needed only if printf is replaced.
12980         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12981         Require gl_ASM_SYMBOL_PREFIX.
12982         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12983         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12984         (Depends-on): Add 'raise'.
12985         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12986         * modules/stdio (Files): Remove lib/stdio-write.c,
12987         m4/asm-underscore.m4.
12988         (Depends-on): Remove 'raise'.
12989
12990         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12991         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12992         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12993         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12994
12995 2011-02-28  Bruno Haible  <bruno@clisp.org>
12996
12997         localcharset: Assume ANSI C behaviour of free().
12998         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12999         calling free().
13000         Suggested by Simon Josefsson <simon@josefsson.org>.
13001
13002 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13003             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13004             Bruno Haible  <bruno@clisp.org>  (tiny change)
13005
13006         On Cygwin, use /proc file system instead of win32 API.
13007         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13008         Win32 file names.
13009         (DllMain): Simplify by removing Cygwin specific code.
13010         (find_shared_library_fullname): Use Linux specific implementation also
13011         for Cygwin.
13012         (get_shared_library_fullname): Update accordingly.
13013         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13014         Win32 file names.
13015         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13016         Cygwin specific code.
13017
13018 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13019             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13020
13021         Fix OpenMP flag detection for various Fortran compilers.
13022         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13023         OpenMP-conditional compilation construct, to force compile
13024         failure with missing OpenMP flag.
13025         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13026
13027 2011-02-25  Eric Blake  <eblake@redhat.com>
13028
13029         strstr: expand test coverage
13030         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13031         compilation.
13032         * tests/test-memmem.c (main): Duplicate tests.
13033         * tests/test-strcasestr.c (main): Likewise.
13034         * tests/test-c-strcasestr.c (main): Likewise.
13035
13036 2011-02-25  Jim Meyering  <meyering@redhat.com>
13037
13038         maint.mk: detect missing-NL-at-EOF, too
13039         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13040         it also detects when a file lacks a newline at EOF.
13041         (require_exactly_one_NL_at_EOF_): Renamed from
13042         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13043         since people may well have .x-sc_... file names tied to the
13044         existing name.  Suggested by Eric Blake.
13045
13046 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13047
13048         dirname: move m4/dos.m4 functionality into lib/dosname.h
13049
13050         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13051         extracts symbols from it, puts them into config.h; but it's much
13052         easier to use the symbols directly.  filename.h already does this,
13053         but it disagrees with dos.m4 in some respects.  This patch
13054         introduces a different include file dosname.h that packages up
13055         dos.m4, and then later we can work on merging filename.h and
13056         dosname.h.  Applications that need only the easy-to-configure
13057         symbols should consider including dosname.h rather than dirname.h.
13058         * NEWS: Mention incompatible changes.
13059         * m4/dos.m4: Remove.
13060         * lib/dosname.h, modules/dosname: New files.
13061         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13062         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13063         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13064         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13065         Include dosname.h, not dirname.h.
13066         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13067         Include dosname.h, for definitions of symbols like ISSLASH
13068         that used to be in config.h.
13069         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13071         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13072         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13073         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13074         * modules/rmdir (Files): Likewise.
13075         * modules/stat (Files): Likewise.
13076         * modules/unlink (Files): Likewise.
13077         * modules/dirname-lgpl (Depends-on): Add dosname.
13078         * modules/lstat (Depends-on): Likewise.
13079         * modules/openat (Depends-on): Likewise.
13080         * modules/rmdir (Depends-on): Likewise.
13081         * modules/savewd (Depends-on): Likewise.
13082         * modules/stat (Depends-on): Likewise.
13083         * modules/unlink (Depends-on): Likewise.
13084         * modules/openat (Depends-on): Remove dirname-lgpl.
13085         * modules/savewd (Depends-on): Likewise.
13086         * tests/test-dirname.c: Do not use removed symbols like
13087         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13088         the remaining symbols, e.g., ISSLASH ('\\').
13089
13090 2011-02-25  Eric Blake  <eblake@redhat.com>
13091
13092         strstr: revert patches that introduced bug and pessimization
13093         * lib/str-two-way.h: Add another reference.
13094         (two_way_short_needle, two_way_long_needle): Revert changes from
13095         2011-02-24; they pessimize search speed.
13096         (critical_factorization): Partially revert changes from
13097         2010-06-22; they violate the requirement that the left half of the
13098         needle be smaller than the period of the needle.
13099
13100 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13101
13102         filenamecat: remove unnecessary dependency on dirname-lgpl
13103         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13104         is no direct dependency, just an indirect one via filenamecat-lgpl.
13105
13106         remove: remove unnecessary use of m4/dos.m4
13107         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13108         * modules/remove (FILES): Remove m4/dos.m4.
13109
13110         * lib/openat-proc.c: Don't include dirname.h; not needed.
13111
13112         backupfile: remove unnecessary use of m4/dos.m4
13113         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13114         of its symbols are used by the backupfile code.  backupfile.c does
13115         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13116         for the rare case of programs that want all their backup file
13117         names to live within 8+3 limits, and dos.m4 doesn't address that.
13118         * modules/backupfile (Files): Remove m4/dos.m4.
13119
13120 2011-02-24  Jim Meyering  <meyering@redhat.com>
13121
13122         strstr: fix a bug whereby strstr would mistakenly return NULL
13123         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13124         in period calculation.
13125         (two_way_long_needle): Likewise.
13126         The original problem was reported by Mike Stump in
13127         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13128         Ralf Wildenhues provided the short needle and haystack.
13129         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13130         Add a more involved test to trigger the bug in two_way_long_needle.
13131
13132 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13133
13134         gnulib-tool: remove use of bold display in help screen
13135         * gnulib-tool (func_usage): Do not use bold display anymore in the
13136         help screen.  That was just meant to be a temporary emphasis for a
13137         backward-incompatible change.
13138
13139 2011-02-23  Bruno Haible  <bruno@clisp.org>
13140
13141         Fix misindentation of preprocessor directives.
13142         * lib/argp-namefrob.h: Reindent preprocessor directives.
13143         * lib/getopt_int.h (struct _getopt_data): Likewise.
13144         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13145         * lib/vasnprintf.c (decode_long_double): Likewise.
13146         * tests/test-argmatch.c: Insert blank lines, for clarity.
13147         * tests/test-exclude.c: Likewise.
13148
13149 2011-02-22  Bruno Haible  <bruno@clisp.org>
13150
13151         ioctl: Fix for MacOS X in 64-bit mode.
13152         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13153         value.
13154         Suggested by Eric Blake.
13155         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13156
13157 2011-02-22  Jim Meyering  <meyering@redhat.com>
13158
13159         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13160         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13161         in lib/.
13162
13163 2011-02-22  Eric Blake  <eblake@redhat.com>
13164
13165         maint: avoid any CDPATH issue
13166         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13167
13168         maint: adjust cpp indentation for my modules, as well
13169         * Makefile (sc_cpp_indent_check): Add my name.
13170         * lib/fbufmode.c: Filter through cppi.
13171         * lib/fpurge.c: Likewise.
13172         * lib/freadable.c: Likewise.
13173         * lib/freading.c: Likewise.
13174         * lib/fwritable.c: Likewise.
13175         * lib/fwriting.c: Likewise.
13176         * lib/sigaction.c: Likewise.
13177
13178 2011-02-22  Jim Meyering  <meyering@redhat.com>
13179
13180         maint: adjust cpp indentation to reflect nesting depth
13181         I.e., in a block of code that begins with an unnested "#if",
13182         put one space between the "#" in column 1 and following token.
13183         For example,
13184         -#include <sys/vfs.h>
13185         +# include <sys/vfs.h>
13186         Do this only in .c files that are part of a module I maintain.
13187         * lib/linkat.c: Filter through cppi.
13188         * lib/nanosleep.c: Likewise.
13189         * lib/openat.c: Likewise.
13190         * lib/openat-die.c: Likewise.
13191         * lib/dup3.c: Likewise.
13192         * lib/fchownat.c: Likewise.
13193         * lib/flock.c: Likewise.
13194         * lib/fsync.c: Likewise.
13195         * lib/fts.c: Likewise.
13196         * lib/getpass.c: Likewise.
13197         * lib/gettimeofday.c: Likewise.
13198         * lib/userspec.c: Likewise.
13199         * Makefile (sc_cpp_indent_check): New rule, to check this.
13200
13201 2011-02-22  Bruno Haible  <bruno@clisp.org>
13202
13203         New module 'wctomb'.
13204         * lib/stdlib.in.h (wctomb): New declaration.
13205         * lib/wctomb.c: New file.
13206         * lib/wctomb-impl.h: New file.
13207         * m4/wctomb.m4: New file.
13208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13209         REPLACE_WCTOMB.
13210         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13211         REPLACE_WCTOMB.
13212         * modules/wctomb: New file.
13213         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13214         * doc/posix-functions/wctomb.texi: Mention the new module.
13215         * modules/wctob (Depends-on): Add wctomb.
13216
13217 2011-02-22  Bruno Haible  <bruno@clisp.org>
13218
13219         New module 'mbtowc'.
13220         * lib/stdlib.in.h (mbtowc): New declaration.
13221         * lib/mbtowc.c: New file.
13222         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13223         * m4/mbtowc.m4: New file.
13224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13225         REPLACE_MBTOWC.
13226         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13227         REPLACE_MBTOWC.
13228         * modules/mbtowc: New file.
13229         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13230         * doc/posix-functions/mbtowc.texi: Mention the new module.
13231         * modules/btowc (Depends-on): Add mbtowc.
13232
13233 2011-02-22  Bruno Haible  <bruno@clisp.org>
13234
13235         wcrtomb: Add more tests for native Windows platforms.
13236         * tests/test-wcrtomb-w32-1.sh: New file.
13237         * tests/test-wcrtomb-w32-2.sh: New file.
13238         * tests/test-wcrtomb-w32-3.sh: New file.
13239         * tests/test-wcrtomb-w32-4.sh: New file.
13240         * tests/test-wcrtomb-w32-5.sh: New file.
13241         * tests/test-wcrtomb-w32.c: New file.
13242         * modules/wcrtomb-tests (Files): Add them.
13243         (Makefile.am): Arrange to run these tests.
13244         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13245         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13246
13247 2011-02-20  Bruno Haible  <bruno@clisp.org>
13248
13249         wcrtomb: Enhance test.
13250         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13251
13252 2011-02-20  Bruno Haible  <bruno@clisp.org>
13253
13254         mbrtowc: Tiny optimization.
13255         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13256
13257 2011-02-20  Jim Meyering  <meyering@redhat.com>
13258
13259         test-exclude.c: remove unmatched #endif
13260         * tests/test-exclude.c: Remove stray #endif, left over from
13261         the change of a week ago.
13262
13263 2011-02-19  Jim Meyering  <meyering@redhat.com>
13264
13265         git-version-gen: skip "-dirty" check when appropriate
13266         * build-aux/git-version-gen: Don't run any git commands when the
13267         version string comes from .tarball-version.  Prior to this, we
13268         would run git update-index --refresh even from a just-unpacked
13269         tarball directory, and that could affect a .git/ directory in a
13270         parent of the build directory.  Reported by Mike Frysinger.
13271
13272 2011-02-19  Bruno Haible  <bruno@clisp.org>
13273
13274         unictype/property-byname: Reduce the size of the 'data' segment.
13275         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13276
13277 2011-02-19  Bruno Haible  <bruno@clisp.org>
13278
13279         unictype/scripts: Reduce the size of the 'data' segment.
13280         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13281         '%pic'.
13282         * lib/unictype/scripts_byname.gperf: Regenerated.
13283
13284 2011-02-19  Bruno Haible  <bruno@clisp.org>
13285
13286         stdint: Update documentation.
13287         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13288
13289 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13290
13291         stdint: omit redundant check for wchar.h
13292         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13293         always tests whether wchar.h exists, so remove the now-redundant test.
13294
13295 2011-02-18  Bruno Haible  <bruno@clisp.org>
13296
13297         stdint: Cut dependency to module 'wchar'.
13298         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13299         include the necessary prerequisites.
13300         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13301         * modules/stdint (Depends-on): Remove wchar.
13302         (Makefile.am): Substitute HAVE_WCHAR_H.
13303         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13304
13305 2011-02-18  Eric Blake  <eblake@redhat.com>
13306
13307         longlong: skip, rather than fail, on cross-compilation
13308         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13309         when cross-compiling; regression from 2011-02-16.
13310
13311 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13312
13313         * NEWS: Mention 2011-02-08 change to stdlib.
13314
13315 2011-02-17  Bruno Haible  <bruno@clisp.org>
13316
13317         getloadavg: Add comments about platforms.
13318         * m4/getloadavg.m4: Add comment.
13319         * lib/getloadavg.c: Likewise.
13320
13321 2011-02-17  Bruno Haible  <bruno@clisp.org>
13322
13323         getloadavg: Fix link error on Solaris 2.6.
13324         * modules/getloadavg (Link): New section.
13325         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13326         linking test-getloadavg.
13327         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13328         getloadavg.
13329
13330 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13331
13332         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13333         It was 'int', but this doesn't match the IRIX 6.5 manual.
13334         Suggested by Bruno Haible in
13335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13336
13337 2011-02-17  Bruno Haible  <bruno@clisp.org>
13338
13339         havelib: Fix comments.
13340         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13341         change.
13342
13343 2011-02-17  Bruno Haible  <bruno@clisp.org>
13344
13345         havelib: Update config.rpath.
13346         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13347
13348 2011-02-17  Bruno Haible  <bruno@clisp.org>
13349
13350         getloadavg test: Add some plausibility checks.
13351         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13352         is improbable.
13353
13354 2011-02-16  Eric Blake  <eblake@redhat.com>
13355
13356         maintainer-makefile: make syntax-check a no-op from tarballs
13357         * top/maint.mk (no-vc-detected): New rule.
13358         (local-checks-available): Use it to avoid hanging if someone tries
13359         'make syntax-check' from a tarball.  Also append to any non-syntax
13360         checks already defined in cfg.mk.
13361
13362 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13363
13364         longlong: tune, particularly for common case of c99
13365
13366         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13367         or running anything if c99, or if unsigned long long int does not
13368         work.  In either case, we know the answer without further tests.
13369         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13370         it at most once, and use its results for both long long int and
13371         unsigned long long int.  This is more likely to be efficient in
13372         the common case where the program wants to check for both long
13373         long int and unsigned long long int.
13374         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13375         since the answer is already known.
13376
13377 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13378
13379         getloadavg: set errno
13380         * lib/getloadavg.c: Set errno when returning -1.  If no other
13381         error number looks appropriate, set it to ENOSYS if the getloadavg
13382         looks like it can't possibly ever work, ENOTSUP otherwise.
13383         Suggested by Bruno Haible in
13384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13385
13386         getloadavg: trim unused parts and speed up 'configure'
13387         * NEWS: Document this.
13388         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13389         always compiled if getloadavg is absent.
13390         Move test code to ...
13391         * tests/test-getloadavg.c: New file, containing previous
13392         contents of test from lib/getloadavg.c.  It also contains
13393         suggestions by Bruno Haible in
13394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13395         * modules/getloadavg-tests: New file.
13396         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13397         Do tests in the same order as they're needed for getloadavg.c.
13398         Omit setgid-related tests that generate symbols KMEM_GROUP,
13399         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13400         Do only the tests that are needed to see whether the system has
13401         getloadavg, moving the other tests into ...
13402         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13403         NLIST_NAME_UNION; nobody should be using it.  Do not define
13404         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13405         relevant, as the user of this module shouldn't care how getloadavg
13406         is implemented.
13407
13408         getloadavg: omit unused var
13409         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13410
13411 2011-02-15  Jim Meyering  <meyering@redhat.com>
13412
13413         doc: update users.txt
13414         * users.txt: Update iwhd's URL.
13415
13416 2011-02-13  Bruno Haible  <bruno@clisp.org>
13417
13418         Consistent macro naming for macros that use GCC __attribute__.
13419         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13420         _ATTRIBUTE_NONNULL_.
13421         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13422         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13423         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13424         ATTRIBUTE_DEPRECATED.
13425         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13426         ATTRIBUTE_NORETURN.
13427         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13428         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13429         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13430         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13431         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13432         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13433         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13434         ATTRIBUTE_SENTINEL.
13435         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13436         ATTRIBUTE_RETURN_CHECK.
13437         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13438         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13439         ATTRIBUTE_NORETURN.
13440         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13441         Reported by Paul Eggert.
13442
13443 2011-02-13  Bruno Haible  <bruno@clisp.org>
13444
13445         Don't interfere with a program's definition of __attribute__.
13446         * lib/argp.h (__attribute__): Remove definition.
13447         (_GL_ATTRIBUTE_FORMAT): New macro.
13448         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13449         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13450         (_GL_ATTRIBUTE_FORMAT): New macro.
13451         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13452         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13453         GCC 3 or newer.
13454         * lib/error.h (__attribute__): Remove definition.
13455         (_GL_ATTRIBUTE_FORMAT): New macro.
13456         (error, error_at_line): Use it.
13457         * lib/hash.h (__attribute__): Remove definition.
13458         (ATTRIBUTE_WUR): Update definition. Define always.
13459         * lib/openat.h (__attribute__): Remove definition.
13460         (ATTRIBUTE_NORETURN): Update definition. Define always.
13461         * lib/sigpipe-die.h (__attribute__): Remove definition.
13462         (ATTRIBUTE_NORETURN): Update definition. Define always.
13463         * lib/vasnprintf.h (__attribute__): Remove definition.
13464         (_GL_ATTRIBUTE_FORMAT): New macro.
13465         (asnprintf, vasnprintf): Use it.
13466         * lib/xalloc.h (__attribute__): Remove definition.
13467         (ATTRIBUTE_NORETURN): Update definition. Define always.
13468         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13469         * lib/xmemdup0.h (__attribute__): Remove definition.
13470         (ATTRIBUTE_NORETURN): Update definition. Define always.
13471         * lib/xprintf.h (__attribute__): Remove definition.
13472         (_GL_ATTRIBUTE_FORMAT): New macro.
13473         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13474         * lib/xstrtol.h (__attribute__): Remove definition.
13475         (ATTRIBUTE_NORETURN): Update definition. Define always.
13476         * lib/xvasprintf.h (__attribute__): Remove definition.
13477         (_GL_ATTRIBUTE_FORMAT): New macro.
13478         (xasprintf, xvasprintf): Use it.
13479         * tests/test-argmatch.c (__attribute__): Remove definition.
13480         (ATTRIBUTE_NORETURN): Update definition. Define always.
13481         * tests/test-exclude.c (__attribute__): Remove definition.
13482         (ATTRIBUTE_NORETURN): Update definition. Define always.
13483         Reported by Paul Eggert.
13484
13485 2011-02-13  Bruno Haible  <bruno@clisp.org>
13486
13487         mbrtowc: Add more tests for native Windows platforms.
13488         * tests/test-mbrtowc-w32-1.sh: New file.
13489         * tests/test-mbrtowc-w32-2.sh: New file.
13490         * tests/test-mbrtowc-w32-3.sh: New file.
13491         * tests/test-mbrtowc-w32-4.sh: New file.
13492         * tests/test-mbrtowc-w32-5.sh: New file.
13493         * tests/test-mbrtowc-w32.c: New file.
13494         * modules/mbrtowc-tests (Files): Add them.
13495         (Makefile.am): Arrange to run these tests.
13496         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13497         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13498
13499 2011-02-13  Bruno Haible  <bruno@clisp.org>
13500
13501         mbrtowc: Work around native Windows bug.
13502         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13503         guess when no suitable locale for testing was found.
13504         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13505
13506 2011-02-13  Bruno Haible  <bruno@clisp.org>
13507
13508         mbsinit: Work around mingw bug.
13509         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13510         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13511         Windows.
13512         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13513
13514 2011-02-13  Bruno Haible  <bruno@clisp.org>
13515
13516         mbsinit: Don't crash for a NULL argument.
13517         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13518         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13519
13520 2011-02-13  Bruno Haible  <bruno@clisp.org>
13521
13522         Don't interfere with a program's definition of __attribute__.
13523         * lib/stdio.in.h (__attribute__): Remove definition.
13524         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13525         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13526         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13527         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13528         * lib/string.in.h (__attribute__): Remove definition.
13529         Reported by Paul Eggert.
13530
13531 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13532
13533         stdlib: don't get in the way of non-GCC __attribute__
13534         See thread starting at
13535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13536         Revert previous stdlib change, installing the following instead:
13537         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13538         to get in the way of a non-GCC compiler that supports __attribute__.
13539         (_GL_ATTRIBUTE_RETURN): New macro.
13540         (_Exit): Use it instead of __attribute__.
13541
13542 2011-02-12  Bruno Haible  <bruno@clisp.org>
13543
13544         quotearg test: Avoid test failure on mingw.
13545         * tests/test-quotearg.sh: Convert the locale identifier from native
13546         Windows syntax to Unix syntax.
13547
13548 2011-02-12  Bruno Haible  <bruno@clisp.org>
13549
13550         setlocale: Prefer gnulib's override over libintl's override.
13551         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13552         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13553         GNULIB_defined_setlocale is set.
13554
13555 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13556
13557         stdlib: support non-GCC __attribute__
13558
13559         Fix a serious and tricky problem encountered when attempting to
13560         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13561         5.5, but it crashed due to memory corruption on Solaris 10 with
13562         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13563         bits that are otherwise zero.  This tagging is optional inside
13564         Emacs but is preferred and is used when __attribute__ ((__aligned
13565         (8))) works, as it does with both recent-enough GCC and with Sun C
13566         5.11.  However, Sun C 5.11 is not GCC and does not #define
13567         __GNUC__ and __GNUC_MINOR__.
13568
13569         When I added the getloadavg module to Emacs, it brought in
13570         stdlib.in.h, which contained this fragment:
13571
13572            #ifndef __attribute__
13573            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13574            #  define __attribute__(Spec)   /* empty */
13575            # endif
13576            #endif
13577
13578         When files that include <stdlib.h> were compiled with Sun C 5.11,
13579         the above code disabled __attribute__ ((__aligned (8))), which
13580         caused variables to not be properly aligned, which eventually led
13581         to the pointer corruption mentioned above.  (This was a bit hard
13582         to diagnose, unfortunately.)
13583
13584         Several "#define __attribute__(X) /* empty */" code snippets need
13585         to be eradicated from Gnulib to work with non-GCC compilers that
13586         support __attribute__.  The Autoconf way to do this is to test for
13587         each kind of attribute that we want support for, and selectively
13588         enable that in source code.
13589
13590         Fix this problem just for stdlib.h, by adding a test for the
13591         __noreturn__ attribute, and change stdlib.in.h to use that test
13592         when needed.  This technique can be easily generalized to the
13593         other *.in.h files and attributes, and a similar technique can be
13594         used for *.h and *.c files.  This patch is enough to solve the
13595         problem for Emacs + getloadavg, and I thought I'd publish it for
13596         feedback before undertaking further, similar fixes in other
13597         modules.
13598
13599         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13600         because it's not needed for stdlib.h.  It merely substitutes the
13601         value directly into stdlib.h.  We may well need to #define it, or
13602         similar symbols, for other modules, but it's nice to also have an
13603         option to not #define it for applications like Emacs that do not
13604         need it.
13605
13606         * lib/stdlib.in.h (__attribute__): Do not #define.
13607         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13608         be defined only if the _Exit module is also used.
13609         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13611         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13612         platforms.
13613         * modules/_Exit (Files): Add m4/attribute.m4.
13614         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13615         * m4/attribute.m4: New file.
13616
13617 2011-02-12  Bruno Haible  <bruno@clisp.org>
13618
13619         wcsrtombs: Work around bug on native Windows.
13620         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13621         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13622         instead of len.
13623         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13624
13625 2011-02-12  Bruno Haible  <bruno@clisp.org>
13626
13627         mbsrtowcs: Work around bug on native Windows.
13628         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13629         against mingw bug.
13630         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13631
13632 2011-02-12  Bruno Haible  <bruno@clisp.org>
13633
13634         Avoid setlocale bugs in tests.
13635         * modules/btowc (Dependencies): Add setlocale.
13636         * modules/c-strcase (Dependencies): Likewise.
13637         * modules/mbmemcasecmp (Dependencies): Likewise.
13638         * modules/mbmemcasecoll (Dependencies): Likewise.
13639         * modules/mbrtowc (Dependencies): Likewise.
13640         * modules/mbscasecmp (Dependencies): Likewise.
13641         * modules/mbscasestr (Dependencies): Likewise.
13642         * modules/mbschr (Dependencies): Likewise.
13643         * modules/mbscspn (Dependencies): Likewise.
13644         * modules/mbsinit (Dependencies): Likewise.
13645         * modules/mbsncasecmp (Dependencies): Likewise.
13646         * modules/mbsnrtowcs (Dependencies): Likewise.
13647         * modules/mbspbrk (Dependencies): Likewise.
13648         * modules/mbspcasecmp (Dependencies): Likewise.
13649         * modules/mbsrchr (Dependencies): Likewise.
13650         * modules/mbsrtowcs (Dependencies): Likewise.
13651         * modules/mbsspn (Dependencies): Likewise.
13652         * modules/mbsstr (Dependencies): Likewise.
13653         * modules/nl_langinfo (Dependencies): Likewise.
13654         * modules/quotearg (Dependencies): Likewise.
13655         * modules/unicase/locale-language (Dependencies): Likewise.
13656         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13657         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13658         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13659         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13660         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13661         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13662         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13663         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13664         * modules/vasnprintf-posix (Dependencies): Likewise.
13665         * modules/wcrtomb (Dependencies): Likewise.
13666         * modules/wcsnrtombs (Dependencies): Likewise.
13667         * modules/wcsrtombs (Dependencies): Likewise.
13668
13669 2011-02-12  Bruno Haible  <bruno@clisp.org>
13670
13671         setlocale: Workaround native Windows bug.
13672         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13673         succeeds but sets LC_CTYPE to "C", report a failure.
13674         * tests/test-setlocale2.sh: New file.
13675         * tests/test-setlocale2.c: New file.
13676         * modules/setlocale-tests (Files): Add the new files.
13677         (Makefile.am): Enable test-setlocale2.sh test.
13678         * doc/posix-functions/setlocale.texi: Mention workaround.
13679
13680 2011-02-11  Bruno Haible  <bruno@clisp.org>
13681
13682         Tests for module 'setlocale'.
13683         * modules/setlocale-tests: New file.
13684         * tests/test-setlocale1.sh: New file.
13685         * tests/test-setlocale1.c: New file.
13686
13687         New module 'setlocale'.
13688         * lib/locale.in.h (setlocale): New declaration.
13689         * lib/setlocale.c: New file, based on
13690         gettext/gettext-runtime/intl/setlocale.c.
13691         * m4/setlocale.m4: New file.
13692         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13693         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13694         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13695         REPLACE_SETLOCALE.
13696         * modules/setlocale: New file.
13697         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13698         * doc/posix-functions/setlocale.texi: Mention the new module.
13699
13700 2011-02-11  Bruno Haible  <bruno@clisp.org>
13701
13702         Prepare for locale dependent tests on mingw.
13703         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13704         because it has the wrong locale encoding.
13705         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13706         French_France.1252 instead of "fr".
13707         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13708         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13709         because it has the wrong locale encoding.
13710         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13711         native Windows, try Turkish_Turkey.65001.
13712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13713         Chinese_China.54936.
13714
13715         Prepare for locale dependent tests on mingw.
13716         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13717         differently.
13718         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13719         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13720         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13721         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13722
13723 2011-02-11  Eric Blake  <eblake@redhat.com>
13724
13725         strptime: avoid compiler warnings
13726         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13727         compiler warnings about dead code.
13728         Reported by Daniel P. Berrange.
13729
13730 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13731
13732         doc: update users.txt
13733         * users.txt: Add rcs.
13734
13735 2011-02-10  John W. Eaton  <jwe@gnu.org>
13736
13737         doc: update users.txt
13738         * users.txt: Add octave.
13739
13740 2011-02-10  Jim Meyering  <meyering@redhat.com>
13741
13742         doc: update users.txt
13743         * users.txt: Add iwhd.
13744
13745 2011-02-09  Bruno Haible  <bruno@clisp.org>
13746
13747         gnulib-tool: Make copyright notice adjustment more robust.
13748         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13749         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13750         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13751         License".
13752         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13753
13754 2011-02-06  Bruno Haible  <bruno@clisp.org>
13755
13756         New module 'towctrans'.
13757         * modules/towctrans: New file.
13758         * lib/wctype.in.h (towctrans): New declaration.
13759         * lib/towctrans.c: New file.
13760         * lib/towctrans-impl.h: New file.
13761         * m4/towctrans.m4: New file.
13762         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13763         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13764         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13765         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13766         * doc/posix-functions/towctrans.texi: Mention the new module.
13767
13768 2011-02-06  Bruno Haible  <bruno@clisp.org>
13769
13770         New module 'wctrans'.
13771         * modules/wctrans: New file.
13772         * lib/wctype.in.h (wctrans): New declaration.
13773         * lib/wctrans.c: New file.
13774         * lib/wctrans-impl.h: New file.
13775         * m4/wctrans.m4: New file.
13776         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13777         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13778         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13779         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13780         * doc/posix-functions/wctrans.texi: Mention the new module.
13781
13782 2011-02-06  Bruno Haible  <bruno@clisp.org>
13783
13784         New module 'iswctype'.
13785         * modules/iswctype: New file.
13786         * lib/wctype.in.h (iswctype): New declaration.
13787         * lib/iswctype.c: New file.
13788         * lib/iswctype-impl.h: New file.
13789         * m4/iswctype.m4: New file.
13790         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13791         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13792         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13793         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13794         * doc/posix-functions/iswctype.texi: Mention the new module and the
13795         HP-UX 11.00 problem.
13796
13797 2011-02-06  Bruno Haible  <bruno@clisp.org>
13798
13799         New module 'wctype'.
13800         * modules/wctype: Change to represent the wctype() substitute.
13801         * lib/wctype.in.h (wctype): New declaration.
13802         * lib/wctype.c: New file.
13803         * lib/wctype-impl.h: New file.
13804         * m4/wctype.m4: New file.
13805         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13806         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13807         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13808         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13809         * doc/posix-functions/wctype.texi: Mention the new module and the
13810         HP-UX 11.00 problem.
13811
13812 2011-02-06  Bruno Haible  <bruno@clisp.org>
13813
13814         wctype-h: Ensure wctype_t and wctrans_t are defined.
13815         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13816         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13817         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13818         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13819         HAVE_WCTRANS_T.
13820         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13821
13822 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         flock: fix license typo
13825
13826         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13827         omitted.
13828
13829 2011-02-08  Bruno Haible  <bruno@clisp.org>
13830
13831         Split large sed scripts, for HP-UX sed.
13832         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13833         to avoid HP-UX limit of 99 commands, in the near future.
13834         * modules/stdlib (Makefile.am): Likewise.
13835         * modules/unistd (Makefile.am): Likewise.
13836         * modules/wchar (Makefile.am): Likewise.
13837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13838         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13840
13841 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13842             Bruno Haible  <bruno@clisp.org>
13843
13844         stdlib: improve random_r modularization
13845         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13846         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13847         you also need the random_r module to get this material right.
13848         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13849         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13850         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13851
13852 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         stdlib: don't depend on stdint
13855         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13856         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13857         be independent of whether stdint.h is needed.
13858         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13859         here, instead of ...
13860         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13861         struct random_data should be using the random_r module, not just
13862         the stdlib module (which wouldn't make sense: what package needs
13863         just struct random_data without also needing random_r?).
13864         * modules/stdlib (Depends-on): Remove stdint.
13865
13866         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13867         See the thread rooted at
13868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13869         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13870         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13871         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13872         __VMS)); previously it was always included (via fcntl--.h).
13873         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13874         hand; this is good enough for load averages.  Also, do not use
13875         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13876         flags directly if available and don't bother otherwise.  (Packages
13877         that need the extra reliability should use the modules that define
13878         these flags on older platforms that lack them.)
13879         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13880         fcntl-safer.
13881
13882 2011-02-08  Jim Meyering  <meyering@redhat.com>
13883
13884         di-set.h, ino-map.h: add multiple-inclusion guard
13885         Technically, the guard is required only for ino-map.h, due to its
13886         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13887         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13888         * lib/ino-map.h: Likewise.
13889
13890 2011-02-06  Bruno Haible  <bruno@clisp.org>
13891
13892         iswblank: Ensure declaration on glibc systems.
13893         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13894         * modules/iswblank (Dependencies): Add 'extensions'.
13895         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13896
13897 2011-02-06  Bruno Haible  <bruno@clisp.org>
13898
13899         New module 'iswblank'.
13900         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13901         * modules/iswblank: New file.
13902         * modules/wctype-h (Files): Remove lib/iswblank.c.
13903         (Makefile.am): Substitute GNULIB_ISWBLANK.
13904         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13905         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13906         (gl_WCTYPE_H_DEFAULTS): New macro.
13907         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13908         * modules/iswblank-tests: New file.
13909         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13910         * tests/test-wctype-h.c (main): Remove iswblank tests.
13911         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13912         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13913         of 'wctype-h'.
13914         * NEWS: Mention the change.
13915         * modules/mbchar (Depends-on): Add iswblank.
13916
13917 2011-02-08  Bruno Haible  <bruno@clisp.org>
13918
13919         di-set tests: Refactor.
13920         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13921         unnecessary includes.
13922         (ASSERT): Remove macro.
13923         (main): Make C90 compliant by avoiding variable declaration after
13924         statement.
13925         * modules/di-set-tests (Files): Add tests/macros.h.
13926
13927 2011-02-08  Bruno Haible  <bruno@clisp.org>
13928
13929         ino-map tests: Refactor.
13930         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13931         unnecessary includes.
13932         (ASSERT): Remove macro.
13933         (main): Make C90 compliant by avoiding variable declaration after
13934         statement.
13935         * modules/ino-map-tests (Files): Add tests/macros.h.
13936
13937 2011-02-08  Jim Meyering  <meyering@redhat.com>
13938
13939         di-set: add "const" to a cast
13940         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13941         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13942
13943 2011-02-06  Bruno Haible  <bruno@clisp.org>
13944
13945         Rename module 'wctype' to 'wctype-h'.
13946         * modules/wctype-h: Renamed from modules/wctype.
13947         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13948         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13949         (Files, Depends-on, Makefile.am): Update.
13950         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13951         (Files, Makefile.am): Update.
13952         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13953         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13954         * doc/posix-headers/wctype.texi: Update.
13955         * doc/posix-functions/iswalnum.texi: Update.
13956         * doc/posix-functions/iswalpha.texi: Update.
13957         * doc/posix-functions/iswblank.texi: Update.
13958         * doc/posix-functions/iswcntrl.texi: Update.
13959         * doc/posix-functions/iswdigit.texi: Update.
13960         * doc/posix-functions/iswgraph.texi: Update.
13961         * doc/posix-functions/iswlower.texi: Update.
13962         * doc/posix-functions/iswprint.texi: Update.
13963         * doc/posix-functions/iswpunct.texi: Update.
13964         * doc/posix-functions/iswspace.texi: Update.
13965         * doc/posix-functions/iswupper.texi: Update.
13966         * doc/posix-functions/iswxdigit.texi: Update.
13967         * doc/posix-functions/towlower.texi: Update.
13968         * doc/posix-functions/towupper.texi: Update.
13969         * NEWS: Mention the change.
13970         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13971         * modules/mbchar (Dependencies): Likewise.
13972         * modules/mbswidth (Dependencies): Likewise.
13973         * modules/quotearg (Dependencies): Likewise.
13974         * modules/regex (Dependencies): Likewise.
13975         * modules/wcscasecmp (Dependencies): Likewise.
13976         * modules/wcsncasecmp (Dependencies): Likewise.
13977         * modules/wcwidth (Dependencies): Likewise.
13978
13979 2011-02-06  Bruno Haible  <bruno@clisp.org>
13980
13981         New module 'wcswidth'.
13982         * modules/wcswidth: New file.
13983         * lib/wchar.in.h (wcswidth): New declaration.
13984         * lib/wcswidth.c: New file.
13985         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13986         * m4/wcswidth.m4: New file.
13987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13989         REPLACE_WCSWIDTH.
13990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13991         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13992         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13993         * doc/posix-functions/wcswidth.texi: Mention the new module.
13994
13995 2011-02-06  Bruno Haible  <bruno@clisp.org>
13996
13997         New module 'wcstok'.
13998         * modules/wcstok: New file.
13999         * lib/wchar.in.h (wcstok): New declaration.
14000         * lib/wcstok.c: New file.
14001         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14002         * m4/wcstok.m4: New file.
14003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14006         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14007         * doc/posix-functions/wcstok.texi: Mention the new module.
14008
14009 2011-02-06  Bruno Haible  <bruno@clisp.org>
14010
14011         New module 'wcsstr'.
14012         * modules/wcsstr: New file.
14013         * lib/wchar.in.h (wcsstr): New declaration.
14014         * lib/wcsstr.c: New file.
14015         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14016         * m4/wcsstr.m4: New file.
14017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14020         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14021         * doc/posix-functions/wcsstr.texi: Mention the new module.
14022
14023 2011-02-06  Bruno Haible  <bruno@clisp.org>
14024
14025         New module 'wcspbrk'.
14026         * modules/wcspbrk: New file.
14027         * lib/wchar.in.h (wcspbrk): New declaration.
14028         * lib/wcspbrk.c: New file.
14029         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14030         * m4/wcspbrk.m4: New file.
14031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14034         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14035         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14036
14037 2011-02-06  Bruno Haible  <bruno@clisp.org>
14038
14039         New module 'wcsspn'.
14040         * modules/wcsspn: New file.
14041         * lib/wchar.in.h (wcsspn): New declaration.
14042         * lib/wcsspn.c: New file.
14043         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14044         * m4/wcsspn.m4: New file.
14045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14048         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14049         * doc/posix-functions/wcsspn.texi: Mention the new module.
14050
14051 2011-02-06  Bruno Haible  <bruno@clisp.org>
14052
14053         New module 'wcscspn'.
14054         * modules/wcscspn: New file.
14055         * lib/wchar.in.h (wcscspn): New declaration.
14056         * lib/wcscspn.c: New file.
14057         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14058         * m4/wcscspn.m4: New file.
14059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14062         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14063         * doc/posix-functions/wcscspn.texi: Mention the new module.
14064
14065 2011-02-06  Bruno Haible  <bruno@clisp.org>
14066
14067         New module 'wcsrchr'.
14068         * modules/wcsrchr: New file.
14069         * lib/wchar.in.h (wcsrchr): New declaration.
14070         * lib/wcsrchr.c: New file.
14071         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14072         * m4/wcsrchr.m4: New file.
14073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14076         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14077         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14078
14079 2011-02-06  Bruno Haible  <bruno@clisp.org>
14080
14081         New module 'wcschr'.
14082         * modules/wcschr: New file.
14083         * lib/wchar.in.h (wcschr): New declaration.
14084         * lib/wcschr.c: New file.
14085         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14086         * m4/wcschr.m4: New file.
14087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14090         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14091         * doc/posix-functions/wcschr.texi: Mention the new module.
14092
14093 2011-02-06  Bruno Haible  <bruno@clisp.org>
14094
14095         New module 'wcsdup'.
14096         * modules/wcsdup: New file.
14097         * lib/wchar.in.h (wcsdup): New declaration.
14098         * lib/wcsdup.c: New file.
14099         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14100         * m4/wcsdup.m4: New file.
14101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14104         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14105         * doc/posix-functions/wcsdup.texi: Mention the new module.
14106
14107 2011-02-06  Bruno Haible  <bruno@clisp.org>
14108
14109         New module 'wcsxfrm'.
14110         * modules/wcsxfrm: New file.
14111         * lib/wchar.in.h (wcsxfrm): New declaration.
14112         * lib/wcsxfrm.c: New file.
14113         * lib/wcsxfrm-impl.h: New file.
14114         * m4/wcsxfrm.m4: New file.
14115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14118         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14119         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14120
14121 2011-02-06  Bruno Haible  <bruno@clisp.org>
14122
14123         New module 'wcscoll'.
14124         * modules/wcscoll: New file.
14125         * lib/wchar.in.h (wcscoll): New declaration.
14126         * lib/wcscoll.c: New file.
14127         * lib/wcscoll-impl.h: New file.
14128         * m4/wcscoll.m4: New file.
14129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14132         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14133         * doc/posix-functions/wcscoll.texi: Mention the new module.
14134
14135 2011-02-06  Bruno Haible  <bruno@clisp.org>
14136
14137         New module 'wcsncasecmp'.
14138         * modules/wcsncasecmp: New file.
14139         * lib/wchar.in.h (wcsncasecmp): New declaration.
14140         * lib/wcsncasecmp.c: New file.
14141         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14142         * m4/wcsncasecmp.m4: New file.
14143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14146         HAVE_WCSNCASECMP.
14147         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14148         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14149
14150 2011-02-06  Bruno Haible  <bruno@clisp.org>
14151
14152         New module 'wcscasecmp'.
14153         * modules/wcscasecmp: New file.
14154         * lib/wchar.in.h (wcscasecmp): New declaration.
14155         * lib/wcscasecmp.c: New file.
14156         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14157         * m4/wcscasecmp.m4: New file.
14158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14161         HAVE_WCSCASECMP.
14162         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14163         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14164
14165 2011-02-05  Bruno Haible  <bruno@clisp.org>
14166
14167         New module 'wcsncmp'.
14168         * modules/wcsncmp: New file.
14169         * lib/wchar.in.h (wcsncmp): New declaration.
14170         * lib/wcsncmp.c: New file.
14171         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14172         * m4/wcsncmp.m4: New file.
14173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14176         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14177         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14178
14179 2011-02-05  Bruno Haible  <bruno@clisp.org>
14180
14181         New module 'wcscmp'.
14182         * modules/wcscmp: New file.
14183         * lib/wchar.in.h (wcscmp): New declaration.
14184         * lib/wcscmp.c: New file.
14185         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14186         * m4/wcscmp.m4: New file.
14187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14190         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14191         * doc/posix-functions/wcscmp.texi: Mention the new module.
14192
14193 2011-02-05  Bruno Haible  <bruno@clisp.org>
14194
14195         New module 'wcsncat'.
14196         * modules/wcsncat: New file.
14197         * lib/wchar.in.h (wcsncat): New declaration.
14198         * lib/wcsncat.c: New file.
14199         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14200         * m4/wcsncat.m4: New file.
14201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14204         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14205         * doc/posix-functions/wcsncat.texi: Mention the new module.
14206
14207 2011-02-05  Bruno Haible  <bruno@clisp.org>
14208
14209         New module 'wcscat'.
14210         * modules/wcscat: New file.
14211         * lib/wchar.in.h (wcscat): New declaration.
14212         * lib/wcscat.c: New file.
14213         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14214         * m4/wcscat.m4: New file.
14215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14218         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14219         * doc/posix-functions/wcscat.texi: Mention the new module.
14220
14221 2011-02-05  Bruno Haible  <bruno@clisp.org>
14222
14223         New module 'wcpncpy'.
14224         * modules/wcpncpy: New file.
14225         * lib/wchar.in.h (wcpncpy): New declaration.
14226         * lib/wcpncpy.c: New file.
14227         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14228         * m4/wcpncpy.m4: New file.
14229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14231         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14232         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14233         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14234
14235 2011-02-05  Bruno Haible  <bruno@clisp.org>
14236
14237         New module 'wcsncpy'.
14238         * modules/wcsncpy: New file.
14239         * lib/wchar.in.h (wcsncpy): New declaration.
14240         * lib/wcsncpy.c: New file.
14241         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14242         * m4/wcsncpy.m4: New file.
14243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14246         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14247         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14248
14249 2011-02-05  Bruno Haible  <bruno@clisp.org>
14250
14251         New module 'wcpcpy'.
14252         * modules/wcpcpy: New file.
14253         * lib/wchar.in.h (wcpcpy): New declaration.
14254         * lib/wcpcpy.c: New file.
14255         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14256         * m4/wcpcpy.m4: New file.
14257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14259         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14260         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14261         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14262
14263 2011-02-05  Bruno Haible  <bruno@clisp.org>
14264
14265         New module 'wcscpy'.
14266         * modules/wcscpy: New file.
14267         * lib/wchar.in.h (wcscpy): New declaration.
14268         * lib/wcscpy.c: New file.
14269         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14270         * m4/wcscpy.m4: New file.
14271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14274         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14275         * doc/posix-functions/wcscpy.texi: Mention the new module.
14276
14277 2011-02-05  Bruno Haible  <bruno@clisp.org>
14278
14279         New module 'wcsnlen'.
14280         * modules/wcsnlen: New file.
14281         * lib/wchar.in.h (wcsnlen): New declaration.
14282         * lib/wcsnlen.c: New file.
14283         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14284         * m4/wcsnlen.m4: New file.
14285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14288         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14289         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14290
14291 2011-02-05  Bruno Haible  <bruno@clisp.org>
14292
14293         New module 'wcslen'.
14294         * modules/wcslen: New file.
14295         * lib/wchar.in.h (wcslen): New declaration.
14296         * lib/wcslen.c: New file.
14297         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14298         * m4/wcslen.m4: New file.
14299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14302         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14303         * doc/posix-functions/wcslen.texi: Mention the new module.
14304
14305 2011-02-05  Bruno Haible  <bruno@clisp.org>
14306
14307         New module 'wmemset'.
14308         * modules/wmemset: New file.
14309         * lib/wchar.in.h (wmemset): New declaration.
14310         * lib/wmemset.c: New file.
14311         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14312         * m4/wmemset.m4: New file.
14313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14315         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14316         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14317         * doc/posix-functions/wmemset.texi: Mention the new module.
14318
14319 2011-02-05  Bruno Haible  <bruno@clisp.org>
14320
14321         New module 'wmemmove'.
14322         * modules/wmemmove: New file.
14323         * lib/wchar.in.h (wmemmove): New declaration.
14324         * lib/wmemmove.c: New file.
14325         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14326         * m4/wmemmove.m4: New file.
14327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14329         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14330         HAVE_WMEMMOVE.
14331         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14332         * doc/posix-functions/wmemmove.texi: Mention the new module.
14333
14334 2011-02-05  Bruno Haible  <bruno@clisp.org>
14335
14336         New module 'wmemcpy'.
14337         * modules/wmemcpy: New file.
14338         * lib/wchar.in.h (wmemcpy): New declaration.
14339         * lib/wmemcpy.c: New file.
14340         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14341         * m4/wmemcpy.m4: New file.
14342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14344         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14345         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14346         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14347
14348 2011-02-05  Bruno Haible  <bruno@clisp.org>
14349
14350         New module 'wmemcmp'.
14351         * modules/wmemcmp: New file.
14352         * lib/wchar.in.h (wmemcmp): New declaration.
14353         * lib/wmemcmp.c: New file.
14354         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14355         * m4/wmemcmp.m4: New file.
14356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14358         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14359         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14360         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14361
14362 2011-02-07  Jim Meyering  <meyering@redhat.com>
14363
14364         di-set, ino-map: new modules, from coreutils
14365         * lib/di-set.c: New file.
14366         * lib/di-set.h: Likewise.
14367         * lib/ino-map.c: Likewise.
14368         * lib/ino-map.h: Likewise.
14369         * modules/di-set: Likewise.
14370         * modules/di-set-tests: Likewise.
14371         * modules/ino-map: Likewise.
14372         * modules/ino-map-tests: Likewise.
14373         * tests/test-di-set.c: Likewise.
14374         * tests/test-ino-map.c: Likewise.
14375
14376 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14377
14378         getloadavg: merge minor changes from Emacs
14379
14380         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14381         (getloadavg): Use memset, not bzero.
14382
14383         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14384         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14385         clash (bug#86).
14386
14387 2010-11-14  Bruno Haible  <bruno@clisp.org>
14388
14389         Allow multiple gnulib generated replacements to coexist.
14390         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14391         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14392         * lib/langinfo.in.h (nl_item): Likewise.
14393         * lib/math.in.h (_NaN, NAN): Likewise.
14394         * lib/netdb.in.h (struct addrinfo): Likewise.
14395         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14396         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14397         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14398         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14399         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14400         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14401         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14402         pthread_mutexattr_init, pthread_mutexattr_settype,
14403         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14404         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14405         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14406         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14407         * lib/sched.in.h (struct sched_param): Likewise.
14408         * lib/se-selinux.in.h (security_class_t, security_context_t,
14409         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14410         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14411         lsetfilecon, fsetfilecon, security_check_context,
14412         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14413         Likewise.
14414         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14415         Likewise.
14416         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14417         _gl_function_taking_int_returning_void_t, union sigval,
14418         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14419         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14420         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14421         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14422         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14423         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14424         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14425         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14426         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14427         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14428         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14429         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14430         socklen_t, rpl_fd_isset): Likewise.
14431         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14432         * lib/sys_time.in.h (struct timeval): Likewise.
14433         * lib/sys_times.in.h (struct tms): Likewise.
14434         * lib/sys_utsname.in.h (struct utsname):
14435         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14436         * lib/unistd.in.h (getpagesize): Likewise.
14437         * lib/wchar.in.h (mbstate_t): Likewise.
14438         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14439         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14440         towlower, towupper): Likewise.
14441         Reported by Sam Steingold <sds@gnu.org>.
14442
14443 2011-02-05  Eric Blake  <eblake@redhat.com>
14444
14445         unsetenv: work around Haiku issues
14446         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14447         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14448
14449 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14450
14451         libposix: avoid calling error() within libposix
14452         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14453         is defined.
14454
14455 2011-02-05  Eric Blake  <eblake@redhat.com>
14456
14457         strerror_r-posix: port to cygwin
14458         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14459         implementation.
14460         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14461         * tests/test-strerror_r.c (main): Fix test.
14462         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14463         issue.
14464
14465 2011-02-05  Bruno Haible  <bruno@clisp.org>
14466
14467         New module 'wmemchr'.
14468         * modules/wmemchr: New file.
14469         * lib/wchar.in.h (wmemchr): New declaration.
14470         * lib/wmemchr.c: New file.
14471         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14472         * m4/wmemchr.m4: New file.
14473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14475         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14476         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14477         * doc/posix-functions/wmemchr.texi: Mention the new module.
14478
14479 2011-02-04  Eric Blake  <eblake@redhat.com>
14480
14481         fdopendir: detect FreeBSD bug
14482         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14483         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14484
14485 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14486
14487         stdbool: do not define HAVE_STDBOOL_H
14488         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14489         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14490         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14491         imported from the latest Autoconf git.  It was motivated by Emacs,
14492         which uses gnulib but does not need HAVE_STDBOOL_H.
14493
14494 2011-02-04  Bruno Haible  <bruno@clisp.org>
14495
14496         wcsnrtombs: Prepare for new module wwcsnrtombs.
14497         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14498         * lib/wcsnrtombs.c: Include it.
14499         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14500
14501         wcsrtombs: Prepare for new module wwcsrtombs.
14502         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14503         * lib/wcsrtombs.c: Include it.
14504         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14505
14506         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14507         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14508         * lib/mbsnrtowcs.c: Include it.
14509         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14510
14511         mbsrtowcs: Prepare for new module mbsrtowwcs.
14512         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14513         * lib/mbsrtowcs.c: Include it.
14514         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14515
14516 2011-02-04  Bruno Haible  <bruno@clisp.org>
14517
14518         vasnprintf: Reduce use of malloc for small format strings.
14519         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14520         (arguments): Add room for the first 7 arguments.
14521         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14522         (char_directives, u8_directives, u16_directives, u32_directives): Add
14523         room for the first 7 directives.
14524         * lib/printf-parse.c: Include <string.h>.
14525         (PRINTF_PARSE): Change memory handling code so that it uses the first
14526         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14527         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14528         Reported by Pádraig Brady <P@draigbrady.com>.
14529
14530 2011-01-31  Eric Blake  <eblake@redhat.com>
14531
14532         dup2: work around Haiku bug
14533         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14534         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14535         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14536         * tests/test-dup2.c (main): Enhance test.
14537
14538 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14539
14540         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14541         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14542         declared by eglibc 2.11.2.
14543         * lib/stdio.in.h: Likewise.
14544
14545 2011-01-31  Eric Blake  <eblake@redhat.com>
14546
14547         ignore-value: add missing test dependency
14548         * tests/test-ignore-value.c: Revert previous change; stdio.h
14549         provides off_t.
14550         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14551
14552 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14553
14554         mktime: clarify long_int width checking
14555         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14556         the top level, to make it clearer that the assumption about
14557         long_int width is being checked.  See
14558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14559
14560 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14561
14562         ignore-value: Fix self-test.
14563         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14564
14565 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14566
14567         TYPE_MAXIMUM: avoid theoretically undefined behavior
14568         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14569         negative number, which the C Standard says has undefined behavior.
14570         In practice this is not a problem, but might as well do it by the book.
14571         Reported by Rich Felker and Eric Blake; see
14572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14573         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14574         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14576         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14577         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14578         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14579
14580         mktime: #undef mktime before #defining it
14581         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14582
14583         mktime: systematically normalize tm_isdst comparisons
14584         * lib/mktime.c (isdst_differ): New function.
14585         (__mktime_internal): Use it systematically for all isdst comparisons.
14586         This completes the fix for libc BZ #6723, and removes the need for
14587         normalizing tm_isdst.  See
14588         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14589         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14590
14591         mktime: fix some integer overflow issues and sidestep the rest
14592
14593         This was prompted by a bug report by Benjamin Lindner for MinGW
14594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14595         His bug is due to signed integer overflow (0 - INT_MIN), and I
14596         I scanned through mktime.c looking for other integer overflow
14597         problems, fixing all the bugs I found.
14598
14599         Although the C Standard says the resulting code is still not safe
14600         in the presence of integer overflow, in practice it should be good
14601         enough for all real-world two's-complement implementations, except
14602         for debugging environments that deliberately trap on integer
14603         overflow (e.g., gcc -ftrapv).
14604
14605         * lib/mktime.c (WRAPV): New macro.
14606         (SHR): Also check that long_int and time_t shift right in the
14607         usual way, before using the fast-but-unportable method.
14608         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14609         used.  The code already assumed two's complement, so there's
14610         no need to test for alternatives.  All uses removed.
14611         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14612         the C standard.  Problem reported by Rich Felker in
14613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14614         (twos_complement_arithmetic): Also check long_int and time_t.
14615         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14616         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14617         (__mktime_internal): Avoid integer overflow with unary subtraction
14618         in two instances where -1 - X is an adequate replacement for -X,
14619         since the calculations are approximate.
14620
14621 2011-01-29  Eric Blake  <eblake@redhat.com>
14622
14623         mktime: avoid infinite loop
14624         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14625         type; behavior is still undefined but portable to all known targets.
14626         Reported by Rich Felker.
14627
14628 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14629
14630         rename, unlink, same-inode: Relicense.
14631         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14632         * modules/unlink (License): Likewise.
14633         * modules/same-inode (License): Likewise.
14634
14635 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14636
14637         mktime: avoid problems on NetBSD 5 / i386
14638         * lib/mktime.c (long_int): New type.  This works around a problem
14639         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14640         but time_t is 64 bits, and where I expect the existing code is
14641         wrong in some cases.
14642         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14643         (ydhms_diff): Bring back the compile-time check for wide-enough
14644         year and yday.
14645
14646         mktime: fix misspelling in comment
14647         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14648         This merges all recent glibc changes of importance.
14649
14650 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14651
14652         move-if-change: cope with concurrent mv of identical file.
14653         * build-aux/move-if-change (CMPPROG): Accept environment
14654         variable as an override for `cmp'.
14655         (usage): Document CMPPROG.
14656         Adjust comparison to drop stdout.  Cope with failure of mv if
14657         the target file exists and is identical to the source, for
14658         parallel builds.
14659         Report from H.J. Lu against binutils in PR binutils/12283.
14660
14661 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14662
14663         * users.txt: Mention sharutils.
14664
14665 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14666
14667         * users.txt: Mention OATH Toolkit.
14668
14669 2011-01-27  Bruno Haible  <bruno@clisp.org>
14670
14671         Prepare for supporting FreeBSD 10.
14672         * build-aux/config.libpath: Remove handling of freebsd1*.
14673
14674 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14675
14676         Prepare for supporting FreeBSD 10.
14677         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14678         match FreeBSD 10.0.
14679
14680 2011-01-27  Bruno Haible  <bruno@clisp.org>
14681
14682         vma-iter, get-rusage-as: Add OpenBSD support.
14683         * modules/vma-iter (configure.ac): Test for mquery.
14684         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14685         * lib/vma-iter.c: Include <sys/mman.h>.
14686         (vma_iterate): Add an implementation based on mquery().
14687         * lib/resource-ext.h (get_rusage_as): Update comments.
14688         * lib/get-rusage-as.c: Likewise.
14689         * lib/get-rusage-data.c: Likewise.
14690
14691 2011-01-26  Karl Berry  <karl@gnu.org>
14692
14693         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14694         variables to make it easier to override the makeinfo program used.
14695
14696 2011-01-26  Eric Blake  <eblake@redhat.com>
14697
14698         fcntl: work around Haiku F_DUPFD bugs
14699         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14700         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14701         cloexec bit on duplication.
14702         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14703
14704 2011-01-26  Bruno Haible  <bruno@clisp.org>
14705
14706         Enable memory leak tests on AIX.
14707         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14708         * tests/test-fprintf-posix3.c (main): Likewise.
14709
14710 2011-01-26  Bruno Haible  <bruno@clisp.org>
14711
14712         Tests for module 'get-rusage-data'.
14713         * modules/get-rusage-data-tests: New file.
14714         * tests/test-get-rusage-data.c: New file.
14715
14716         New module 'get-rusage-data'.
14717         * lib/resource-ext.h (get_rusage_data): New declaration.
14718         * lib/get-rusage-data.c: New file.
14719         * modules/get-rusage-data: New file.
14720
14721 2011-01-25  Bruno Haible  <bruno@clisp.org>
14722
14723         get-rusage-as: Allow for easier testing.
14724         * lib/resource-ext.h (get_rusage_as): Add comment.
14725         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14726         (main): New function for interactive testing.
14727
14728 2011-01-25  Bruno Haible  <bruno@clisp.org>
14729
14730         vma-iter: Treat Haiku like BeOS.
14731         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14732         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14733
14734 2011-01-25  Eric Blake  <eblake@redhat.com>
14735
14736         c-stack: fix regression on cygwin when libsigsegv is present
14737         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14738
14739 2011-01-24  Bruno Haible  <bruno@clisp.org>
14740
14741         vma-iter: Avoid empty intervals.
14742         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14743         on an empty interval.
14744
14745 2011-01-24  Jim Meyering  <meyering@redhat.com>
14746
14747         u64: remove unnecessary #include
14748         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14749
14750 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14751
14752         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14753         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14754
14755 2011-01-23  Bruno Haible  <bruno@clisp.org>
14756
14757         New module 'vma-iter'.
14758         * lib/vma-iter.h: New file.
14759         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14760         * modules/vma-iter: New file.
14761         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14762         for get_rusage_as_via_iterator.
14763         (vma_iterate_callback): New function.
14764         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14765         * modules/get-rusage-as (Depends-on): Add vma-iter.
14766
14767 2011-01-23  Bruno Haible  <bruno@clisp.org>
14768
14769         uninorm: Tweak includes.
14770         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14771         Reported by Jim Meyering.
14772
14773 2011-01-23  Bruno Haible  <bruno@clisp.org>
14774
14775         get-rusage-as: Improve on NetBSD.
14776         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14777         /proc, like on FreeBSD.
14778
14779 2011-01-23  Jim Meyering  <meyering@redhat.com>
14780
14781         xreadlink.h: remove unnecessary #include
14782         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14783
14784         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14785         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14786
14787 2011-01-23  Bruno Haible  <bruno@clisp.org>
14788
14789         get-rusage-as: Fix bug.
14790         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14791         original limit when aborting the first loop.
14792
14793 2011-01-23  Bruno Haible  <bruno@clisp.org>
14794
14795         wctype: Ensure valid C syntax.
14796         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14797         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14798
14799 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14800
14801         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14803         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14804         as they are needed only for configure's test case.
14805         This removes two unnecessary symbols from config.h.
14806
14807         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14808         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14810         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14811         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14812         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14813         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14814         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14815         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14816         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14817         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14819         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14820         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14821         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14822         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14823         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14824         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14825
14826 2011-01-21  Eric Blake  <eblake@redhat.com>
14827
14828         maintainer-makefile: work with older git for submodule check
14829         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14830         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14831         Reported by Matthias Bolte.
14832
14833         bootstrap: minor portability fixes
14834         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14835         (usage): Omit leading capital and trailing . on help phrases, per
14836         GNU Coding Standards.
14837         (check_versions, top level): Prefix messages with script name.
14838
14839 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14840
14841         bootstrap: support --no-git option
14842         * build-aux/bootstrap: Add --no-git option, to be used when
14843         --gnulib-srcdir points to the exact desired checkout.
14844
14845 2011-01-21  Eric Blake  <eblake@redhat.com>
14846
14847         strerror_r-posix: work with glibc 2.13
14848         * lib/strerror_r.c (strerror_r): Fix return type.
14849
14850 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14851             Bruno Haible  <bruno@clisp.org>
14852
14853         uN_strstr: New unit tests.
14854         * modules/unistr/u8-strstr-tests: New file.
14855         * modules/unistr/u16-strstr-tests: New file.
14856         * modules/unistr/u32-strstr-tests: New file.
14857         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14858         * tests/unistr/test-u8-strstr.c: New file.
14859         * tests/unistr/test-u16-strstr.c: New file.
14860         * tests/unistr/test-u32-strstr.c: New file.
14861
14862 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14863             Bruno Haible  <bruno@clisp.org>
14864
14865         Make uN_strstr functions O(n) worst-case.
14866         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14867         16-bit and 32-bit unit cases, use the unibyte algorithm from
14868         lib/mbsstr.c.
14869         * lib/unistr/u8-strstr.c: Include <string.h>.
14870         (UNIT_IS_UINT8_T): New macro.
14871         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14872         (U_STRLEN, U_STRNLEN): New macros.
14873         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14874         (U_STRLEN, U_STRNLEN): New macros.
14875         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14876         (configure.ac): Update required libunistring version.
14877         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14878         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14879         malloca.
14880         (configure.ac): Update required libunistring version.
14881         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14882         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14883         malloca.
14884         (configure.ac): Update required libunistring version.
14885
14886 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14887             Bruno Haible  <bruno@clisp.org>
14888
14889         Prepare for faster uN_strstr functions.
14890         * lib/str-kmp.h: Support definable UNITs.
14891         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14892         needle_len argument.
14893         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14894         * lib/mbscasestr.c (mbscasestr): Likewise.
14895
14896 2011-01-21  Pádraig Brady <P@draigBrady.com>
14897
14898         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14899         * tests/test-malloca.c (main): Unset the environment variable
14900         to greatly speed up the test.
14901         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14902         * modules/malloca-tests: Depend on unsetenv.
14903
14904 2011-01-21  Pádraig Brady <P@draigBrady.com>
14905
14906         ignore-value: remove stdint dependency
14907         * lib/ignore-value.h: Remove <stdint.h>
14908         * modules/ignore-value: Remove stdint dependency.
14909
14910 2011-01-21  Jim Meyering  <meyering@redhat.com>
14911
14912         maint.mk: adjust variable name to be consistent with other gl_ vars
14913         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14914         to be lower case.
14915
14916 2011-01-20  Jim Meyering  <meyering@redhat.com>
14917
14918         maint.mk: make "check" depend on public-submodule-commit by default
14919         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14920
14921 2011-01-20  Bruno Haible  <bruno@clisp.org>
14922
14923         mbfile, mbiter: Complete change from 2008-12-21.
14924         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14925         * m4/mbiter.m4 (gl_MBITER): Likewise.
14926
14927 2011-01-20  Jim Meyering  <meyering@redhat.com>
14928
14929         init.sh: insert space between each function name and "()"
14930         * tests/init.sh: Make it a little easier to see that a function's
14931         name is "warn_", and not "warn" when looking at the first part of
14932         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14933
14934 2011-01-20  Jim Meyering  <meyering@redhat.com>
14935
14936         mountlist: clean up code formatting
14937         * lib/mountlist.c (read_file_system_list): Split a long line,
14938         correct bracing style, use NULL in place of "(struct statfs *)0",
14939         don't parenthesize return value, add spaces around "=" and after
14940         ";-in-for-stmt".
14941
14942 2011-01-14  Markus Duft <mduft@gentoo.org>
14943
14944         mountlist: add support for Interix
14945         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14946         Apply statvfs to all entries of /dev/fs.
14947         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14948         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14949
14950 2011-01-20  Jim Meyering  <meyering@redhat.com>
14951
14952         maint.mk: improve the public-submodule-commit rule
14953         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14954         to suppress printing of its commands... unless V=1.
14955         Add git submodule's --quiet option to suppress printing of e.g.,
14956         "Entering gnulib" output.
14957         "cd" into $(srcdir) before running git submodule.
14958
14959 2011-01-20  Bruno Haible  <bruno@clisp.org>
14960
14961         include_next: Fix bug introduced on 2011-01-18.
14962         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14963         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14964         ac_cv_header_... variable if the second argument is not 'check'.
14965         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14966         gl_NEXT_HEADERS_INTERNAL.
14967
14968 2011-01-20  Bruno Haible  <bruno@clisp.org>
14969
14970         Allow the user to avoid the GNULIB_TEST_* macros.
14971         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14972         Suggested by Paul Eggert.
14973
14974 2011-01-14  Jim Meyering  <meyering@redhat.com>
14975
14976         bootstrap: avoid failure when there is no .gitmodules file
14977         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14978         has been assigned to, even when its value is the empty string.
14979         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14980         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14981         Reported by John W. Eaton <jwe@gnu.org>.
14982
14983 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14984
14985         assume <ctype.h>, ..., <time.h> exist
14986         For years gnulib has been assuming the existence of the headers
14987         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14988         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14989         them, since they don't appear to be needed.
14990         * README (Portability guidelines): Document this.
14991         * lib/flock.c: Assume <fcntl.h> exists.
14992         * lib/regex_internal.h: Assume <locale.h> exists.
14993         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14994         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14995         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14996         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14997         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14998         * m4/regex.m4 (gl_REGEX): Likewise.
14999         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15000         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15001         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15002         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15003         * tests/test-argp.c: Likewise.
15004         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15005
15006         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15007         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15008         AA_APPLE_UNIVERSAL_BUILD.  See
15009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15010         * NEWS: Document this.
15011
15012 2011-01-19  Eric Blake  <eblake@redhat.com>
15013
15014         c-stack: assume stack overflow if SA_SIGINFO unsupported
15015         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15016         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15017         sigaction will work.
15018         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15019         behavior match Linux.
15020         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15021
15022         stdbool-tests: accomodate Haiku
15023         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15024
15025         binary-io: fix O_TEXT on Haiku
15026         * modules/binary-io (Depends-on): Add fcntl-h.
15027         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15028         than blindly undefining O_TEXT.
15029         Reported by Scott McCreary.
15030
15031 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15032
15033         include_next: do not check for standard headers like stddef.h
15034
15035         I found this problem when modifying Emacs to use gnulib.
15036         I noticed that it added HAVE_STDDEF_H to config.h, even though
15037         gnulib always assumes <stddef.h> exists as per README and this
15038         symbol is unnecessary.
15039         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15040         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15041         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15042         faster for headers like stddef.h that are known to exist.
15043         (gl_CHECK_NEXT_HEADERS): Use it.
15044         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15045         rather than gl_CHECK_NEXT_HEADERS.
15046         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15047         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15048
15049 2011-01-18  Eric Blake  <eblake@redhat.com>
15050
15051         ansi-c++-opt: skip C++ dependency style if C++ is unused
15052         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15053         tests when we know C++ compilation is not desired.
15054         Reported by Scott McCreary.
15055
15056 2011-01-18  Bruno Haible  <bruno@clisp.org>
15057
15058         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15059         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15060         (main): Perform test also when getrlimit and setrlimit don't exist or
15061         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15062         limiting the address space size using setrlimit, compare the address
15063         space size before and after the the test.
15064         * tests/test-dprintf-posix2.c: Likewise.
15065         * tests/test-fprintf-posix3.sh: Update skip messages.
15066         * tests/test-dprintf-posix2.sh: Likewise.
15067         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15068         * modules/dprintf-posix-tests (Depends-on): Likewise.
15069         Reported by Bruce Korb <bkorb@gnu.org> and
15070         Gary V. Vaughan <gary@gnu.org>.
15071
15072 2011-01-18  Bruno Haible  <bruno@clisp.org>
15073
15074         get-rusage-as: Improvement for Cygwin.
15075         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15076         areas that are merely reserved.
15077
15078 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15079
15080         strftime: remove dependencies on multibyte modules
15081
15082         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15083         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15084         only if __osf__ is defined, and I suspect OSF doesn't need these
15085         other modules.  If my guess is wrong, we'll need to come up with a
15086         variant of strftime that doesn't need the multibyte modules.
15087
15088         I discovered this problem when attempting modify Emacs to use the
15089         strftime module.  With the previous gnulib, this caused Emacs to
15090         need 31 new files, ranging from lib/config.charset to
15091         m4/wint_t.m4.  This was overkill and I expect would be offputting
15092         to the Emacs maintainers.  After this change, only 6 new files are
15093         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15094         stdbool.m4, and tm_gmtoff.m4.
15095
15096         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15097         Suggested by Bruno Haible in
15098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15099         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15100         and do not check for wchar.h.
15101         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15102         (Depends-on): Remove mbrlen, mbsinit, wchar.
15103
15104 2011-01-18  Bruno Haible  <bruno@clisp.org>
15105
15106         Tests for module 'get-rusage-as'.
15107         * modules/get-rusage-as-tests: New file.
15108         * tests/test-get-rusage-as.c: New file.
15109
15110         New module 'get-rusage-as'.
15111         * modules/get-rusage-as: New file.
15112         * lib/resource-ext.h: New file.
15113         * lib/get-rusage-as.c: New file.
15114
15115 2011-01-17  Eric Blake  <eblake@redhat.com>
15116
15117         sigaction: relax license from LGPLv3+ to LGPLv2+
15118         * modules/sigaction (License): Relax to LGPLv2+.
15119
15120 2011-01-14  Bruno Haible  <bruno@clisp.org>
15121
15122         filemode: Make function declarations usable in C++ mode.
15123         * lib/filemode.h: Enclose function declarations in extern "C" block.
15124         Reported by John W. Eaton <jwe@gnu.org>.
15125
15126 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15127
15128         save-cwd: no longer include "xgetcwd.h"
15129         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15130         This avoids a compilation failure in projects that use save-cwd
15131         without also using the xgetcwd module.
15132
15133 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15134
15135         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15136         This is so that a program like Emacs, which needs only dtoastr,
15137         does not have to bother with distributing and compiling ftoastr
15138         and ldtoastr.
15139         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15140         * modules/dtoastr, modules/ldtoastr: New files.
15141         * modules/ftoastr: Now works just for 'float'.
15142         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15143         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15144         dtoastr.c, ldtoastr.c.
15145
15146 2011-01-11  Jim Meyering  <meyering@redhat.com>
15147
15148         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15149         There is no need to work around the lack of the fchdir function,
15150         since gnulib can now provide a replacement when required.
15151         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15152         * modules/save-cwd (Depends-on): Add fchdir.
15153
15154 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15155
15156         openat, save-cwd: avoid xmalloc
15157
15158         This removes a direct (but undocumented) dependency of openat on
15159         xalloc, along with an indirect dependency via save-cwd.  It also
15160         removes a dependency of save-cwd on xgetcwd, and thereby
15161         indirectly on xalloc.  This change causes the openat substitute
15162         to fall back on save_cwd when memory is tight, and for save_cwd to
15163         fail instead of dying when memory is tight, but that's good enough.
15164         Problem and initial idea for fix reported by Bastien Roucaries in
15165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15166
15167         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15168         xalloc.h (for xmalloc).
15169         (openat_proc_name): Use malloc, not xmalloc.
15170         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15171         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15172
15173         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15174         This avoids heap allocation for file names whose lengths are in
15175         the range 512..1023, with the upper bound increasing to at most
15176         4031 depending on the platform's PATH_MAX.  (We do not want
15177         pathmax.h here as it might supply a non-constant PATH_MAX.)
15178         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15179         Perhaps they should be moved to malloca.h?
15180         (OPENAT_BUFFER_SIZE): Use them.
15181
15182 2011-01-10  Bruno Haible  <bruno@clisp.org>
15183
15184         doc: Update users.txt.
15185         * users.txt: Add recutils.
15186
15187 2011-01-09  Karl Berry  <karl@gnu.org>
15188
15189         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15190
15191         * doc/configmake.texi: New file.
15192         * doc/gnulib.texi: Include it.
15193         * modules/configmake: Move documentation from here.
15194
15195 2011-01-09  Bruno Haible  <bruno@clisp.org>
15196
15197         Update to Unicode 6.0.0.
15198         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15199         (get_lbp): Update for Unicode 6.0.0.
15200         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15201         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15202         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15203         U+11001, U+11038..U+11046. Remove U+06DE.
15204         (uc_width): Fix bounds of planes.
15205         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15206         lib/uniwidth/width.c.
15207         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15208         trailing whitespace removed.
15209         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15210         without comments, but with the original copyright notice.
15211         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15212         * lib/unicase/ignorable.h: Likewise.
15213         * lib/unicase/tocasefold.h: Likewise.
15214         * lib/unicase/tolower.h: Likewise.
15215         * lib/unicase/totitle.h: Likewise.
15216         * lib/unicase/toupper.h: Likewise.
15217         * lib/unictype/bidi_of.h: Likewise.
15218         * lib/unictype/blocks.h: Likewise.
15219         * lib/unictype/categ_C.h: Likewise.
15220         * lib/unictype/categ_Cn.h: Likewise.
15221         * lib/unictype/categ_L.h: Likewise.
15222         * lib/unictype/categ_Ll.h: Likewise.
15223         * lib/unictype/categ_Lm.h: Likewise.
15224         * lib/unictype/categ_Lo.h: Likewise.
15225         * lib/unictype/categ_Lu.h: Likewise.
15226         * lib/unictype/categ_M.h: Likewise.
15227         * lib/unictype/categ_Mc.h: Likewise.
15228         * lib/unictype/categ_Me.h: Likewise.
15229         * lib/unictype/categ_Mn.h: Likewise.
15230         * lib/unictype/categ_N.h: Likewise.
15231         * lib/unictype/categ_Nd.h: Likewise.
15232         * lib/unictype/categ_No.h: Likewise.
15233         * lib/unictype/categ_P.h: Likewise.
15234         * lib/unictype/categ_Po.h: Likewise.
15235         * lib/unictype/categ_S.h: Likewise.
15236         * lib/unictype/categ_Sc.h: Likewise.
15237         * lib/unictype/categ_Sk.h: Likewise.
15238         * lib/unictype/categ_Sm.h: Likewise.
15239         * lib/unictype/categ_So.h: Likewise.
15240         * lib/unictype/categ_of.h: Likewise.
15241         * lib/unictype/combining.h: Likewise.
15242         * lib/unictype/ctype_alnum.h: Likewise.
15243         * lib/unictype/ctype_alpha.h: Likewise.
15244         * lib/unictype/ctype_graph.h: Likewise.
15245         * lib/unictype/ctype_lower.h: Likewise.
15246         * lib/unictype/ctype_print.h: Likewise.
15247         * lib/unictype/ctype_punct.h: Likewise.
15248         * lib/unictype/ctype_upper.h: Likewise.
15249         * lib/unictype/decdigit.h: Likewise.
15250         * lib/unictype/digit.h: Likewise.
15251         * lib/unictype/numeric.h: Likewise.
15252         * lib/unictype/pr_alphabetic.h: Likewise.
15253         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15254         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15255         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15256         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15257         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15258         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15259         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15260         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15261         * lib/unictype/pr_case_ignorable.h: Likewise.
15262         * lib/unictype/pr_cased.h: Likewise.
15263         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15264         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15265         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15266         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15267         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15268         * lib/unictype/pr_combining.h: Likewise.
15269         * lib/unictype/pr_composite.h: Likewise.
15270         * lib/unictype/pr_currency_symbol.h: Likewise.
15271         * lib/unictype/pr_decimal_digit.h: Likewise.
15272         * lib/unictype/pr_deprecated.h: Likewise.
15273         * lib/unictype/pr_format_control.h: Likewise.
15274         * lib/unictype/pr_grapheme_base.h: Likewise.
15275         * lib/unictype/pr_grapheme_extend.h: Likewise.
15276         * lib/unictype/pr_grapheme_link.h: Likewise.
15277         * lib/unictype/pr_id_continue.h: Likewise.
15278         * lib/unictype/pr_id_start.h: Likewise.
15279         * lib/unictype/pr_ideographic.h: Likewise.
15280         * lib/unictype/pr_lowercase.h: Likewise.
15281         * lib/unictype/pr_math.h: Likewise.
15282         * lib/unictype/pr_numeric.h: Likewise.
15283         * lib/unictype/pr_other_alphabetic.h: Likewise.
15284         * lib/unictype/pr_other_id_continue.h: Likewise.
15285         * lib/unictype/pr_other_math.h: Likewise.
15286         * lib/unictype/pr_punctuation.h: Likewise.
15287         * lib/unictype/pr_sentence_terminal.h: Likewise.
15288         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15289         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15290         * lib/unictype/pr_unified_ideograph.h: Likewise.
15291         * lib/unictype/pr_uppercase.h: Likewise.
15292         * lib/unictype/pr_xid_continue.h: Likewise.
15293         * lib/unictype/pr_xid_start.h: Likewise.
15294         * lib/unictype/scripts.h: Likewise.
15295         * lib/unictype/scripts_byname.gperf: Likewise.
15296         * lib/unictype/sy_java_ident.h: Likewise.
15297         * lib/unigbrk/gbrkprop.h: Likewise.
15298         * lib/unilbrk/lbrkprop1.h: Likewise.
15299         * lib/unilbrk/lbrkprop2.h: Likewise.
15300         * lib/uninorm/decomposition-table2.h: Likewise.
15301         * lib/uniwbrk/wbrkprop.h: Likewise.
15302         * tests/unicase/test-cased.c: Likewise.
15303         * tests/unicase/test-ignorable.c: Likewise.
15304         * tests/unicase/test-uc_tolower.c: Likewise.
15305         * tests/unicase/test-uc_totitle.c: Likewise.
15306         * tests/unicase/test-uc_toupper.c: Likewise.
15307         * tests/unictype/test-categ_C.c: Likewise.
15308         * tests/unictype/test-categ_Cn.c: Likewise.
15309         * tests/unictype/test-categ_L.c: Likewise.
15310         * tests/unictype/test-categ_Ll.c: Likewise.
15311         * tests/unictype/test-categ_Lm.c: Likewise.
15312         * tests/unictype/test-categ_Lo.c: Likewise.
15313         * tests/unictype/test-categ_Lu.c: Likewise.
15314         * tests/unictype/test-categ_M.c: Likewise.
15315         * tests/unictype/test-categ_Mc.c: Likewise.
15316         * tests/unictype/test-categ_Me.c: Likewise.
15317         * tests/unictype/test-categ_Mn.c: Likewise.
15318         * tests/unictype/test-categ_N.c: Likewise.
15319         * tests/unictype/test-categ_Nd.c: Likewise.
15320         * tests/unictype/test-categ_No.c: Likewise.
15321         * tests/unictype/test-categ_P.c: Likewise.
15322         * tests/unictype/test-categ_Po.c: Likewise.
15323         * tests/unictype/test-categ_S.c: Likewise.
15324         * tests/unictype/test-categ_Sc.c: Likewise.
15325         * tests/unictype/test-categ_Sk.c: Likewise.
15326         * tests/unictype/test-categ_Sm.c: Likewise.
15327         * tests/unictype/test-categ_So.c: Likewise.
15328         * tests/unictype/test-ctype_alnum.c: Likewise.
15329         * tests/unictype/test-ctype_alpha.c: Likewise.
15330         * tests/unictype/test-ctype_graph.c: Likewise.
15331         * tests/unictype/test-ctype_lower.c: Likewise.
15332         * tests/unictype/test-ctype_print.c: Likewise.
15333         * tests/unictype/test-ctype_punct.c: Likewise.
15334         * tests/unictype/test-ctype_upper.c: Likewise.
15335         * tests/unictype/test-decdigit.h: Likewise.
15336         * tests/unictype/test-digit.h: Likewise.
15337         * tests/unictype/test-numeric.h: Likewise.
15338         * tests/unictype/test-pr_alphabetic.c: Likewise.
15339         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15340         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15341         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15342         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15343         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15344         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15345         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15346         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15347         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15348         * tests/unictype/test-pr_cased.c: Likewise.
15349         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15350         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15351         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15352         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15353         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15354         * tests/unictype/test-pr_combining.c: Likewise.
15355         * tests/unictype/test-pr_composite.c: Likewise.
15356         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15357         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15358         * tests/unictype/test-pr_deprecated.c: Likewise.
15359         * tests/unictype/test-pr_format_control.c: Likewise.
15360         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15361         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15362         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15363         * tests/unictype/test-pr_id_continue.c: Likewise.
15364         * tests/unictype/test-pr_id_start.c: Likewise.
15365         * tests/unictype/test-pr_ideographic.c: Likewise.
15366         * tests/unictype/test-pr_lowercase.c: Likewise.
15367         * tests/unictype/test-pr_math.c: Likewise.
15368         * tests/unictype/test-pr_numeric.c: Likewise.
15369         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15370         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15371         * tests/unictype/test-pr_other_math.c: Likewise.
15372         * tests/unictype/test-pr_punctuation.c: Likewise.
15373         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15374         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15375         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15376         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15377         * tests/unictype/test-pr_uppercase.c: Likewise.
15378         * tests/unictype/test-pr_xid_continue.c: Likewise.
15379         * tests/unictype/test-pr_xid_start.c: Likewise.
15380         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15381         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15382         changes.
15383         * lib/unictype/categ_Cc.h: Likewise.
15384         * lib/unictype/categ_Cf.h: Likewise.
15385         * lib/unictype/categ_Co.h: Likewise.
15386         * lib/unictype/categ_Cs.h: Likewise.
15387         * lib/unictype/categ_Lt.h: Likewise.
15388         * lib/unictype/categ_Nl.h: Likewise.
15389         * lib/unictype/categ_Pc.h: Likewise.
15390         * lib/unictype/categ_Pd.h: Likewise.
15391         * lib/unictype/categ_Pe.h: Likewise.
15392         * lib/unictype/categ_Pf.h: Likewise.
15393         * lib/unictype/categ_Pi.h: Likewise.
15394         * lib/unictype/categ_Ps.h: Likewise.
15395         * lib/unictype/categ_Z.h: Likewise.
15396         * lib/unictype/categ_Zl.h: Likewise.
15397         * lib/unictype/categ_Zp.h: Likewise.
15398         * lib/unictype/categ_Zs.h: Likewise.
15399         * lib/unictype/ctype_blank.h: Likewise.
15400         * lib/unictype/ctype_cntrl.h: Likewise.
15401         * lib/unictype/ctype_digit.h: Likewise.
15402         * lib/unictype/ctype_space.h: Likewise.
15403         * lib/unictype/ctype_xdigit.h: Likewise.
15404         * lib/unictype/mirror.h: Likewise.
15405         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15406         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15407         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15408         * lib/unictype/pr_bidi_control.h: Likewise.
15409         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15410         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15411         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15412         * lib/unictype/pr_bidi_pdf.h: Likewise.
15413         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15414         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15415         * lib/unictype/pr_dash.h: Likewise.
15416         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15417         * lib/unictype/pr_diacritic.h: Likewise.
15418         * lib/unictype/pr_extender.h: Likewise.
15419         * lib/unictype/pr_hex_digit.h: Likewise.
15420         * lib/unictype/pr_hyphen.h: Likewise.
15421         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15422         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15423         * lib/unictype/pr_ignorable_control.h: Likewise.
15424         * lib/unictype/pr_iso_control.h: Likewise.
15425         * lib/unictype/pr_join_control.h: Likewise.
15426         * lib/unictype/pr_left_of_pair.h: Likewise.
15427         * lib/unictype/pr_line_separator.h: Likewise.
15428         * lib/unictype/pr_logical_order_exception.h: Likewise.
15429         * lib/unictype/pr_non_break.h: Likewise.
15430         * lib/unictype/pr_not_a_character.h: Likewise.
15431         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15432         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15433         * lib/unictype/pr_other_id_start.h: Likewise.
15434         * lib/unictype/pr_other_lowercase.h: Likewise.
15435         * lib/unictype/pr_other_uppercase.h: Likewise.
15436         * lib/unictype/pr_paired_punctuation.h: Likewise.
15437         * lib/unictype/pr_paragraph_separator.h: Likewise.
15438         * lib/unictype/pr_pattern_syntax.h: Likewise.
15439         * lib/unictype/pr_pattern_white_space.h: Likewise.
15440         * lib/unictype/pr_private_use.h: Likewise.
15441         * lib/unictype/pr_quotation_mark.h: Likewise.
15442         * lib/unictype/pr_radical.h: Likewise.
15443         * lib/unictype/pr_soft_dotted.h: Likewise.
15444         * lib/unictype/pr_space.h: Likewise.
15445         * lib/unictype/pr_titlecase.h: Likewise.
15446         * lib/unictype/pr_variation_selector.h: Likewise.
15447         * lib/unictype/pr_white_space.h: Likewise.
15448         * lib/unictype/pr_zero_width.h: Likewise.
15449         * lib/unictype/sy_c_ident.h: Likewise.
15450         * lib/unictype/sy_c_whitespace.h: Likewise.
15451         * lib/unictype/sy_java_whitespace.h: Likewise.
15452         * lib/uninorm/composition-table.gperf: Likewise.
15453         * lib/uninorm/decomposition-table1.h: Likewise.
15454         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15455         LB8.
15456         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15457         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15458         * modules/unictype/*: Bump version number of expected libunistring
15459         version.
15460
15461 2011-01-09  Bruno Haible  <bruno@clisp.org>
15462
15463         Update to Unicode 5.2.0.
15464         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15465         trailing whitespace removed.
15466
15467 2011-01-09  Bruno Haible  <bruno@clisp.org>
15468
15469         New Unicode character properties, from Unicode 5.2.0.
15470         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15471         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15472         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15473         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15474         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15475         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15476         uc_is_property_cased, uc_is_property_case_ignorable,
15477         uc_is_property_changes_when_lowercased,
15478         uc_is_property_changes_when_uppercased,
15479         uc_is_property_changes_when_titlecased,
15480         uc_is_property_changes_when_casefolded,
15481         uc_is_property_changes_when_casemapped): New declarations.
15482         * lib/unictype/pr_byname.gperf: Add the new properties.
15483         * modules/unictype/property-byname (Depends-on): Depend on the new
15484         properties modules.
15485         * modules/unictype/property-all (Depends-on): Likewise.
15486         * MODULES.html.sh (Unicode string functions): Add
15487         unictype/property-case-ignorable, unictype/property-cased,
15488         unictype/property-changes-when-casefolded,
15489         unictype/property-changes-when-casemapped,
15490         unictype/property-changes-when-lowercased,
15491         unictype/property-changes-when-titlecased,
15492         unictype/property-changes-when-uppercased.
15493
15494         New module 'unictype/property-changes-when-casemapped'.
15495         * modules/unictype/property-changes-when-casemapped: New file.
15496         * lib/unictype/pr_changes_when_casemapped.c: New file.
15497         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15498         generated by gen-uni-tables.
15499         * modules/unictype/property-changes-when-casemapped-tests: New file.
15500         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15501         automatically generated by gen-uni-tables.
15502
15503         New module 'unictype/property-changes-when-casefolded'.
15504         * modules/unictype/property-changes-when-casefolded: New file.
15505         * lib/unictype/pr_changes_when_casefolded.c: New file.
15506         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15507         generated by gen-uni-tables.
15508         * modules/unictype/property-changes-when-casefolded-tests: New file.
15509         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15510         automatically generated by gen-uni-tables.
15511
15512         New module 'unictype/property-changes-when-titlecased'.
15513         * modules/unictype/property-changes-when-titlecased: New file.
15514         * lib/unictype/pr_changes_when_titlecased.c: New file.
15515         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15516         generated by gen-uni-tables.
15517         * modules/unictype/property-changes-when-titlecased-tests: New file.
15518         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15519         automatically generated by gen-uni-tables.
15520
15521         New module 'unictype/property-changes-when-uppercased'.
15522         * modules/unictype/property-changes-when-uppercased: New file.
15523         * lib/unictype/pr_changes_when_uppercased.c: New file.
15524         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15525         generated by gen-uni-tables.
15526         * modules/unictype/property-changes-when-uppercased-tests: New file.
15527         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15528         automatically generated by gen-uni-tables.
15529
15530         New module 'unictype/property-changes-when-lowercased'.
15531         * modules/unictype/property-changes-when-lowercased: New file.
15532         * lib/unictype/pr_changes_when_lowercased.c: New file.
15533         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15534         generated by gen-uni-tables.
15535         * modules/unictype/property-changes-when-lowercased-tests: New file.
15536         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15537         automatically generated by gen-uni-tables.
15538
15539         New module 'unictype/property-case-ignorable'.
15540         * modules/unictype/property-case-ignorable: New file.
15541         * lib/unictype/pr_case_ignorable.c: New file.
15542         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15543         by gen-uni-tables.
15544         * modules/unictype/property-case-ignorable-tests: New file.
15545         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15546         generated by gen-uni-tables.
15547
15548         New module 'unictype/property-cased'.
15549         * modules/unictype/property-cased: New file.
15550         * lib/unictype/pr_cased.c: New file.
15551         * lib/unictype/pr_cased.h: New file, automatically generated by
15552         gen-uni-tables.
15553         * modules/unictype/property-cased-tests: New file.
15554         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15555         gen-uni-tables.
15556
15557 2011-01-09  Bruno Haible  <bruno@clisp.org>
15558
15559         Update to Unicode 5.2.0.
15560         * lib/gen-uni-tables.c (output_predicate, output_category,
15561         output_combclass, output_bidi_category, output_decimal_digit_test,
15562         output_decimal_digit, output_digit_test, output_digit,
15563         output_numeric_test, output_numeric, output_mirror, output_scripts,
15564         output_scripts_byname, output_blocks, output_ident_category): Fix
15565         comment header.
15566         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15567         get_wbp.
15568         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15569         items.
15570         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15571         Changes_When_Lowercased, Changes_When_Uppercased,
15572         Changes_When_Titlecased, Changes_When_Casefolded,
15573         Changes_When_Casemapped.
15574         (is_property_alphabetic, is_property_default_ignorable_code_point):
15575         Update for Unicode 5.2.0.
15576         (is_property_cased, is_property_case_ignorable,
15577         is_property_changes_when_lowercased,
15578         is_property_changes_when_uppercased,
15579         is_property_changes_when_titlecased,
15580         is_property_changes_when_casefolded,
15581         is_property_changes_when_casemapped): New functions.
15582         (output_properties): Output also the properties cased, case_ignorable,
15583         changes_when_lowercased, changes_when_uppercased,
15584         changes_when_titlecased, changes_when_casefolded,
15585         changes_when_casemapped.
15586         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15587         Unicode TR#11 revision 17 -> 19.
15588         (LBP_CP): New enumeration value.
15589         (LBP_*): Adjust values accordingly.
15590         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15591         TR#14 revision 22 -> 24.
15592         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15593         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15594         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15595         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15596         is_WBP_MIDLETTER.
15597         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15598         the code1 and code2 of each composition rule.
15599         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15600         * lib/unicase/ignorable.h: Likewise.
15601         * lib/unicase/tocasefold.h: Likewise.
15602         * lib/unicase/tolower.h: Likewise.
15603         * lib/unicase/totitle.h: Likewise.
15604         * lib/unicase/toupper.h: Likewise.
15605         * lib/unictype/bidi_of.h: Likewise.
15606         * lib/unictype/blocks.h: Likewise.
15607         * lib/unictype/categ_C.h: Likewise.
15608         * lib/unictype/categ_Cf.h: Likewise.
15609         * lib/unictype/categ_Cn.h: Likewise.
15610         * lib/unictype/categ_L.h: Likewise.
15611         * lib/unictype/categ_Ll.h: Likewise.
15612         * lib/unictype/categ_Lm.h: Likewise.
15613         * lib/unictype/categ_Lo.h: Likewise.
15614         * lib/unictype/categ_Lu.h: Likewise.
15615         * lib/unictype/categ_M.h: Likewise.
15616         * lib/unictype/categ_Mc.h: Likewise.
15617         * lib/unictype/categ_Mn.h: Likewise.
15618         * lib/unictype/categ_N.h: Likewise.
15619         * lib/unictype/categ_Nd.h: Likewise.
15620         * lib/unictype/categ_Nl.h: Likewise.
15621         * lib/unictype/categ_No.h: Likewise.
15622         * lib/unictype/categ_P.h: Likewise.
15623         * lib/unictype/categ_Pd.h: Likewise.
15624         * lib/unictype/categ_Po.h: Likewise.
15625         * lib/unictype/categ_S.h: Likewise.
15626         * lib/unictype/categ_Sc.h: Likewise.
15627         * lib/unictype/categ_So.h: Likewise.
15628         * lib/unictype/categ_of.h: Likewise.
15629         * lib/unictype/combining.h: Likewise.
15630         * lib/unictype/ctype_alnum.h: Likewise.
15631         * lib/unictype/ctype_alpha.h: Likewise.
15632         * lib/unictype/ctype_graph.h: Likewise.
15633         * lib/unictype/ctype_lower.h: Likewise.
15634         * lib/unictype/ctype_print.h: Likewise.
15635         * lib/unictype/ctype_punct.h: Likewise.
15636         * lib/unictype/ctype_upper.h: Likewise.
15637         * lib/unictype/decdigit.h: Likewise.
15638         * lib/unictype/digit.h: Likewise.
15639         * lib/unictype/numeric.h: Likewise.
15640         * lib/unictype/pr_alphabetic.h: Likewise.
15641         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15642         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15643         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15644         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15645         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15646         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15647         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15648         * lib/unictype/pr_combining.h: Likewise.
15649         * lib/unictype/pr_composite.h: Likewise.
15650         * lib/unictype/pr_currency_symbol.h: Likewise.
15651         * lib/unictype/pr_dash.h: Likewise.
15652         * lib/unictype/pr_decimal_digit.h: Likewise.
15653         * lib/unictype/pr_deprecated.h: Likewise.
15654         * lib/unictype/pr_diacritic.h: Likewise.
15655         * lib/unictype/pr_extender.h: Likewise.
15656         * lib/unictype/pr_grapheme_base.h: Likewise.
15657         * lib/unictype/pr_grapheme_extend.h: Likewise.
15658         * lib/unictype/pr_grapheme_link.h: Likewise.
15659         * lib/unictype/pr_id_continue.h: Likewise.
15660         * lib/unictype/pr_id_start.h: Likewise.
15661         * lib/unictype/pr_ideographic.h: Likewise.
15662         * lib/unictype/pr_ignorable_control.h: Likewise.
15663         * lib/unictype/pr_logical_order_exception.h: Likewise.
15664         * lib/unictype/pr_lowercase.h: Likewise.
15665         * lib/unictype/pr_numeric.h: Likewise.
15666         * lib/unictype/pr_other_alphabetic.h: Likewise.
15667         * lib/unictype/pr_punctuation.h: Likewise.
15668         * lib/unictype/pr_sentence_terminal.h: Likewise.
15669         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15670         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15671         * lib/unictype/pr_unified_ideograph.h: Likewise.
15672         * lib/unictype/pr_uppercase.h: Likewise.
15673         * lib/unictype/pr_xid_continue.h: Likewise.
15674         * lib/unictype/pr_xid_start.h: Likewise.
15675         * lib/unictype/pr_zero_width.h: Likewise.
15676         * lib/unictype/scripts.h: Likewise.
15677         * lib/unictype/scripts_byname.gperf: Likewise.
15678         * lib/unictype/sy_java_ident.h: Likewise.
15679         * lib/unigbrk/gbrkprop.h: Likewise.
15680         * lib/unilbrk/lbrkprop1.h: Likewise.
15681         * lib/unilbrk/lbrkprop2.h: Likewise.
15682         * lib/unilbrk/lbrktables.h: Likewise.
15683         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15684         LBP_CP. Implement rule LB30.
15685         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15686         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15687         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15688         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15689         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15690         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15691         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15692         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15693         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15694         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15695         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15696         bits instead of 16 bits in the code1 and code2 of each composition
15697         rule.
15698         (uc_composition): Update for Unicode 5.2.0.
15699         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15700         * lib/uninorm/decomposition-table2.h: Likewise.
15701         * lib/uniwbrk/wbrkprop.h: Likewise.
15702         * tests/unicase/test-cased.c: Likewise.
15703         * tests/unicase/test-ignorable.c: Likewise.
15704         * tests/unicase/test-uc_tolower.c: Likewise.
15705         * tests/unicase/test-uc_totitle.c: Likewise.
15706         * tests/unicase/test-uc_toupper.c: Likewise.
15707         * tests/unictype/test-categ_C.c: Likewise.
15708         * tests/unictype/test-categ_Cf.c: Likewise.
15709         * tests/unictype/test-categ_Cn.c: Likewise.
15710         * tests/unictype/test-categ_L.c: Likewise.
15711         * tests/unictype/test-categ_Ll.c: Likewise.
15712         * tests/unictype/test-categ_Lm.c: Likewise.
15713         * tests/unictype/test-categ_Lo.c: Likewise.
15714         * tests/unictype/test-categ_Lu.c: Likewise.
15715         * tests/unictype/test-categ_M.c: Likewise.
15716         * tests/unictype/test-categ_Mc.c: Likewise.
15717         * tests/unictype/test-categ_Mn.c: Likewise.
15718         * tests/unictype/test-categ_N.c: Likewise.
15719         * tests/unictype/test-categ_Nd.c: Likewise.
15720         * tests/unictype/test-categ_Nl.c: Likewise.
15721         * tests/unictype/test-categ_No.c: Likewise.
15722         * tests/unictype/test-categ_P.c: Likewise.
15723         * tests/unictype/test-categ_Pd.c: Likewise.
15724         * tests/unictype/test-categ_Po.c: Likewise.
15725         * tests/unictype/test-categ_S.c: Likewise.
15726         * tests/unictype/test-categ_Sc.c: Likewise.
15727         * tests/unictype/test-categ_So.c: Likewise.
15728         * tests/unictype/test-ctype_alnum.c: Likewise.
15729         * tests/unictype/test-ctype_alpha.c: Likewise.
15730         * tests/unictype/test-ctype_graph.c: Likewise.
15731         * tests/unictype/test-ctype_lower.c: Likewise.
15732         * tests/unictype/test-ctype_print.c: Likewise.
15733         * tests/unictype/test-ctype_punct.c: Likewise.
15734         * tests/unictype/test-ctype_upper.c: Likewise.
15735         * tests/unictype/test-decdigit.h: Likewise.
15736         * tests/unictype/test-digit.h: Likewise.
15737         * tests/unictype/test-numeric.h: Likewise.
15738         * tests/unictype/test-pr_alphabetic.c: Likewise.
15739         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15740         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15741         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15742         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15743         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15744         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15745         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15746         * tests/unictype/test-pr_combining.c: Likewise.
15747         * tests/unictype/test-pr_composite.c: Likewise.
15748         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15749         * tests/unictype/test-pr_dash.c: Likewise.
15750         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15751         * tests/unictype/test-pr_deprecated.c: Likewise.
15752         * tests/unictype/test-pr_diacritic.c: Likewise.
15753         * tests/unictype/test-pr_extender.c: Likewise.
15754         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15755         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15756         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15757         * tests/unictype/test-pr_id_continue.c: Likewise.
15758         * tests/unictype/test-pr_id_start.c: Likewise.
15759         * tests/unictype/test-pr_ideographic.c: Likewise.
15760         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15761         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15762         * tests/unictype/test-pr_lowercase.c: Likewise.
15763         * tests/unictype/test-pr_numeric.c: Likewise.
15764         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15765         * tests/unictype/test-pr_punctuation.c: Likewise.
15766         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15767         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15768         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15769         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15770         * tests/unictype/test-pr_uppercase.c: Likewise.
15771         * tests/unictype/test-pr_xid_continue.c: Likewise.
15772         * tests/unictype/test-pr_xid_start.c: Likewise.
15773         * tests/unictype/test-pr_zero_width.c: Likewise.
15774         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15775         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15776         changed behaviour: line breaking is now disallowed between a letter
15777         or '=' and '('.
15778         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15779         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15780         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15781         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15782         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15783         lib/uniwidth/width.c.
15784         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15785         without comments, but with the original copyright notice.
15786         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15787         changes.
15788         * lib/unictype/categ_Cc.h: Likewise.
15789         * lib/unictype/categ_Co.h: Likewise.
15790         * lib/unictype/categ_Cs.h: Likewise.
15791         * lib/unictype/categ_Lt.h: Likewise.
15792         * lib/unictype/categ_Me.h: Likewise.
15793         * lib/unictype/categ_Pc.h: Likewise.
15794         * lib/unictype/categ_Pe.h: Likewise.
15795         * lib/unictype/categ_Pf.h: Likewise.
15796         * lib/unictype/categ_Pi.h: Likewise.
15797         * lib/unictype/categ_Ps.h: Likewise.
15798         * lib/unictype/categ_Sk.h: Likewise.
15799         * lib/unictype/categ_Sm.h: Likewise.
15800         * lib/unictype/categ_Z.h: Likewise.
15801         * lib/unictype/categ_Zl.h: Likewise.
15802         * lib/unictype/categ_Zp.h: Likewise.
15803         * lib/unictype/categ_Zs.h: Likewise.
15804         * lib/unictype/ctype_blank.h: Likewise.
15805         * lib/unictype/ctype_cntrl.h: Likewise.
15806         * lib/unictype/ctype_digit.h: Likewise.
15807         * lib/unictype/ctype_space.h: Likewise.
15808         * lib/unictype/ctype_xdigit.h: Likewise.
15809         * lib/unictype/mirror.h: Likewise.
15810         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15811         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15812         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15813         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15815         * lib/unictype/pr_bidi_control.h: Likewise.
15816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15818         * lib/unictype/pr_bidi_pdf.h: Likewise.
15819         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15820         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15821         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15822         * lib/unictype/pr_format_control.h: Likewise.
15823         * lib/unictype/pr_hex_digit.h: Likewise.
15824         * lib/unictype/pr_hyphen.h: Likewise.
15825         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15826         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15827         * lib/unictype/pr_iso_control.h: Likewise.
15828         * lib/unictype/pr_join_control.h: Likewise.
15829         * lib/unictype/pr_left_of_pair.h: Likewise.
15830         * lib/unictype/pr_line_separator.h: Likewise.
15831         * lib/unictype/pr_math.h: Likewise.
15832         * lib/unictype/pr_non_break.h: Likewise.
15833         * lib/unictype/pr_not_a_character.h: Likewise.
15834         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15835         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15836         * lib/unictype/pr_other_id_continue.h: Likewise.
15837         * lib/unictype/pr_other_id_start.h: Likewise.
15838         * lib/unictype/pr_other_lowercase.h: Likewise.
15839         * lib/unictype/pr_other_math.h: Likewise.
15840         * lib/unictype/pr_other_uppercase.h: Likewise.
15841         * lib/unictype/pr_paired_punctuation.h: Likewise.
15842         * lib/unictype/pr_paragraph_separator.h: Likewise.
15843         * lib/unictype/pr_pattern_syntax.h: Likewise.
15844         * lib/unictype/pr_pattern_white_space.h: Likewise.
15845         * lib/unictype/pr_private_use.h: Likewise.
15846         * lib/unictype/pr_quotation_mark.h: Likewise.
15847         * lib/unictype/pr_radical.h: Likewise.
15848         * lib/unictype/pr_soft_dotted.h: Likewise.
15849         * lib/unictype/pr_space.h: Likewise.
15850         * lib/unictype/pr_titlecase.h: Likewise.
15851         * lib/unictype/pr_variation_selector.h: Likewise.
15852         * lib/unictype/pr_white_space.h: Likewise.
15853         * lib/unictype/sy_c_ident.h: Likewise.
15854         * lib/unictype/sy_c_whitespace.h: Likewise.
15855         * lib/unictype/sy_java_whitespace.h: Likewise.
15856         * modules/uni*/*: Bump version number of expected libunistring version.
15857         Reported by Simon Josefsson.
15858
15859 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15860
15861         useless-if-before-free: fix typo in --help and make the internal,
15862         automatic version date update process work once again.
15863         --help output contained a NUL character instead of the
15864         backslash-zero that was intended.  Also, the "must lie within
15865         the first 8 lines" line is on line 9, and hence not getting
15866         automatically updated.
15867         * build-aux/useless-if-before-free: Fix the former by adding a
15868         backslash, and the latter by condensing the three lines of what-it-does
15869         to a single line, leaving one line of slack for the future.
15870
15871 2011-01-09  Bruno Haible  <bruno@clisp.org>
15872
15873         uniwidth/width: Fix width of U+1D173..U+1D17A.
15874         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15875         symbolic_width, output_width_property_test): New functions.
15876         (main): Invoke output_nonspacing_property, output_width_property_test.
15877         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15878         U+1D173..U+1D17A.
15879         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15880         1.
15881         * modules/uniwidth/*: Bump version number of expected libunistring
15882         version.
15883         * modules/unilbrk/*: Likewise.
15884
15885 2011-01-08  Bruno Haible  <bruno@clisp.org>
15886
15887         uninorm tests: Preserve copyright of Unicode data file.
15888         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15889         Mention modifications.
15890
15891 2011-01-08  Bruno Haible  <bruno@clisp.org>
15892
15893         gen-uni-tables: Prepare for Unicode 5.2.0.
15894         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15895         (debug_output_lbp, output_lbp): Update.
15896
15897 2011-01-08  Bruno Haible  <bruno@clisp.org>
15898
15899         unilbrk: Clarify gen-uni-tables.c code.
15900         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15901         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15902         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15903
15904 2011-01-07  Bruno Haible  <bruno@clisp.org>
15905
15906         strtod: Restore errno when successfully parsing Infinity or NaN.
15907         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15908         restore the original errno.
15909
15910 2011-01-07  Bruno Haible  <bruno@clisp.org>
15911
15912         remove test: Avoid failure on HP-UX 11.
15913         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15914
15915 2011-01-07  Bruno Haible  <bruno@clisp.org>
15916
15917         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15918         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15919         error code.
15920
15921 2011-01-07  Pádraig Brady <P@draigBrady.com>
15922
15923         ignore-value: fixup comments, and add Eric Blake
15924         as an author since he rewrote the macros.
15925         * lib/ignore-value.h (ignore_value):  State that
15926         we now support aggregates.  Also specify exactly
15927         when the GCC warn_unused_result feature was added.
15928
15929 2011-01-06  Eric Blake  <eblake@redhat.com>
15930
15931         ignore-value: support aggregate types
15932         * lib/ignore-value.h (ignore_value): Provide separate gcc
15933         definition.
15934         * modules/ignore-value-tests: New test module.
15935         * tests/test-ignore-value.c: New test.
15936
15937         maint.mk: improve sc_prohibit_strcmp regex
15938         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15939         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15940         definition of STRNEQ.
15941
15942         signal: work around Haiku issue with SIGBUS
15943         * lib/siglist.h: Add comment.
15944         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15945         strsignal's favoring of SIGSEGV.
15946         * tests/test-signal.c (main): Avoid test failure.
15947         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15948         Reported by Scott McCreary.
15949
15950         maint.mk: add pre-release check to ensure submodule commits are public
15951         * top/maint.mk (public-submodule-commit): New rule.
15952         (submodule-checks): New variable.
15953         (alpha beta stable): Depend on the variable.
15954
15955 2011-01-05  Pádraig Brady <P@draigBrady.com>
15956         and Jim Meyering  <meyering@redhat.com>
15957
15958         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15959         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15960         (ATTRIBUTE_DEPRECATED): Define.
15961         (_ignore_case): New function.
15962         (ignore_value): New macro, to replace the old function.
15963         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15964         * modules/ignore-value (Depends-on): Add stdint.
15965
15966 2011-01-04  Eric Blake  <eblake@redhat.com>
15967
15968         doc: regenerate INSTALL
15969         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15970         @firstparagraphindent support, now that autoconf dropped it.
15971         (INSTALL_PRELUDE): Reinstate old macro.
15972         * doc/install.texi: Resync from autoconf.
15973         * doc/INSTALL: Reflect recent autoconf update.
15974         * doc/INSTALL.ISO: Likewise.
15975         * doc/INSTALL.UTF-8: Likewise.
15976         Reported by Karl Berry.
15977
15978 2011-01-04  Bruce Korb  <address@hidden>
15979
15980         git-version-gen: avoid a sub-shell
15981         * build-aux/git-version-gen: Redirect stderr in `...` via
15982         "exec 2>...", rather than via an added sub-shell.
15983
15984 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15985
15986         git-version-gen: use (...) rather than sh -c '...'
15987         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15988         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15989
15990 2011-01-03  Jim Meyering  <meyering@redhat.com>
15991
15992         git-version-gen: convert leading TABs to spaces
15993         * build-aux/git-version-gen: Expand leading TABs.
15994
15995         git-version-gen: handle failed "git rev-list"
15996         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15997         from git and proceeding as if it had succeeded but printed no SHA1
15998         checksums, suppress the diagnostic and handle the failure.
15999         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16000
16001         git-version-gen: include command name in one more diagnostic
16002         * build-aux/git-version-gen: When the required .tarball-version file
16003         was missing or unreadable, you might see the diagnostic from "cat",
16004         but no trace of the name of the invoking script.  Now, you still see
16005         the diagnostic from cat, but also get one from "git-version-gen: ".
16006         Inspired by a patch from Bruce Korb.
16007
16008         update-copyright: adjust test to match changed code
16009         * tests/test-update-copyright.sh: Change test's expected output
16010         to match new actual output.
16011
16012 2011-01-02  Bruno Haible  <bruno@clisp.org>
16013
16014         getlogin_r: Avoid test failure on HP-UX 11.
16015         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16016         ERANGE when the second argument is zero.
16017         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16018         portability problem.
16019
16020 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16021
16022         * build-aux/update-copyright: doc Simon's changes
16023
16024 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16025
16026         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16027         environment variable.
16028
16029 2011-01-02  Bruno Haible  <bruno@clisp.org>
16030
16031         unigbrk: Avoid gcc warnings.
16032         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16033         unused variable.
16034         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16035         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16036         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16037         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16038         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16039         Change type of first argument to 'const char *'.
16040         (main): Remove unused variable.
16041         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16042         type of first argument to 'const char *'.
16043         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16044         Likewise.
16045         (main): Change type of variable 's'.
16046         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16047         to 'int'.
16048
16049 2011-01-02  Bruno Haible  <bruno@clisp.org>
16050
16051         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16052         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16053         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16054         bug.
16055         * lib/pwrite.c: Undo 2010-12-31 patch.
16056         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16057
16058 2011-01-02  Bruno Haible  <bruno@clisp.org>
16059
16060         pread: Fix test whether it works.
16061         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16062
16063 2011-01-02  Bruno Haible  <bruno@clisp.org>
16064
16065         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16066         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16067         ends in "6". Don't require a specific month name. Try also the locale
16068         names found on HP-UX 11 and Solaris 7.
16069
16070 2011-01-02  Bruno Haible  <bruno@clisp.org>
16071
16072         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16073         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16074         C linkage.
16075         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16076
16077 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16078
16079         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16080         for consistency, since the "cluster" term is not used elsewhere.
16081         * lib/unigbrk.in.h: Update name.
16082         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16083         * lib/unigbrk/u16-grapheme-next.c: Update name.
16084         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16085         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16086         * lib/unigbrk/u32-grapheme-next.c: Update name.
16087         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16088         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16089         * lib/unigbrk/u8-grapheme-next.c: Update name.
16090         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16091         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16092         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16093         Suggested by Bruno Haible.
16094
16095 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16096
16097         Remove module 'u8-grapheme-len' as too redundant with
16098         'u8-grapheme-next'.
16099         * modules/unigbrk/u8-grapheme-len: Delete file.
16100         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16101         * lib/unigbrk.in.h: Remove prototype for deleted function.
16102         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16103         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16104
16105         Remove module 'u16-grapheme-len' as too redundant with
16106         'u16-grapheme-next'.
16107         * modules/unigbrk/u16-grapheme-len: Delete file.
16108         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16109         * lib/unigbrk.in.h: Remove prototype for deleted function.
16110         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16111         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16112
16113         Remove module 'u32-grapheme-len' as too redundant with
16114         'u32-grapheme-next'.
16115         * modules/unigbrk/u32-grapheme-len: Delete file.
16116         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16117         * lib/unigbrk.in.h: Remove prototype for deleted function.
16118         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16119         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16120
16121         Suggested by Bruno Haible.
16122
16123 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16124
16125         * unigbrk.in.h: Fix typo: "ben" => "been".
16126         Reported by Bruno Haible.
16127
16128 2011-01-01  Jim Meyering  <meyering@redhat.com>
16129
16130         maint: update almost all copyright ranges to include 2011
16131         Run the new "make update-copyright" rule.
16132
16133 2011-01-01  Jim Meyering  <meyering@redhat.com>
16134
16135         maint: update-copyright: exempt doc/INSTALL*
16136         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16137         since they are generated.  Suggested by Bruno Haible.
16138
16139 2011-01-01  Jim Meyering  <meyering@redhat.com>
16140
16141         maint: refine the update-copyright rule
16142         * Makefile (update-copyright): Also exclude any file that includes
16143         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16144         code that merely generates the comment.
16145
16146 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16147
16148         New module 'u8-grapheme-len'.
16149         * modules/unigbrk/u8-grapheme-len: New file.
16150         * modules/unigbrk/u8-grapheme-len-tests: New file.
16151         * lib/unigbrk.in.h: Add prototype for new function.
16152         * lib/unigbrk/u8-grapheme-len.c: New file.
16153         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16154
16155         New module 'u16-grapheme-len'.
16156         * modules/unigbrk/u16-grapheme-len: New file.
16157         * modules/unigbrk/u16-grapheme-len-tests: New file.
16158         * lib/unigbrk.in.h: Add prototype for new function.
16159         * lib/unigbrk/u16-grapheme-len.c: New file.
16160         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16161
16162         New module 'u32-grapheme-len'.
16163         * modules/unigbrk/u32-grapheme-len: New file.
16164         * modules/unigbrk/u32-grapheme-len-tests: New file.
16165         * lib/unigbrk.in.h: Add prototype for new function.
16166         * lib/unigbrk/u32-grapheme-len.c: New file.
16167         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16168
16169         New module 'u8-grapheme-next'.
16170         * modules/unigbrk/u8-grapheme-next: New file.
16171         * modules/unigbrk/u8-grapheme-next-tests: New file.
16172         * lib/unigbrk.in.h: Add prototype for new function.
16173         * lib/unigbrk/u8-grapheme-next.c: New file.
16174         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16175
16176         New module 'u16-grapheme-next'.
16177         * modules/unigbrk/u16-grapheme-next: New file.
16178         * modules/unigbrk/u16-grapheme-next-tests: New file.
16179         * lib/unigbrk.in.h: Add prototype for new function.
16180         * lib/unigbrk/u16-grapheme-next.c: New file.
16181         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16182
16183         New module 'u32-grapheme-next'.
16184         * modules/unigbrk/u32-grapheme-next: New file.
16185         * modules/unigbrk/u32-grapheme-next-tests: New file.
16186         * lib/unigbrk.in.h: Add prototype for new function.
16187         * lib/unigbrk/u32-grapheme-next.c: New file.
16188         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16189
16190         New module 'u8-grapheme-prev'.
16191         * modules/unigbrk/u8-grapheme-prev: New file.
16192         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16193         * lib/unigbrk.in.h: Add prototype for new function.
16194         * lib/unigbrk/u8-grapheme-prev.c: New file.
16195         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16196
16197         New module 'u16-grapheme-prev'.
16198         * modules/unigbrk/u16-grapheme-prev: New file.
16199         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16200         * lib/unigbrk.in.h: Add prototype for new function.
16201         * lib/unigbrk/u16-grapheme-prev.c: New file.
16202         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16203
16204         New module 'u32-grapheme-prev'.
16205         * modules/unigbrk/u32-grapheme-prev: New file.
16206         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16207         * lib/unigbrk.in.h: Add prototype for new function.
16208         * lib/unigbrk/u32-grapheme-prev.c: New file.
16209         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16210
16211         New module 'u8-grapheme-breaks'.
16212         * modules/unigbrk/u8-grapheme-breaks: New file.
16213         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16214         * lib/unigbrk.in.h: Add prototype for new function.
16215         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16216         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16217
16218         New module 'u16-grapheme-breaks'.
16219         * modules/unigbrk/u16-grapheme-breaks: New file.
16220         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16221         * lib/unigbrk.in.h: Add prototype for new function.
16222         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16223         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16224
16225         New module 'u32-grapheme-breaks'.
16226         * modules/unigbrk/u32-grapheme-breaks: New file.
16227         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16228         * lib/unigbrk.in.h: Add prototype for new function.
16229         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16230         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16231
16232         New module 'ulc-grapheme-breaks'.
16233         * modules/unigbrk/ulc-grapheme-breaks: New file.
16234         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16235         * m4/locale-ar.m4: New file.
16236         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16237         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16238         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16239
16240 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16241
16242         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16243         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16244         modified how this file was generated before I initially submitted
16245         the module, but failed to regenerate it.  This meant that several
16246         of the level2 entries were wrong.
16247         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16248         Remove the division-by-2 that is folded into the table now that
16249         gbrkprop.h has been regenerated properly.  Now -1 entries are
16250         handled correctly.
16251
16252         New module 'unigbrk/uc-gbrk-prop-tests'.
16253         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16254         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16255         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16256         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16257
16258 2011-01-01  Bruno Haible  <bruno@clisp.org>
16259
16260         Avoid use of hexadecimal escapes.
16261         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16262         instead of hexadecimal escapes.
16263
16264 2011-01-01  Jim Meyering  <meyering@redhat.com>
16265
16266         maint: new rule to update copyright year ranges
16267         * Makefile (update-copyright): New rule.
16268
16269         maint: indent with TABs in Makefile
16270         * Makefile: Expand leading sequences of spaces to TABs
16271
16272         version-etc: update the copyright year it reports
16273         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16274
16275 2010-12-31  Bruno Haible  <bruno@clisp.org>
16276
16277         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16278         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16279         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16280         zero.
16281
16282 2010-12-31  Bruno Haible  <bruno@clisp.org>
16283
16284         pwrite: Work around HP-UX 11.11 bug.
16285         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16286         works and set REPLACE_PWRITE if not.
16287         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16288         function.
16289         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16290
16291 2010-12-31  Bruno Haible  <bruno@clisp.org>
16292
16293         pread: Work around HP-UX 11 bugs.
16294         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16295         and set REPLACE_PREAD if not.
16296         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16297
16298 2010-12-31  Eric Blake  <eblake@redhat.com>
16299
16300         nl_langinfo: fix YESEXPR on Irix 6.5
16301         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16302         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16303         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16304         it.
16305
16306 2010-12-31  Bruno Haible  <bruno@clisp.org>
16307
16308         iconv: Document HP-UX 11 bug.
16309         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16310
16311 2010-12-31  Bruno Haible  <bruno@clisp.org>
16312
16313         ldexpl: Fix link error on HP-UX 11.
16314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16315         LDEXPL_LIBM, using $ISNANL_LIBM.
16316
16317 2010-12-31  Eric Blake  <eblake@redhat.com>
16318
16319         ftello: avoid compilation failure with SunStudio c89
16320         * lib/ftello.c (ftello): Use lseek, not llseek.
16321
16322         tests: avoid failing coreutils tests on cygwin
16323         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16324         (create_exe_shims_): Return 0 when skipping.
16325
16326 2010-12-31  Bruno Haible  <bruno@clisp.org>
16327
16328         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16329         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16330
16331 2010-12-31  Bruno Haible  <bruno@clisp.org>
16332
16333         waitpid: Fix link error in C++ mode.
16334         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16335
16336 2010-12-31  Bruno Haible  <bruno@clisp.org>
16337
16338         isnan: Use GCC built-ins when possible.
16339         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16340         __builtin_isnan.
16341         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16342         (isnan): Define using GCC built-ins for GCC >= 4.0.
16343
16344 2010-12-31  Bruno Haible  <bruno@clisp.org>
16345
16346         isnand: Fix mistake.
16347         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16348         __builtin_isnand.
16349
16350 2010-12-31  Bruno Haible  <bruno@clisp.org>
16351
16352         open: Avoid C++ error on HP-UX 11.
16353         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16354
16355 2010-12-31  Bruno Haible  <bruno@clisp.org>
16356
16357         time_r: Add missing declarations on HP-UX 11.
16358         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16359         instead of HAVE_LOCALTIME_R.
16360         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16361         HAVE_LOCALTIME_R always.
16362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16363         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16364         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16365         HAVE_LOCALTIME_R.
16366         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16367         * doc/posix-functions/localtime_r.texi: Likewise.
16368
16369 2010-12-29  Eric Blake  <eblake@redhat.com>
16370
16371         mountlist: tweak previous commit
16372         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16373         Reported by Paul Eggert.
16374
16375         mountlist: fix local drive detection on cygwin
16376         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16377         that works for cygwin.
16378
16379 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16380
16381         ftoastr, snprintf: ftoastr + snprintf module
16382         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16383         since the snprintf module now should be good enough here.
16384         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16385         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16386         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16387         GNULIB_SNPRINTF only for the test directory, and the latter
16388         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16389         seems to suffice by itself.
16390
16391 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16392
16393         alloca: one step towards thread-safety
16394         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16395         need for a static variable.  All callers changed.  This does not
16396         make the alloca replacement thread-safe, but it's one step.
16397
16398         tests: minor indenting change
16399         * tests/init.sh: Sync from coreutils housekeeping patch
16400         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16401         to keep lines within 80 columns.
16402
16403 2010-12-28  Jim Meyering  <meyering@redhat.com>
16404
16405         regex: don't infloop on persistent failing calloc
16406         * lib/regexec.c (build_trtable): Return failure indication upon
16407         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16408         In glibc, this was fixed for version 2.13:
16409         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16410
16411 2010-12-28  Bruno Haible  <bruno@clisp.org>
16412             Paul Eggert <eggert@cs.ucla.edu>
16413
16414         linkat: Make implementation robust against system behaviour variations.
16415         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16416         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16417         way, and to -2 if it needs a generic runtime test.
16418         * lib/linkat.c (solaris_optimized_link_immediate,
16419         solaris_optimized_link_follow): New functions.
16420         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16421         (check_same_link): Use it.
16422
16423 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16424
16425         New module 'unigbrk/base'.
16426         * modules/unigbrk/base: New file.
16427         * lib/unigbrk.in.h: New file.
16428
16429         New module 'unigbrk/uc-gbrk-prop'.
16430         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16431         * modules/unigbrk/uc-gbrk-prop: New file.
16432         * lib/unigbrk/gbrkprop.h: New file.
16433         * lib/unigbrk/uc-gbrk-prop.c: New file.
16434
16435         New module 'unigbrk/uc-is-grapheme-break'.
16436         * modules/unigbrk/uc-is-grapheme-break: New file.
16437         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16438         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16439         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16440         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16441         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16442
16443         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16444
16445 2010-12-27  Bruno Haible  <bruno@clisp.org>
16446
16447         linkat test: Avoid failure on Solaris 11 2010-11.
16448         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16449
16450 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16451
16452         utimens: work around glibc rounding bug on more platforms
16453         * lib/utimens.c (fdutimens): Work around rounding bug even if
16454         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16456
16457 2010-12-27  Bruno Haible  <bruno@clisp.org>
16458
16459         select tests: Improve comments.
16460         * tests/test-select.c (do_select): Add comments.
16461
16462 2010-12-27  Bruno Haible  <bruno@clisp.org>
16463
16464         select tests: Safer way of handling timeout.
16465         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16466         at every invocation.
16467
16468 2010-12-27  Bruno Haible  <bruno@clisp.org>
16469
16470         select tests: Use 'bool' where appropriate.
16471         * tests/test-select.c (connect_to_socket): Change argument type to
16472         'bool'.
16473
16474 2010-12-27  Bruno Haible  <bruno@clisp.org>
16475
16476         select tests: Use existing modules.
16477         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16478         (configure.ac): Don't test for unistd.h.
16479         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16480         declared in <unistd.h>.
16481
16482 2010-12-27  Bruno Haible  <bruno@clisp.org>
16483
16484         mbrtowc: Work around a Solaris 7 bug.
16485         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16486         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16487         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16488         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16489         MBRTOWC_NULL_ARG1_BUG.
16490         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16491         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16492         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16493         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16494
16495 2010-12-27  Jim Meyering  <meyering@redhat.com>
16496
16497         read-file.c: tweak syntax
16498         * lib/read-file.c (fread_file): Remove space after "*" in function
16499         definitions.
16500
16501 2010-12-27  Bruno Haible  <bruno@clisp.org>
16502
16503         times test: Avoid gcc warnings on OSF/1.
16504         * tests/test-times.c (main): Cast printf arguments from clock_t to
16505         'long int'.
16506
16507 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16508
16509         utimens: work around glibc rounding bug on older Linux kernels
16510         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16511         on Linux with a glibc whose utimes might not work, then work
16512         around a longstanding glibc bug involving rounding rather than
16513         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16515
16516 2010-12-26  Bruno Haible  <bruno@clisp.org>
16517
16518         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16519         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16520         _GL_CXXALIAS_SYS.
16521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16522
16523 2010-12-26  Bruno Haible  <bruno@clisp.org>
16524
16525         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16526         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16527         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16528         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16529         looking for the declaration.
16530         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16531         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16532         problem.
16533         * doc/posix-functions/inet_pton.texi: Likewise.
16534
16535 2010-12-26  Bruno Haible  <bruno@clisp.org>
16536
16537         arpa_inet: Use the common idioms with C++ support.
16538         * lib/arpa_inet.in.h: Include c++defs.h.
16539         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16540         support.
16541         * modules/arpa_inet (Depends-on): Add c++defs.
16542         (Makefile.am): Substitute the contents of c++defs.h.
16543         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16544         * modules/arpa_inet-c++-tests: New file.
16545         * tests/test-arpa_inet-c++.cc: New file.
16546
16547 2010-12-25  Bruno Haible  <bruno@clisp.org>
16548
16549         Fix more C++ link errors on Solaris 8.
16550         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16551         $(LIB_EACCESS).
16552         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16553         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16554         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16555         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16556         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16557
16558 2010-12-25  Bruno Haible  <bruno@clisp.org>
16559
16560         printf-posix: Fix link error when a non-GCC compiler is used.
16561         * lib/stdio.in.h (printf): When not using GCC, override printf
16562         correctly.
16563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16564
16565 2010-12-25  Bruno Haible  <bruno@clisp.org>
16566
16567         strerror_r-posix: Update doc.
16568         * doc/posix-functions/strerror_r.texi: Update doc about the return
16569         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16570
16571 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16572
16573         utimens: simplify the logic of the previous change
16574         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16575         This should not affect whether the test succeeds or fails.
16576
16577         utimens: configure better on hosts with NFS clock skew
16578         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16579         uses the clock of the local host.  It might use the clock of the
16580         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16581         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16582
16583 2010-12-25  Bruno Haible  <bruno@clisp.org>
16584
16585         ptsname test: Avoid failure on Solaris.
16586         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16587         open a pseudo-terminal; don't use BSD-style ptys.
16588         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16589
16590 2010-12-25  Bruno Haible  <bruno@clisp.org>
16591
16592         ptsname: Avoid ERANGE failure on some systems.
16593         * lib/ptsname.c (buffer): Increase size.
16594
16595 2010-12-25  Bruno Haible  <bruno@clisp.org>
16596
16597         rename, renameat: Avoid test failures at NFS mounted locations.
16598         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16599         so that subsequent mkdir calls succeed.
16600
16601 2010-12-25  Bruno Haible  <bruno@clisp.org>
16602
16603         iswblank: Fix C++ link error on Solaris 8.
16604         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16605         _GL_FUNCDECL_SYS.
16606
16607 2010-12-25  Bruno Haible  <bruno@clisp.org>
16608
16609         unistd: Fix C++ link error on Solaris 8.
16610         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16611
16612 2010-12-25  Bruno Haible  <bruno@clisp.org>
16613
16614         readlink doc: Mention an old glibc bug.
16615         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16616
16617 2010-12-25  Bruno Haible  <bruno@clisp.org>
16618
16619         fcntl-h: Fix for use of C++ on glibc systems.
16620         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16621         also on glibc systems in C++ mode.
16622         Reported by Gary V. Vaughan <gary@gnu.org>.
16623
16624 2010-12-25  Bruno Haible  <bruno@clisp.org>
16625
16626         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16627         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16628
16629 2010-12-25  Bruno Haible  <bruno@clisp.org>
16630
16631         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16632         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16633         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16634         test whether truncl works according to ISO C 99 with IEC 60559.
16635         * m4/truncl-ieee.m4: New file.
16636         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16637         m4/signbit.m4.
16638         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16639
16640 2010-12-25  Bruno Haible  <bruno@clisp.org>
16641
16642         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16643         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16644         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16645         test whether ceill works according to ISO C 99 with IEC 60559.
16646         * m4/ceill-ieee.m4: New file.
16647         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16648         m4/signbit.m4.
16649         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16650
16651 2010-12-25  Bruno Haible  <bruno@clisp.org>
16652
16653         Ensure all prerequisites of <wchar.h> are included.
16654         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16655         before <wchar.h>.
16656         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16657         gl_MBRLEN_NUL_RETVAL): Likewise.
16658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16659         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16660         AC_FUNC_MBRTOWC): Likewise.
16661         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16662         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16664         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16665         Likewise.
16666         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16667         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16668         (gl_WCHAR_H): Improve comments.
16669         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16670
16671 2010-12-25  Bruno Haible  <bruno@clisp.org>
16672
16673         strtok_r: Fix C syntax error in autoconf macro.
16674         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16675         characters in test program.
16676
16677 2010-12-24  Bruno Haible  <bruno@clisp.org>
16678
16679         ceil, trunc, round: Fix gcc warnings.
16680         * lib/ceil.c (MIN): Undefine before redefining.
16681         * lib/trunc.c (MIN): Likewise.
16682         * lib/round.c (MIN): Likewise.
16683         Include <math.h> first.
16684
16685 2010-12-24  Bruno Haible  <bruno@clisp.org>
16686
16687         select tests: Avoid failures on OSF/1 5.1.
16688         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16689         failure of closing the last socket; it may fail with ECONNRESET.
16690
16691 2010-12-24  Eric Blake  <eblake@redhat.com>
16692
16693         stdint: avoid HP-UX 10.20 preprocessor bug
16694         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16695         than #if.
16696         * tests/test-floor2.c (main): Likewise.
16697         Reported by Peter O'Gorman.
16698
16699         pipe: make obsoletion transition easier
16700         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16701         * modules/pipe (Files): Include revived file.
16702         (Include): Drop reference, to mirror getdate's behavior.
16703
16704 2010-12-24  Bruno Haible  <bruno@clisp.org>
16705
16706         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16707         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16708         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16709         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16710
16711 2010-12-24  Bruno Haible  <bruno@clisp.org>
16712
16713         gethostname: Ensure declaration on NonStop Kernel.
16714         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16715         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16716
16717 2010-12-24  Bruno Haible  <bruno@clisp.org>
16718
16719         sys_select: Ensure all necessary types on NonStop Kernel.
16720         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16721         include <sys/time.h>.
16722         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16723         NonStop Kernel.
16724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16725
16726 2010-12-24  Bruno Haible  <bruno@clisp.org>
16727
16728         sys_select: Remove unneeded include.
16729         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16730         have <sys/select.h>.
16731
16732 2010-12-24  Bruno Haible  <bruno@clisp.org>
16733
16734         gethostname: Provide a fallback for HOST_NAME_MAX.
16735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16736         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16737         instead.
16738         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16739
16740 2010-12-24  Bruno Haible  <bruno@clisp.org>
16741
16742         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16743         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16744         (SA_RESTART): Likewise.
16745         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16746
16747 2010-12-24  Bruno Haible  <bruno@clisp.org>
16748
16749         signal: Define NSIG.
16750         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16751         * tests/test-signal.c (nsig): New variable.
16752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16753
16754 2010-12-24  Bruno Haible  <bruno@clisp.org>
16755
16756         rename, renameat: Avoid test failures on OSF/1 5.1.
16757         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16758         alternative error codes.
16759         * tests/test-renameat.c (main): Likewise.
16760
16761 2010-12-24  Bruno Haible  <bruno@clisp.org>
16762
16763         *printf: Detect large precisions bug on Solaris 10/SPARC.
16764         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16765         by Paul Eggert.
16766         * tests/test-snprintf-posix.h (test_function): Add this test code here
16767         too.
16768         * tests/test-sprintf-posix.h (test_function): Likewise.
16769         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16770         * tests/test-vasprintf-posix.c (test_function): Likewise.
16771         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16772         around by gnulib.
16773         * doc/posix-functions/printf.texi: Likewise.
16774         * doc/posix-functions/snprintf.texi: Likewise.
16775         * doc/posix-functions/sprintf.texi: Likewise.
16776         * doc/posix-functions/vfprintf.texi: Likewise.
16777         * doc/posix-functions/vprintf.texi: Likewise.
16778         * doc/posix-functions/vsnprintf.texi: Likewise.
16779         * doc/posix-functions/vsprintf.texi: Likewise.
16780         * doc/posix-functions/dprintf.texi: Undo last commit.
16781         * doc/posix-functions/vdprintf.texi: Likewise.
16782
16783 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16784
16785         tests: port test-fdutimensat.c to Solaris 8
16786         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16787         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16788         On Solaris 8, it fails with errno == ENOSYS, because there is no
16789         futimens (so it can't use the fd), and there is no lutimens (so it
16790         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16791
16792         vsnprintf: make more consistent with snprintf; doc fixes
16793
16794         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16795         the byte count return problem was promoted from the snprintf-posix
16796         to the snprintf module.
16797         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16798         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16799         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16800         * tests/test-snprintf.c (main): Check the byte count returned.
16801         * tests/test-vsnprintf.c (main): Likewise.
16802
16803 2010-12-23  Eric Blake  <eblake@redhat.com>
16804
16805         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16806         * modules/sigpipe (License): Relax license.
16807
16808 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16809
16810         doc: document Solaris printf bug with large float precisions
16811         * doc/posix-functions/dprintf.texi (dprintf):
16812         * doc/posix-functions/fprintf.texi (fprintf):
16813         * doc/posix-functions/printf.texi (printf):
16814         * doc/posix-functions/snprintf.texi (snprintf):
16815         * doc/posix-functions/sprintf.texi (sprintf):
16816         * doc/posix-functions/vdprintf.texi (vdprintf):
16817         * doc/posix-functions/vfprintf.texi (vfprintf):
16818         * doc/posix-functions/vprintf.texi (vprintf):
16819         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16820         * doc/posix-functions/vsprintf.texi (vsprintf):
16821         Mention that these functions mishandle large floating point
16822         precisions on Solaris 10.  The same bug is also present in Solaris
16823         8, and I assume earlier.  This causes "cd gnulib-tests; make
16824         check" to fail on Solaris 8 (and I assume, later) when building
16825         the latest coreutils, in test-vasprintf-posix's call to
16826         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16827         the wide flavors (e.g., wprintf) so this patch just updates the
16828         documentation for the narrow ones.
16829
16830         test-posixtm.c: add two tests
16831         * tests/test-posixtm.c: Add two tests, to highlight the
16832         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16833         around this bug; this is merely to document it.
16834
16835 2010-12-22  Bruno Haible  <bruno@clisp.org>
16836
16837         getlogin_r: Work around portability problem on OSF/1.
16838         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16839         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16840         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16841         test for a truncated result.
16842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16843         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16844         * modules/getlogin_r (Depends-on): Add memchr.
16845         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16846
16847 2010-12-22  Bruno Haible  <bruno@clisp.org>
16848
16849         ptsname: Avoid test failure on OSF/1 5.1.
16850         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16851         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16852         (same_slave): New function.
16853         (main): Use it to compare ptsname's result with the expected file name.
16854
16855 2010-12-22  Bruno Haible  <bruno@clisp.org>
16856
16857         Port extended stdio modules to HP NonStop Kernel.
16858         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16859         macros.
16860         * lib/fbufmode.c: Update comments.
16861         * lib/fflush.c: Likewise.
16862         * lib/fpurge.c: Likewise.
16863         * lib/freadable.c: Likewise.
16864         * lib/freadahead.c: Likewise.
16865         * lib/freading.c: Likewise.
16866         * lib/freadptr.c: Likewise.
16867         * lib/freadseek.c: Likewise.
16868         * lib/fseeko.c: Likewise.
16869         * lib/fseterr.c: Likewise.
16870         * lib/fwritable.c: Likewise.
16871         * lib/fwriting.c: Likewise.
16872         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16873
16874 2010-12-22  Bruno Haible  <bruno@clisp.org>
16875
16876         ttyname_r: Work around bug on OSF/1 5.1.
16877         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16879         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16880         present.
16881         * lib/ttyname_r.c (ttyname_r): Update comments.
16882
16883 2010-12-22  Bruno Haible  <bruno@clisp.org>
16884
16885         round: Implement result sign according to IEEE 754.
16886         * lib/round.c (MIN, MINUS_ZERO): New macros.
16887         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16888         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16889         * tests/test-round-ieee.c (main): Likewise.
16890         * tests/test-roundl-ieee.c (main): Likewise.
16891
16892         trunc: Implement result sign according to IEEE 754.
16893         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16894         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16895         * tests/test-trunc2.c: Include minus-zero.h.
16896         (MINUS_ZERO): New macro.
16897         (trunc_reference): Keep in sync with lib/trunc.c.
16898         * tests/test-truncf2.c: Include minus-zero.h.
16899         (MINUS_ZERO): New macro.
16900         (truncf_reference): Keep in sync with lib/trunc.c.
16901         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16902         * tests/test-trunc-ieee.c (main): Likewise.
16903         * tests/test-truncl-ieee.c (main): Likewise.
16904
16905         ceil: Implement result sign according to IEEE 754.
16906         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16907         (FUNC): Return -0.0 for -1 < x < 0.
16908         * tests/test-ceil2.c: Include minus-zero.h.
16909         (MINUS_ZERO): New macro.
16910         (ceil_reference): Keep in sync with lib/ceil.c.
16911         * tests/test-ceilf2.c: Include minus-zero.h.
16912         (MINUS_ZERO): New macro.
16913         (ceilf_reference): Keep in sync with lib/ceil.c.
16914         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16915         * tests/test-ceil-ieee.c (main): Likewise.
16916         * tests/test-ceill-ieee.c (main): Likewise.
16917
16918         floor: Implement result sign according to IEEE 754.
16919         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16920         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16921         * tests/test-floorf2.c (floorf_reference): Likewise.
16922         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16923         * tests/test-floor-ieee.c (main): Likewise.
16924         * tests/test-floorl-ieee.c (main): Likewise.
16925
16926 2010-12-22  Bruno Haible  <bruno@clisp.org>
16927
16928         getaddrinfo: Update doc.
16929         * doc/posix-functions/gai_strerror.texi: Return type is also different
16930         on AIX and HP-UX.
16931
16932 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16933
16934         getaddrinfo, inet_ntop: Update doc for Solaris.
16935         * doc/posix-functions/gai_strerror.texi: Return type is also an
16936         issue on Solaris 9 and earlier.
16937         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16938         on Solaris 10 and earlier.
16939
16940 2010-12-21  Bruno Haible  <bruno@clisp.org>
16941
16942         New module 'roundl-ieee'.
16943         * modules/roundl-ieee: New file.
16944         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16945         test whether roundl works according to ISO C 99 with IEC 60559.
16946         * m4/roundl-ieee.m4: New file.
16947         * modules/roundl-ieee-tests: New file.
16948         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16949         * tests/test-roundl.c (main): Remove signbit tests.
16950         * modules/roundl-tests (Depends-on): Remove signbit.
16951         * doc/posix-functions/roundl.texi: Mention the new module.
16952
16953 2010-12-21  Bruno Haible  <bruno@clisp.org>
16954
16955         New module 'truncl-ieee'.
16956         * modules/truncl-ieee: New file.
16957         * modules/truncl-ieee-tests: New file.
16958         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16959         * tests/test-truncl.c (main): Remove signbit tests.
16960         * modules/truncl-tests (Depends-on): Remove signbit.
16961         * doc/posix-functions/truncl.texi: Mention the new module.
16962
16963 2010-12-21  Bruno Haible  <bruno@clisp.org>
16964
16965         New module 'ceill-ieee'.
16966         * modules/ceill-ieee: New file.
16967         * modules/ceill-ieee-tests: New file.
16968         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16969         * tests/test-ceill.c (main): Remove signbit tests.
16970         * modules/ceill-tests (Depends-on): Remove signbit.
16971         * doc/posix-functions/ceill.texi: Mention the new module.
16972
16973 2010-12-21  Bruno Haible  <bruno@clisp.org>
16974
16975         New module 'floorl-ieee'.
16976         * modules/floorl-ieee: New file.
16977         * modules/floorl-ieee-tests: New file.
16978         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16979         * tests/test-floorl.c (main): Remove signbit tests.
16980         * modules/floorl-tests (Depends-on): Remove signbit.
16981         * doc/posix-functions/floorl.texi: Mention the new module.
16982
16983 2010-12-21  Bruno Haible  <bruno@clisp.org>
16984
16985         New module 'round-ieee'.
16986         * modules/round-ieee: New file.
16987         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16988         whether round works according to ISO C 99 with IEC 60559.
16989         * m4/round-ieee.m4: New file.
16990         * modules/round-ieee-tests: New file.
16991         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16992         * tests/test-round1.c (main): Remove signbit tests.
16993         * modules/round-tests (Depends-on): Remove 'signbit'.
16994         * doc/posix-functions/round.texi: Mention the new module.
16995
16996 2010-12-21  Bruno Haible  <bruno@clisp.org>
16997
16998         New module 'trunc-ieee'.
16999         * modules/trunc-ieee: New file.
17000         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17001         whether trunc works according to ISO C 99 with IEC 60559.
17002         * m4/trunc-ieee.m4: New file.
17003         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17005         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17006         * modules/trunc-ieee-tests: New file.
17007         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17008         * tests/test-trunc1.c (main): Remove signbit tests.
17009         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17010         * doc/posix-functions/trunc.texi: Mention the new module.
17011
17012 2010-12-21  Bruno Haible  <bruno@clisp.org>
17013
17014         New module 'ceil-ieee'.
17015         * modules/ceil-ieee: New file.
17016         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17017         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17018         ISO C 99 with IEC 60559.
17019         * m4/ceil-ieee.m4: New file.
17020         * modules/ceil (Files): Add lib/ceil.c.
17021         (Depends-on): Add 'float'.
17022         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17023         * lib/math.in.h (ceil): New declaration.
17024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17025         REPLACE_CEIL.
17026         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17027         * modules/ceil-ieee-tests: New file.
17028         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17029         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17030         * doc/posix-functions/ceil.texi: Mention the new module.
17031
17032 2010-12-21  Bruno Haible  <bruno@clisp.org>
17033
17034         New module 'floor-ieee'.
17035         * modules/floor-ieee: New file.
17036         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17037         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17038         ISO C 99 with IEC 60559.
17039         * m4/floor-ieee.m4: New file.
17040         * modules/floor (Files): Add lib/floor.c.
17041         (Depends-on): Add 'float'.
17042         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17043         * lib/math.in.h (floor): New declaration.
17044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17045         REPLACE_FLOOR.
17046         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17047         * modules/floor-ieee-tests: New file.
17048         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17049         * tests/test-math-c++.cc: Check the signature of 'floor'.
17050         * doc/posix-functions/floor.texi: Mention the new module.
17051
17052 2010-12-21  Bruno Haible  <bruno@clisp.org>
17053
17054         New module 'roundf-ieee'.
17055         * modules/roundf-ieee: New file.
17056         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17057         test whether roundf works according to ISO C 99 with IEC 60559.
17058         * m4/roundf-ieee.m4: New file.
17059         * modules/roundf-ieee-tests: New file.
17060         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17061         * tests/test-roundf1.c (main): Remove signbit tests.
17062         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17063         * doc/posix-functions/roundf.texi: Mention the new module.
17064
17065 2010-12-21  Bruno Haible  <bruno@clisp.org>
17066
17067         New module 'truncf-ieee'.
17068         * modules/truncf-ieee: New file.
17069         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17070         test whether truncf works according to ISO C 99 with IEC 60559.
17071         * m4/truncf-ieee.m4: New file.
17072         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17074         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17075         * modules/truncf-ieee-tests: New file.
17076         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17077         * tests/test-truncf1.c (main): Remove signbit tests.
17078         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17079         * doc/posix-functions/truncf.texi: Mention the new module.
17080
17081 2010-12-21  Bruno Haible  <bruno@clisp.org>
17082
17083         New module 'ceilf-ieee'.
17084         * modules/ceilf-ieee: New file.
17085         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17086         test whether ceilf works according to ISO C 99 with IEC 60559.
17087         * m4/ceilf-ieee.m4: New file.
17088         * modules/ceilf-ieee-tests: New file.
17089         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17090         * tests/test-ceilf1.c (main): Remove signbit tests.
17091         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17092         * doc/posix-functions/ceilf.texi: Mention the new module.
17093
17094 2010-12-21  Bruno Haible  <bruno@clisp.org>
17095
17096         New module 'floorf-ieee'.
17097         * modules/floorf-ieee: New file.
17098         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17099         test whether floorf works according to ISO C 99 with IEC 60559.
17100         * m4/floorf-ieee.m4: New file.
17101         * modules/floorf-ieee-tests: New file.
17102         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17103         * tests/test-floorf1.c (main): Remove signbit tests.
17104         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17105         * doc/posix-functions/floorf.texi: Mention the new module.
17106
17107 2010-12-21  Bruno Haible  <bruno@clisp.org>
17108
17109         Support for minus zero in autoconf macros.
17110         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17111         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17112         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17113         * tests/minus-zero.h: Update comments.
17114
17115 2010-12-21  Bruno Haible  <bruno@clisp.org>
17116
17117         Tests for module 'ceil'.
17118         * modules/ceil-tests: New file.
17119         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17120         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17121
17122 2010-12-21  Bruno Haible  <bruno@clisp.org>
17123
17124         Tests for module 'floor'.
17125         * modules/floor-tests: New file.
17126         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17127         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17128
17129 2010-12-21  Bruno Haible  <bruno@clisp.org>
17130
17131         math: Fix indentation.
17132         * lib/math.in.h (floorf): Fix indentation.
17133
17134 2010-12-21  Bruno Haible  <bruno@clisp.org>
17135
17136         Fix cross-compilation guesses on Solaris.
17137         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17138         not match "solaris2.10".
17139         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17140         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17141         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17142
17143 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17144
17145         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17146         This fixes a problem observed with the latest coreutils snapshot
17147         that caused a test to fail on Solaris 8.  src/csplit.c's call
17148         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17149         earlier, instead of returning the number of bytes that would have
17150         been generated; this causes csplit to incorrectly report memory
17151         exhaustion.
17152         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17153         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17154         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17155         comments to match.
17156         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17157         Fix typo in matching older versions of Solaris: "solaris2.10"
17158         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17159         only for guessing while cross-compiling.
17160         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17161
17162 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17163
17164         ftoastr: fix comment again
17165         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17167         Also, simplify example a bit by using flags = 0.
17168
17169 2010-12-20  Bruno Haible  <bruno@clisp.org>
17170
17171         round*, trunc*: Update documentation regarding glibc.
17172         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17173         * doc/posix-functions/round.texi: Likewise.
17174         * doc/posix-functions/roundl.texi: Likewise.
17175         * doc/posix-functions/truncf.texi: Likewise.
17176         * doc/posix-functions/trunc.texi: Likewise.
17177         * doc/posix-functions/truncl.texi: Likewise.
17178
17179 2010-12-20  Bruno Haible  <bruno@clisp.org>
17180
17181         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17182         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17183         * doc/posix-functions/round.texi: Likewise.
17184         * doc/posix-functions/roundl.texi: Likewise.
17185
17186 2010-12-20  Bruno Haible  <bruno@clisp.org>
17187
17188         ttyname_r: Add missing declaration on HP-UX 11.
17189         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17190         HAVE_TTYNAME_R.
17191         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17192         declared. Set HAVE_TTYNAME_R always.
17193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17194         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17195         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17196         HAVE_TTYNAME_R.
17197         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17198
17199 2010-12-20  Bruno Haible  <bruno@clisp.org>
17200
17201         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17202         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17203         * doc/posix-functions/getlogin_r.texi: Likewise.
17204         * tests/test-getlogin.c: Include <errno.h>.
17205         (main): Avoid test failure on HP-UX 11.11.
17206         * tests/test-getlogin_r.c (main): Likewise.
17207
17208 2010-12-20  Bruno Haible  <bruno@clisp.org>
17209
17210         getlogin_r: Add missing declaration on HP-UX 11.
17211         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17212         declared also when it exists as a function.
17213         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17214
17215 2010-12-20  Bruno Haible  <bruno@clisp.org>
17216
17217         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17218         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17219         through wcrtomb.
17220
17221 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17222
17223         ftoastr: fix comment
17224         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17226
17227 2010-12-19  Bruno Haible  <bruno@clisp.org>
17228
17229         isnan: Ensure it is a macro.
17230         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17231         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17232         Solaris.
17233
17234 2010-12-19  Bruno Haible  <bruno@clisp.org>
17235
17236         ldexpl test: Fix link error on OSF/1 5.1.
17237         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17238
17239 2010-12-19  Bruno Haible  <bruno@clisp.org>
17240
17241         wctype: Make it work in C++ mode on OSF/1 5.1.
17242         * lib/wctype.in.h (iswblank): Declare but not define here.
17243         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17244         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17245         * modules/wctype (Files): Add lib/iswblank.c.
17246
17247 2010-12-19  Bruno Haible  <bruno@clisp.org>
17248
17249         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17250         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17251         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17252
17253 2010-12-19  Bruno Haible  <bruno@clisp.org>
17254
17255         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17257         _POSIX_PII_SOCKET.
17258         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17259         * doc/posix-functions/recvfrom.texi: Likewise.
17260         * doc/posix-functions/send.texi: Likewise.
17261         * doc/posix-functions/sendto.texi: Likewise.
17262
17263 2010-12-19  Bruno Haible  <bruno@clisp.org>
17264
17265         tcgetsid: Add missing declaration on OSF/1 5.1.
17266         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17267         HAVE_TCGETSID.
17268         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17269         Don't set HAVE_TCGETSID.
17270         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17271         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17272         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17273         HAVE_TCGETSID.
17274         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17275
17276 2010-12-19  Bruno Haible  <bruno@clisp.org>
17277
17278         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17279         * lib/stdio.in.h: During the include_next statement, let recursive
17280         includes of this file include only the system header file.
17281
17282 2010-12-19  Bruno Haible  <bruno@clisp.org>
17283
17284         iconv_open: Fix regression from 2010-12-04.
17285         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17286         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17287
17288 2010-12-19  Bruno Haible  <bruno@clisp.org>
17289
17290         stdbool test: Avoid a gcc warning.
17291         * tests/test-stdbool.c (main): Fail if e1 is false.
17292         Reported by Jim Meyering.
17293
17294 2010-12-19  Jim Meyering  <meyering@redhat.com>
17295
17296         setenv: restore to working order
17297         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17298         mistakenly removed.
17299         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17300         HAVE_SETENV.
17301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17302         HAVE_SETENV.
17303
17304 2010-12-19  Bruno Haible  <bruno@clisp.org>
17305
17306         Document some different function declarations on OSF/1 5.1.
17307         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17308         * doc/posix-functions/inet_ntop.texi: Likewise.
17309         * doc/posix-functions/gethostname.texi: Likewise.
17310         * lib/unistd.in.h (gethostname): Update comment.
17311
17312 2010-12-19  Bruno Haible  <bruno@clisp.org>
17313
17314         doc: Mention vasprintf-posix module.
17315         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17316         the 'vasprintf-posix' module.
17317         * doc/glibc-functions/vasprintf.texi: Likewise.
17318
17319 2010-12-19  Bruno Haible  <bruno@clisp.org>
17320
17321         unsetenv: Add missing declaration on OSF/1 5.1.
17322         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17324         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17326         not HAVE_UNSETENV.
17327         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17328         HAVE_UNSETENV.
17329         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17330
17331 2010-12-19  Bruno Haible  <bruno@clisp.org>
17332
17333         setenv: Add missing declaration on OSF/1 5.1.
17334         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17335         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17336         declared. Don't set HAVE_SETENV.
17337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17338         not HAVE_SETENV.
17339         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17340         HAVE_SETENV.
17341         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17342
17343 2010-12-19  Bruno Haible  <bruno@clisp.org>
17344
17345         nl_langinfo tests: Avoid gcc warning.
17346         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17347
17348 2010-12-19  Bruno Haible  <bruno@clisp.org>
17349
17350         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17351         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17352         _GL_CXXALIAS_SYS.
17353
17354 2010-12-19  Bruno Haible  <bruno@clisp.org>
17355
17356         stdbool: Relax test.
17357         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17358         address to 'bool' work in static initializer, for compilers other than
17359         GCC.
17360
17361 2010-12-19  Bruno Haible  <bruno@clisp.org>
17362
17363         ftello: Add missing declaration on OSF/1 5.1.
17364         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17365         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17367         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17368         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17369
17370 2010-12-19  Bruno Haible  <bruno@clisp.org>
17371
17372         fseeko: Add missing declaration on OSF/1 5.1.
17373         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17376         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17377         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17378
17379 2010-12-19  Bruno Haible  <bruno@clisp.org>
17380
17381         fchdir: Add missing declaration on OSF/1 5.1.
17382         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17386         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17387
17388 2010-12-19  Bruno Haible  <bruno@clisp.org>
17389
17390         relocatable-prog-wrapper: Separate from relocatable-prog.
17391         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17392         uninstall-relocwrapper rule here.
17393         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17394         Reported by Ian Beckwith <ianb@erislabs.net>.
17395
17396 2010-12-19  Bruno Haible  <bruno@clisp.org>
17397
17398         unistr/u8-mbsnlen: Add missing dependency.
17399         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17400         Reported by Ian Beckwith <ianb@erislabs.net>.
17401
17402 2010-12-19  Bruno Haible  <bruno@clisp.org>
17403
17404         iconv: Make it possible again to use this module without 'iconv-h'.
17405         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17406         if it is not defined.
17407         Reported by Ian Beckwith <ianb@erislabs.net>.
17408
17409 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17410
17411         acl: port to Solaris 8 when copying from tmpfs to ufs
17412         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17413         error number.  Problem observed on Solaris 8 with latest
17414         coreutils, with "mv A B", where A is on a tmpfs file system and B
17415         is on a ufs file system.  This caused coreutils' mv/part-symlink
17416         test to fail.
17417
17418         tests: set fail=0 at start
17419         * tests/init.sh (setup_): Move fail=0 initialization here ...
17420         (mktempd_): ... from here, so that tests can rely on fail being
17421         set to 0 initially.  This fixes a problem in coreutils; see:
17422         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17423
17424 2010-12-18  Bruno Haible  <bruno@clisp.org>
17425
17426         memmem-simple: Stylistic changes.
17427         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17428         Fix preprocessor directive indentation.
17429
17430 2010-12-15  Pádraig Brady <P@draigBrady.com>
17431
17432         memmem, memmem-simple: reorganize and expand empty needle check
17433         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17434         functional checks to memmem-simple so that one has a fully functional
17435         memmem by using just this module.
17436         Restrict the performance only check to the memmem module.
17437         Also expand the empty needle check to ensure the correct
17438         pointer is returned, not just a non NULL pointer.
17439         * doc/glibc-functions/memmem.texi: Rearrange the portability
17440         documentation to correlate with the rearranged checks.
17441         Clarify exactly how the memmem and memmem-simple modules
17442         relate to each other.
17443
17444 2010-12-15  Pádraig Brady <P@draigBrady.com>
17445             Bruno Haible  <bruno@clisp.org>
17446
17447         Improve cross-compilation guesses for uClibc.
17448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17449         that uClibc does not have the glibc bug.
17450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17451         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17452
17453 2010-12-14  Eric Blake  <eblake@redhat.com>
17454
17455         configmake: provide fallbacks for oldest supported autotools
17456         * m4/configmake.m4: New file.
17457         * modules/configmake (Files): Ship it.
17458         (configure.ac): Use it to guarantee fallbacks.
17459
17460 2010-12-13  Pádraig Brady <P@draigBrady.com>
17461
17462         read-file: Improve handling of large files
17463         * lib/read-file.c (fread_file): Minimize realloc()s
17464         for regular files, and better manage sizes around SIZE_MAX.
17465
17466 2010-12-13  Eric Blake  <eblake@redhat.com>
17467
17468         cloexec, fcntl: relax license
17469         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17470         consent from all contributors.
17471         * modules/fcntl (License): Likewise.
17472
17473 2010-12-10  Bruno Haible  <bruno@clisp.org>
17474
17475         Tests for module 'pipe-posix'.
17476         * modules/pipe-posix-tests: New file.
17477         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17478
17479 2010-12-10  Bruno Haible  <bruno@clisp.org>
17480
17481         pipe-posix: Make it work in C++ mode.
17482         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17483         (pipe): Use common idiom, not a macro definition.
17484         * lib/pipe.c: New file.
17485         * m4/pipe.m4: New file.
17486         * modules/pipe-posix (Description): Enhance.
17487         (Files): Add lib/pipe.c, m4/pipe.m4.
17488         (configure.ac): Invoke gl_FUNC_PIPE.
17489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17490         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17491         * tests/test-unistd-c++.cc: Check the signature of pipe.
17492
17493 2010-12-10  Bruno Haible  <bruno@clisp.org>
17494
17495         Rename module 'pipe' to 'spawn-pipe'.
17496         * modules/spawn-pipe: New file, renamed from modules/pipe.
17497         (Files, configure.ac, Makefile.am): Update.
17498         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17499         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17500         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17501         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17502         "spawn-pipe.h" instead of "pipe.h".
17503         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17504         to gl_SPAWN_PIPE.
17505         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17506         (Files, Makefile.am): Update.
17507         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17508         Update.
17509         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17510         Include "spawn-pipe.h" instead of "pipe.h".
17511         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17512         * lib/javacomp.c: Likewise.
17513         * lib/javaversion.c: Likewise.
17514         * lib/pipe-filter-gi.c: Likewise.
17515         * lib/pipe-filter-ii.c: Likewise.
17516         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17517         * modules/javacomp (Depends-on): Likewise.
17518         * modules/javaversion (Depends-on): Likewise.
17519         * modules/pipe-filter-gi (Depends-on): Likewise.
17520         * modules/pipe-filter-ii (Depends-on): Likewise.
17521         * MODULES.html.sh (Executing programs): Update.
17522         * NEWS: Mention the change.
17523
17524 2010-12-10  Eric Blake  <eblake@redhat.com>
17525
17526         pipe-posix: new module
17527         * modules/pipe-posix: New file.
17528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17529         (gl_UNISTD_H): Check for declaration.
17530         * modules/unistd (Makefile.am): Substitute it.
17531         * lib/unistd.in.h (pipe): Provide it for mingw.
17532         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17533         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17534
17535 2010-12-07  Bruno Haible  <bruno@clisp.org>
17536
17537         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17538         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17539         u8_strcmp_gnu.
17540         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17541
17542 2010-12-06  Bruno Haible  <bruno@clisp.org>
17543
17544         Update internal documentation.
17545         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17546
17547 2010-12-04  Bruno Haible  <bruno@clisp.org>
17548
17549         Put more information about failed tests into the test return codes.
17550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17551         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17552         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17553         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17554         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17556         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17557         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17558         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17561         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17562         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17563         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17564         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17565         returns a bit mask.
17566         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17567         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17568         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17569         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17570         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17571         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17574         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17576         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17577         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17578         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17580         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17581         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17582         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17583         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17584         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17585         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17587         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17589         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17590         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17591         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17592         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17593         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17594         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17595         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17596         gl_PRINTF_PRECISION): Likewise.
17597         * m4/regex.m4 (gl_REGEX): Likewise.
17598         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17599         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17600         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17601         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17602         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17604         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17605         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17606         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17607         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17608         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17609         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17610         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17611         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17612         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17613         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17614         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17615         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17617         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17618         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17619         enumerated value.
17620         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17621
17622 2010-12-04  Bruno Haible  <bruno@clisp.org>
17623
17624         Update for Solaris 11 2010-11.
17625         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17626         Express, released in November 2010.
17627
17628 2010-12-04  Bruno Haible  <bruno@clisp.org>
17629
17630         nproc: Relax license.
17631         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17632         and Paul Eggert.
17633         Requested by Ludovic Courtès <ludo@gnu.org>.
17634
17635 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         utimecmp: fine-grained src to nearby coarse-grained dest
17638
17639         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17640         and the source is on a file system with higher-resolution time
17641         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17642         not work, and the time stamps are close together, the algorithm to
17643         determine the exact resolution from the read-back mtime was buggy:
17644         it had a "!=" where it should have had an "==".  This bug has been
17645         in the code ever since it was introduced to gnulib.
17646         Problem reported by Dan Jacobson in
17647         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17648
17649 2010-11-30  Bruno Haible  <bruno@clisp.org>
17650
17651         strerror_r-posix: Fix autoconf test.
17652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17653
17654 2010-11-28  Bruno Haible  <bruno@clisp.org>
17655             Paul Eggert  <eggert@cs.ucla.edu>
17656
17657         Tests for module 'getdomainname'.
17658         * modules/getdomainname-tests: New file.
17659         * tests/test-getdomainname.c: New file, based on
17660         tests/test-gethostname.c.
17661
17662 2010-11-28  Bruno Haible  <bruno@clisp.org>
17663             Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         getdomainname: Use the system function when possible.
17666         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17667         (getdomainname): Replace if needed. Provide the declaration if it is
17668         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17669         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17670         (getdomainname): When the system has getdomainname, call the system
17671         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17672         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17673         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17674         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17675         the function if its second argument is of type 'int' or if it is found
17676         in libnsl.
17677         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17678         <sys/systeminfo.h> and sysinfo().
17679         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17681         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17682         HAVE_GETDOMAINNAME.
17683         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17684         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17685         * doc/glibc-functions/getdomainname.texi: Document the problems with
17686         the getdomainname declaration.
17687
17688 2010-11-28  Bruno Haible  <bruno@clisp.org>
17689
17690         sys_socket: Ensure ss_family field on AIX.
17691         * lib/sys_socket.in.h (ss_family): New macro definition.
17692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17693         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17694         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17695         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17696         * modules/sys_socket (Makefile.am): Substitute
17697         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17698         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17699
17700 2010-11-27  Bruno Haible  <bruno@clisp.org>
17701
17702         readline: Improve configure output.
17703         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17704         "checking for readline..." result understandable.
17705
17706 2010-11-27  Bruno Haible  <bruno@clisp.org>
17707
17708         *printf-posix: Detect a bug on Solaris 10/x86.
17709         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17710         for floating-point output.
17711         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17712         directive.
17713         * tests/test-snprintf-posix.h (test_function): Likewise.
17714         * tests/test-sprintf-posix.h (test_function): Likewise.
17715         * tests/test-vasprintf-posix.c (test_function): Likewise.
17716         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17717         * doc/posix-functions/printf.texi: Likewise.
17718         * doc/posix-functions/snprintf.texi: Likewise.
17719         * doc/posix-functions/sprintf.texi: Likewise.
17720         * doc/posix-functions/vfprintf.texi: Likewise.
17721         * doc/posix-functions/vprintf.texi: Likewise.
17722         * doc/posix-functions/vsnprintf.texi: Likewise.
17723         * doc/posix-functions/vsprintf.texi: Likewise.
17724         * doc/glibc-functions/obstack_printf.texi: Likewise.
17725         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17726
17727 2010-11-27  Bruno Haible  <bruno@clisp.org>
17728
17729         Fix link error when module libunistring-optional is in use.
17730         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17731         * modules/striconveha-tests (Makefile.am): Likewise.
17732
17733 2010-11-27  Bruno Haible  <bruno@clisp.org>
17734
17735         regex: Mention link dependencies.
17736         * modules/regex (Link): New section.
17737         * modules/rpmatch (Link): Likewise.
17738         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17739
17740 2010-11-27  Bruno Haible  <bruno@clisp.org>
17741
17742         ftoastr: Fix compilation error on Solaris.
17743         * lib/ftoastr.c: Include <config.h>.
17744
17745 2010-11-27  Bruno Haible  <bruno@clisp.org>
17746
17747         getloadavg: Update documentation.
17748         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17749
17750 2010-11-27  Bruno Haible  <bruno@clisp.org>
17751
17752         sys_socket: Fix test whether the functions are declared.
17753         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17754         not <sys/select.h>.
17755
17756 2010-11-27  Bruno Haible  <bruno@clisp.org>
17757
17758         getpass: Make sure to get system declaration on some platforms.
17759         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17760         gl_USE_SYSTEM_EXTENSIONS.
17761         * modules/getpass (Depends-on): Add extensions.
17762
17763 2010-11-26  Bruno Haible  <bruno@clisp.org>
17764
17765         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17766         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17767         'iconv' module is present.
17768         (ICONV_CONST): New macro.
17769         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17770         ICONV_CONST.
17771         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17772         set ICONV_CONST.
17773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17774         here.
17775         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17776         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17777         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17778         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17779         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17780         present.
17781
17782 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17783
17784         ftoastr: comment fix
17785         * lib/ftoastr.c: "little" -> "little or no" in comment
17786
17787 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         stdint: port to GCC 4.3 + OSX + Octave
17790         On this platform, stdint.h is buggy and defines int64_t to long
17791         long int.  The replacement defined it to long int, causing
17792         problems with C++ style name mangling.  Instead, trust the system
17793         definition if INT64_MAX is defined, and likewise for the unsigned
17794         variant.   Problem reported by Jarno Rajahalme in
17795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17796         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17797         and don't mess with int64_t and INT64_MAX in this case.
17798         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17799
17800 2010-11-24  Bruno Haible  <bruno@clisp.org>
17801
17802         doc: Corrections regarding MacOS X 10.4 and 10.5.
17803         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17804         MacOS X.
17805         Reported by Simon Josefsson.
17806
17807 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17808
17809         Uninstall ".bin" files installed by relocwrapper.
17810         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17811         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17812         unless it is already there.
17813
17814 2010-11-21  Bruno Haible  <bruno@clisp.org>
17815
17816         Update for NetBSD 5.0.
17817         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17818         NetBSD; the test fails on NetBSD 5.0.
17819         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17820         about NetBSD.
17821
17822 2010-11-21  Bruno Haible  <bruno@clisp.org>
17823
17824         Update for HP-UX 11.23 and HP-UX 11.31.
17825         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17826         HP-UX.
17827
17828 2010-11-21  Bruno Haible  <bruno@clisp.org>
17829
17830         Update for MacOS X 10.5.
17831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17832         MacOS X; the test fails on MacOS X 10.5.8.
17833         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17834         about MacOS X.
17835
17836 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17837
17838         bootstrap: add bootstrap_sync option.
17839         See discussion at
17840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17842         * build-aux/bootstrap: Accept --bootstrap-sync to update
17843         bootstrap if it is not identical to the local gnulib's
17844         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17845         enable this by default.  Accept --no-bootstrap-sync to disable
17846         it.
17847
17848 2010-11-20  Bruno Haible  <bruno@clisp.org>
17849
17850         Ensure that <features.h> is included before __GLIBC__ is tested.
17851         * lib/printf-parse.h: Include <features.h>.
17852         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17853         Reported by Mike Frysinger <vapier@gentoo.org>.
17854
17855         Ensure that <features.h> is included before __GLIBC__ is tested.
17856         * lib/wchar.in.h: Include <features.h>.
17857         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17858         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17859         Reported by Mike Frysinger <vapier@gentoo.org>.
17860
17861         Ensure that <features.h> is included before __GLIBC__ is tested.
17862         * lib/arpa_inet.in.h: Include <features.h>.
17863         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17864         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17865         Reported by Mike Frysinger <vapier@gentoo.org>.
17866
17867         Ensure that <features.h> is included before __GLIBC__ is tested.
17868         * build-aux/link-warning.h: Include <features.h>.
17869         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17870         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17871         Reported by Mike Frysinger <vapier@gentoo.org>.
17872
17873         Ensure that <features.h> is included before __GLIBC__ is tested.
17874         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17875         Reported by Mike Frysinger <vapier@gentoo.org>.
17876
17877 2010-11-20  Bruno Haible  <bruno@clisp.org>
17878
17879         memmem: Fix autoconf test.
17880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17881
17882 2010-11-20  Bruno Haible  <bruno@clisp.org>
17883
17884         Port to uClibc.
17885         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17886         * lib/fcntl.in.h: Likewise.
17887         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17888         * lib/mbrtowc.c (mbrtowc): Likewise.
17889         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17890         * lib/strerror_r.c: Likewise.
17891         * lib/unistr/u8-strnlen.c: Likewise.
17892         * lib/vasnprintf.c (decimal_point_char): Likewise.
17893         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17894         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17896         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17897         * tests/test-sigaction.c (handler, main): Likewise.
17898         * lib/freading.h: Treat uClibc like a non-glibc platform.
17899         * lib/freading.c: Likewise.
17900         * lib/gettext.h: Likewise.
17901         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17902         Likewise.
17903         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17904         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17905         * lib/propername.c (proper_name_utf8): Likewise.
17906         * lib/spawn.in.h: Likewise.
17907         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17908         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17909         mem_cd_iconveh_internal): Likewise.
17910         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17911         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17912         strstr, strcasestr): Likewise.
17913         * lib/unicodeio.c (unicode_to_mb): Likewise.
17914         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17915         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17916         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17917         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17918         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17919         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17920         * lib/unistr/u8-stpncpy.c: Likewise.
17921         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17922         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17924         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17925         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17926         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17927         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17930         Likewise.
17931         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17932         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17933         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17936         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17937         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17938         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17939         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17940         * tests/test-striconveha.c (main): Likewise.
17941         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17942         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17943         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17944         * doc/posix-functions/getline.texi: Likewise.
17945         Reported by Mike Frysinger <vapier@gentoo.org>.
17946
17947 2010-11-20  Bruno Haible  <bruno@clisp.org>
17948
17949         nproc: Fix condition.
17950         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17951         HAVE_PTHREAD_AFFINITY_NP.
17952
17953 2010-11-20  Bruno Haible  <bruno@clisp.org>
17954
17955         Fix a comment.
17956         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17957
17958 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17959
17960         ftoastr: don't assume snprintf
17961         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17962         Implement a subset of snprintf here, by using sprintf safely.
17963         * modules/ftoastr (Depends-on): Remove snprintf.
17964
17965 2010-11-19  Jim Meyering  <meyering@redhat.com>
17966
17967         test-rename.h: fix compilation failure
17968         * tests/test-rename.h (test_rename): Add omitted "}".
17969
17970 2010-11-17  Jim Meyering  <meyering@redhat.com>
17971
17972         maint.mk: add a URL discussing the no-@acronym policy
17973         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17974
17975 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17976
17977         ftoastr: depend on snprintf, improve comments
17978         * lib/ftoastr.c: Also mention Loitsch's draft.
17979         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17980         needed in the current implementation, but it might simplify
17981         speeding up the code later.
17982         * modules/ftoastr: Depend on snprintf; this improves portability.
17983         Suggested by Bruno Haible in the same email.
17984
17985         ftoastr: port to hosts lacking strtof and strtold
17986         Problem reported by Bruno Haible in
17987         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17988         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17989         environment and strtold (and presumably strtof) are not available.
17990         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17991         (configure.ac): Require gl_C99_STRTOLD.
17992
17993 2010-11-18  Bruno Haible  <bruno@clisp.org>
17994
17995         c-strtold: Avoid link error on AIX 7.
17996         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17997         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17998         (gl_C_STRTOLD): Test whether strtold_l exists.
17999         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18000
18001 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         intprops: new macro INT_BITS_STRLEN_BOUND
18004         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18005         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18006         not exposed.  Also, it uses a slightly tighter bound than before;
18007         though this makes no practical difference, we might as well be as
18008         tight as we easily can.
18009
18010         ftoastr: new module, for lossless conversion of floats to short strings
18011         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18012         * modules/ftoastr: New files.
18013
18014 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18015
18016         bootstrap: port to Solaris sed
18017         * build-aux/bootstrap (get_version): Port to Solaris sed.
18018         See Ralf Wildenhues's note in
18019         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18020
18021 2010-11-14  Jim Meyering  <meyering@redhat.com>
18022
18023         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18024         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18025         and move definition closer to sole use.
18026
18027 2010-11-13  Jim Meyering  <meyering@redhat.com>
18028
18029         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18030         Now we require at least autoconf-2.59, which means the work-around
18031         is no longer needed.
18032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18033         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18034         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18035         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18036         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18037
18038 2010-11-13  Bruno Haible  <bruno@clisp.org>
18039
18040         rename, renameat: Avoid test failures at NFS mounted locations.
18041         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18042         functions.
18043         (test_rename): Use assert_nonexistent.
18044         * tests/test-rename.c: Include <dirent.h>.
18045         * tests/test-renameat.c: Likewise.
18046         Reported by Gary V. Vaughan <gary@gnu.org>.
18047
18048         rename, renameat: Document Linux bug with NFS
18049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18050         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18051         * doc/posix-functions/renameat.texi: Likewise.
18052         Suggested by Eric Blake.
18053
18054 2010-11-13  Bruno Haible  <bruno@clisp.org>
18055
18056         rename test: Add comments.
18057         * tests/test-rename.h (test_rename): Add structure and comments.
18058
18059 2010-11-13  Eric Blake  <eblake@redhat.com>
18060
18061         maintainer-makefile: cover a few more files
18062         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18063         scripts generated within C files, for libvirt.
18064
18065 2010-11-13  Bruno Haible  <bruno@clisp.org>
18066
18067         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18068         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18069         character, return the number of bytes that belong together, not always
18070         1.
18071         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18072         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18073         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18074         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18075         number of bytes of an invalid character.
18076         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18077         (main): Invoke it.
18078         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18079         results.
18080         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18081         malformed byte sequences.
18082         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18083         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18084         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18085         Reported by Ben Pfaff and Paolo Bonzini.
18086
18087 2010-11-13  Bruno Haible  <bruno@clisp.org>
18088
18089         openat: Work around glibc bug with fchownat() and empty file names.
18090         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18091         (gl_FUNC_FCHOWNAT): Invoke it.
18092         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18093         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18094         Reported by Gary V. Vaughan <gary@gnu.org>.
18095
18096 2010-11-13  Bruno Haible  <bruno@clisp.org>
18097
18098         openat: Ensure autoconf macro ordering.
18099         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18100         gl_USE_SYSTEM_EXTENSIONS.
18101         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18102
18103 2010-11-13  Bruno Haible  <bruno@clisp.org>
18104
18105         Update comments.
18106         * lib/unistr/u8-check.c: Update file name in comments.
18107         * lib/unistr/u8-mblen.c: Likewise.
18108         * lib/unistr/u8-prev.c: Likewise.
18109         * lib/unistr/u8-strmblen.c: Likewise.
18110         * lib/unistr/u8-strmbtouc.c: Likewise.
18111
18112 2010-11-13  Jim Meyering  <meyering@redhat.com>
18113
18114         tests: avoid test failure on Solaris 10 due to lack of PATH export
18115         * tests/test-update-copyright.sh: Don't forget to export PATH.
18116
18117         init.sh: ensure that IFS is defined, just in case...
18118         * tests/init.sh (setup_): Ensure that IFS is defined,
18119         so that saving and restoring it works as expected.  This
18120         appears to be useful at least for an old version of dash
18121         from a long time ago (RH 6).  See here for details:
18122         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18123
18124         maint.mk: tighten "test a == b" check
18125         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18126         test to files that contain something like #!/bin/sh.
18127         Without this, coreutils would get two false positives in
18128         the comments of C source files.
18129
18130 2010-11-12  Eric Blake  <eblake@redhat.com>
18131
18132         bootstrap: fix typo in previous attempt
18133         * build-aux/bootstrap (buildreq): Correct the grouping.
18134         Reported by Paul Eggert.
18135
18136         maintainer-makefile: prohibit test x == x
18137         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18138         Based on a report by Matthias Bolte.
18139
18140         bootstrap: allow FreeBSD gzip
18141         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18142         which has no '.' and goes to stderr.
18143         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18144         Reported by Matthias Bolte.
18145
18146         maintainer-makefile: check for i18n setup
18147         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18148         will likely work.
18149
18150 2010-11-12  Bruno Haible  <bruno@clisp.org>
18151
18152         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18153         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18154         * lib/nanosleep.c (nanosleep): Likewise.
18155
18156 2010-11-11  Bruno Haible  <bruno@clisp.org>
18157
18158         fcntl-h: Fix for use of C++ on glibc systems.
18159         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18160         also on glibc systems in C++ mode.
18161         Reported by Gary V. Vaughan <gary@gnu.org>.
18162
18163 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18164
18165         mknod: avoid false failure with dash
18166         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18167
18168 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18169
18170         unlink: Fix "is it should" typo in diagnostic.
18171         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18173
18174 2010-11-11  Bruno Haible  <bruno@clisp.org>
18175
18176         Tests for module 'strerror_r-posix'.
18177         * modules/strerror_r-posix-tests: New file.
18178         * tests/test-strerror_r.c: New file.
18179         * tests/test-string-c++.cc: Check the signature of strerror_r.
18180
18181         New module 'strerror_r-posix'.
18182         * lib/string.in.h (strerror_r): New declaration.
18183         * lib/strerror_r.c: New file.
18184         * m4/strerror_r.m4: New file.
18185         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18186         of strerror_r.
18187         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18188         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18189         * modules/strerror_r-posix: New file.
18190         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18191         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18192         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18193         portability problems.
18194
18195 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18196
18197         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18198         line is also considered for output. Quoted function name in shell
18199         command, so temporary files for functions like MyClass::operator()
18200         are removed correctly without errors.
18201
18202 2010-11-09  Bruno Haible  <bruno@clisp.org>
18203
18204         * doc/posix-functions/strerror.texi: List more failing platforms.
18205
18206         * doc/posix-functions/strerror.texi: Add a comment.
18207
18208 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18209
18210         fdopendir: fix bug on MacOS X when low on file descriptors
18211
18212         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18213         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18214         All callers changed.
18215         (fdopendir): Invoke save_cwd at the top level, not after using
18216         multiple dup() calls to use up file descriptors.  Then retry
18217         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18218         less than the maximum number of open file descriptors, because
18219         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18220         on Mac OS X 10.6.4 for tar 1.24
18221         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18222         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18223         and for tar 1.25
18224         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18225
18226 2010-11-07  Bruno Haible  <bruno@clisp.org>
18227
18228         vasnprintf: Support I flag on glibc systems.
18229         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18230         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18231         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18232         snprintf function.
18233         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18234         glibc systems.
18235         * tests/test-vasnprintf-posix3.c: New file.
18236         * modules/vasnprintf-posix-tests (Files): Add it.
18237         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18238
18239 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18240
18241         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18242         * MODULES.html.sh: For compiler warnings, use name
18243         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18244
18245 2010-11-05  Eric Blake  <eblake@redhat.com>
18246
18247         ceil, floor: avoid spurious failure with icc
18248         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18249         [denormals-as-zero] when optimizing without -mieee-fp option.
18250         * tests/test-floorf2.c (floorf_reference): Likewise.
18251         * tests/test-ceilf1.c (dummy): New function.
18252         (main): Use it to outsmart icc's optimization.
18253         * tests/test-floorf1.c (dummy, main): Likewise.
18254
18255         tests: require working signbit
18256         * modules/ceilf-tests (Depends-on): Add signbit.
18257         * modules/ceill-tests (Depends-on): Likewise.
18258         * modules/floorf-tests (Depends-on): Likewise.
18259         * modules/floorl-tests (Depends-on): Likewise.
18260         * modules/round-tests (Depends-on): Likewise.
18261         * modules/roundf-tests (Depends-on): Likewise.
18262         * modules/roundl-tests (Depends-on): Likewise.
18263         * modules/trunc-tests (Depends-on): Likewise.
18264         * modules/truncf-tests (Depends-on): Likewise.
18265         * modules/truncl-tests (Depends-on): Likewise.
18266
18267         strtod: work around icc bug
18268         * lib/strtod.c (minus_zero): Define to working value.
18269         (strtod): Use it to avoid icc bug.
18270
18271         copysign: enhance tests
18272         * modules/copysign-tests (Files): Add minus-zero.h.
18273         * tests/test-copysign.c (main): Also test zeros.
18274
18275 2010-11-04  Eric Blake  <eblake@redhat.com>
18276
18277         ceil, floor, round, trunc: enhance tests of -0
18278         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18279         * tests/test-ceill.c (main): Likewise.
18280         * tests/test-floorf1.c (main): Likewise.
18281         * tests/test-floorl.c (main): Likewise.
18282         * tests/test-round1.c (main): Likewise.
18283         * tests/test-roundf1.c (main): Likewise.
18284         * tests/test-roundl.c (main): Likewise.
18285         * tests/test-trunc1.c (main): Likewise.
18286         * tests/test-truncf1.c (main): Likewise.
18287         * tests/test-truncl.c (main): Likewise.
18288
18289 2010-11-04  Eric Blake  <eblake@redhat.com>
18290
18291         frexp, tests: work around ICC bug with -zero
18292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18293         works with more compilers.
18294         * tests/minus-zero.h: New file.
18295         * modules/ceilf-tests (Files): Include it.
18296         * modules/ceill-tests (Files): Likewise.
18297         * modules/floorf-tests (Files): Likewise.
18298         * modules/floorl-tests (Files): Likewise.
18299         * modules/frexp-nolibm-tests (Files): Likewise.
18300         * modules/frexp-tests (Files): Likewise.
18301         * modules/frexpl-nolibm-tests (Files): Likewise.
18302         * modules/frexpl-tests (Files): Likewise.
18303         * modules/isnan-tests (Files): Likewise.
18304         * modules/isnand-nolibm-tests (Files): Likewise.
18305         * modules/isnand-tests (Files): Likewise.
18306         * modules/isnanf-nolibm-tests (Files): Likewise.
18307         * modules/isnanf-tests (Files): Likewise.
18308         * modules/isnanl-nolibm-tests (Files): Likewise.
18309         * modules/isnanl-tests (Files): Likewise.
18310         * modules/round-tests (Files): Likewise.
18311         * modules/roundf-tests (Files): Likewise.
18312         * modules/roundl-tests (Files): Likewise.
18313         * modules/ldexpl-tests (Files): Likewise.
18314         * modules/signbit-tests (Files): Likewise.
18315         * modules/snprintf-posix-tests (Files): Likewise.
18316         * modules/sprintf-posix-tests (Files): Likewise.
18317         * modules/strtod-tests (Files): Likewise.
18318         * modules/trunc-tests (Files): Likewise.
18319         * modules/truncf-tests (Files): Likewise.
18320         * modules/truncl-tests (Files): Likewise.
18321         * modules/vsnprintf-posix-tests (Files): Likewise.
18322         * modules/vsprintf-posix-tests (Files): Likewise.
18323         * modules/vasnprintf-posix-tests (Files): Likewise.
18324         * modules/vasprintf-posix-tests (Files): Likewise.
18325         * tests/test-ceilf1.c (main): Use it.
18326         * tests/test-ceill.c (main): Likewise.
18327         * tests/test-floorf1.c (main): Likewise.
18328         * tests/test-floorl.c (main): Likewise.
18329         * tests/test-frexp.c (main): Likewise.
18330         * tests/test-frexpl.c (main): Likewise.
18331         * tests/test-isnan.c (main): Likewise.
18332         * tests/test-isnand.h (main): Likewise.
18333         * tests/test-isnanf.h (main): Likewise.
18334         * tests/test-isnanl.h (main): Likewise.
18335         * tests/test-ldexpl.c (main): Likewise.
18336         * tests/test-round.c (main): Likewise.
18337         * tests/test-roundf.c (main): Likewise.
18338         * tests/test-roundl.c (main): Likewise.
18339         * tests/test-signbit.c (test_signbitf, test_signbitd)
18340         (test_signbitl): Likewise.
18341         * tests/test-snprintf-posix.h (test_function): Likewise.
18342         * tests/test-sprintf-posix.h (test_function): Likewise.
18343         * tests/test-strtod.c (main): Likewise.
18344         * tests/test-trunc1.c (main): Likewise.
18345         * tests/test-truncf1.c (main): Likewise.
18346         * tests/test-truncl.c (main): Likewise.
18347
18348         isnanl: work around icc bug
18349         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18350
18351 2010-11-03  Eric Blake  <eblake@redhat.com>
18352
18353         tests: fix compiler warnings
18354         * tests/test-getopt.h (test_getopt): Fix condition.
18355         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18356         * tests/test-pipe2.c (main): Likewise.
18357         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18358
18359         utimens: fix broken m4 test
18360         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18361
18362 2010-10-28  Bruno Haible  <bruno@clisp.org>
18363
18364         posix_spawn*, getdtablesize: Relax license.
18365         * modules/posix_spawn (License): Change to LGPLv2+.
18366         * modules/posix_spawnp (License): Likewise.
18367         * modules/posix_spawn-internal (License): Likewise.
18368         * modules/posix_spawnattr_init (License): Likewise.
18369         * modules/posix_spawnattr_getflags (License): Likewise.
18370         * modules/posix_spawnattr_setflags (License): Likewise.
18371         * modules/posix_spawnattr_getpgroup (License): Likewise.
18372         * modules/posix_spawnattr_setpgroup (License): Likewise.
18373         * modules/posix_spawnattr_getschedparam (License): Likewise.
18374         * modules/posix_spawnattr_setschedparam (License): Likewise.
18375         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18376         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18377         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18378         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18379         * modules/posix_spawnattr_getsigmask (License): Likewise.
18380         * modules/posix_spawnattr_setsigmask (License): Likewise.
18381         * modules/posix_spawnattr_destroy (License): Likewise.
18382         * modules/posix_spawn_file_actions_init (License): Likewise.
18383         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18384         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18385         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18386         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18387         * modules/getdtablesize (License): Likewise.
18388         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18389
18390 2010-10-26  Bruno Haible  <bruno@clisp.org>
18391
18392         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18393         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18394         Cygwin and mingw.
18395         Suggested by Eric Blake.
18396
18397 2010-10-26  Bruno Haible  <bruno@clisp.org>
18398
18399         stdio: Work around compilation error due to renameat() on Solaris 10.
18400         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18401         * lib/renameat.c: Don't include <unistd.h> here.
18402         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18403         Reported by Paul Eggert and Eric Blake.
18404
18405 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18406
18407         renameat: port to Solaris 10, which declares renameat in unistd.h
18408
18409         * lib/renameat.c: Include unistd.h before stdio.h, because
18410         Solaris 10 declares renameat in unistd.h.  Problem encountered
18411         when building GNU tar 1.24 on Solaris 10.
18412
18413 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18414
18415         fdopendir: fix C89 compilation
18416         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18417         compilers.
18418
18419 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18420
18421         inttostr: simplify by removing unnecessary redundancy
18422         * lib/anytostr.c: Don't include verify.h.
18423         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18424         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18425         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18426         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18427         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18428         Likewise.
18429         * modules/inttostr (Depends-on): Remove 'verify'.
18430
18431 2010-10-23  Bruno Haible  <bruno@clisp.org>
18432
18433         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18434         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18435         Reported by Eric Blake.
18436
18437 2010-10-23  Bruno Haible  <bruno@clisp.org>
18438
18439         Tests: Fix LOCALE_JA on MirBSD 10.
18440         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18441         to an UTF-8 locale.
18442         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18444         Reported by Eric Blake.
18445
18446 2010-10-21  Bruno Haible  <bruno@clisp.org>
18447
18448         nl_langinfo test: Avoid test failure on NetBSD 5.
18449         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18450         Reported by Eric Blake.
18451
18452 2010-10-21  Eric Blake  <eblake@redhat.com>
18453
18454         c-stack: work around libsigsegv 2.8 bug
18455         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18456         overflow on at least PowerPC64.
18457
18458 2010-10-17  Bruno Haible  <bruno@clisp.org>
18459
18460         userspec: Drop redundant file.
18461         * modules/userspec (Files): Remove lib/inttostr.h.
18462
18463 2010-10-17  Bruno Haible  <bruno@clisp.org>
18464
18465         nl_langinfo tests: Silence some warnings.
18466         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18467         Reported by Jim Meyering.
18468
18469 2010-10-17  Bruno Haible  <bruno@clisp.org>
18470
18471         Make use of GCC's attribute __alloc_size__.
18472         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18473         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18474         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18475         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18476         __alloc_size__.
18477         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18478         Suggested by Jim Meyering.
18479
18480 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18481
18482         bootstrap: anchor .gitignore entries.
18483         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18484         with...
18485         (insert_vc_ignore): ... this new function, which prepends `/' to
18486         all .gitignore entries before passing them to
18487         insert_sorted_if_absent.
18488
18489 2010-10-16  Bruno Haible  <bruno@clisp.org>
18490
18491         nextafter: Fix configure check.
18492         * modules/nextafter (configure.ac): Correct expected prototype.
18493
18494 2010-10-16  Bruno Haible  <bruno@clisp.org>
18495
18496         termios: Update documentation.
18497         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18498
18499 2010-10-16  Bruno Haible  <bruno@clisp.org>
18500
18501         tests: Make them compile with TinyCC.
18502         * tests/test-strstr.c (main): Remove parentheses around array
18503         initializer.
18504
18505 2010-10-15  Eric Blake  <eblake@redhat.com>
18506
18507         ignore-value: make header idempotent
18508         * lib/ignore-value.h: Add double-inclusion guards.
18509         Reported by Stefan Berger.
18510
18511 2010-10-15  Jim Meyering  <meyering@redhat.com>
18512
18513         GNUmakefile: handle "stable" target, not "major"
18514         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18515         lists in maint.mk and announce-gen.  Without this, "make stable"
18516         would fail to ensure that $(VERSION) is up to date.
18517
18518 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18519
18520         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18521         & co.
18522
18523 2010-10-14  Bruno Haible  <bruno@clisp.org>
18524
18525         vasnprintf: Don't set errno to 0.
18526         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18527         block that sets it to 0.
18528         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18529
18530 2010-10-14  Bruno Haible  <bruno@clisp.org>
18531
18532         socketlib: Fix.
18533         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18534         gl_PREREQ_SYS_H_WINSOCK2.
18535         Reported by Ian Beckwith <ianb@erislabs.net>.
18536
18537 2010-10-13  Jim Meyering  <meyering@redhat.com>
18538
18539         test-select-stdin.c: avoid warn_unused_result warnings
18540         * tests/test-select-stdin.c: Include "macros.h".
18541         ASSERT that read and fflush succeed.
18542
18543 2010-10-13  Jim Meyering  <meyering@redhat.com>
18544
18545         git-version-gen: do require git-VC'd files in cwd
18546         * build-aux/git-version-gen: Reject a git version string
18547         if there are no commits associated with the current directory.
18548         This avoids an unlikely false-positive (unrelated dir whose parent
18549         repository also contains a tag matching v*), as pointed out
18550         by Giuseppe Scrivano in
18551         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18552
18553 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18554
18555         argv-iter: omit nonconforming declaration
18556         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18557         enum arg_iter_err declaration, which doesn't conform to C99.
18558         Solaris 10 cc warns about this.
18559
18560 2010-10-13  Eric Blake  <eblake@redhat.com>
18561
18562         termios: fix compilation on mingw
18563         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18564         (gl_TERMIOS_H): Adjust it on mingw.
18565         * modules/termios (Makefile.am): Substitute new key.
18566         * lib/termios.in.h (includes): Make include_next conditional.
18567         * doc/posix-headers/termios.texi (termios.h): Update
18568         documentation.
18569         Reported by Daniel P. Berrange.
18570
18571 2010-10-13  Jim Meyering  <meyering@redhat.com>
18572
18573         git-version-gen: don't require that .git/ be in the current dir
18574         * build-aux/git-version-gen: Adjust this script so that it works
18575         when run from any working directory beneath the top-level .git/-
18576         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18577         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18578
18579         test-select: avoid warn_unused_result warnings
18580         * tests/test-select.c: Include "macros.h".
18581         ASSERT that each call to read, write, and pipe succeeds.
18582         While not technically required, also check each "close".
18583         * modules/select-tests (Files): Add tests/macros.h.
18584
18585         test-symlinkat: remove declaration of unused local
18586         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18587
18588         test-inttostr: avoid shadowing warnings
18589         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18590         and use malloc rather than the stack for the same reason as
18591         mentioned in the comment justifying the other allocation.
18592
18593 2010-10-11  Bruno Haible  <bruno@clisp.org>
18594
18595         stdlib: Allow multiple gnulib generated replacements to coexist.
18596         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18597         Reported by Sam Steingold <sds@gnu.org>.
18598
18599 2010-10-11  Jim Meyering  <meyering@redhat.com>
18600
18601         fix a documentation typo
18602         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18603
18604 2010-10-11  Eric Blake  <eblake@redhat.com>
18605
18606         futimens: work around Solaris 11 bug
18607         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18608         * tests/test-futimens.h (test_futimens): Enhance, rather than
18609         weaken test.
18610         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18611
18612 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18613
18614         Indentation.
18615         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18616         higher-level operators more to the left.
18617
18618 2010-10-11  Jim Meyering  <meyering@redhat.com>
18619
18620         test-futimens: avoid unwarranted test failure on Solaris 5.11
18621         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18622         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18623         because it tries to dereference the NULL name argument.
18624
18625 2010-10-11  Bruno Haible  <bruno@clisp.org>
18626
18627         Indentation.
18628         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18629         indentation.
18630
18631 2010-10-11  Jim Meyering  <meyering@redhat.com>
18632
18633         spawn.in.h: make indentation consistent with parentheses
18634         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18635         Make indentation consistent with parentheses.
18636
18637 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18638
18639         Fix mismatched parens in previous commit
18640         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18641         parens.
18642
18643 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18644
18645         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18646
18647         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18648         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18649         * lib/malloca.c: Include "verify.h".
18650         (verify1): Remove, replacing with a verify call.
18651         * lib/relocwrapper.c (verify1): Likewise.
18652         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18653         Likewise.
18654         * modules/malloca (Depends-on): Add 'verify'.
18655         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18656         * modules/vasnprintf (Depends-on): Add 'verify'.
18657         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18658         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18659         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18660         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18661         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18662         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18663         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18664
18665         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18666
18667         Formerly the style was sometimes 2*X - 1, because the C standard
18668         was wrongly thought to disallow ?: in integral constant expressions.
18669         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18670         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18672         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18673         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18674         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18675         verify that time_t cannot be floating.
18676
18677 2010-10-08  Eric Blake  <eblake@redhat.com>
18678
18679         time: enforce recent POSIX ruling that time_t is integral
18680         * lib/time.in.h (__time_t_must_be_integral): Detect any
18681         problematic systems, allowing the rest of gnulib to assume POSIX.
18682
18683 2010-10-08  Jim Meyering  <meyering@redhat.com>
18684
18685         fdopendir: fix a bug on systems lacking openat and /proc support
18686         OpenBSD 4.7 is one such system.  The most noticeable effect was
18687         failure of any application making nontrivial use of fts: rm, du,
18688         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18689           ./rm: traversal failed: `a': Bad file descriptor
18690         Debugging that, you see that even though FD 6 was closed just
18691         prior to the opendir call in fd_clone_opendir, its resulting
18692         dir->dd_fd was 8, rather than the expected value of 6:
18693
18694         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18695         93                close (fd);
18696         (gdb) n
18697         94                dir = fd_clone_opendir (dupfd);
18698         (gdb) n
18699         95                saved_errno = errno;
18700         (gdb) p dir->dd_fd
18701         $11 = 8
18702
18703         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18704         The problem is that on OpenBSD, fd_clone_opendir has to resort
18705         to using the old-style save/restore CWD mechanism, due to its
18706         lack of openat/proc support, and *that* would steal the FD (6)
18707         that opendir was supposed to use.
18708
18709         The fix is to squirrel away the desired FD so that save_cwd uses a
18710         different one, and then free the dest FD right before calling opendir.
18711         That guarantees opendir will use the required file descriptor.
18712
18713         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18714
18715 2010-10-08  Bruno Haible  <bruno@clisp.org>
18716
18717         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18718         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18719
18720 2010-10-08  Bruno Haible  <bruno@clisp.org>
18721
18722         nanosleep: Make replacement POSIX compliant.
18723         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18724         is out of range.
18725         Reported by Jim Meyering.
18726
18727 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         bootstrap: add hook for altering gnulib.mk, for Bison
18730         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18731         the Bison bootstrapping process can rewrite file names and variables
18732         in this file before later parts of 'bootstrap' use the file.
18733         Bison wants to include lib/gnulib.mk from the top-level makefile,
18734         so it needs the file names in this file to be relative to the top
18735         level, not relative to lib; plus it needs variable names to be
18736         rewritten.
18737         (slurp): Use the new function.
18738
18739         bootstrap: reformat for readability
18740         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18741
18742 2010-10-08  Eric Blake  <eblake@redhat.com>
18743
18744         docs: update cygwin progress
18745         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18746         1.7.7.
18747         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18748         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18749         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18750         * doc/posix-functions/carg.texi (carg): Likewise.
18751         * doc/posix-functions/cargf.texi (cargf): Likewise.
18752         * doc/posix-functions/casin.texi (casin): Likewise.
18753         * doc/posix-functions/casinf.texi (casinf): Likewise.
18754         * doc/posix-functions/casinh.texi (casinh): Likewise.
18755         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18756         * doc/posix-functions/catan.texi (catan): Likewise.
18757         * doc/posix-functions/catanf.texi (catanf): Likewise.
18758         * doc/posix-functions/catanh.texi (catanh): Likewise.
18759         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18760         * doc/posix-functions/ccos.texi (ccos): Likewise.
18761         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18762         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18763         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18764         * doc/posix-functions/cexp.texi (cexp): Likewise.
18765         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18766         * doc/posix-functions/cimag.texi (cimag): Likewise.
18767         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18768         * doc/posix-functions/clog.texi (clog): Likewise.
18769         * doc/posix-functions/clogf.texi (clogf): Likewise.
18770         * doc/posix-functions/conj.texi (conj): Likewise.
18771         * doc/posix-functions/conjf.texi (conjf): Likewise.
18772         * doc/posix-functions/cpow.texi (cpow): Likewise.
18773         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18774         * doc/posix-functions/cproj.texi (cproj): Likewise.
18775         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18776         * doc/posix-functions/creal.texi (creal): Likewise.
18777         * doc/posix-functions/crealf.texi (crealf): Likewise.
18778         * doc/posix-functions/csin.texi (csin): Likewise.
18779         * doc/posix-functions/csinf.texi (csinf): Likewise.
18780         * doc/posix-functions/csinh.texi (csinh): Likewise.
18781         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18782         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18783         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18784         * doc/posix-functions/ctan.texi (ctan): Likewise.
18785         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18786         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18787         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18788         * doc/posix-headers/complex.texi (complex.h): Likewise.
18789
18790 2010-10-07  Jim Meyering  <meyering@redhat.com>
18791
18792         parse-datetime: avoid compilation failure on OpenBSD 4.7
18793         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18794         This works around a compilation failure on OpenBSD 4.7:
18795         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18796
18797 2010-10-07  Eric Blake  <eblake@redhat.com>
18798
18799         docs: update cygwin progress
18800         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18801         1.7.6.
18802         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18803         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18804         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18805         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18806         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18807         Likewise.
18808         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18809         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18810         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18811         Likewise.
18812         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18813         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18814         Likewise.
18815         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18816         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18817         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18818         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18819         Likewise.
18820         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18821         Likewise.
18822         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18823
18824         docs: update parse-datetime history
18825         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18826         documentation of this function's history and alternatives.
18827
18828         cygwin: use more robust version check
18829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18830         exclude an eventual cygwin 1.9.1.
18831         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18833         (gl_FUNC_STRCASESTR): Likewise.
18834         Reported by Bruno Haible.
18835
18836 2010-10-06  Bruno Haible  <bruno@clisp.org>
18837
18838         string, sys_select: Avoid #including large headers unless necessary.
18839         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18840         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18841         OSF/1, BeOS, Haiku.
18842         Reported by Jim Meyering.
18843
18844 2010-10-05  Eric Blake  <eblake@redhat.com>
18845
18846         memmem, strstr, strcasestr: fix bug with long periodic needle
18847         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18848         periodic needle having false positive.
18849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18850         and cygwin 1.7.7.
18851         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18853         (gl_FUNC_STRCASESTR): Likewise.
18854         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18855         * tests/test-memmem.c (main): Expose the bug.
18856         * tests/test-strcasestr.c (main): Likewise.
18857         * tests/test-strstr.c (main): Likewise.
18858         * tests/test-c-strcasestr.c (main): Likewise.
18859         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18860         * doc/posix-functions/strstr.texi (strstr): Likewise.
18861         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18862         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18863
18864 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18865
18866         parse-datetime: do some more renaming
18867         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18868         parse_datetime, not get_date.  Mention the renaming.
18869         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18870         in comments.
18871         * m4/bison.m4: Likewise.
18872
18873 2010-10-05  Eric Blake  <eblake@redhat.com>
18874
18875         parse-datetime: better name than get_date
18876         * NEWS: Reword the deprecation notice.
18877         * modules/get_date: Rename to modules/parse-datetime.
18878         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18879         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18880         * lib/get_date.y: Rename to lib/parse-datetime.y.
18881         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18882         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18883         * doc/getdate.texi: Provide fallback wrapper.
18884         * lib/getdate.h: Move guts, and wrap...
18885         * lib/parse-datetime.h: ...new file.
18886         * lib/parse-datetime.y (get_date): Rename...
18887         (parse_datetime): ...to this.
18888         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18889         (gl_PARSE_DATETIME): ...to this.
18890         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18891         documentation.
18892         * modules/getdate (Files): Provide fallback docs and header.
18893         (Notice, Depends-on): Update references.
18894         * tests/test-parse-datetime.c: Likewise.
18895         * DEPENDENCIES: Likewise.
18896         * MODULES.html.sh (Date and time <time.h>): Likewise.
18897         * doc/parse-datetime.texi (Date input formats)
18898         (Authors of parse_datetime): Likewise.
18899         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18900         (Include): Likewise.
18901         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18902         * gnulib-tool: Likewise.
18903         * m4/bison.m4 (gl_BISON): Likewise.
18904         Suggested by Bruno Haible.
18905
18906 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18907
18908         more ports to Solaris tr, which needs [] around ranges
18909         * gnulib-tool: Solaris tr needs [] around ranges.
18910         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18911         * tests/test-pipe-filter-gi1.c (main): Likewise.
18912         * tests/test-pipe-filter-ii1.c (main): Likewise.
18913
18914 2010-10-05  Eric Blake  <eblake@redhat.com>
18915
18916         bootstrap: fix Solaris regression
18917         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18918         around ranges.
18919         Reported by Pádraig Brady.
18920
18921         bootstrap: work with pkg-config
18922         * build-aux/bootstrap (check_versions): Also transliterate - in
18923         prerequisite name.
18924         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18925         prerequisites that were already found, to avoid confusion.
18926         Reported by Justin Clift.
18927
18928         faccessat: remove unused wrappers
18929         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18930         presence of these wrappers dragged in -lgen on Solaris.
18931         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18932
18933 2010-10-05  Jim Meyering  <meyering@redhat.com>
18934
18935         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18936         * Makefile (sc_pragma_columns): New syntax-check rule.
18937
18938 2010-10-04  Bruno Haible  <bruno@clisp.org>
18939
18940         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18941         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18942         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18943         Reported by Bruce Korb and Eric Blake.
18944
18945 2010-10-04  Bruno Haible  <bruno@clisp.org>
18946
18947         threadlib: Make option --with-libpth-prefix work.
18948         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18949         use $LIBPTH, not just -lpth.
18950
18951 2010-10-04  Bruno Haible  <bruno@clisp.org>
18952
18953         Avoid line length limitation from HP NonStop system header files.
18954         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18955         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18956         * lib/ctype.in.h: Likewise.
18957         * lib/dirent.in.h: Likewise.
18958         * lib/errno.in.h: Likewise.
18959         * lib/fcntl.in.h: Likewise.
18960         * lib/float.in.h: Likewise.
18961         * lib/getopt.in.h: Likewise.
18962         * lib/iconv.in.h: Likewise.
18963         * lib/inttypes.in.h: Likewise.
18964         * lib/langinfo.in.h: Likewise.
18965         * lib/locale.in.h: Likewise.
18966         * lib/math.in.h: Likewise.
18967         * lib/netdb.in.h: Likewise.
18968         * lib/netinet_in.in.h: Likewise.
18969         * lib/poll.in.h: Likewise.
18970         * lib/pthread.in.h: Likewise.
18971         * lib/pty.in.h: Likewise.
18972         * lib/sched.in.h: Likewise.
18973         * lib/se-selinux.in.h: Likewise.
18974         * lib/search.in.h: Likewise.
18975         * lib/signal.in.h: Likewise.
18976         * lib/spawn.in.h: Likewise.
18977         * lib/stdarg.in.h: Likewise.
18978         * lib/stddef.in.h: Likewise.
18979         * lib/stdint.in.h: Likewise.
18980         * lib/stdio.in.h: Likewise.
18981         * lib/stdlib.in.h: Likewise.
18982         * lib/string.in.h: Likewise.
18983         * lib/strings.in.h: Likewise.
18984         * lib/sys_file.in.h: Likewise.
18985         * lib/sys_ioctl.in.h: Likewise.
18986         * lib/sys_select.in.h: Likewise.
18987         * lib/sys_socket.in.h: Likewise.
18988         * lib/sys_stat.in.h: Likewise.
18989         * lib/sys_time.in.h: Likewise.
18990         * lib/sys_times.in.h: Likewise.
18991         * lib/sys_utsname.in.h: Likewise.
18992         * lib/sys_wait.in.h: Likewise.
18993         * lib/sysexits.in.h: Likewise.
18994         * lib/termios.in.h: Likewise.
18995         * lib/time.in.h: Likewise.
18996         * lib/unistd.in.h: Likewise.
18997         * lib/wchar.in.h: Likewise.
18998         * lib/wctype.in.h: Likewise.
18999         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19000         * modules/ctype (Makefile.am): Likewise.
19001         * modules/dirent (Makefile.am): Likewise.
19002         * modules/errno (Makefile.am): Likewise.
19003         * modules/fcntl-h (Makefile.am): Likewise.
19004         * modules/float (Makefile.am): Likewise.
19005         * modules/getopt-posix (Makefile.am): Likewise.
19006         * modules/iconv-h (Makefile.am): Likewise.
19007         * modules/inttypes (Makefile.am): Likewise.
19008         * modules/langinfo (Makefile.am): Likewise.
19009         * modules/locale (Makefile.am): Likewise.
19010         * modules/math (Makefile.am): Likewise.
19011         * modules/netdb (Makefile.am): Likewise.
19012         * modules/netinet_in (Makefile.am): Likewise.
19013         * modules/poll-h (Makefile.am): Likewise.
19014         * modules/pthread (Makefile.am): Likewise.
19015         * modules/pty (Makefile.am): Likewise.
19016         * modules/sched (Makefile.am): Likewise.
19017         * modules/search (Makefile.am): Likewise.
19018         * modules/selinux-h (Makefile.am): Likewise.
19019         * modules/signal (Makefile.am): Likewise.
19020         * modules/spawn (Makefile.am): Likewise.
19021         * modules/stdarg (Makefile.am): Likewise.
19022         * modules/stddef (Makefile.am): Likewise.
19023         * modules/stdint (Makefile.am): Likewise.
19024         * modules/stdio (Makefile.am): Likewise.
19025         * modules/stdlib (Makefile.am): Likewise.
19026         * modules/string (Makefile.am): Likewise.
19027         * modules/strings (Makefile.am): Likewise.
19028         * modules/sys_file (Makefile.am): Likewise.
19029         * modules/sys_ioctl (Makefile.am): Likewise.
19030         * modules/sys_select (Makefile.am): Likewise.
19031         * modules/sys_socket (Makefile.am): Likewise.
19032         * modules/sys_stat (Makefile.am): Likewise.
19033         * modules/sys_time (Makefile.am): Likewise.
19034         * modules/sys_times (Makefile.am): Likewise.
19035         * modules/sys_utsname (Makefile.am): Likewise.
19036         * modules/sys_wait (Makefile.am): Likewise.
19037         * modules/sysexits (Makefile.am): Likewise.
19038         * modules/termios (Makefile.am): Likewise.
19039         * modules/time (Makefile.am): Likewise.
19040         * modules/unistd (Makefile.am): Likewise.
19041         * modules/wchar (Makefile.am): Likewise.
19042         * modules/wctype (Makefile.am): Likewise.
19043
19044 2010-10-04  Bruno Haible  <bruno@clisp.org>
19045
19046         read-file tests: Avoid a test failure on NonStop Kernel.
19047         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19048         a regular file.
19049         Reported by Joachim Schmitz <schmitz@hp.com>.
19050
19051 2010-10-03  Bruno Haible  <bruno@clisp.org>
19052
19053         gnulib-tool: Fixes for --create-testdir with --libtool.
19054         * gnulib-tool (func_get_automake_snippet): Don't augment
19055         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19056         an executable.
19057         (func_create_testdir): Handle module 'alloca' like func_import.
19058         Reported by Bruce Korb <bruce.korb@gmail.com>.
19059
19060 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         Avoid some lines longer than 80 characters.
19063         * lib/stdint.in.h: Break long comment lines.
19064         * lib/math.in.h: Likewise.
19065         (_GL_NUM_UINT_WORDS): New macro, for readability.
19066         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19067         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19068         * lib/stdlib.in.h: Likewise.
19069         * lib/spawn.in.h: Likewise.
19070         * lib/sys_socket.in.h: Update an URL.
19071         * lib/sys_stat.in.h: Break long line.
19072
19073 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19074
19075         Improve pmccabe2html.
19076         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19077         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19078         when the sources change. Remove the line in the HTML about "Used
19079         ranges" (which implied that there might be other unused ranges),
19080         rename "Resume" to "Summary" (easier to understand for more users).
19081         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19082         styles, and some unnecessary blank lines.
19083
19084 2010-10-03  Bruno Haible  <bruno@clisp.org>
19085             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19086
19087         acl: Add support for ACLs on NonStop Kernel.
19088         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19089         Check whether the function aclsort() exists.
19090         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19091         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19092         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19093         (acl_nontrivial [HAVE_ACLSORT]: New function.
19094         (file_has_acl): Implement for NonStop Kernel.
19095         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19096         (qset_acl): Implement for NonStop Kernel.
19097         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19098         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19099         (main): Implement for NonStop Kernel.
19100         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19101         Kernel. Handle this flavor.
19102         * tests/test-set-mode-acl.sh: Likewise.
19103         * tests/test-copy-acl.sh: Likewise.
19104         * tests/test-copy-file.sh: Likewise.
19105
19106 2010-10-03  Bruno Haible  <bruno@clisp.org>
19107
19108         Info about ACLs on NonStop Kernel.
19109         * doc/acl-resources.txt: Add info about NonStop Kernel.
19110         References by Joachim Schmitz <schmitz@hp.com>.
19111
19112 2010-10-02  Bruno Haible  <bruno@clisp.org>
19113
19114         Define missing EDQUOT on NonStop Kernel.
19115         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19116         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19118         missing.
19119         * doc/posix-headers/errno.texi: Mention the NSK bug.
19120         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19121         Reported by Joachim Schmitz <schmitz@hp.com>.
19122
19123 2010-10-02  Bruno Haible  <bruno@clisp.org>
19124
19125         Update doc for POSIX:2008.
19126         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19127         Update URL of POSIX specification.
19128
19129 2010-10-02  Bruno Haible  <bruno@clisp.org>
19130
19131         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19132         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19133         from gnulib, not from Automake.
19134
19135 2010-10-02  Bruno Haible  <bruno@clisp.org>
19136
19137         New module 'system-posix'.
19138         * modules/system-posix: New file.
19139         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19140         module is present.
19141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19142         GNULIB_SYSTEM_POSIX.
19143         * modules/stdlib (Depends-on): Remove sys_wait.
19144         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19145         * doc/posix-functions/system.texi: Mention the new module.
19146         * doc/posix-headers/stdlib.texi: Likewise.
19147         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19148         define test_sys_wait_macros to a no-op.
19149         Reported by Sam Steingold <sds@gnu.org>.
19150
19151 2010-09-30  Bruno Haible  <bruno@clisp.org>
19152
19153         More renaming from 'getdate' to 'get_date'.
19154         * doc/get_date.texi: Renamed from doc/getdate.texi.
19155         * modules/get_date (Files): Update.
19156         * MODULES.html.sh (Date and time <time.h>): Update.
19157         * DEPENDENCIES: Update.
19158         * gnulib-tool: Update comment.
19159         * m4/bison.m4 (gl_BISON): Likewise.
19160         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19161
19162 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19163
19164         bootstrap: support ACLOCAL_FLAGS during aclocal
19165         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19166         can add additional -I dir for third-party .m4 files.
19167
19168 2010-09-30  Eric Blake  <eblake@redhat.com>
19169
19170         bootstrap: use glibtoolize on MacOS
19171         * build-aux/bootstrap (check_versions): Convert libtool into
19172         libtoolize.
19173         (tool search): Move libtool check earlier, and look for
19174         glibtoolize for MacOS.
19175         (gnulib_tool_options): Auto-add --libtool when appropriate.
19176         Reported by Justin Clift.
19177
19178         poll: fix typo that broke test on MacOS
19179         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19180         Reported by Justin Clift.
19181
19182         getdate: rename to get_date
19183         Note: getdate.h is not renamed, to minimize client impact.
19184         * modules/getdate: Mark obsolete.  Move old contents...
19185         * modules/get_date: ...to new module name.
19186         * modules/getdate-tests: Move...
19187         * modules/get_date-tests: ...here.
19188         * m4/getdate.m4: Move...
19189         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19190         * lib/getdate.y: Move...
19191         * lib/get_date.y: ...here.
19192         * tests/test-getdate.c: Move...
19193         * tests/test-get_date.c: ...here.
19194         * doc/posix-functions/getdate.texi (getdate): Update name.
19195         * NEWS: Mention the change.
19196
19197 2010-09-29  Bruno Haible  <bruno@clisp.org>
19198
19199         Separate the module 'waitpid' from the module 'sys_wait'.
19200         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19201         present.
19202         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19203         gl_MODULE_INDICATOR_FOR_TESTS.
19204         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19205         * modules/sys_wait (Depends-on): Remove waitpid.
19206         (Makefile.am): Substitute GNULIB_WAITPID.
19207         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19208         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19209         signature only if the 'waitpid' module is present.
19210         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19211         * NEWS: Mention the change.
19212         * modules/grantpt (Depends-on): Add waitpid.
19213         * modules/wait-process (Depends-on): Likewise.
19214
19215 2010-09-29  Bruno Haible  <bruno@clisp.org>
19216
19217         More tests for module 'sys_wait'.
19218         * modules/sys_wait-c++-tests: New file.
19219         * tests/test-sys_wait-c++.cc: New file.
19220         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19221         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19222
19223 2010-09-29  Bruno Haible  <bruno@clisp.org>
19224
19225         New module 'waitpid'.
19226         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19227         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19228         Don't include <process.h>.
19229         (waitpid): Declare only, using modern idiom.
19230         * m4/waitpid.m4: New file.
19231         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19232         * modules/waitpid: New file.
19233         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19234         (Makefile.am): Update.
19235         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19236
19237 2010-09-28  Bruno Haible  <bruno@clisp.org>
19238
19239         poll: Assume ANSI C.
19240         * lib/poll.c (poll): Use an ANSI C declaration.
19241
19242 2010-09-28  Bruno Haible  <bruno@clisp.org>
19243
19244         poll-h: Create poll.h on all platforms.
19245         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19246         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19247         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19248         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19249         (gl_REPLACE_POLL_H): Don't set POLL_H.
19250         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19251         * modules/poll-h (Depends-on): Add include_next.
19252         (Makefile.am): Create poll.h unconditionally. Substitute also
19253         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19254
19255 2010-09-28  Bruno Haible  <bruno@clisp.org>
19256
19257         Tests for module 'poll-h'.
19258         * modules/poll-h-c++-tests: New file.
19259         * tests/test-poll-h-c++.cc: New file.
19260
19261         Tests for module 'poll-h'.
19262         * modules/poll-h-tests: New file.
19263         * tests/test-poll-h.c: New file.
19264
19265 2010-09-28  Bruno Haible  <bruno@clisp.org>
19266
19267         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19268         * modules/poll-h (Depends-on): Add 'extensions'.
19269
19270 2010-09-28  Bruno Haible  <bruno@clisp.org>
19271
19272         New module 'poll-h'.
19273         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19274         (poll): Use modern idiom.
19275         * modules/poll-h: New file.
19276         * modules/poll (Files): Remove lib/poll.in.h.
19277         (Depends-on): Add poll-h.
19278         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19279         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19280         * m4/poll_h.m4: New file.
19281         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19282         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19283         and invoke gl_REPLACE_POLL_H.
19284         * lib/poll.c: Use common idiom.
19285         * tests/test-poll.c: Likewise.
19286         * doc/posix-headers/poll.texi: Mention the poll-h module.
19287         Suggested by Eric Blake.
19288
19289 2010-09-26  Bruno Haible  <bruno@clisp.org>
19290
19291         sys_wait: Implement WSTOPSIG.
19292         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19293         Reported by Simon Josefsson.
19294
19295 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19296
19297         stdlib, sys_wait: Avoid compilation error on mingw.
19298         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19299
19300 2010-09-26  Bruno Haible  <bruno@clisp.org>
19301
19302         stdlib tests: Avoid code duplication.
19303         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19304         * modules/sys_wait-tests (Files): Likewise.
19305         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19306         * tests/test-stdlib.c: Include test-sys_wait.h.
19307         (main): Invoke test_sys_wait_macros.
19308         * tests/test-sys_wait.c: Include test-sys_wait.h.
19309         (main): Invoke test_sys_wait_macros.
19310
19311 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19312
19313         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19314         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19315         sure Windows sockets are working before calling getaddrinfo.
19316         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19317         * doc/gnulib.texi (Windows sockets): Fix typo.
19318
19319 2010-09-25  Bruno Haible  <bruno@clisp.org>
19320
19321         Tests for module 'regex-quote'.
19322         * modules/regex-quote-tests: New file.
19323         * tests/test-regex-quote.c: New file.
19324
19325         New module 'regex-quote'.
19326         * lib/regex-quote.h: New file.
19327         * lib/regex-quote.c: New file.
19328         * modules/regex-quote: New file.
19329         Suggested by Reuben Thomas <rrt@sc3d.org>.
19330
19331 2010-09-24  Bruno Haible  <bruno@clisp.org>
19332
19333         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19334         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19335
19336 2010-09-23  Bruno Haible  <bruno@clisp.org>
19337
19338         setenv: Relax license.
19339         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19340         Blake.
19341         Requested by Eric Blake.
19342
19343 2010-09-22  Bruno Haible  <bruno@clisp.org>
19344
19345         termios: Relax license.
19346         * modules/termios (License): Change to LGPLv2+.
19347         Requested by Eric Blake.
19348
19349 2010-09-22  Bruno Haible  <bruno@clisp.org>
19350
19351         threadlib: Allow the package to change the default to 'no'.
19352         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19353         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19354         Reported by Paul Eggert.
19355
19356 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19357             Bruno Haible  <bruno@clisp.org>
19358
19359         Fix endless loop in mbmemcasecoll.
19360         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19361         byte.
19362         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19363
19364 2010-09-22  Bruno Haible  <bruno@clisp.org>
19365
19366         Tests for module 'memcoll'.
19367         * modules/memcoll-tests: New file.
19368         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19369
19370         memcoll, xmemcoll: Clarify size vs. length.
19371         * modules/memcoll.c (memcoll0): Clarify specification.
19372         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19373         passed to collate_error.
19374
19375 2010-09-22  Bruno Haible  <bruno@clisp.org>
19376
19377         Tests for module 'memcasecmp'.
19378         * modules/memcasecmp-tests: New file.
19379         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19380
19381 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19382
19383         * lib/pthread.in.h: Add split double-inclusion guard, and include
19384         system <pthread.h> if there is one.  Use @@-style as in other
19385         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19386         pthread.h doesn't.
19387         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19388         (pthread_mutexattr_settype, pthread_mutex_trylock):
19389         New static inline functions, if there's no system <pthread.h>.
19390         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19391         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19392         Approximate with mutexes if the system lacks spinlocks, as in
19393         MacOS.
19394         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19395         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19396         @@-style.  Check for spinlocks separately.
19397         (gl_PTHREAD_DEFAULTS): New macro.
19398         * modules/pthread: Redo to use a more typical style for in.h files.
19399
19400 2010-09-21  Eric Blake  <eblake@redhat.com>
19401
19402         net_if: enhance tests
19403         * tests/test-net_if.c (main): Move signature checks earlier.
19404         Print failures to stderr.
19405         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19406         Document the bug that we do not yet fix.
19407
19408 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19409
19410         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19411         about gnulib, not GSS.
19412
19413 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19414
19415         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19416         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19417         for Emacs.
19418         * build-aux/pmccabe2html: Make Makefile.am example code more
19419         cut-and-paste friendly.
19420
19421 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19422
19423         * tests/test-net_if.c: New file.
19424         * modules/net_if-tests: New file.
19425
19426 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19427
19428         pthread: add pthread_spin_destroy
19429         * lib/pthread.in.h (pthread_spin_destroy): New function.
19430
19431 2010-09-19  Bruno Haible  <bruno@clisp.org>
19432
19433         gnulib-tool: Fix --help output.
19434         * gnulib-tool (func_usage): Fix help message.
19435         Reported by Reuben Thomas <rrt@sc3d.org>.
19436
19437 2010-09-18  Jim Meyering  <meyering@redhat.com>
19438
19439         maint.mk: avoid unexpanded \n in two diagnostics
19440         * top/maint.mk (sc_prohibit_always_true_header_tests):
19441         Don't use a literal \n in a halt=... assignment.  It would not be
19442         expanded, and the two \n bytes would appear in the diagnostic output
19443         rather than the desired newline.  Use halt=$$(printf ... instead.
19444         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19445
19446 2010-09-18  Bruno Haible  <bruno@clisp.org>
19447
19448         netinet_in: Doc tweak.
19449         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19450         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19451
19452 2010-09-18  Jim Meyering  <meyering@redhat.com>
19453
19454         init.sh: correct an outdated comment
19455         * tests/init.sh (create_exe_shims_):  s/function/alias/
19456
19457         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19458         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19459         a file named "*.exe" is removed between the glob expansion and the
19460         processing of that oddly named file.
19461
19462 2010-09-17  Eric Blake  <eblake@redhat.com>
19463
19464         mirbsd: add some more support
19465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19466         in BSD family.
19467         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19468         devices as OpenBSD.
19469         * m4/host-os.m4 (mirbsd): Add MirBSD.
19470
19471         tests: fix unportable assumption on sys/wait.h
19472         * tests/test-sys_wait.c (main): Relax test.
19473         * tests/test-stdlib.c (main): Likewise.
19474
19475         init.sh: accomodate directory with no .exes
19476         * tests/init.sh: Accomodate directory containing only scripts.
19477
19478         tests: avoid compiler warning
19479         * tests/test-stdlib.c (main): Use the variable.
19480
19481         fdutimens, fdutimensat: update signature, again
19482         * lib/utimens.h (gl_futimens): Delete, and move signature...
19483         (fdutimens): ...here.
19484         (fdutimensat): Rearrange signature.
19485         (lutimensat): Rename variable for clarity.
19486         * lib/fdutimensat.c (fdutimensat): Update signature.
19487         * lib/utimens.c (fdutimens): Likewise.
19488         (gl_futimens): Delete.
19489         (utimens, lutimens): Update callers.
19490         * lib/futimens.c (futimens): Likewise.
19491         * tests/test-fdutimensat.c: Likewise.
19492         * tests/test-utimens.c: Likewise.
19493         * tests/test-futimens.h: Update comment.
19494         * NEWS: Mention this.
19495         Suggested by Paul Eggert.
19496
19497 2010-09-17  Bruno Haible  <bruno@clisp.org>
19498
19499         Take over the maintenance of some older macros from Autoconf.
19500         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19501         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19502         GNU Autoconf.
19503         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19504         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19505
19506 2010-09-17  Eric Blake  <eblake@redhat.com>
19507
19508         fdutimensat: drop atflag validation
19509         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19510         with valid fd, to close a race scenario where futimens is
19511         unsupported and FILE was replaced by a symlink.
19512         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19513         accordingly.
19514         Suggested by Paul Eggert.
19515
19516 2010-09-16  Bruno Haible  <bruno@clisp.org>
19517
19518         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19519         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19520
19521 2010-09-16  Bruno Haible  <bruno@clisp.org>
19522
19523         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19524         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19525         login_tty exists.
19526         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19527
19528 2010-09-16  Bruno Haible  <bruno@clisp.org>
19529
19530         login_tty: Make the replacement code work on BSD systems.
19531         * lib/login_tty.c: Include <sys/ioctl.h>.
19532         (login_tty): Use ioctl TIOCSCTTY when available.
19533         * modules/login_tty (Depends-on): Add sys_ioctl.
19534         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19535
19536 2010-09-16  Bruno Haible  <bruno@clisp.org>
19537
19538         login_tty: Stricter unit test.
19539         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19540         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19541         and tcgetsid() after login_tty.
19542         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19543
19544 2010-09-16  Bruno Haible  <bruno@clisp.org>
19545
19546         New module 'tcgetsid'.
19547         * lib/tcgetsid.c: New file.
19548         * m4/tcgetsid.m4: New file.
19549         * modules/tcgetsid: New file.
19550         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19551         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19552         GNULIB_TCGETSID, HAVE_TCGETSID.
19553         * lib/termios.in.h: Include <sys/types.h>.
19554         (tcgetsid): New declaration.
19555         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19556         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19557         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19558         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19559
19560 2010-09-16  Bruno Haible  <bruno@clisp.org>
19561
19562         Tests for module 'termios'.
19563         * modules/termios-c++-tests: New file.
19564         * modules/termios-tests: New file.
19565         * tests/test-termios-c++.cc: New file.
19566         * tests/test-termios.c: New file.
19567
19568         New module 'termios'.
19569         * modules/termios: New file.
19570         * lib/termios.in.h: New file.
19571         * m4/termios_h.m4: New file.
19572         * doc/posix-headers/termios.texi: Mention the new module.
19573
19574 2010-09-16  Eric Blake  <eblake@redhat.com>
19575
19576         fdutimensat: add an atflag parameter
19577         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19578         * lib/utimens.h (fdutimensat): Update prototype.
19579         * tests/test-fdutimensat.c: Adjust test to match.
19580         * NEWS: Document the change.
19581         Suggested by Paul Eggert.
19582
19583 2010-09-16  Bruno Haible  <bruno@clisp.org>
19584
19585         Fix typos in comments.
19586         * lib/striconveh.h: Fix typo in comment.
19587         * lib/login_tty.c (login_tty): Likewise.
19588
19589 2010-09-15  Bruno Haible  <bruno@clisp.org>
19590
19591         stdlib: clarify MirBSD WEXITSTATUS bug
19592         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19593         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19594
19595 2010-09-15  Eric Blake  <eblake@redhat.com>
19596
19597         stdlib: work around MirBSD WEXITSTATUS bug
19598         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19599         * modules/stdlib (Depends-on): Add sys_wait.
19600         * tests/test-sys_wait.c (main): Enhance test.
19601         * tests/test-stdlib.c (main): Likewise.
19602         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19603
19604         docs: mention MacOS issue with WEXITSTATUS(constant)
19605         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19606         issue.
19607         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19608
19609         strnlen: add tests
19610         * modules/strnlen-tests: New file.
19611         * tests/test-strnlen.c: Likewise.
19612
19613 2010-09-14  Bruno Haible  <bruno@clisp.org>
19614
19615         unistr/base: Avoid link errors when module 'libunistring' is also used.
19616         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19617         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19618         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19619         Declare also when HAVE_LIBUNISTRING is set.
19620         Reported by Pádraig Brady <P@draigbrady.com>.
19621
19622 2010-09-14  Eric Blake  <eblake@redhat.com>
19623
19624         test-rawmemchr: make more robust
19625         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19626         (Depends-on, configure.ac): Add needed prerequisites to use it.
19627         * modules/memchr-tests (Files, Depends-on, configure.ac):
19628         Likewise, to avoid implicit reliance on memchr module prereqs.
19629         * tests/test-memchr.c (main): Ensure proper masking.
19630         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19631         reads.
19632
19633         memchr: detect glibc Alpha bug
19634         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19635         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19636         Alpha.
19637         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19638         * tests/test-memchr.c (main): Enhance test.
19639         Reported by Nelson H. F. Beebe.
19640
19641 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         fts, getcwd, glob: audit for dirfd returning -1
19644         * lib/fts.c (opendir): Remove #define; no longer used.
19645         (opendirat): New arg PDIR_FD.  All callers changed.
19646         (fts_build, _opendir2): Use new opendirat to avoid the need for
19647         dirfd, or for checking whether dirfd returns a negative value.
19648         Don't use opendir; always use openat followed by fdopendir.
19649         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19650         it.
19651         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19652         returns -1 here.
19653         * modules/fts (Depends-on): Remove dirfd.
19654         * modules/getcwd (Depends-on): Likewise.
19655
19656 2010-09-13  Eric Blake  <eblake@redhat.com>
19657
19658         float: fix broken MirBSD header
19659         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19660         * doc/posix-headers/float.texi (float.h): Document it.
19661
19662 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19663
19664         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19665         * lib/fts.c (opendirat): New arg extra_flags.
19666         (__opendir2): Use it to avoid following symlinks when opening
19667         a directory, if symlinks are not supposed to be followed.  See
19668         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19669
19670         fdopendir: preserve argument fd before returning
19671         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19672         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19673         (fdopendir): Use them, arranging for FD to be open to the same
19674         directory that it was when it started.  (It might be temporarily
19675         closed while fdopendir is running, so this not thread- or
19676         signal-safe.)  Be careful to do the right thing even when file
19677         descriptors are scarce and dup fails with errno == EMFILE.  See
19678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19679
19680 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19681
19682         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19683         * NEWS: Document change.
19684         * m4/regex.m4: Disable test for regoff_t size.
19685
19686 2010-09-13  Jim Meyering  <meyering@redhat.com>
19687
19688         fts: don't operate on an invalid file descriptor after failed dup
19689         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19690         negative file descriptor.
19691
19692 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19693
19694         savedir: add streamsavedir, deprecate fdsavedir
19695         * NEWS: Mention deprecation of fdsavedir.
19696         * lib/savedir.c (streamsavedir): New extern function, whose name
19697         ends in "savedir" to be consistent with the others.  This differs
19698         from savedirstream in that it doesn't close its argument.  The
19699         next version of GNU tar will use this instead of fdsavedir, to
19700         avoid some race conditions and conserve file descriptors.
19701         (savedirstream): Reimplement as a wrapper around streamsavedir.
19702         (fdsavedir): Add a comment deprecating this function.  As far as
19703         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19704         * lib/savedir.h (streamsavedir): New decl.
19705         (fdsavedir): Add a comment deprecating this.
19706
19707 2010-09-10  Bruno Haible  <bruno@clisp.org>
19708
19709         langinfo: Fix last commit.
19710         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19711         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19713
19714 2010-09-10  Bruno Haible  <bruno@clisp.org>
19715
19716         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19717         * lib/progreloc.c (O_EXEC): Define fallback.
19718
19719 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19720
19721         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19722         * NEWS: Document recent changes to fcntl-h.
19723         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19724         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19725         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19726         Similarly for O_SEARCH; this last was already true, but not documented.
19727         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19728         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19729         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19730         Likewise.
19731         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19732         is zero, not whether it is defined.
19733         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19734         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19735         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19736
19737 2010-09-10  Bruno Haible  <bruno@clisp.org>
19738
19739         langinfo, nl_langinfo: Fix for IRIX 5.3.
19740         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19741         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19742         HAVE_LANGINFO_YESEXPR.
19743         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19744         HAVE_LANGINFO_YESEXPR.
19745         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19746         HAVE_LANGINFO_T_FMT_AMPM is 0.
19747         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19748         HAVE_LANGINFO_YESEXPR is 0.
19749         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19750         NOEXPR.
19751         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19752         * doc/posix-functions/nl_langinfo.texi: Likewise.
19753         Reported by Eric Blake.
19754
19755 2010-09-10  Bruno Haible  <bruno@clisp.org>
19756
19757         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19758         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19759         on FreeBSD 8.0 and OpenBSD 4.6.
19760         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19761         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19762         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19763         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19764         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19765         ac_includes_default.
19766         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19767
19768 2010-09-09  Eric Blake  <eblake@redhat.com>
19769
19770         strsignal: work around NetBSD bug
19771         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19772         * lib/string.in.h (includes): Likewise.
19773         * doc/posix-functions/strsignal.texi (strsignal): Document the
19774         bug.
19775         Reported by Nelson H. F. Beebe.
19776
19777         gnulib-tool: work with NetBSD /bin/sh
19778         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19779         (func_get_description, func_get_comment, func_get_status)
19780         (func_get_notice, func_get_applicability, func_get_filelist)
19781         (func_get_dependencies, func_get_autoconf_early_snippet)
19782         (func_get_autoconf_snippet, func_get_automake_snippet)
19783         (func_get_include_directive, func_get_link_directive)
19784         (func_get_license, func_get_maintainer, func_import): Avoid
19785         shell syntax errors from parsing syntax extensions.
19786
19787 2010-09-09  Bruno Haible  <bruno@clisp.org>
19788
19789         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19790         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19791         a reliable way to determine whether the 'alias' command works.
19792
19793 2010-09-08  Jim Meyering  <meyering@redhat.com>
19794
19795         init.sh: penalize a set-x-impaired shell; don't disqualify it
19796         * tests/init.sh: Too many shells corrupt application stderr when
19797         you set -x, so we can't afford to disqualify them, since at least
19798         on Irix-6.5, that would disqualify all bourne shells.
19799         Instead, use a two-pass approach.
19800         On the first pass, try to find a shell that meets the stricter
19801         condition that set -x does not corrupt stderr.
19802         If no shell meets the stricter condition, retest each candidate
19803         shell, but without that extra condition.  Finally, when
19804         VERBOSE=yes is requested and set -x might cause trouble, simply
19805         issue a warning and refrain from enabling debug output.
19806
19807 2010-09-08  Eric Blake  <eblake@redhat.com>
19808
19809         unsetenv: fix OpenBSD bug
19810         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19811         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19812         documentation.
19813         Reported by Jim Meyering.
19814
19815         strtod: work around IRIX 6.5 bug
19816         * lib/strtod.c (strtod): Reparse number on shorter string if
19817         exponent parse was invalid.
19818         * tests/test-strtod.c (main): Add check for "0x1p 2".
19819         Reported by Tom G. Christensen.
19820
19821         getopt: optimize previous patch
19822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19823         empty variable.  Speed up awk script.
19824         Reported by Paolo Bonzini.
19825
19826 2010-09-08  Jim Meyering  <meyering@redhat.com>
19827
19828         test.sh: disqualify shells for which set -x corrupts stderr
19829         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19830         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19831         appear in stderr output.  For example, this command:
19832             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19833         prints "P=1" on those two systems:
19834
19835 2010-09-08  Bruno Haible  <bruno@clisp.org>
19836
19837         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19838         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19839         commands, because some shells ignore redirections when there is an
19840         error in the command lookup.
19841         Reported by Eric Blake.
19842
19843 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19844
19845         * lib/regex.h: Fix a mention of `regex_compile' (should be
19846         `re_compile_pattern').
19847         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19848         (re_set_registers): Correct name of parameter in comment.
19849
19850         * doc/regex.texi: Add documentation for missing syntax flags.
19851         Remove commented-out documentation of defunct syntax option
19852         RE_NO_EMPTY_ALTS.
19853         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19854         Add documentation of re_set_registers.
19855         Document trick to re-use a pattern buffer by setting fastmap manually.
19856         Update documentation of struct re_pattern_buffer per public members.
19857         Uncomment documentation of equivalence class operators and
19858         collating symbol operators, since they are now implemented,
19859         Explain leftmost-longest matching in relation to alternatives.
19860         Tidy documentation of substring matching.
19861         Remove POSIX documentation, which is done better in
19862         glibc, and refer the reader there. Keep BSD API documentation, as
19863         that is not readily available elsewhere.
19864
19865 2010-09-07  Eric Blake  <eblake@redhat.com>
19866
19867         getopt: handle POSIXLY_CORRECT set but not exported
19868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19869         export state of POSIXLY_CORRECT, due to bash set -o posix.
19870         Reported by Dustin J. Mitchell.
19871
19872 2010-09-05  Bruno Haible  <bruno@clisp.org>
19873
19874         gnulib-tool: Highlight the changed options.
19875         * gnulib-tool (func_usage): Display the --import, --add-import,
19876         --remove-import explanations in bold font.
19877
19878 2010-09-06  Karl Berry  <karl@gnu.org>
19879
19880         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19881
19882 2010-09-05  Bruno Haible  <bruno@clisp.org>
19883
19884         uniwidth/width: Update comment.
19885         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19886         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19887
19888 2010-09-05  Bruno Haible  <bruno@clisp.org>
19889
19890         isinf, isnan: Relax license.
19891         * modules/isinf (License): Change from GPL to LGPL, with consent from
19892         Ben Pfaff.
19893         * modules/isnan (License): Likewise.
19894         Requested by Ludovic Courtès.
19895
19896 2010-09-04  Bruno Haible  <bruno@clisp.org>
19897
19898         gnulib-tool: Help migration from --import to --add-import or --update.
19899         * gnulib-tool: Emit a verbose error message when --import is used
19900         without any module name.
19901
19902 2010-09-04  Bruno Haible  <bruno@clisp.org>
19903
19904         Update doc about gnulib-tool.
19905         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19906         'gnulib-tool --update' in more detail.
19907         Reported by Eric Blake.
19908
19909 2010-09-04  Bruno Haible  <bruno@clisp.org>
19910
19911         gnulib-tool: Change --import. New options --add/remove-import.
19912         * gnulib-tool: New options --add-import, --remove-import.
19913         (func_usage): Document them.
19914         (have_associative): Define always.
19915         (func_import): In import mode, don't merge the specified settings with
19916         the cached settings. Implement remove-import mode.
19917         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19918         Explain when to use them versus --import.
19919         (Simple update): Use --add-import instead of --import.
19920         * NEWS: Mention the change.
19921
19922 2010-09-04  Bruno Haible  <bruno@clisp.org>
19923
19924         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19925         separate gnulib.mk.
19926
19927 2010-09-04  Bruno Haible  <bruno@clisp.org>
19928
19929         gnulib-tool: Don't talk about CVS any more.
19930         * gnulib-tool (func_usage, func_import): Write "version control"
19931         instead of CVS.
19932
19933 2010-09-04  Jim Meyering  <meyering@redhat.com>
19934
19935         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19936         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19937         false positives (whose names may be ill-chosen) when searching
19938         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19939         would cause a false-positive.
19940
19941         avoid coreutils "make distcheck" failure
19942         Coreutils tests with an absolute build directory name that contains
19943         a space.  Not quoting this directory name caused a failure.
19944         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19945         * tests/test-vc-list-files-cvs.sh: Likewise.
19946
19947 2010-09-04  Bruno Haible  <bruno@clisp.org>
19948
19949         gnulib-tool: Avoid error when run in a package without Makefile.am.
19950         * gnulib-tool: When collecting the m4dirs in a package that does not
19951         have a Makefile.am, eliminate those directories that contain no
19952         gnulib-cache.m4. Fix expression that counts these directories.
19953
19954 2010-09-04  Bruno Haible  <bruno@clisp.org>
19955
19956         update-copyright test: Improve output when perl is missing or too old.
19957         * tests/test-update-copyright.sh: Move test of Perl version down after
19958         the test whether Perl exists. Provide an explanation relating Perl's
19959         error message to Automake's SKIP: message.
19960
19961 2010-09-04  Bruno Haible  <bruno@clisp.org>
19962
19963         Don't augment PATH in TESTS_ENVIRONMENT.
19964         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19965         set abs_aux_dir instead of augmenting PATH.
19966         * modules/vc-list-files-tests (Makefile.am): Likewise.
19967         * tests/test-update-copyright.sh: Augment PATH here.
19968         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19969         path_prepend_.
19970         * tests/test-vc-list-files-git.sh: Likewise.
19971
19972 2010-09-04  Jim Meyering  <meyering@redhat.com>
19973
19974         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19975         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19976
19977 2010-09-04  Bruno Haible  <bruno@clisp.org>
19978
19979         strdup: Fix compilation error in C++ mode.
19980         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19981         the macro.
19982
19983 2010-09-04  Bruno Haible  <bruno@clisp.org>
19984
19985         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19986         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19987         macro into a function.
19988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19989
19990 2010-09-04  Bruno Haible  <bruno@clisp.org>
19991
19992         Set PATH_SEPARATOR the same way autoconf does.
19993         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19994         the value of PATH_SEPARATOR the same way autoconf-generated configure
19995         scripts do.
19996         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19997         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19998
19999 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20000
20001         Set PATH_SEPARATOR the same way autoconf does.
20002         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20003         the same way autoconf-generated configure scripts do.
20004         * posix-modules: Likewise.
20005
20006 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20007
20008         hash: fix safe_hasher const typo
20009         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20010         const; otherwise, there is a type error later.
20011
20012 2010-09-02  Jim Meyering  <meyering@redhat.com>
20013
20014         test-update-copyright.sh: require perl 5.8.0
20015         * tests/test-update-copyright.sh: Require 5.8.0,
20016         which Tom G. Christensen has confirmed is adequate,
20017         while 5.6.1 is not.
20018
20019 2010-09-02  Eric Blake  <eblake@redhat.com>
20020
20021         tests: init.sh improvements for re-exec'ing with zsh
20022         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20023         -vx through shell re-exec.
20024         Reported by Tom G. Christensen.
20025
20026         wctype: fix typo in previous commit
20027         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20028         Reported by Ludovic Courtès.
20029
20030 2010-09-02  Jim Meyering  <meyering@redhat.com>
20031
20032         test-update-copyright.sh: skip test if Perl is too old
20033         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20034         Reported by Tom G. Christensen.
20035
20036 2010-09-02  Bruno Haible  <bruno@clisp.org>
20037
20038         wctype: Avoid compilation error on IRIX 6.5.30.
20039         * lib/wctype.in.h (iswblank): Declare with a replacement if
20040         REPLACE_ISWBLANK is set.
20041         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20042         declared. Set REPLACE_ISWBLANK.
20043         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20044         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20045         * doc/posix-headers/wctype.texi: Likewise.
20046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20047
20048 2010-09-01  Bruno Haible  <bruno@clisp.org>
20049
20050         New module 'socketlib'.
20051         * modules/socketlib: New file.
20052         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20053         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20054         * modules/sockets (Depends-on): Add socketlib.
20055         Suggested by Sam Steingold <sds@gnu.org>.
20056
20057 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20058
20059         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20060
20061         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20062         when one needs search access to a directory but not read access.
20063         On systems where it is available, it works in some cases where
20064         O_RDONLY does not, namely on directories that are searchable but
20065         not readable, and which need only to be searchable.  If O_SEARCH
20066         is not available, fall back to the traditional method of using
20067         O_RDONLY.
20068
20069         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20070         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20071         when opening a directory that needs only to be searchable.
20072         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20073         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20074         * lib/openat-proc.c (openat_proc_name): Likewise.
20075         * lib/openat.c (openat_needs_fchdir): Likewise.
20076         * lib/save-cwd.c (save_cwd): Likewise.
20077         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20078
20079 2010-08-28  Bruno Haible  <bruno@clisp.org>
20080
20081         New module 'host-cpu-c-abi'.
20082         * modules/host-cpu-c-abi: New file.
20083         * m4/host-cpu-c-abi.m4: New file, based on part of
20084         clisp/src/m4/general.m4.
20085         Requested by Sam Steingold <sds@gnu.org>.
20086
20087 2010-08-31  Eric Blake  <eblake@redhat.com>
20088         and Jim Meyering  <meyering@redhat.com>
20089
20090         hash: factor, and guard against misbehaving hasher function
20091         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20092         of table->hasher's return value.  Also protect against a hash value
20093         so large that adding it to table->bucket results in a NULL pointer.
20094         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20095         Use it in place of open-coded check-and-abort.
20096
20097 2010-08-30  Bruno Haible  <bruno@clisp.org>
20098
20099         hash: silence spurious clang warning
20100         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20101         Reported by Eric Blake.
20102
20103 2010-08-30  Eric Blake  <eblake@redhat.com>
20104
20105         strstr, memmem, strcasestr: avoid leaked shell message
20106         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20107         FreeBSD.
20108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20110
20111         tests: silence clang warning
20112         * tests/test-malloca.c (do_allocation): Avoid dead store.
20113
20114 2010-08-29  Bruno Haible  <bruno@clisp.org>
20115
20116         gettext: Fix recent mistake.
20117         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20118
20119 2010-08-29  Bruno Haible  <bruno@clisp.org>
20120
20121         selinux-h: Offer a --without-selinux option.
20122         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20123         --without-selinux was specified, skip all tests and define
20124         HAVE_SELINUX_SELINUX_H to 0.
20125         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20126         set LIB_SELINUX to empty.
20127         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20128         gl_LIBSELINUX. If --without-selinux was specified, replace
20129         selinux/context.h.
20130         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20131
20132 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20133             Bruno Haible  <bruno@clisp.org>
20134
20135         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20136         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20137         of HAVE_REALLOC.
20138         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20139         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20140         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20141         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20142
20143 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20144             Bruno Haible  <bruno@clisp.org>
20145
20146         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20147         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20148         HAVE_CALLOC.
20149         * lib/xmalloc.c: Update accordingly.
20150         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20151         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20152         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20153
20154 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20155             Bruno Haible  <bruno@clisp.org>
20156
20157         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20158         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20159         HAVE_MALLOC.
20160         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20161         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20162         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20163
20164 2010-08-29  Bruno Haible  <bruno@clisp.org>
20165
20166         Update modules list.
20167         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20168         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20169         (String handling <string.h>): Add astrxfrm.
20170         (File system functions): Add readlinkat.
20171
20172 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20173
20174         Tests for module 'realloc-gnu'.
20175         * modules/realloc-gnu-tests: New file.
20176         * tests/test-realloc-gnu.c: New file.
20177
20178         Tests for module 'calloc-gnu'.
20179         * modules/calloc-gnu-tests: New file.
20180         * tests/test-calloc-gnu.c: New file.
20181
20182         Tests for module 'malloc-gnu'.
20183         * modules/malloc-gnu-tests: New file.
20184         * tests/test-malloc-gnu.c: New file.
20185
20186 2010-08-28  Bruno Haible  <bruno@clisp.org>
20187
20188         Rename module 'realloc' -> 'realloc-gnu'.
20189         * modules/realloc-gnu: New file, copied from modules/realloc.
20190         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20191         obsolete.
20192         * modules/mgetgroups (Depends-on): Update.
20193         * doc/posix-functions/realloc.texi: Update.
20194         * NEWS: Mention the change.
20195
20196         Rename module 'calloc' -> 'calloc-gnu'.
20197         * modules/calloc-gnu: New file, copied from modules/calloc.
20198         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20199         obsolete.
20200         * doc/posix-functions/calloc.texi: Update.
20201         * NEWS: Mention the change.
20202
20203         Rename module 'malloc' -> 'malloc-gnu'.
20204         * modules/malloc-gnu: New file, copied from modules/malloc.
20205         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20206         obsolete.
20207         * modules/argp (Depends-on): Update.
20208         * modules/regex (Depends-on): Update.
20209         * doc/posix-functions/malloc.texi: Update.
20210         * NEWS: Mention the change.
20211
20212 2010-08-28  Eric Blake  <eblake@redhat.com>
20213
20214         pread, pwrite: add missing dependency
20215         * modules/pread (Depends-on): Add extensions.
20216         * modules/pwrite (Depends-on): Likewise.
20217
20218 2010-08-28  Bruno Haible  <bruno@clisp.org>
20219
20220         unistr/u*-strchr: Fix tests dependencies.
20221         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20222         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20223         Reported by Ian Beckwith <ianb@erislabs.net>.
20224
20225 2010-08-28  Bruno Haible  <bruno@clisp.org>
20226
20227         read-file: Don't occupy too much unused memory.
20228         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20229
20230 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20231             Eric Blake  <eblake@redhat.com>
20232             Bruno Haible  <bruno@clisp.org>
20233
20234         read-file: Avoid memory reallocations with regular files.
20235         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20236         (fread_file): With regular files, use the remaining length as the
20237         initial buffer size.  Check against overflow.
20238         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20239         sys_stat.
20240
20241 2010-08-28  Bruno Haible  <bruno@clisp.org>
20242
20243         ftello: Relax license.
20244         * modules/ftello (License): Relax to LGPLv2+.
20245         Reported by Eric Blake.
20246
20247 2010-08-28  Bruno Haible  <bruno@clisp.org>
20248
20249         Avoid relocwrapper link errors due to gnulib replacement functions.
20250         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20251         function.
20252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20253
20254 2010-08-28  Bruno Haible  <bruno@clisp.org>
20255
20256         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20257         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20258         defined.
20259         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20260         Suggested by Eric Blake.
20261
20262 2010-08-28  Bruno Haible  <bruno@clisp.org>
20263
20264         sys_socket, netdb: Ensure socklen_t gets defined.
20265         * modules/sys_socket (Depends-on): Add socklen.
20266         * modules/netdb (Depends-on): Likewise.
20267         * modules/getaddrinfo (Depends-on): Remove socklen.
20268         * modules/getsockopt (Depends-on): Likewise.
20269         * modules/setsockopt (Depends-on): Likewise.
20270         * tests/test-sys_socket.c: Check that socklen_t is defined.
20271         * tests/test-netdb.c: Likewise.
20272         * m4/socklen.m4: Update comments.
20273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20274
20275 2010-08-27  Eric Blake  <eblake@redhat.com>
20276
20277         login_tty: add missing dependency
20278         * modules/login_tty (Depends-on): Add pty.
20279
20280 2010-08-26  Eric Blake  <eblake@redhat.com>
20281
20282         lib-symbol-versions: fix m4 quoting
20283         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20284         format for AC_LINK_IFELSE.
20285
20286         glob: fix compile test
20287         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20288
20289         btowc: fix missing file
20290         * modules/btowc (Files): Also ship locale-fr.m4.
20291
20292         lseek: fix link test
20293         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20294         AC_LINK_IFELSE.
20295
20296         include_next: silence autoconf 2.68 warning
20297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20298         AC_COMPILE_IFELSE as special.
20299         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20300         autoconf < 2.68.
20301
20302         acl: fix compilation test
20303         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20304         AC_COMPILE_IFELSE.
20305
20306 2010-08-26  Bruno Haible  <bruno@clisp.org>
20307
20308         Modernize AC_TRY_RUN invocations.
20309         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20310         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20311         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20312         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20313         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20314         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20317         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20318         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20319         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20320         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20321         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20322         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20324         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20325         gl_MBRLEN_NUL_RETVAL): Likewise.
20326         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20327         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20328         Likewise.
20329         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20330         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20331         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20332         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20333         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20334         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20335         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20336         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20337         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20338         Likewise.
20339         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20340         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20342         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20343         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20344         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20345         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20346         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20347         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20349
20350 2010-08-26  Bruno Haible  <bruno@clisp.org>
20351
20352         Modernize AC_TRY_LINK invocations.
20353         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20354         AC_TRY_LINK.
20355         * m4/argp.m4 (gl_ARGP): Likewise.
20356         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20357         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20358         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20359         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20360         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20361         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20362         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20363         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20364         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20365         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20366         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20367         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20368         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20369         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20370         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20371         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20372         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20373         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20374         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20375         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20376         Likewise.
20377         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20378         Likewise.
20379         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20380         Likewise.
20381         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20382         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20383         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20384         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20385         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20386         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20387         * m4/servent.m4 (gl_SERVENT): Likewise.
20388         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20389         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20390         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20391         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20392         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20393         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20394         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20396         * modules/tsearch-tests (configure.ac): Likewise.
20397
20398 2010-08-26  Bruno Haible  <bruno@clisp.org>
20399
20400         Modernize AC_TRY_COMPILE invocations.
20401         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20402         AC_TRY_COMPILE.
20403         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20404         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20405         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20406         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20407         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20408         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20409         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20410         * m4/lock.m4 (gl_LOCK): Likewise.
20411         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20412         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20413         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20414         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20415         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20416         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20417         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20419         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20420         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20421         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20422         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20423         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20424         extraneous semicolon.
20425
20426 2010-08-26  Jim Meyering  <meyering@redhat.com>
20427
20428         stat-time: relax license LGPL
20429         * modules/stat-time (License): Change from GPL to LGPL,
20430         with consent from all contributors, for use in libguile.
20431         Requested by Ludovic Courtès.
20432
20433 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20434
20435         poll: return immediately on POLLHUP.
20436         * lib/poll.c (poll): Always set timeout before wait_timeout is
20437         computed.
20438
20439 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20440
20441         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20442         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20443         rmdir ("dir/.//"), unlinkat.
20444
20445 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20446
20447         stdbool: avoid spurious failure with modern xlc
20448         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20449
20450 2010-08-24  Bruno Haible  <bruno@clisp.org>
20451
20452         getloadavg: simplify code
20453         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20454         gl_have_func. Update comments.
20455
20456 2010-08-24  Eric Blake  <eblake@redhat.com>
20457
20458         getloadavg: don't define SVR4 on cygwin
20459         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20460         only define SVR4 when -lkvm is required.
20461         Reported by Yaakov Selkowitz.
20462
20463 2010-08-24  Bruno Haible  <bruno@clisp.org>
20464
20465         priv-set: fix comment
20466         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20467
20468 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20469
20470         priv-set: fix comments
20471         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20472         to match code, as suggested by David Bartley in:
20473         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20474
20475 2010-08-23  Eric Blake  <eblake@redhat.com>
20476
20477         stdbool: avoid rejecting clang
20478         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20479         * tests/test-stdbool.c: Enable more tests if using the system
20480         <stdbool.h> instead of the gnulib replacement.
20481         (main): Move xlc bug test to a runtime test for all compilers.
20482         Reported by Anders Kaseorg.
20483
20484         argz: fix shell quoting issue
20485         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20486         Reported by Charles Wilson.
20487
20488 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20489             Erik Faye-Lund <kusmabite@gmail.com>
20490
20491         poll, select: handle ERROR_BROKEN_PIPE.
20492         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20493         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20494         * lib/select.c (win32_compute_revents): Do not mark a pipe
20495         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20496
20497 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20498
20499         fts: allow compilation with C++
20500         * lib/fts_.h: Specify extern "C" linkage with C++.
20501
20502 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20503
20504         Fix gnulib-tool sed script de-commentation for AIX sed.
20505         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20506         sed.
20507
20508 2010-08-17  Eric Blake  <eblake@redhat.com>
20509
20510         test-stddef: test for (some) offsetof bugs
20511         * tests/test-stddef.c: Enhance test to ensure correct type of
20512         offsetof.
20513         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20514         that we are not fixing at this time.
20515
20516 2010-08-15  Bruno Haible  <bruno@clisp.org>
20517
20518         stpncpy: Allow stpncpy to be defined as a macro.
20519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20520         if it's already correctly declared.
20521         * lib/string.in.h (stpncpy): Undefine before redefining.
20522         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20523
20524 2010-08-14  Bruno Haible  <bruno@clisp.org>
20525
20526         Rename module 'memxfrm' to 'amemxfrm'.
20527         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20528         (amemxfrm): Renamed from memxfrm.
20529         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20530         (amemxfrm): Renamed from memxfrm.
20531         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20532         * NEWS: Mention the change.
20533         * MODULES.html.sh (String handling <string.h>): Update.
20534         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20535         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20536         * lib/unicase/u16-casexfrm.c: Likewise.
20537         * lib/unicase/u32-casexfrm.c: Likewise.
20538         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20539         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20540         * lib/uninorm/u16-normxfrm.c: Likewise.
20541         * lib/uninorm/u32-normxfrm.c: Likewise.
20542         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20543         memxfrm.
20544         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20545         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20546         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20547         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20548         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20549         Suggested by Paul Eggert.
20550
20551 2010-08-14  Bruno Haible  <bruno@clisp.org>
20552
20553         Tests for module 'astrxfrm'.
20554         * modules/astrxfrm-tests: New file.
20555         * tests/test-astrxfrm.c: New file.
20556
20557         New module 'astrxfrm'.
20558         * lib/astrxfrm.h: New file.
20559         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20560         * modules/astrxfrm: New file.
20561
20562 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20563
20564         regex: Tweak doc.
20565         * doc/regex.texi (Overview): Don't mention regex.c.
20566         (GNU Regular Expression Compiling): Likewise.
20567         (Match-end-of-line Operator): Mention 'not_eol'.
20568
20569 2010-08-14  Brian Gough  <bjg@gnu.org>
20570             Bruno Haible  <bruno@clisp.org>
20571
20572         git-merge-changelog: add doc relating to use with bzr and hg.
20573         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20574
20575 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20576
20577         pthread: fix pthread.h creation for srcdir != builddir
20578         * modules/pthread (Makefile.am): Fix the rule to work also in a
20579         non-srcdir build.
20580
20581 2010-08-13  Karl Berry  <karl@gnu.org>
20582
20583         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20584         * doc/posix-*/*: force line break before @url of POSIX
20585         specifications.
20586         Suggested by Werner Lemberg.
20587
20588 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20589
20590         strtod: fix const diagnostic
20591         * lib/strtod.c (strtod): Don't assign const char * to char *,
20592         as this elicits a warning from GCC when warnings are enabled.
20593
20594 2010-08-10  Pádraig Brady <P@draigbrady.com>
20595         and Eric Blake  <eblake@redhat.com>
20596
20597         copy-acl: ignore ENOTSUP on HP-UX
20598         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20599         so that it is available for HP-UX.
20600         * lib/copy-acl.c (qcopy_acl): Use it.
20601         Reported by Patrick M. Callahan.
20602
20603 2010-08-10  Eric Blake  <eblake@redhat.com>
20604
20605         open, chown: relax license
20606         * modules/open (License): Change to LGPLv2+, with consent by all
20607         authors, for use in augeas.
20608         * modules/chown (License): Likewise.
20609         * modules/lchown (Likewise): Likewise.
20610         Requested by Adam Stokes.
20611
20612 2010-08-09  Karl Berry  <karl@gnu.org>
20613
20614         * build-aux/ar-lib: new file, import from Automake.
20615         * config/srclist.txt: autocheck for updates.
20616
20617 2010-08-09  Eric Blake  <eblake@redhat.com>
20618
20619         readlinkat: adjust client modules
20620         * modules/areadlinkat (Depends-on): Use readlinkat, not
20621         symlinkat.
20622         * modules/areadlinkat-with-size (Depends-on): Likewise.
20623
20624         mknod: be more vocal about danger of running tests as root
20625         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20626         root, since that is just asking for problems.
20627         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20628
20629         readlinkat: split into its own module
20630         * modules/symlinkat: Split readlinkat...
20631         * modules/readlinkat: ...into separate module.
20632         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20633         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20634         * lib/symlinkat.c (readlinkat): Move...
20635         * lib/readlinkat.c: ...into new file.
20636         * modules/symlinkat-tests: Split readlinkat test...
20637         * modules/readlinkat-tests: ...into separate module.
20638         * tests/test-symlinkat.c: Split...
20639         * tests/test-readlinkat.c: ...into new file.
20640         * NEWS: Document the split.
20641         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20642         * lib/unistd.in.h (readlinkat): Likewise.
20643         Suggested by Bruno Haible.
20644
20645 2010-08-08  Bruno Haible  <bruno@clisp.org>
20646
20647         memxfrm: Speed up.
20648         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20649         that usually only one call to strxfrm is necessary for each string
20650         part.
20651         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20652
20653 2010-08-07  Karl Berry  <karl@gnu.org>
20654
20655         * doc/posix-headers/limits.texi,
20656         * doc/posix-functions/malloc.texi,
20657         * doc/posix-functions/strsignal.texi: missing @item.
20658         * doc/ld-version-script.texi: spurious leading i.
20659         * doc/regex.texi (Interval Operators): no commas inside @var.
20660
20661 2010-08-01  Bruno Haible  <bruno@clisp.org>
20662
20663         Integrate the regex documentation.
20664         * doc/gnulib.texi: Define 'cn' index.
20665         (Regular expressions): New a chapter that includes regex.texi and
20666         regexprops-generic.texi.
20667         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20668         syntax.
20669
20670         Whitespace cleanup.
20671         * doc/regex.texi: Remove trailing spaces.
20672
20673         Add regex documentation.
20674         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20675         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20676         Written by Kathy A. Hargreaves and Karl Berry.
20677
20678 2010-08-01  Bruno Haible  <bruno@clisp.org>
20679
20680         link: Update documentation.
20681         * doc/posix-functions/link.texi: Update regarding Solaris.
20682
20683 2010-07-31  Bruno Haible  <bruno@clisp.org>
20684
20685         Update modules list.
20686         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20687         (String handling <string.h>): Add memcmp2, memxfrm.
20688         (Container data structures): Add xlist, xsublist, xoset.
20689         (Core language properties): Add alignof, unused-parameter.
20690         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20691         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20692         (Unibyte characters <ctype.h>): New section.
20693         (String handling <string.h>): New section.
20694         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20695         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20696         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20697         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20698         tan, tanh, tanl, y0, y1, yn.
20699         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20700         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20701         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20702         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20703         unlockpt, vdprintf, vdprintf-posix.
20704         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20705         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20706         xconcat-filename.
20707         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20708         getdtablesize, pipe2, pipe2-safer.
20709         (Security): New section.
20710         (Networking functions): Add accept4.
20711         (Signal handling): Add sigpipe.
20712         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20713         mbmemcasecoll.
20714         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20715         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20716         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20717         pipe-filter-ii.
20718         (Misc): Add argp-version-etc, login_tty, parse-duration.
20719
20720 2010-07-31  Bruno Haible  <bruno@clisp.org>
20721
20722         Improve doc in MODULES.html.
20723         * modules/linkat (Description): Add the word "function".
20724         * modules/mkfifo (Description): Likewise.
20725         * modules/mknod (Description): Likewise.
20726         * modules/remove (Description): Likewise.
20727         * modules/renameat (Description): Likewise.
20728         * modules/stat (Description): Likewise.
20729         * modules/symlink (Description): Likewise.
20730         * modules/unlink (Description): Likewise.
20731
20732 2010-07-31  Bruno Haible  <bruno@clisp.org>
20733
20734         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20735         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20736         option --enable/disable-c++ instead of --enable/disable-cxx.
20737         * NEWS: Mention the change.
20738
20739 2010-07-31  Bruno Haible  <bruno@clisp.org>
20740
20741         readlink, areadlink: Relax test a bit.
20742         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20743         alternative to ENOTDIR.
20744         * tests/test-areadlink.h (test_areadlink): Likewise.
20745         Reported by Rainer Tammer.
20746
20747 2010-07-31  Bruno Haible  <bruno@clisp.org>
20748
20749         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20750         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20751         character, perform the search using U_STRCHR.
20752         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20753         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20754         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20755         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20756         Suggested by Paolo Bonzini.
20757
20758 2010-07-31  Bruno Haible  <bruno@clisp.org>
20759
20760         unistr/u*-strstr: Fix dependencies.
20761         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20762         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20763         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20764
20765 2010-07-31  Bruno Haible  <bruno@clisp.org>
20766
20767         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20768         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20769         the beginning of the loop.
20770         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20771         cases in 'switch' statement.
20772
20773         unistr/u8-strchr: Fix several bugs.
20774         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20775         the string. When not found, return NULL, not a pointer near the end.
20776
20777         More tests for unistr/u8-strchr.
20778         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20779         that the function does not read past the first occurrence of the byte
20780         being searched.
20781         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20782         * tests/unistr/test-u16-strchr.c (main): New function.
20783         * tests/unistr/test-u32-strchr.c (main): New function.
20784
20785 2010-07-31  Bruno Haible  <bruno@clisp.org>
20786
20787         posix-modules: Ignore backup files of documentation files.
20788         * posix-modules: grep only through files named *.texi.
20789
20790 2010-07-31  Bruno Haible  <bruno@clisp.org>
20791
20792         symlinkat: Fix documentation.
20793         * doc/posix-functions/readlinkat.texi: Fix module name.
20794
20795 2010-07-31  Bruno Haible  <bruno@clisp.org>
20796
20797         fchownat: Replace also when chown has the trailing slash bug.
20798         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20799         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20800         introduced on 2010-04-10.
20801         Reported by Rainer Tammer.
20802
20803 2010-07-31  Bruno Haible  <bruno@clisp.org>
20804
20805         linkat: Work around AIX 7.1 bug.
20806         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20807         whether linkat handles trailing slash correctly. If not, replace linkat
20808         and define LINKAT_TRAILING_SLASH_BUG.
20809         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20810         check whether (fd1,file1) points to a directory if file1 or file2 ends
20811         in a slash. Code taken from lib/link.c.
20812         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20813         Reported by Rainer Tammer.
20814
20815 2010-07-31  Bruno Haible  <bruno@clisp.org>
20816
20817         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20818         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20819         This disables an xlc optimization that was causing wrong test results.
20820         Reported by Rainer Tammer.
20821
20822 2010-07-31  Bruno Haible  <bruno@clisp.org>
20823
20824         iconv: Work around AIX 6.1..7.1 bug.
20825         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20826         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20827         cross-compiling, guess no on all versions of AIX.
20828         Reported by Rainer Tammer.
20829
20830 2010-07-31  Bruno Haible  <bruno@clisp.org>
20831
20832         readlink: Relax test a bit.
20833         * tests/test-readlink.h (test_readlink): Allow different errno value
20834         when readlink is called with a file name that ends in / and refers to
20835         a file.
20836         Suggested by Eric Blake.
20837         Reported by Rainer Tammer.
20838
20839 2010-07-31  Bruno Haible  <bruno@clisp.org>
20840
20841         copysign: Does not require -lm on glibc systems.
20842         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20843         gl_COMMON_DOUBLE_MATHFUNC.
20844         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20845
20846 2010-07-31  Bruno Haible  <bruno@clisp.org>
20847
20848         duplocale: Work around AIX 7.1 bug.
20849         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20850         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20851         * lib/duplocale.c (rpl_duplocale): Update comment.
20852         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20853         Reported by Rainer Tammer.
20854
20855 2010-07-30  Bruno Haible  <bruno@clisp.org>
20856
20857         dirfd: Avoid link error on AIX 7.1.
20858         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20859         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20860         exist, set REPLACE_DIRFD.
20861         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20862         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20863         * doc/posix-functions/dirfd.texi: Update.
20864         Reported by Rainer Tammer.
20865
20866 2010-07-30  Eric Blake  <eblake@redhat.com>
20867
20868         strtod: next round of AIX fixes
20869         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20870         exponent.
20871         * tests/test-strtod.c (main): Enhance tests.
20872         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20873         Reported by Rainer Tammer.
20874
20875         futimens: fix configure check
20876         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20877         Reported by Bruno Haible.
20878
20879 2010-07-30  Bruno Haible  <bruno@clisp.org>
20880
20881         getline: Update regarding AIX.
20882         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20883         Reported by Rainer Tammer.
20884
20885 2010-07-30  Bruno Haible  <bruno@clisp.org>
20886
20887         wcwidth: Drop replacement on AIX 7.
20888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20889         AIX 7.
20890         Reported by Rainer Tammer.
20891
20892 2010-07-30  Bruno Haible  <bruno@clisp.org>
20893
20894         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20895         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20896         a 'char *'.
20897         Reported by Rainer Tammer.
20898
20899 2010-07-30  Bruno Haible  <bruno@clisp.org>
20900
20901         unlink: Update regarding AIX.
20902         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20903         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20904         Reported by Rainer Tammer.
20905
20906 2010-07-30  Bruno Haible  <bruno@clisp.org>
20907
20908         symlink: Update regarding AIX.
20909         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20910         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20911         Reported by Rainer Tammer.
20912
20913 2010-07-30  Bruno Haible  <bruno@clisp.org>
20914
20915         strndup: Update regarding AIX.
20916         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20917         AIX 7.
20918         Reported by Rainer Tammer.
20919
20920 2010-07-30  Bruno Haible  <bruno@clisp.org>
20921
20922         stat: Update regarding AIX.
20923         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20924         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20925         Reported by Rainer Tammer.
20926
20927 2010-07-30  Bruno Haible  <bruno@clisp.org>
20928
20929         truncl: Fix autoconf test.
20930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20931         whether truncl works.
20932         Reported by Rainer Tammer.
20933
20934 2010-07-30  Bruno Haible  <bruno@clisp.org>
20935
20936         round: Update regarding AIX.
20937         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20938         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20939         Reported by Rainer Tammer.
20940
20941 2010-07-30  Bruno Haible  <bruno@clisp.org>
20942
20943         rename: Update regarding AIX.
20944         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20945         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20946         Reported by Rainer Tammer.
20947
20948 2010-07-30  Bruno Haible  <bruno@clisp.org>
20949
20950         printf.m4: Update regarding AIX.
20951         * m4/printf.m4: Update comments regarding AIX.
20952         Reported by Rainer Tammer.
20953
20954 2010-07-30  Bruno Haible  <bruno@clisp.org>
20955
20956         iconv: Update regarding AIX.
20957         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20958         AIX 7.
20959         Reported by Rainer Tammer.
20960
20961 2010-07-30  Bruno Haible  <bruno@clisp.org>
20962
20963         getopt: Update regarding AIX.
20964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20965         no on AIX.
20966         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20967         Reported by Rainer Tammer.
20968
20969 2010-07-30  Bruno Haible  <bruno@clisp.org>
20970
20971         ldexpl; Update regarding AIX.
20972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20973         on AIX 7.
20974         Reported by Rainer Tammer.
20975
20976 2010-07-30  Bruno Haible  <bruno@clisp.org>
20977
20978         frexpl: Update regarding AIX.
20979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20980         on AIX 7.
20981         Reported by Rainer Tammer.
20982
20983 2010-07-30  Bruno Haible  <bruno@clisp.org>
20984
20985         open, fopen: Update regarding AIX.
20986         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20987         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20988         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20989         * doc/posix-functions/fopen.texi: Likewise.
20990         Reported by Rainer Tammer.
20991
20992 2010-07-30  Bruno Haible  <bruno@clisp.org>
20993
20994         chown: Update doc regarding AIX.
20995         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20996         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20997         Reported by Rainer Tammer.
20998
20999 2010-07-30  Eric Blake  <eblake@redhat.com>
21000
21001         strtod: fix bug in replacement function on AIX
21002         * lib/strtod.c (strtod): Special case broken "0x" parse in
21003         underlying strtod.
21004         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21005         * doc/posix-functions/strtod.texi (strtod): Likewise.
21006         Reported by Rainer Tammer.
21007
21008 2010-07-30  Bruno Haible  <bruno@clisp.org>
21009
21010         mbrlen: Fix cross-compilation guess for AIX.
21011         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21012         guess. Leftover from 2008-12-22.
21013
21014 2010-07-30  Bruno Haible  <bruno@clisp.org>
21015
21016         mbrtowc: Fix cross-compilation guess for AIX.
21017         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21018         guess. Leftover from 2008-12-21.
21019
21020 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21021
21022         init.sh: work around trap limitation of some shells
21023         * tests/init.sh (setup_): Move exit trap outside of shell function.
21024
21025 2010-07-29  Eric Blake  <eblake@redhat.com>
21026
21027         strtod: aid debugging
21028         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21029         understanding why strtod is rejected.
21030
21031 2010-07-28  Bruno Haible  <bruno@clisp.org>
21032
21033         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21034         * lib/unistr/u8-chr.c: Include <string.h>.
21035         * tests/unistr/test-u8-chr.c: Likewise.
21036         * tests/unistr/test-u16-chr.c: Likewise.
21037         * tests/unistr/test-u32-chr.c: Likewise.
21038         * tests/unistr/test-u8-strchr.c: Likewise.
21039         * tests/unistr/test-u16-strchr.c: Likewise.
21040         * tests/unistr/test-u32-strchr.c: Likewise.
21041         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21042         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21043         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21044         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21045
21046 2010-07-28  Bruno Haible  <bruno@clisp.org>
21047
21048         Use spaces for indentation, not tabs.
21049         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21050
21051 2010-07-27  Bruno Haible  <bruno@clisp.org>
21052
21053         mbspcasecmp: Fix function specification.
21054         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21055         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21056         Reported by Eric Blake <eblake@redhat.com>.
21057
21058 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21059
21060         timespec: use cast and not conditional, as truncation isn't possible
21061         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21062         instead of a conditional.  Comment about the situation in more detail.
21063         This undoes most of the 2009-10-29 patch.
21064
21065 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21066
21067         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21068         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21069         * lib/unistr/u8-strchr.c: Likewise.
21070         * modules/unistr/u8-chr: Depend on memchr.
21071
21072         unistr/u*-strchr: add tests
21073         * modules/unistr/u8-strchr-tests: New file.
21074         * modules/unistr/u16-strchr-tests: New file.
21075         * modules/unistr/u32-strchr-tests: New file.
21076         * tests/unistr/test-strchr.h: New file.
21077         * tests/unistr/test-u8-strchr.c: New file.
21078         * tests/unistr/test-u16-strchr.c: New file.
21079         * tests/unistr/test-u32-strchr.c: New file.
21080
21081         unistr/u*-chr: test multibyte sequences more
21082         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21083         test vector.
21084         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21085         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21086         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21087
21088         unistr/u*-chr: test multibyte sequences
21089         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21090
21091         unistr/u*-chr: prepare for multibyte tests
21092         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21093         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21094         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21095         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21096         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21097         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21098
21099 2010-07-18  Bruno Haible  <bruno@clisp.org>
21100
21101         unistr/u8-strchr: Optimize non-ASCII argument case.
21102         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21103         because the first byte often matches anyway.
21104         Reported by Pádraig Brady <P@draigbrady.com>.
21105
21106 2010-07-15  Karl Berry  <karl@gnu.org>
21107
21108         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21109
21110 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21111
21112         getcwd: on Solaris, work better if ancestors are inaccessible
21113         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21114         buffer and size, try again with a large buffer.  This works better
21115         on Solaris, since its getcwd succeeds even if the path to the root
21116         is inaccessible, and this is helpful in common cases such as .zfs
21117         hidden directories.  Problem reported by J Chapman Flack in
21118         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21119         Use system getcwd if it's declared, not merely if it's partly
21120         working; use the partly-working test only to avoid needless effort
21121         if the system getcwd fails.
21122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21123         comment that was already obsolete and is now even more obsolete.
21124         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21125         now might call strdup.
21126
21127 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21128
21129         pthread: Add enough so that coreutils/src/sort.c compiles.
21130         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21131         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21132         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21133         Include <sys/types.h>, in case it defines pthread_t.
21134         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21135         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21136         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21137         (pthread_rwlockattr_t, pthread_spinlock_t):
21138         New typedefs, if HAVE_PTHREAD_T is not defined.
21139         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21140         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21141         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21142         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21143         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21144         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21145         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21146         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21147         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21148         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21149         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21150         New macros.
21151         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21152         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21153         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21154         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21155         (pthread_spin_unlock): New dummy functions.
21156         (pthread_create): Return EAGAIN; don't set errno.
21157         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21158         require AC_C_INLINE.
21159         * modules/pthread (Depends-on): Add sched, time.
21160         (pthread.h): Use AM_V_GEN.
21161
21162 2010-07-13  Bruno Haible  <bruno@clisp.org>
21163
21164         striconveh: Don't malloc memory if the result buffer is sufficient.
21165         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21166         buffer if its size is sufficient.
21167         Reported by Ludovic Courtès <ludo@gnu.org>.
21168
21169 2010-07-13  Bruno Haible  <bruno@clisp.org>
21170
21171         strtod: Add safety check.
21172         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21173
21174 2010-07-12  Bruno Haible  <bruno@clisp.org>
21175
21176         Unify tests that set gl_cv_func_ldexpl_no_libm.
21177         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21178         gl_FUNC_LDEXPL.
21179         (gl_FUNC_LDEXPL): Invoke it.
21180         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21181
21182 2010-07-12  Bruno Haible  <bruno@clisp.org>
21183
21184         Unify tests that set gl_cv_func_ldexp_no_libm.
21185         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21186         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21187         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21188         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21189         * modules/strtod (Files): Add m4/ldexp.m4.
21190
21191 2010-07-12  Bruno Haible  <bruno@clisp.org>
21192
21193         Unify tests that set gl_cv_func_frexpl_no_libm.
21194         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21195         gl_FUNC_FREXPL_NO_LIBM.
21196         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21198
21199 2010-07-12  Bruno Haible  <bruno@clisp.org>
21200
21201         Unify tests that set gl_cv_func_frexp_no_libm.
21202         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21203         gl_FUNC_FREXP_NO_LIBM.
21204         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21205         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21206
21207 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21208
21209         memcoll: clarify sizes versus lengths, document better, and tweak perf
21210         * lib/memcoll.c (strcoll_loop, memcoll0):
21211         Improve quality of descriptive comments.  Name variables
21212         consistently as to whether they are lengths (which do not include
21213         terminating null) versus sizes (which do).
21214         * lib/xmemcoll.c (xmemcoll0): Likewise.
21215         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21216         returned when s1size == 0; this is easier to compile and saves
21217         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21218
21219 2010-07-12  Bruno Haible  <bruno@clisp.org>
21220
21221         Tests for module '_Exit'.
21222         * modules/_Exit-tests: New file.
21223         * tests/test-_Exit.sh: New file.
21224         * tests/test-_Exit.c: New file.
21225
21226         New module '_Exit'.
21227         * lib/stdlib.in.h (__attribute__): New macro.
21228         (_Exit): New declaration.
21229         * lib/_Exit.c: New file.
21230         * m4/_Exit.m4: New file.
21231         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21232         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21233         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21234         * modules/_Exit: New file.
21235         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21236         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21237
21238 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21239
21240         strtod: make it more-accurate typically, and don't require libm
21241         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21242         Include limits.h.  Don't include string.h.
21243         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21244         (locale_isspace): New function, so that no casts are needed to
21245         check whether *s is a space.
21246         (ldexp): Provide an unused dummy if not available.
21247         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21248         (strtod): Use them.  This implementation prefers to use the
21249         underlying strtod if available, falling back on our own code
21250         only to fix known bugs.  This is more likely to produce an
21251         accurate result.  Also, it avoids the use of libm functions.
21252         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21253         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21254         was absent, but it caused a test failure with coreutils.
21255         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21256         with libm.
21257         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21258         * modules/strtod-tests (Makefile.am): Likewise.
21259
21260 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21261             Bruno Haible  <bruno@clisp.org>
21262
21263         unistr/u8-strchr: Optimize ASCII argument case.
21264         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21265
21266 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21267
21268         (x)memcoll: minor tweaks
21269         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21270         is after the type that it qualifies.
21271         (memcoll0): Likewise.
21272         * lib/memcoll.h (memcoll0): Likewise.
21273         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21274         * lib/xmemcoll.h (xmemcoll0): Likewise.
21275         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21276         differs from memcoll in that the NUL byte is part of the argument.
21277         Omit the abort-checks, as performance is a real issue here.  Plus,
21278         the checks were wrong anyway (an off-by-one error).  Omit local
21279         variable 'diff', as it's a bit clearer that way.
21280         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21281         no longer needed.
21282
21283 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21284
21285         (x)memcoll: speedup when input is known to be NUL delimited
21286         * lib/memcoll.c: Include stdlib.
21287         (memcoll0): New function.
21288         (strcoll_loop): New function, refactored for use in both memcoll
21289         and memcoll0.
21290         * lib/memcoll.h (memcoll0): Add prototype.
21291         * lib/xmemcoll.c (xmemcoll0): New function.
21292         (collate_error): New function, refactored for use in both xmemcoll
21293         and xmemcoll0.
21294         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21295         * m4/memcoll.m4: add inline invocation.
21296
21297 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21298
21299         * build-aux/bootstrap: Remove any local translations
21300         from the translation project synchronization directory,
21301         so that local only translations are not distributed.
21302
21303 2010-07-04  Bruno Haible  <bruno@clisp.org>
21304
21305         fsusage: Clarify which code applies to which platforms.
21306         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21307         platform.
21308         * lib/fsusage.c (get_fs_usage): Likewise.
21309
21310 2010-07-04  Bruno Haible  <bruno@clisp.org>
21311
21312         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21313         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21314         Reported by Martin Lambers <marlam@marlam.de>.
21315
21316 2010-07-04  Jim Meyering  <meyering@redhat.com>
21317
21318         hash: once again explicitly disallow insertion of NULL
21319         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21320         inserting a NULL pointer cannot work with these functions.
21321         Add a comment with details.
21322         This reverts part of the 2010-07-01 commit, 5bef1a35
21323         "hash: extend module to deal with non-pointer keys".
21324
21325 2010-07-01  Bruno Haible  <bruno@clisp.org>
21326
21327         stdbool: Update doc.
21328         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21329         Info from Christian Weisgerber <naddy@mips.inka.de>.
21330
21331 2010-07-01  Jim Meyering  <meyering@redhat.com>
21332
21333         hash: extend module to deal with non-pointer keys
21334         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21335         but that allows insertion of non-pointer entries.
21336         Do not disallow an ENTRY value of NULL.
21337         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21338         * lib/hash.h (hash_insert0): Declare.
21339
21340 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21341
21342         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21343         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21344         not present (i.e. with autoconf 2.59 and when using gettextize, not
21345         gnulib), require AC_GNU_SOURCE instead.
21346
21347 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21348
21349         idpriv-drop: Fix tests.
21350         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21351         not to the test-idpriv-droptemp program.
21352
21353 2010-06-29  Bruno Haible  <bruno@clisp.org>
21354
21355         string: Fix syntax error with g++ 2.96.
21356         * lib/string.in.h (__pure__): Remove definition.
21357         (_GL_ATTRIBUTE_PURE): New macro.
21358         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21359         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21360         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21361
21362 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21363
21364         unitypes: Fix bug introduced on 2010-05-18.
21365         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21366
21367 2010-06-22  Eric Blake  <eblake@redhat.com>
21368
21369         memmem: slight optimization
21370         * lib/str-two-way.h (critical_factorization): Update comments.
21371         Reduce work during factorization phase.
21372         Reported by Carlos Bueno <carlos@bueno.org>.
21373
21374 2010-06-21  Bruno Haible  <bruno@clisp.org>
21375
21376         Fix HAVE_CALLOC_POSIX misnomer.
21377         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21378         !HAVE_CALLOC_POSIX.
21379         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21380         HAVE_CALLOC_POSIX.
21381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21382         instead of HAVE_CALLOC_POSIX.
21383         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21384         HAVE_CALLOC_POSIX.
21385
21386         Use modern idiom for calloc() replacement.
21387         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21388         AC_FUNC_CALLOC.
21389         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21390         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21391         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21392         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21393         (gl_REPLACE_CALLOC): New macro.
21394
21395 2010-06-21  Bruno Haible  <bruno@clisp.org>
21396
21397         Fix HAVE_REALLOC_POSIX misnomer.
21398         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21399         !HAVE_REALLOC_POSIX.
21400         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21401         HAVE_REALLOC_POSIX.
21402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21403         instead of HAVE_REALLOC_POSIX.
21404         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21405         HAVE_REALLOC_POSIX.
21406
21407         Use modern idiom for realloc() replacement.
21408         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21409         AC_FUNC_REALLOC.
21410         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21411         Autoconf's AC_FUNC_REALLOC.
21412         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21413         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21414         (gl_REPLACE_REALLOC): New macro.
21415         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21416
21417 2010-06-21  Bruno Haible  <bruno@clisp.org>
21418
21419         Fix HAVE_MALLOC_POSIX misnomer.
21420         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21421         !HAVE_MALLOC_POSIX.
21422         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21423         HAVE_MALLOC_POSIX.
21424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21425         instead of HAVE_MALLOC_POSIX.
21426         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21427         HAVE_MALLOC_POSIX.
21428
21429         Use modern idiom for malloc() replacement.
21430         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21431         AC_FUNC_MALLOC.
21432         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21433         Autoconf's AC_FUNC_MALLOC.
21434         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21435         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21436         (gl_REPLACE_MALLOC): New macro.
21437         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21438
21439 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21440
21441         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21442         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21443         This macro takes 3 arguments, not 4.
21444
21445 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21446
21447         ipv6: fix detection under mingw
21448         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21449         in6_addr.
21450
21451 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21452
21453         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21454         that strtod() works when cross-compiling to a glibc version known
21455         to work.
21456
21457 2010-06-15  Bruno Haible  <bruno@clisp.org>
21458
21459         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21460
21461 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21462
21463         select: Correct timeout.
21464         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21465
21466 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21467
21468         git-version-gen: init shell var to avoid env var influence
21469         * build-aux/git-version-gen (v): Init shell var to empty.
21470
21471 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         priv-set: Don't assume that priv.h exists merely because getppriv does.
21474         See Jan Andersen's bug report about AIX 5L in
21475         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21476         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21477         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21478         * lib/priv-set.h: Likewise.
21479         * tests/test-priv-set.c: Likewise.
21480
21481 2010-06-13  Bruno Haible  <bruno@clisp.org>
21482
21483         relocatable: Make it easier to test whether to install wrappers.
21484         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21485         RELOCATABLE_VIA_WRAPPER.
21486
21487 2010-06-13  Bruno Haible  <bruno@clisp.org>
21488
21489         gnulib-tool: Display specified modules and dependencies differently.
21490         * gnulib-tool (func_show_module_list): New function.
21491         (func_import, func_create_testdir): Invoke it.
21492         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21493
21494 2010-06-13  Bruno Haible  <bruno@clisp.org>
21495
21496         gnulib-tool: Align code of func_import and func_create_testdir.
21497         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21498         specified_modules.
21499
21500 2010-06-12  Jim Meyering  <meyering@redhat.com>
21501
21502         test-inttostr: avoid spurious failure on Solaris 9
21503         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21504         to accept "%ju".  Reported by Bruno Haible.
21505
21506 2010-06-11  Jim Meyering  <meyering@redhat.com>
21507
21508         test-sys_socket: mark variables as used more readably
21509         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21510         as "used" explicitly via (void) statement casts.  This is more
21511         readable than using them in an artificial return expression.
21512         Suggestion from Bruno Haible.
21513
21514 2010-06-11  Bruno Haible  <bruno@clisp.org>
21515
21516         Avoid some more warnings from "gcc -Wwrite-strings".
21517         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21518         to 'const char *'.
21519         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21520         * tests/test-c-strcasestr.c (main): Likewise.
21521         * tests/test-mbscasestr1.c (main): Likewise.
21522         * tests/test-mbscasestr2.c (main): Likewise.
21523         * tests/test-memmem.c (main): Likewise.
21524         * tests/test-strstr.c (main): Likewise.
21525         * tests/test-strcasestr.c (main): Likewise.
21526
21527 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21528
21529         init.sh: change framework_failure_ to fail with status 99, not 1
21530         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21531         automake's parallel-tests rule that this is an unexpected failure,
21532         even if the test is listed in XFAIL_TESTS.
21533
21534 2010-06-11  Jim Meyering  <meyering@redhat.com>
21535
21536         test-inttostr: avoid warnings about 4-6KB literal strings
21537         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21538         Include "macros.h", for its definition of ASSERT.
21539         (CK): s/assert/ASSERT/
21540         * modules/inttostr-tests (Files): Add macros.h.
21541
21542         init.sh: don't use $ME_ or skip_ before they are defined
21543         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21544         their first uses.  Also hoist their companions: warn_, fail_,
21545         framework_failure_, $stderr_fileno.  Prompted by a patch from
21546         Stefano Lattarini.
21547
21548         test-sys_socket: avoid set-but-not-used warnings from gcc
21549         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21550         avoid warning about set-but-not-used variables.
21551
21552         test-xvasprintf: avoid 'const' discard warnings
21553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21554         "const" when assigning from literal strings.
21555         (test_xasprintf): Add "void" in function argument list to placate
21556         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21557
21558         tests: avoid compilation warnings in argmatch and exclude tests...
21559         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21560         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21561         Since it always exits, declare with the "noreturn" attribute.
21562         * tests/test-argmatch.c: Likewise.
21563
21564         tests: avoid 'const' discard warnings in mbsstr tests
21565         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21566         * tests/test-mbsstr2.c (main): Likewise.
21567
21568         test-verify: avoid warning from gcc's -Wmissing-declarations
21569         * tests/test-verify.c (function): Declare to be static.
21570
21571         test-inttostr.c: include <string.h> for use of strcmp
21572         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21573
21574         test-linkat: avoid failed assertion on "other" architectures
21575         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21576         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21577         sparc: https://bugs.launchpad.net/bugs/591968
21578
21579 2010-06-11  Jim Meyering  <meyering@redhat.com>
21580
21581         printf.m4: avoid autoconf's "Expanded Before Required" warning
21582         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21583         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21584         autoconf warning.
21585
21586 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21587
21588         Replacement header templates are now named with ".in", not "_".
21589         * doc/gnulib-intro.texi: Correct.
21590
21591 2010-06-10  Jim Meyering  <meyering@redhat.com>
21592
21593         inttostr-tests: depend on snprintf, not snprintf-posix
21594         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21595         snprintf-posix, to avoid this aclocal failure:
21596           missing file gnulib-tests/vasnprintf.c
21597           configure.ac:45: error: expected source file, required through \
21598           AC_LIBSOURCES, not found
21599
21600 2010-06-10  Jim Meyering  <meyering@redhat.com>
21601
21602         inttostr: add a new function, inttostr, and tests
21603         The namesake function was not available.  The existence of the
21604         template file, inttostr.c makes its addition nontrivial.
21605         * lib/anytostr.c: Rename from inttostr.c.
21606         (anytostr): Rename from inttostr.
21607         * lib/inttostr.c: New file.
21608         * modules/inttostr (Files): Add anytostr.c.
21609         (Makefile.am): Set lib_SOURCES instead of ...
21610         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21611         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21612         * lib/offtostr.c: Likewise.
21613         * lib/uinttostr.c: Likewise.
21614         * lib/umaxtostr.c: Likewise.
21615         * modules/inttostr-tests: New file.
21616         * tests/test-inttostr.c: New file.  Test these functions.
21617
21618 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21619             Bruno Haible  <bruno@clisp.org>
21620
21621         Add "Extending Gnulib" chapter to manual.
21622         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21623         chapter.
21624         (Extending Gnulib): New chapter.
21625         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21626         chapter.
21627
21628 2010-06-09  Bruno Haible  <bruno@clisp.org>
21629
21630         Avoid relocwrapper link errors due to gnulib replacement functions.
21631         * lib/areadlink.c: Use the system's malloc, realloc functions.
21632         (areadlink): Set errno to ENOMEM explicitly.
21633         * modules/areadlink (Depends-on): Remove malloc-posix.
21634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21635
21636 2010-06-09  Bruno Haible  <bruno@clisp.org>
21637
21638         Avoid relocwrapper link errors due to gnulib replacement functions.
21639         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21640         * lib/malloca.c: Likewise.
21641         * lib/relocatable.c: Likewise.
21642         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21643         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21644         * lib/setenv.c: Use the system's malloc, realloc functions.
21645         * lib/strerror.c: Use the system's sprintf function.
21646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21647
21648 2010-06-04  Bruno Haible  <bruno@clisp.org>
21649
21650         Prefer documented low-level autoconf macro names.
21651         * m4/lib-link.m4: Use m4_translit instead of translit.
21652         * m4/environ.m4: Likewise.
21653         * m4/mathfunc.m4: Likewise.
21654         * m4/onceonly.m4: Likewise.
21655         * m4/stdint.m4: Likewise.
21656         Suggested by Eric Blake.
21657
21658 2010-06-04  Martin Lambers  <marlam@marlam.de>
21659             Bruno Haible  <bruno@clisp.org>
21660
21661         havelib: Allow library names with '+' characters.
21662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21663         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21664
21665 2010-06-09  Bruno Haible  <bruno@clisp.org>
21666
21667         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21668         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21669         realloc failed.
21670
21671 2010-06-08  Peter Simons  <simons@cryp.to>
21672
21673         maint.mk: make the news-check rule more configurable
21674         * top/maint.mk (news-check-lines-spec): New variable.
21675         (news-check): Use "sed -n 1,10p" in place of "head".
21676
21677 2010-06-07  Jim Meyering  <meyering@redhat.com>
21678
21679         do-release-commit-and-tag: fix typo in --help
21680         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21681
21682         regex: avoid new dead-code warning with gcc-4.6.0
21683         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21684         if-block containing a while-loop.  It's been unused for at least
21685         5 years.
21686
21687 2010-06-05  Bruno Haible  <bruno@clisp.org>
21688
21689         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21690         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21691
21692 2010-06-04  Bruno Haible  <bruno@clisp.org>
21693
21694         Update to GNU gettext 0.18.1.
21695         * modules/gettext (configure.ac): Require gettext infrastructure from
21696         version 0.18.1.
21697
21698 2010-06-03  Bruno Haible  <bruno@clisp.org>
21699
21700         Don't use AC_LIBOBJ with file names in subdirectories.
21701         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21702         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21703         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21704         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21705         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21706         gl_LIBUNISTRING_LIBSOURCE.
21707         (Makefile.am): Augment lib_SOURCES here, conditionally.
21708         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21709
21710 2010-06-03  Bruno Haible  <bruno@clisp.org>
21711
21712         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21713         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21714         expansion does not end with a newline.
21715         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21716         unnecessary newline.
21717
21718 2010-06-03  Bruno Haible  <bruno@clisp.org>
21719
21720         Reduce dependencies.
21721         * tests/test-quotearg.h: New file, extracted from
21722         tests/test-quotearg.c.
21723         * tests/test-quotearg-simple.c: New file, extracted from
21724         tests/test-quotearg.c.
21725         * tests/test-quotearg.c: Don't include <ctype.h>.
21726         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21727         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21728         use_quote_double_quotes, use_quotearg_colon): Moved to
21729         tests/test-quotearg.h.
21730         (results_g, flag_results, custom_quotes, custom_results): Moved
21731         to tests/test-quotearg-simple.c.
21732         (main): Moved the part that does not depend on gettext to
21733         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21734         performed.
21735         * modules/quotearg-simple: New file.
21736         * modules/quotearg-simple-tests: New file.
21737         * modules/quotearg (Depends-on): Add quotearg-simple.
21738         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21739         (Files): Add tests/test-quotearg.h.
21740         Reported by Paolo Bonzini.
21741
21742 2010-06-03  Bruno Haible  <bruno@clisp.org>
21743
21744         Reduce dependencies.
21745         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21746
21747 2010-06-03  Bruno Haible  <bruno@clisp.org>
21748
21749         time: Undefine more broken macros.
21750         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21751         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21752         Reported by Eric Blake.
21753
21754 2010-06-03  Bruno Haible  <bruno@clisp.org>
21755
21756         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21757         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21758         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21759         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21760         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21761         Reported by Ludovic Courtès <ludo@gnu.org>.
21762
21763 2010-06-02  Eric Blake  <eblake@redhat.com>
21764
21765         time: work with mingw + pthreads-win32 library
21766         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21767         if timespec is defined only in pthread.h.
21768         * modules/time (Makefile.am): Substitute it.
21769         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21770         <pthread.h>, when needed.
21771         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21772         from the library.
21773
21774 2010-05-31  Bruno Haible  <bruno@clisp.org>
21775
21776         Avoid expanding two macros in the wrong order.
21777         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21778         gl_LIBUNISTRING if it is defined.
21779         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21780         autoconf >= 2.64.
21781         Reported by Ludovic Courtès <ludo@gnu.org>.
21782
21783 2010-05-27  Jim Meyering  <meyering@redhat.com>
21784
21785         maint.mk: also prohibit "#undef" of always-defined symbols
21786         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21787         Allow more than one space before the symbol name.
21788         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21789         the regexp uses alternation.
21790
21791 2010-05-26  Eric Blake  <eblake@redhat.com>
21792
21793         maint.mk: avoid echo -e
21794         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21795         Convert all uses of echo -* to printf.
21796         Reported by Matthias Bolte.
21797
21798 2010-05-25  Bruno Haible  <bruno@clisp.org>
21799
21800         Update to GNU gettext 0.18, part 2.
21801         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21802         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21803
21804 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21805
21806         Add missing include in test-pwrite.c.
21807         * tests/test-pwrite.c: Include string.h, for strcmp.
21808
21809 2010-05-24  Bruno Haible  <bruno@clisp.org>
21810
21811         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21812
21813 2010-05-24  Bruno Haible  <bruno@clisp.org>
21814
21815         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21816         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21817         iconveh_error argument.
21818         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21819         U_STRCONV_TO_LOCALE.
21820         * lib/unistr/u16-strcoll.c: Likewise.
21821         * lib/unistr/u32-strcoll.c: Likewise.
21822         * modules/unistr/u8-strcoll (Depends-on): Add
21823         uniconv/u8-strconv-to-enc, localcharset. Remove
21824         uniconv/u8-strconv-to-locale.
21825         (configure.ac): Bump version number.
21826         * modules/unistr/u16-strcoll (Depends-on): Add
21827         uniconv/u16-strconv-to-enc, localcharset. Remove
21828         uniconv/u16-strconv-to-locale.
21829         (configure.ac): Bump version number.
21830         * modules/unistr/u32-strcoll (Depends-on): Add
21831         uniconv/u32-strconv-to-enc, localcharset. Remove
21832         uniconv/u32-strconv-to-locale.
21833         (configure.ac): Bump version number.
21834
21835 2010-05-24  Bruno Haible  <bruno@clisp.org>
21836
21837         Avoid a test failure on NetBSD 5.0.
21838         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21839         an iconv() bug.
21840
21841 2010-05-24  Bruno Haible  <bruno@clisp.org>
21842
21843         Adjust #include directive style.
21844         * modules/regex (Includes): Recommend to write <regex.h>.
21845
21846 2010-05-24  Bruno Haible  <bruno@clisp.org>
21847
21848         regex: Don't require alloca.
21849         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21850         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21851         only inside if (0).
21852
21853 2010-05-23  Jim Meyering  <meyering@redhat.com>
21854
21855         test-renameat.c: include <sys/stat.h>
21856         * tests/test-renameat.c: Include <sys/stat.h>; required for
21857         definition of S_IS* macros.
21858
21859 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21860
21861         Update maintainer documentation for 'relocatable-prog' module.
21862         * doc/relocatable-maint.texi: Update.
21863         Comments by Bruno Haible.
21864
21865 2010-05-23  Bruno Haible  <bruno@clisp.org>
21866
21867         git-merge-changelog: Enable --split-merged-entry by default.
21868         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21869         (usage): Don't mention this option any more.
21870         Reported by Ralf Wildenhues.
21871
21872 2010-05-23  Jim Meyering  <meyering@redhat.com>
21873
21874         test-pwrite: do not leave behind a test file named "out"
21875         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21876         The trivial-looking use of init.sh is really necessary.
21877         It ensures that the temporary file, "out", is created in
21878         a temporary directory, and removed upon termination.
21879         * tests/test-pwrite.sh: Re-add file.
21880         * modules/pwrite-tests: Reference it.
21881
21882 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21883
21884         Fix output redirection buglet in init.sh.
21885         * tests/init.sh: Fix redirection of stderr.
21886
21887 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21888
21889         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21890
21891 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21892
21893         * modules/valgrind-tests: New file.
21894         * m4/valgrind-tests.m4: New file.
21895         * doc/valgrind-tests.texi: New file.
21896         * doc/gnulib.texi (Running self-tests under valgrind): New
21897         section.
21898
21899 2010-05-19  Bruno Haible  <bruno@clisp.org>
21900
21901         Clean up dead code in recent commit.
21902         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21903         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21904         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21905         Suggested by Paolo Bonzini.
21906
21907 2010-05-19  Bruno Haible  <bruno@clisp.org>
21908
21909         Avoid valgrind error reports from libunistring.
21910         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21911         * modules/libunistring (Files): Add it.
21912         * modules/libunistring-optional (Files): Likewise.
21913
21914 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21915             Bruno Haible  <bruno@clisp.org>
21916
21917         New module 'libunistring-optional'.
21918         * modules/libunistring-optional: New file.
21919         * m4/libunistring-base.m4: New file.
21920         * m4/libunistring-optional.m4: New file.
21921         * lib/unicase.in.h: Renamed from lib/unicase.h.
21922         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21923         * lib/unictype.in.h: Renamed from lib/unictype.h.
21924         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21925         * lib/uniname.in.h: Renamed from lib/uniname.h.
21926         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21927         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21928         * lib/unistr.in.h: Renamed from lib/unistr.h.
21929         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21930         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21931         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21932         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21933         gl_LIBUNISTRING. If the library was found, determine the installed
21934         version and set LIBUNISTRING_VERSION.
21935         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21936         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21937         handle a configuration option --with-included-libunistring.
21938         * modules/libunistring (Files): Add m4/absolute-header.m4.
21939         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21940         Add m4/libunistring-base.m4.
21941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21942         (Makefile.am): Build unicase.h from unicase.in.h.
21943         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21944         Add m4/libunistring-base.m4.
21945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21946         (Makefile.am): Build uniconv.h from uniconv.in.h.
21947         * modules/unictype/base (Files): Use unictype.in.h instead of
21948         unictype.h. Add m4/libunistring-base.m4.
21949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21950         (Makefile.am): Build unictype.h from unictype.in.h.
21951         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21952         Add m4/libunistring-base.m4.
21953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21954         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21955         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21956         Add m4/libunistring-base.m4.
21957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21958         (Makefile.am): Build uniname.h from uniname.in.h.
21959         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21960         Add m4/libunistring-base.m4.
21961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21962         (Makefile.am): Build uninorm.h from uninorm.in.h.
21963         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21964         unistdio.h. Add m4/libunistring-base.m4.
21965         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21966         (Makefile.am): Build unistdio.h from unistdio.in.h.
21967         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21968         Add m4/libunistring-base.m4.
21969         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21970         (Makefile.am): Build unistr.h from unistr.in.h.
21971         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21972         Add m4/libunistring-base.m4.
21973         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21974         (Makefile.am): Build unitypes.h from unitypes.in.h.
21975         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21976         Add m4/libunistring-base.m4.
21977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21978         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21979         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21980         uniwidth.h. Add m4/libunistring-base.m4.
21981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21982         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21983         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21984         instead of augmenting lib_SOURCES.
21985         * modules/unicase/empty-suffix-context: Likewise.
21986         * modules/unicase/locale-language: Likewise.
21987         * modules/unicase/tolower: Likewise.
21988         * modules/unicase/totitle: Likewise.
21989         * modules/unicase/toupper: Likewise.
21990         * modules/unicase/u8-casecmp: Likewise.
21991         * modules/unicase/u8-casecoll: Likewise.
21992         * modules/unicase/u8-casefold: Likewise.
21993         * modules/unicase/u8-casexfrm: Likewise.
21994         * modules/unicase/u8-ct-casefold: Likewise.
21995         * modules/unicase/u8-ct-tolower: Likewise.
21996         * modules/unicase/u8-ct-totitle: Likewise.
21997         * modules/unicase/u8-ct-toupper: Likewise.
21998         * modules/unicase/u8-is-cased: Likewise.
21999         * modules/unicase/u8-is-casefolded: Likewise.
22000         * modules/unicase/u8-is-lowercase: Likewise.
22001         * modules/unicase/u8-is-titlecase: Likewise.
22002         * modules/unicase/u8-is-uppercase: Likewise.
22003         * modules/unicase/u8-prefix-context: Likewise.
22004         * modules/unicase/u8-suffix-context: Likewise.
22005         * modules/unicase/u8-tolower: Likewise.
22006         * modules/unicase/u8-totitle: Likewise.
22007         * modules/unicase/u8-toupper: Likewise.
22008         * modules/unicase/u16-casecmp: Likewise.
22009         * modules/unicase/u16-casecoll: Likewise.
22010         * modules/unicase/u16-casefold: Likewise.
22011         * modules/unicase/u16-casexfrm: Likewise.
22012         * modules/unicase/u16-ct-casefold: Likewise.
22013         * modules/unicase/u16-ct-tolower: Likewise.
22014         * modules/unicase/u16-ct-totitle: Likewise.
22015         * modules/unicase/u16-ct-toupper: Likewise.
22016         * modules/unicase/u16-is-cased: Likewise.
22017         * modules/unicase/u16-is-casefolded: Likewise.
22018         * modules/unicase/u16-is-lowercase: Likewise.
22019         * modules/unicase/u16-is-titlecase: Likewise.
22020         * modules/unicase/u16-is-uppercase: Likewise.
22021         * modules/unicase/u16-prefix-context: Likewise.
22022         * modules/unicase/u16-suffix-context: Likewise.
22023         * modules/unicase/u16-tolower: Likewise.
22024         * modules/unicase/u16-totitle: Likewise.
22025         * modules/unicase/u16-toupper: Likewise.
22026         * modules/unicase/u32-casecmp: Likewise.
22027         * modules/unicase/u32-casecoll: Likewise.
22028         * modules/unicase/u32-casefold: Likewise.
22029         * modules/unicase/u32-casexfrm: Likewise.
22030         * modules/unicase/u32-ct-casefold: Likewise.
22031         * modules/unicase/u32-ct-tolower: Likewise.
22032         * modules/unicase/u32-ct-totitle: Likewise.
22033         * modules/unicase/u32-ct-toupper: Likewise.
22034         * modules/unicase/u32-is-cased: Likewise.
22035         * modules/unicase/u32-is-casefolded: Likewise.
22036         * modules/unicase/u32-is-lowercase: Likewise.
22037         * modules/unicase/u32-is-titlecase: Likewise.
22038         * modules/unicase/u32-is-uppercase: Likewise.
22039         * modules/unicase/u32-prefix-context: Likewise.
22040         * modules/unicase/u32-suffix-context: Likewise.
22041         * modules/unicase/u32-tolower: Likewise.
22042         * modules/unicase/u32-totitle: Likewise.
22043         * modules/unicase/u32-toupper: Likewise.
22044         * modules/unicase/ulc-casecmp: Likewise.
22045         * modules/unicase/ulc-casecoll: Likewise.
22046         * modules/unicase/ulc-casexfrm: Likewise.
22047         * modules/uniconv/u8-conv-from-enc: Likewise.
22048         * modules/uniconv/u8-conv-to-enc: Likewise.
22049         * modules/uniconv/u8-strconv-from-enc: Likewise.
22050         * modules/uniconv/u8-strconv-from-locale: Likewise.
22051         * modules/uniconv/u8-strconv-to-enc: Likewise.
22052         * modules/uniconv/u8-strconv-to-locale: Likewise.
22053         * modules/uniconv/u16-conv-from-enc: Likewise.
22054         * modules/uniconv/u16-conv-to-enc: Likewise.
22055         * modules/uniconv/u16-strconv-from-enc: Likewise.
22056         * modules/uniconv/u16-strconv-from-locale: Likewise.
22057         * modules/uniconv/u16-strconv-to-enc: Likewise.
22058         * modules/uniconv/u16-strconv-to-locale: Likewise.
22059         * modules/uniconv/u32-conv-from-enc: Likewise.
22060         * modules/uniconv/u32-conv-to-enc: Likewise.
22061         * modules/uniconv/u32-strconv-from-enc: Likewise.
22062         * modules/uniconv/u32-strconv-from-locale: Likewise.
22063         * modules/uniconv/u32-strconv-to-enc: Likewise.
22064         * modules/uniconv/u32-strconv-to-locale: Likewise.
22065         * modules/unictype/bidicategory-byname: Likewise.
22066         * modules/unictype/bidicategory-name: Likewise.
22067         * modules/unictype/bidicategory-of: Likewise.
22068         * modules/unictype/bidicategory-test: Likewise.
22069         * modules/unictype/block-list: Likewise.
22070         * modules/unictype/block-test: Likewise.
22071         * modules/unictype/category-C: Likewise.
22072         * modules/unictype/category-Cc: Likewise.
22073         * modules/unictype/category-Cf: Likewise.
22074         * modules/unictype/category-Cn: Likewise.
22075         * modules/unictype/category-Co: Likewise.
22076         * modules/unictype/category-Cs: Likewise.
22077         * modules/unictype/category-L: Likewise.
22078         * modules/unictype/category-Ll: Likewise.
22079         * modules/unictype/category-Lm: Likewise.
22080         * modules/unictype/category-Lo: Likewise.
22081         * modules/unictype/category-Lt: Likewise.
22082         * modules/unictype/category-Lu: Likewise.
22083         * modules/unictype/category-M: Likewise.
22084         * modules/unictype/category-Mc: Likewise.
22085         * modules/unictype/category-Me: Likewise.
22086         * modules/unictype/category-Mn: Likewise.
22087         * modules/unictype/category-N: Likewise.
22088         * modules/unictype/category-Nd: Likewise.
22089         * modules/unictype/category-Nl: Likewise.
22090         * modules/unictype/category-No: Likewise.
22091         * modules/unictype/category-P: Likewise.
22092         * modules/unictype/category-Pc: Likewise.
22093         * modules/unictype/category-Pd: Likewise.
22094         * modules/unictype/category-Pe: Likewise.
22095         * modules/unictype/category-Pf: Likewise.
22096         * modules/unictype/category-Pi: Likewise.
22097         * modules/unictype/category-Po: Likewise.
22098         * modules/unictype/category-Ps: Likewise.
22099         * modules/unictype/category-S: Likewise.
22100         * modules/unictype/category-Sc: Likewise.
22101         * modules/unictype/category-Sk: Likewise.
22102         * modules/unictype/category-Sm: Likewise.
22103         * modules/unictype/category-So: Likewise.
22104         * modules/unictype/category-Z: Likewise.
22105         * modules/unictype/category-Zl: Likewise.
22106         * modules/unictype/category-Zp: Likewise.
22107         * modules/unictype/category-Zs: Likewise.
22108         * modules/unictype/category-and: Likewise.
22109         * modules/unictype/category-and-not: Likewise.
22110         * modules/unictype/category-byname: Likewise.
22111         * modules/unictype/category-name: Likewise.
22112         * modules/unictype/category-none: Likewise.
22113         * modules/unictype/category-of: Likewise.
22114         * modules/unictype/category-or: Likewise.
22115         * modules/unictype/category-test: Likewise.
22116         * modules/unictype/combining-class: Likewise.
22117         * modules/unictype/ctype-alnum: Likewise.
22118         * modules/unictype/ctype-alpha: Likewise.
22119         * modules/unictype/ctype-blank: Likewise.
22120         * modules/unictype/ctype-cntrl: Likewise.
22121         * modules/unictype/ctype-digit: Likewise.
22122         * modules/unictype/ctype-graph: Likewise.
22123         * modules/unictype/ctype-lower: Likewise.
22124         * modules/unictype/ctype-print: Likewise.
22125         * modules/unictype/ctype-punct: Likewise.
22126         * modules/unictype/ctype-space: Likewise.
22127         * modules/unictype/ctype-upper: Likewise.
22128         * modules/unictype/ctype-xdigit: Likewise.
22129         * modules/unictype/decimal-digit: Likewise.
22130         * modules/unictype/digit: Likewise.
22131         * modules/unictype/mirror: Likewise.
22132         * modules/unictype/numeric: Likewise.
22133         * modules/unictype/property-alphabetic: Likewise.
22134         * modules/unictype/property-ascii-hex-digit: Likewise.
22135         * modules/unictype/property-bidi-arabic-digit: Likewise.
22136         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22137         * modules/unictype/property-bidi-block-separator: Likewise.
22138         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22139         * modules/unictype/property-bidi-common-separator: Likewise.
22140         * modules/unictype/property-bidi-control: Likewise.
22141         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22142         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22143         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22144         * modules/unictype/property-bidi-european-digit: Likewise.
22145         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22146         * modules/unictype/property-bidi-left-to-right: Likewise.
22147         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22148         * modules/unictype/property-bidi-other-neutral: Likewise.
22149         * modules/unictype/property-bidi-pdf: Likewise.
22150         * modules/unictype/property-bidi-segment-separator: Likewise.
22151         * modules/unictype/property-bidi-whitespace: Likewise.
22152         * modules/unictype/property-byname: Likewise.
22153         * modules/unictype/property-combining: Likewise.
22154         * modules/unictype/property-composite: Likewise.
22155         * modules/unictype/property-currency-symbol: Likewise.
22156         * modules/unictype/property-dash: Likewise.
22157         * modules/unictype/property-decimal-digit: Likewise.
22158         * modules/unictype/property-default-ignorable-code-point: Likewise.
22159         * modules/unictype/property-deprecated: Likewise.
22160         * modules/unictype/property-diacritic: Likewise.
22161         * modules/unictype/property-extender: Likewise.
22162         * modules/unictype/property-format-control: Likewise.
22163         * modules/unictype/property-grapheme-base: Likewise.
22164         * modules/unictype/property-grapheme-extend: Likewise.
22165         * modules/unictype/property-grapheme-link: Likewise.
22166         * modules/unictype/property-hex-digit: Likewise.
22167         * modules/unictype/property-hyphen: Likewise.
22168         * modules/unictype/property-id-continue: Likewise.
22169         * modules/unictype/property-id-start: Likewise.
22170         * modules/unictype/property-ideographic: Likewise.
22171         * modules/unictype/property-ids-binary-operator: Likewise.
22172         * modules/unictype/property-ids-trinary-operator: Likewise.
22173         * modules/unictype/property-ignorable-control: Likewise.
22174         * modules/unictype/property-iso-control: Likewise.
22175         * modules/unictype/property-join-control: Likewise.
22176         * modules/unictype/property-left-of-pair: Likewise.
22177         * modules/unictype/property-line-separator: Likewise.
22178         * modules/unictype/property-logical-order-exception: Likewise.
22179         * modules/unictype/property-lowercase: Likewise.
22180         * modules/unictype/property-math: Likewise.
22181         * modules/unictype/property-non-break: Likewise.
22182         * modules/unictype/property-not-a-character: Likewise.
22183         * modules/unictype/property-numeric: Likewise.
22184         * modules/unictype/property-other-alphabetic: Likewise.
22185         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22186         * modules/unictype/property-other-grapheme-extend: Likewise.
22187         * modules/unictype/property-other-id-continue: Likewise.
22188         * modules/unictype/property-other-id-start: Likewise.
22189         * modules/unictype/property-other-lowercase: Likewise.
22190         * modules/unictype/property-other-math: Likewise.
22191         * modules/unictype/property-other-uppercase: Likewise.
22192         * modules/unictype/property-paired-punctuation: Likewise.
22193         * modules/unictype/property-paragraph-separator: Likewise.
22194         * modules/unictype/property-pattern-syntax: Likewise.
22195         * modules/unictype/property-pattern-white-space: Likewise.
22196         * modules/unictype/property-private-use: Likewise.
22197         * modules/unictype/property-punctuation: Likewise.
22198         * modules/unictype/property-quotation-mark: Likewise.
22199         * modules/unictype/property-radical: Likewise.
22200         * modules/unictype/property-sentence-terminal: Likewise.
22201         * modules/unictype/property-soft-dotted: Likewise.
22202         * modules/unictype/property-space: Likewise.
22203         * modules/unictype/property-terminal-punctuation: Likewise.
22204         * modules/unictype/property-test: Likewise.
22205         * modules/unictype/property-titlecase: Likewise.
22206         * modules/unictype/property-unassigned-code-value: Likewise.
22207         * modules/unictype/property-unified-ideograph: Likewise.
22208         * modules/unictype/property-uppercase: Likewise.
22209         * modules/unictype/property-variation-selector: Likewise.
22210         * modules/unictype/property-white-space: Likewise.
22211         * modules/unictype/property-xid-continue: Likewise.
22212         * modules/unictype/property-xid-start: Likewise.
22213         * modules/unictype/property-zero-width: Likewise.
22214         * modules/unictype/scripts: Likewise.
22215         * modules/unictype/syntax-c-ident: Likewise.
22216         * modules/unictype/syntax-c-whitespace: Likewise.
22217         * modules/unictype/syntax-java-ident: Likewise.
22218         * modules/unictype/syntax-java-whitespace: Likewise.
22219         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22220         * modules/unilbrk/u8-width-linebreaks: Likewise.
22221         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22222         * modules/unilbrk/u16-width-linebreaks: Likewise.
22223         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22224         * modules/unilbrk/u32-width-linebreaks: Likewise.
22225         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22226         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22227         * modules/uniname/uniname: Likewise.
22228         * modules/uninorm/canonical-decomposition: Likewise.
22229         * modules/uninorm/composition: Likewise.
22230         * modules/uninorm/decomposing-form: Likewise.
22231         * modules/uninorm/decomposition: Likewise.
22232         * modules/uninorm/filter: Likewise.
22233         * modules/uninorm/nfc: Likewise.
22234         * modules/uninorm/nfd: Likewise.
22235         * modules/uninorm/nfkc: Likewise.
22236         * modules/uninorm/nfkd: Likewise.
22237         * modules/uninorm/u8-normalize: Likewise.
22238         * modules/uninorm/u8-normcmp: Likewise.
22239         * modules/uninorm/u8-normcoll: Likewise.
22240         * modules/uninorm/u8-normxfrm: Likewise.
22241         * modules/uninorm/u16-normalize: Likewise.
22242         * modules/uninorm/u16-normcmp: Likewise.
22243         * modules/uninorm/u16-normcoll: Likewise.
22244         * modules/uninorm/u16-normxfrm: Likewise.
22245         * modules/uninorm/u32-normalize: Likewise.
22246         * modules/uninorm/u32-normcmp: Likewise.
22247         * modules/uninorm/u32-normcoll: Likewise.
22248         * modules/uninorm/u32-normxfrm: Likewise.
22249         * modules/unistdio/u8-asnprintf: Likewise.
22250         * modules/unistdio/u8-asprintf: Likewise.
22251         * modules/unistdio/u8-snprintf: Likewise.
22252         * modules/unistdio/u8-sprintf: Likewise.
22253         * modules/unistdio/u8-u8-asnprintf: Likewise.
22254         * modules/unistdio/u8-u8-asprintf: Likewise.
22255         * modules/unistdio/u8-u8-snprintf: Likewise.
22256         * modules/unistdio/u8-u8-sprintf: Likewise.
22257         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22258         * modules/unistdio/u8-u8-vasprintf: Likewise.
22259         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22260         * modules/unistdio/u8-u8-vsprintf: Likewise.
22261         * modules/unistdio/u8-vasnprintf: Likewise.
22262         * modules/unistdio/u8-vasprintf: Likewise.
22263         * modules/unistdio/u8-vsnprintf: Likewise.
22264         * modules/unistdio/u8-vsprintf: Likewise.
22265         * modules/unistdio/u16-asnprintf: Likewise.
22266         * modules/unistdio/u16-asprintf: Likewise.
22267         * modules/unistdio/u16-snprintf: Likewise.
22268         * modules/unistdio/u16-sprintf: Likewise.
22269         * modules/unistdio/u16-u16-asnprintf: Likewise.
22270         * modules/unistdio/u16-u16-asprintf: Likewise.
22271         * modules/unistdio/u16-u16-snprintf: Likewise.
22272         * modules/unistdio/u16-u16-sprintf: Likewise.
22273         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22274         * modules/unistdio/u16-u16-vasprintf: Likewise.
22275         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22276         * modules/unistdio/u16-u16-vsprintf: Likewise.
22277         * modules/unistdio/u16-vasnprintf: Likewise.
22278         * modules/unistdio/u16-vasprintf: Likewise.
22279         * modules/unistdio/u16-vsnprintf: Likewise.
22280         * modules/unistdio/u16-vsprintf: Likewise.
22281         * modules/unistdio/u32-asnprintf: Likewise.
22282         * modules/unistdio/u32-asprintf: Likewise.
22283         * modules/unistdio/u32-snprintf: Likewise.
22284         * modules/unistdio/u32-sprintf: Likewise.
22285         * modules/unistdio/u32-u32-asnprintf: Likewise.
22286         * modules/unistdio/u32-u32-asprintf: Likewise.
22287         * modules/unistdio/u32-u32-snprintf: Likewise.
22288         * modules/unistdio/u32-u32-sprintf: Likewise.
22289         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22290         * modules/unistdio/u32-u32-vasprintf: Likewise.
22291         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22292         * modules/unistdio/u32-u32-vsprintf: Likewise.
22293         * modules/unistdio/u32-vasnprintf: Likewise.
22294         * modules/unistdio/u32-vasprintf: Likewise.
22295         * modules/unistdio/u32-vsnprintf: Likewise.
22296         * modules/unistdio/u32-vsprintf: Likewise.
22297         * modules/unistdio/ulc-asnprintf: Likewise.
22298         * modules/unistdio/ulc-asprintf: Likewise.
22299         * modules/unistdio/ulc-fprintf: Likewise.
22300         * modules/unistdio/ulc-snprintf: Likewise.
22301         * modules/unistdio/ulc-sprintf: Likewise.
22302         * modules/unistdio/ulc-vasnprintf: Likewise.
22303         * modules/unistdio/ulc-vasprintf: Likewise.
22304         * modules/unistdio/ulc-vfprintf: Likewise.
22305         * modules/unistdio/ulc-vsnprintf: Likewise.
22306         * modules/unistdio/ulc-vsprintf: Likewise.
22307         * modules/unistr/u8-check: Likewise.
22308         * modules/unistr/u8-chr: Likewise.
22309         * modules/unistr/u8-cmp: Likewise.
22310         * modules/unistr/u8-cmp2: Likewise.
22311         * modules/unistr/u8-cpy: Likewise.
22312         * modules/unistr/u8-cpy-alloc: Likewise.
22313         * modules/unistr/u8-endswith: Likewise.
22314         * modules/unistr/u8-mblen: Likewise.
22315         * modules/unistr/u8-mbsnlen: Likewise.
22316         * modules/unistr/u8-mbtouc: Likewise.
22317         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22318         * modules/unistr/u8-mbtoucr: Likewise.
22319         * modules/unistr/u8-move: Likewise.
22320         * modules/unistr/u8-next: Likewise.
22321         * modules/unistr/u8-prev: Likewise.
22322         * modules/unistr/u8-set: Likewise.
22323         * modules/unistr/u8-startswith: Likewise.
22324         * modules/unistr/u8-stpcpy: Likewise.
22325         * modules/unistr/u8-stpncpy: Likewise.
22326         * modules/unistr/u8-strcat: Likewise.
22327         * modules/unistr/u8-strchr: Likewise.
22328         * modules/unistr/u8-strcmp: Likewise.
22329         * modules/unistr/u8-strcoll: Likewise.
22330         * modules/unistr/u8-strcpy: Likewise.
22331         * modules/unistr/u8-strcspn: Likewise.
22332         * modules/unistr/u8-strdup: Likewise.
22333         * modules/unistr/u8-strlen: Likewise.
22334         * modules/unistr/u8-strmblen: Likewise.
22335         * modules/unistr/u8-strmbtouc: Likewise.
22336         * modules/unistr/u8-strncat: Likewise.
22337         * modules/unistr/u8-strncmp: Likewise.
22338         * modules/unistr/u8-strncpy: Likewise.
22339         * modules/unistr/u8-strnlen: Likewise.
22340         * modules/unistr/u8-strpbrk: Likewise.
22341         * modules/unistr/u8-strrchr: Likewise.
22342         * modules/unistr/u8-strspn: Likewise.
22343         * modules/unistr/u8-strstr: Likewise.
22344         * modules/unistr/u8-strtok: Likewise.
22345         * modules/unistr/u8-to-u16: Likewise.
22346         * modules/unistr/u8-to-u32: Likewise.
22347         * modules/unistr/u8-uctomb: Likewise.
22348         * modules/unistr/u16-check: Likewise.
22349         * modules/unistr/u16-chr: Likewise.
22350         * modules/unistr/u16-cmp: Likewise.
22351         * modules/unistr/u16-cmp2: Likewise.
22352         * modules/unistr/u16-cpy: Likewise.
22353         * modules/unistr/u16-cpy-alloc: Likewise.
22354         * modules/unistr/u16-endswith: Likewise.
22355         * modules/unistr/u16-mblen: Likewise.
22356         * modules/unistr/u16-mbsnlen: Likewise.
22357         * modules/unistr/u16-mbtouc: Likewise.
22358         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22359         * modules/unistr/u16-mbtoucr: Likewise.
22360         * modules/unistr/u16-move: Likewise.
22361         * modules/unistr/u16-next: Likewise.
22362         * modules/unistr/u16-prev: Likewise.
22363         * modules/unistr/u16-set: Likewise.
22364         * modules/unistr/u16-startswith: Likewise.
22365         * modules/unistr/u16-stpcpy: Likewise.
22366         * modules/unistr/u16-stpncpy: Likewise.
22367         * modules/unistr/u16-strcat: Likewise.
22368         * modules/unistr/u16-strchr: Likewise.
22369         * modules/unistr/u16-strcmp: Likewise.
22370         * modules/unistr/u16-strcoll: Likewise.
22371         * modules/unistr/u16-strcpy: Likewise.
22372         * modules/unistr/u16-strcspn: Likewise.
22373         * modules/unistr/u16-strdup: Likewise.
22374         * modules/unistr/u16-strlen: Likewise.
22375         * modules/unistr/u16-strmblen: Likewise.
22376         * modules/unistr/u16-strmbtouc: Likewise.
22377         * modules/unistr/u16-strncat: Likewise.
22378         * modules/unistr/u16-strncmp: Likewise.
22379         * modules/unistr/u16-strncpy: Likewise.
22380         * modules/unistr/u16-strnlen: Likewise.
22381         * modules/unistr/u16-strpbrk: Likewise.
22382         * modules/unistr/u16-strrchr: Likewise.
22383         * modules/unistr/u16-strspn: Likewise.
22384         * modules/unistr/u16-strstr: Likewise.
22385         * modules/unistr/u16-strtok: Likewise.
22386         * modules/unistr/u16-to-u32: Likewise.
22387         * modules/unistr/u16-to-u8: Likewise.
22388         * modules/unistr/u16-uctomb: Likewise.
22389         * modules/unistr/u32-check: Likewise.
22390         * modules/unistr/u32-chr: Likewise.
22391         * modules/unistr/u32-cmp: Likewise.
22392         * modules/unistr/u32-cmp2: Likewise.
22393         * modules/unistr/u32-cpy: Likewise.
22394         * modules/unistr/u32-cpy-alloc: Likewise.
22395         * modules/unistr/u32-endswith: Likewise.
22396         * modules/unistr/u32-mblen: Likewise.
22397         * modules/unistr/u32-mbsnlen: Likewise.
22398         * modules/unistr/u32-mbtouc: Likewise.
22399         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22400         * modules/unistr/u32-mbtoucr: Likewise.
22401         * modules/unistr/u32-move: Likewise.
22402         * modules/unistr/u32-next: Likewise.
22403         * modules/unistr/u32-prev: Likewise.
22404         * modules/unistr/u32-set: Likewise.
22405         * modules/unistr/u32-startswith: Likewise.
22406         * modules/unistr/u32-stpcpy: Likewise.
22407         * modules/unistr/u32-stpncpy: Likewise.
22408         * modules/unistr/u32-strcat: Likewise.
22409         * modules/unistr/u32-strchr: Likewise.
22410         * modules/unistr/u32-strcmp: Likewise.
22411         * modules/unistr/u32-strcoll: Likewise.
22412         * modules/unistr/u32-strcpy: Likewise.
22413         * modules/unistr/u32-strcspn: Likewise.
22414         * modules/unistr/u32-strdup: Likewise.
22415         * modules/unistr/u32-strlen: Likewise.
22416         * modules/unistr/u32-strmblen: Likewise.
22417         * modules/unistr/u32-strmbtouc: Likewise.
22418         * modules/unistr/u32-strncat: Likewise.
22419         * modules/unistr/u32-strncmp: Likewise.
22420         * modules/unistr/u32-strncpy: Likewise.
22421         * modules/unistr/u32-strnlen: Likewise.
22422         * modules/unistr/u32-strpbrk: Likewise.
22423         * modules/unistr/u32-strrchr: Likewise.
22424         * modules/unistr/u32-strspn: Likewise.
22425         * modules/unistr/u32-strstr: Likewise.
22426         * modules/unistr/u32-strtok: Likewise.
22427         * modules/unistr/u32-to-u16: Likewise.
22428         * modules/unistr/u32-to-u8: Likewise.
22429         * modules/unistr/u32-uctomb: Likewise.
22430         * modules/uniwbrk/u8-wordbreaks: Likewise.
22431         * modules/uniwbrk/u16-wordbreaks: Likewise.
22432         * modules/uniwbrk/u32-wordbreaks: Likewise.
22433         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22434         * modules/uniwbrk/wordbreak-property: Likewise.
22435         * modules/uniwidth/u8-strwidth: Likewise.
22436         * modules/uniwidth/u8-width: Likewise.
22437         * modules/uniwidth/u16-strwidth: Likewise.
22438         * modules/uniwidth/u16-width: Likewise.
22439         * modules/uniwidth/u32-strwidth: Likewise.
22440         * modules/uniwidth/u32-width: Likewise.
22441         * modules/uniwidth/width: Likewise.
22442         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22443         with $(LIBUNISTRING).
22444         * modules/unicase/ignorable-tests: Likewise.
22445         * modules/unicase/locale-language-tests: Likewise.
22446         * modules/unicase/tolower-tests: Likewise.
22447         * modules/unicase/totitle-tests: Likewise.
22448         * modules/unicase/toupper-tests: Likewise.
22449         * modules/unicase/u8-casecmp-tests: Likewise.
22450         * modules/unicase/u8-casecoll-tests: Likewise.
22451         * modules/unicase/u8-casefold-tests: Likewise.
22452         * modules/unicase/u8-is-cased-tests: Likewise.
22453         * modules/unicase/u8-is-casefolded-tests: Likewise.
22454         * modules/unicase/u8-is-lowercase-tests: Likewise.
22455         * modules/unicase/u8-is-titlecase-tests: Likewise.
22456         * modules/unicase/u8-is-uppercase-tests: Likewise.
22457         * modules/unicase/u8-tolower-tests: Likewise.
22458         * modules/unicase/u8-totitle-tests: Likewise.
22459         * modules/unicase/u8-toupper-tests: Likewise.
22460         * modules/unicase/u16-casecmp-tests: Likewise.
22461         * modules/unicase/u16-casecoll-tests: Likewise.
22462         * modules/unicase/u16-casefold-tests: Likewise.
22463         * modules/unicase/u16-is-cased-tests: Likewise.
22464         * modules/unicase/u16-is-casefolded-tests: Likewise.
22465         * modules/unicase/u16-is-lowercase-tests: Likewise.
22466         * modules/unicase/u16-is-titlecase-tests: Likewise.
22467         * modules/unicase/u16-is-uppercase-tests: Likewise.
22468         * modules/unicase/u16-tolower-tests: Likewise.
22469         * modules/unicase/u16-totitle-tests: Likewise.
22470         * modules/unicase/u16-toupper-tests: Likewise.
22471         * modules/unicase/u32-casecmp-tests: Likewise.
22472         * modules/unicase/u32-casecoll-tests: Likewise.
22473         * modules/unicase/u32-casefold-tests: Likewise.
22474         * modules/unicase/u32-is-cased-tests: Likewise.
22475         * modules/unicase/u32-is-casefolded-tests: Likewise.
22476         * modules/unicase/u32-is-lowercase-tests: Likewise.
22477         * modules/unicase/u32-is-titlecase-tests: Likewise.
22478         * modules/unicase/u32-is-uppercase-tests: Likewise.
22479         * modules/unicase/u32-tolower-tests: Likewise.
22480         * modules/unicase/u32-totitle-tests: Likewise.
22481         * modules/unicase/u32-toupper-tests: Likewise.
22482         * modules/unicase/ulc-casecmp-tests: Likewise.
22483         * modules/unicase/ulc-casecoll-tests: Likewise.
22484         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22485         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22486         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22487         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22488         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22489         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22490         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22491         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22492         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22493         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22494         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22495         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22496         * modules/unictype/bidicategory-byname-tests: Likewise.
22497         * modules/unictype/bidicategory-name-tests: Likewise.
22498         * modules/unictype/bidicategory-of-tests: Likewise.
22499         * modules/unictype/bidicategory-test-tests: Likewise.
22500         * modules/unictype/block-list-tests: Likewise.
22501         * modules/unictype/block-of-tests: Likewise.
22502         * modules/unictype/block-test-tests: Likewise.
22503         * modules/unictype/category-C-tests: Likewise.
22504         * modules/unictype/category-Cc-tests: Likewise.
22505         * modules/unictype/category-Cf-tests: Likewise.
22506         * modules/unictype/category-Cn-tests: Likewise.
22507         * modules/unictype/category-Co-tests: Likewise.
22508         * modules/unictype/category-Cs-tests: Likewise.
22509         * modules/unictype/category-L-tests: Likewise.
22510         * modules/unictype/category-Ll-tests: Likewise.
22511         * modules/unictype/category-Lm-tests: Likewise.
22512         * modules/unictype/category-Lo-tests: Likewise.
22513         * modules/unictype/category-Lt-tests: Likewise.
22514         * modules/unictype/category-Lu-tests: Likewise.
22515         * modules/unictype/category-M-tests: Likewise.
22516         * modules/unictype/category-Mc-tests: Likewise.
22517         * modules/unictype/category-Me-tests: Likewise.
22518         * modules/unictype/category-Mn-tests: Likewise.
22519         * modules/unictype/category-N-tests: Likewise.
22520         * modules/unictype/category-Nd-tests: Likewise.
22521         * modules/unictype/category-Nl-tests: Likewise.
22522         * modules/unictype/category-No-tests: Likewise.
22523         * modules/unictype/category-P-tests: Likewise.
22524         * modules/unictype/category-Pc-tests: Likewise.
22525         * modules/unictype/category-Pd-tests: Likewise.
22526         * modules/unictype/category-Pe-tests: Likewise.
22527         * modules/unictype/category-Pf-tests: Likewise.
22528         * modules/unictype/category-Pi-tests: Likewise.
22529         * modules/unictype/category-Po-tests: Likewise.
22530         * modules/unictype/category-Ps-tests: Likewise.
22531         * modules/unictype/category-S-tests: Likewise.
22532         * modules/unictype/category-Sc-tests: Likewise.
22533         * modules/unictype/category-Sk-tests: Likewise.
22534         * modules/unictype/category-Sm-tests: Likewise.
22535         * modules/unictype/category-So-tests: Likewise.
22536         * modules/unictype/category-Z-tests: Likewise.
22537         * modules/unictype/category-Zl-tests: Likewise.
22538         * modules/unictype/category-Zp-tests: Likewise.
22539         * modules/unictype/category-Zs-tests: Likewise.
22540         * modules/unictype/category-and-not-tests: Likewise.
22541         * modules/unictype/category-and-tests: Likewise.
22542         * modules/unictype/category-byname-tests: Likewise.
22543         * modules/unictype/category-name-tests: Likewise.
22544         * modules/unictype/category-none-tests: Likewise.
22545         * modules/unictype/category-of-tests: Likewise.
22546         * modules/unictype/category-or-tests: Likewise.
22547         * modules/unictype/category-test-withtable-tests: Likewise.
22548         * modules/unictype/combining-class-tests: Likewise.
22549         * modules/unictype/ctype-alnum-tests: Likewise.
22550         * modules/unictype/ctype-alpha-tests: Likewise.
22551         * modules/unictype/ctype-blank-tests: Likewise.
22552         * modules/unictype/ctype-cntrl-tests: Likewise.
22553         * modules/unictype/ctype-digit-tests: Likewise.
22554         * modules/unictype/ctype-graph-tests: Likewise.
22555         * modules/unictype/ctype-lower-tests: Likewise.
22556         * modules/unictype/ctype-print-tests: Likewise.
22557         * modules/unictype/ctype-punct-tests: Likewise.
22558         * modules/unictype/ctype-space-tests: Likewise.
22559         * modules/unictype/ctype-upper-tests: Likewise.
22560         * modules/unictype/ctype-xdigit-tests: Likewise.
22561         * modules/unictype/decimal-digit-tests: Likewise.
22562         * modules/unictype/digit-tests: Likewise.
22563         * modules/unictype/mirror-tests: Likewise.
22564         * modules/unictype/numeric-tests: Likewise.
22565         * modules/unictype/property-alphabetic-tests: Likewise.
22566         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22567         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22568         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22569         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22570         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22571         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22572         * modules/unictype/property-bidi-control-tests: Likewise.
22573         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22574         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22575         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22576         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22577         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22578         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22579         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22580         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22581         * modules/unictype/property-bidi-pdf-tests: Likewise.
22582         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22583         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22584         * modules/unictype/property-byname-tests: Likewise.
22585         * modules/unictype/property-combining-tests: Likewise.
22586         * modules/unictype/property-composite-tests: Likewise.
22587         * modules/unictype/property-currency-symbol-tests: Likewise.
22588         * modules/unictype/property-dash-tests: Likewise.
22589         * modules/unictype/property-decimal-digit-tests: Likewise.
22590         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22591         * modules/unictype/property-deprecated-tests: Likewise.
22592         * modules/unictype/property-diacritic-tests: Likewise.
22593         * modules/unictype/property-extender-tests: Likewise.
22594         * modules/unictype/property-format-control-tests: Likewise.
22595         * modules/unictype/property-grapheme-base-tests: Likewise.
22596         * modules/unictype/property-grapheme-extend-tests: Likewise.
22597         * modules/unictype/property-grapheme-link-tests: Likewise.
22598         * modules/unictype/property-hex-digit-tests: Likewise.
22599         * modules/unictype/property-hyphen-tests: Likewise.
22600         * modules/unictype/property-id-continue-tests: Likewise.
22601         * modules/unictype/property-id-start-tests: Likewise.
22602         * modules/unictype/property-ideographic-tests: Likewise.
22603         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22604         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22605         * modules/unictype/property-ignorable-control-tests: Likewise.
22606         * modules/unictype/property-iso-control-tests: Likewise.
22607         * modules/unictype/property-join-control-tests: Likewise.
22608         * modules/unictype/property-left-of-pair-tests: Likewise.
22609         * modules/unictype/property-line-separator-tests: Likewise.
22610         * modules/unictype/property-logical-order-exception-tests: Likewise.
22611         * modules/unictype/property-lowercase-tests: Likewise.
22612         * modules/unictype/property-math-tests: Likewise.
22613         * modules/unictype/property-non-break-tests: Likewise.
22614         * modules/unictype/property-not-a-character-tests: Likewise.
22615         * modules/unictype/property-numeric-tests: Likewise.
22616         * modules/unictype/property-other-alphabetic-tests: Likewise.
22617         * modules/unictype/property-other-default-ignorable-code-point-tests:
22618         Likewise.
22619         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22620         * modules/unictype/property-other-id-continue-tests: Likewise.
22621         * modules/unictype/property-other-id-start-tests: Likewise.
22622         * modules/unictype/property-other-lowercase-tests: Likewise.
22623         * modules/unictype/property-other-math-tests: Likewise.
22624         * modules/unictype/property-other-uppercase-tests: Likewise.
22625         * modules/unictype/property-paired-punctuation-tests: Likewise.
22626         * modules/unictype/property-paragraph-separator-tests: Likewise.
22627         * modules/unictype/property-pattern-syntax-tests: Likewise.
22628         * modules/unictype/property-pattern-white-space-tests: Likewise.
22629         * modules/unictype/property-private-use-tests: Likewise.
22630         * modules/unictype/property-punctuation-tests: Likewise.
22631         * modules/unictype/property-quotation-mark-tests: Likewise.
22632         * modules/unictype/property-radical-tests: Likewise.
22633         * modules/unictype/property-sentence-terminal-tests: Likewise.
22634         * modules/unictype/property-soft-dotted-tests: Likewise.
22635         * modules/unictype/property-space-tests: Likewise.
22636         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22637         * modules/unictype/property-test-tests: Likewise.
22638         * modules/unictype/property-titlecase-tests: Likewise.
22639         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22640         * modules/unictype/property-unified-ideograph-tests: Likewise.
22641         * modules/unictype/property-uppercase-tests: Likewise.
22642         * modules/unictype/property-variation-selector-tests: Likewise.
22643         * modules/unictype/property-white-space-tests: Likewise.
22644         * modules/unictype/property-xid-continue-tests: Likewise.
22645         * modules/unictype/property-xid-start-tests: Likewise.
22646         * modules/unictype/property-zero-width-tests: Likewise.
22647         * modules/unictype/scripts-tests: Likewise.
22648         * modules/unictype/syntax-c-ident-tests: Likewise.
22649         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22650         * modules/unictype/syntax-java-ident-tests: Likewise.
22651         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22652         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22653         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22654         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22655         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22656         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22657         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22658         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22659         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22660         * modules/uniname/uniname-tests: Likewise.
22661         * modules/uninorm/canonical-decomposition-tests: Likewise.
22662         * modules/uninorm/compat-decomposition-tests: Likewise.
22663         * modules/uninorm/composition-tests: Likewise.
22664         * modules/uninorm/decomposing-form-tests: Likewise.
22665         * modules/uninorm/decomposition-tests: Likewise.
22666         * modules/uninorm/filter-tests: Likewise.
22667         * modules/uninorm/nfc-tests: Likewise.
22668         * modules/uninorm/nfd-tests: Likewise.
22669         * modules/uninorm/nfkc-tests: Likewise.
22670         * modules/uninorm/nfkd-tests: Likewise.
22671         * modules/uninorm/u8-normcmp-tests: Likewise.
22672         * modules/uninorm/u8-normcoll-tests: Likewise.
22673         * modules/uninorm/u16-normcmp-tests: Likewise.
22674         * modules/uninorm/u16-normcoll-tests: Likewise.
22675         * modules/uninorm/u32-normcmp-tests: Likewise.
22676         * modules/uninorm/u32-normcoll-tests: Likewise.
22677         * modules/unistdio/u8-asnprintf-tests: Likewise.
22678         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22679         * modules/unistdio/u8-vasprintf-tests: Likewise.
22680         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22681         * modules/unistdio/u8-vsprintf-tests: Likewise.
22682         * modules/unistdio/u16-asnprintf-tests: Likewise.
22683         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22684         * modules/unistdio/u16-vasprintf-tests: Likewise.
22685         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22686         * modules/unistdio/u16-vsprintf-tests: Likewise.
22687         * modules/unistdio/u32-asnprintf-tests: Likewise.
22688         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22689         * modules/unistdio/u32-vasprintf-tests: Likewise.
22690         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22691         * modules/unistdio/u32-vsprintf-tests: Likewise.
22692         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22693         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22694         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22695         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22696         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22697         * modules/unistr/u8-check-tests: Likewise.
22698         * modules/unistr/u8-chr-tests: Likewise.
22699         * modules/unistr/u8-cmp-tests: Likewise.
22700         * modules/unistr/u8-cmp2-tests: Likewise.
22701         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22702         * modules/unistr/u8-cpy-tests: Likewise.
22703         * modules/unistr/u8-mblen-tests: Likewise.
22704         * modules/unistr/u8-mbsnlen-tests: Likewise.
22705         * modules/unistr/u8-mbtouc-tests: Likewise.
22706         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22707         * modules/unistr/u8-mbtoucr-tests: Likewise.
22708         * modules/unistr/u8-move-tests: Likewise.
22709         * modules/unistr/u8-next-tests: Likewise.
22710         * modules/unistr/u8-prev-tests: Likewise.
22711         * modules/unistr/u8-set-tests: Likewise.
22712         * modules/unistr/u8-stpcpy-tests: Likewise.
22713         * modules/unistr/u8-stpncpy-tests: Likewise.
22714         * modules/unistr/u8-strcat-tests: Likewise.
22715         * modules/unistr/u8-strcmp-tests: Likewise.
22716         * modules/unistr/u8-strcoll-tests: Likewise.
22717         * modules/unistr/u8-strcpy-tests: Likewise.
22718         * modules/unistr/u8-strdup-tests: Likewise.
22719         * modules/unistr/u8-strlen-tests: Likewise.
22720         * modules/unistr/u8-strmblen-tests: Likewise.
22721         * modules/unistr/u8-strmbtouc-tests: Likewise.
22722         * modules/unistr/u8-strncat-tests: Likewise.
22723         * modules/unistr/u8-strncmp-tests: Likewise.
22724         * modules/unistr/u8-strncpy-tests: Likewise.
22725         * modules/unistr/u8-strnlen-tests: Likewise.
22726         * modules/unistr/u8-to-u16-tests: Likewise.
22727         * modules/unistr/u8-to-u32-tests: Likewise.
22728         * modules/unistr/u8-uctomb-tests: Likewise.
22729         * modules/unistr/u16-check-tests: Likewise.
22730         * modules/unistr/u16-chr-tests: Likewise.
22731         * modules/unistr/u16-cmp-tests: Likewise.
22732         * modules/unistr/u16-cmp2-tests: Likewise.
22733         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22734         * modules/unistr/u16-cpy-tests: Likewise.
22735         * modules/unistr/u16-mblen-tests: Likewise.
22736         * modules/unistr/u16-mbsnlen-tests: Likewise.
22737         * modules/unistr/u16-mbtouc-tests: Likewise.
22738         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22739         * modules/unistr/u16-mbtoucr-tests: Likewise.
22740         * modules/unistr/u16-move-tests: Likewise.
22741         * modules/unistr/u16-next-tests: Likewise.
22742         * modules/unistr/u16-prev-tests: Likewise.
22743         * modules/unistr/u16-set-tests: Likewise.
22744         * modules/unistr/u16-stpcpy-tests: Likewise.
22745         * modules/unistr/u16-stpncpy-tests: Likewise.
22746         * modules/unistr/u16-strcat-tests: Likewise.
22747         * modules/unistr/u16-strcmp-tests: Likewise.
22748         * modules/unistr/u16-strcoll-tests: Likewise.
22749         * modules/unistr/u16-strcpy-tests: Likewise.
22750         * modules/unistr/u16-strdup-tests: Likewise.
22751         * modules/unistr/u16-strlen-tests: Likewise.
22752         * modules/unistr/u16-strmblen-tests: Likewise.
22753         * modules/unistr/u16-strmbtouc-tests: Likewise.
22754         * modules/unistr/u16-strncat-tests: Likewise.
22755         * modules/unistr/u16-strncmp-tests: Likewise.
22756         * modules/unistr/u16-strncpy-tests: Likewise.
22757         * modules/unistr/u16-strnlen-tests: Likewise.
22758         * modules/unistr/u16-to-u32-tests: Likewise.
22759         * modules/unistr/u16-to-u8-tests: Likewise.
22760         * modules/unistr/u16-uctomb-tests: Likewise.
22761         * modules/unistr/u32-check-tests: Likewise.
22762         * modules/unistr/u32-chr-tests: Likewise.
22763         * modules/unistr/u32-cmp-tests: Likewise.
22764         * modules/unistr/u32-cmp2-tests: Likewise.
22765         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22766         * modules/unistr/u32-cpy-tests: Likewise.
22767         * modules/unistr/u32-mblen-tests: Likewise.
22768         * modules/unistr/u32-mbsnlen-tests: Likewise.
22769         * modules/unistr/u32-mbtouc-tests: Likewise.
22770         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22771         * modules/unistr/u32-mbtoucr-tests: Likewise.
22772         * modules/unistr/u32-move-tests: Likewise.
22773         * modules/unistr/u32-next-tests: Likewise.
22774         * modules/unistr/u32-prev-tests: Likewise.
22775         * modules/unistr/u32-set-tests: Likewise.
22776         * modules/unistr/u32-stpcpy-tests: Likewise.
22777         * modules/unistr/u32-stpncpy-tests: Likewise.
22778         * modules/unistr/u32-strcat-tests: Likewise.
22779         * modules/unistr/u32-strcmp-tests: Likewise.
22780         * modules/unistr/u32-strcoll-tests: Likewise.
22781         * modules/unistr/u32-strcpy-tests: Likewise.
22782         * modules/unistr/u32-strdup-tests: Likewise.
22783         * modules/unistr/u32-strlen-tests: Likewise.
22784         * modules/unistr/u32-strmblen-tests: Likewise.
22785         * modules/unistr/u32-strmbtouc-tests: Likewise.
22786         * modules/unistr/u32-strncat-tests: Likewise.
22787         * modules/unistr/u32-strncmp-tests: Likewise.
22788         * modules/unistr/u32-strncpy-tests: Likewise.
22789         * modules/unistr/u32-strnlen-tests: Likewise.
22790         * modules/unistr/u32-to-u16-tests: Likewise.
22791         * modules/unistr/u32-to-u8-tests: Likewise.
22792         * modules/unistr/u32-uctomb-tests: Likewise.
22793         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22794         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22795         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22796         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22797         * modules/uniwidth/u8-strwidth-tests: Likewise.
22798         * modules/uniwidth/u8-width-tests: Likewise.
22799         * modules/uniwidth/u16-strwidth-tests: Likewise.
22800         * modules/uniwidth/u16-width-tests: Likewise.
22801         * modules/uniwidth/u32-strwidth-tests: Likewise.
22802         * modules/uniwidth/u32-width-tests: Likewise.
22803         * modules/uniwidth/width-tests: Likewise.
22804
22805 2010-05-18  Richard Jones  <rjones@redhat.com>
22806
22807         doc: users.txt: list hivex
22808         * users.txt: Add hivex.
22809
22810 2010-05-18  Richard Jones  <rjones@redhat.com>
22811
22812         doc: users.txt: list febootstrap
22813         * users.txt: Add febootstrap.
22814
22815 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22816
22817         bootstrap: fix an error when gnulib is not used as a git submodule
22818         * build-aux/bootstrap (gnulib_path): If its length is zero then
22819         assign "gnulib" to it.
22820         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22821
22822 2010-05-16  Bruno Haible  <bruno@clisp.org>
22823
22824         Avoid autoconf warnings about AM_ICONV.
22825         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22826         2.64.
22827
22828 2010-05-16  Bruno Haible  <bruno@clisp.org>
22829
22830         absolute-header: Make the macro usable in more situations.
22831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22832         from gl_ABSOLUTE_HEADER.
22833         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22834
22835 2010-05-16  James Youngman  <jay@gnu.org>
22836
22837         doc: update users.txt
22838         * users.txt: Add CSSC.
22839
22840 2010-05-16  Jim Meyering  <meyering@redhat.com>
22841
22842         init.sh: fix an error in the previous change; add more comments
22843         * tests/init.sh: Compare exit code in loop against 9, not 2.
22844         Patch by Bruno Haible.
22845         Make the two tests more similar by adding an empty "then" clause.
22846         Add comments.
22847
22848         init.sh: avoid unnecessary shell re-exec
22849         * tests/init.sh: Improve the re-exec-required check to first test the
22850         current shell.  If it passes the test, do not search for a shell that
22851         does pass, and do not re-exec.  This test is particularly contorted to
22852         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22853         of $(...) evokes a syntax error and causes immediate shell exit with
22854         status 2.  Bruno Haible reported that the re-exec made it impossible
22855         to single-step through any init.sh-using script.
22856
22857 2010-05-16  Bruno Haible  <bruno@clisp.org>
22858
22859         Fix collision between gnulib's and libintl's printf replacements.
22860         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22861         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22862         (printf): When using GNU C, map the __printf__ function to rpl_printf
22863         via __asm__. When not using GNU C, define rpl_printf instead of
22864         __printf__.
22865         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22866         commit.
22867         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22868         commit.
22869         * m4/asm-underscore.m4: New file.
22870         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22871         * modules/stdio (Files): Add m4/asm-underscore.m4.
22872         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22873         Reported by Ben Pfaff.
22874
22875 2010-05-16  Bruno Haible  <bruno@clisp.org>
22876
22877         verify: Avoid skipping the test on openSUSE 11.0.
22878         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22879
22880 2010-05-13  Bruno Haible  <bruno@clisp.org>
22881
22882         Avoid useless warnings from G++.
22883         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22884         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22885         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22886
22887 2010-05-11  Jim Meyering  <meyering@redhat.com>
22888
22889         maint.mk: tweak preceding change
22890         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22891         regexps tighter by anchoring at EOL, and make the new group "shy"
22892         for slightly decreased overhead.
22893
22894 2010-05-11  Eric Blake  <eblake@redhat.com>
22895
22896         maint.mk: gnulib doesn't guarantee NSIG
22897         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22898
22899 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22900
22901         test-pwrite.c: Remove unused variable declaration.
22902         * tests/test-pwrite.c (main): Remove read_buf declaration.
22903
22904         Remove useless test-pwrite.sh file.
22905         * tests/test-pwrite.sh: Delete file.
22906         * modules/pwrite-tests: Remove references.
22907         Reported by Bruno Haible.
22908
22909 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22910
22911         init.sh: fix a typo
22912         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22913
22914 2010-05-10  Jim Meyering  <meyering@redhat.com>
22915
22916         maint.mk: avoid using a temporary file in the always-defined-macros check
22917         * top/maint.mk (.re-defmac): Remove rule.
22918         (gl_trap_): Remove definition.
22919         (sc_prohibit_always-defined_macros): Rewrite not to create and
22920         depend on a temporary file.  Instead, depend on GNU grep's ability
22921         to read a list of regular expressions from stdin when given "-f -".
22922
22923 2010-05-09  Bruno Haible  <bruno@clisp.org>
22924
22925         Update to GNU gettext 0.18, part 1.
22926         * m4/gettext.m4: Update to GNU gettext 0.18.
22927         * m4/intl.m4: Likewise.
22928         * m4/po.m4: Likewise.
22929         * modules/gettext (Files): Add m4/fcntl-o.m4.
22930         (configure.ac): Require gettext infrastructure from version 0.18.
22931
22932 2010-05-09  Jim Meyering  <meyering@redhat.com>
22933
22934         init.sh: enable MALLOC_PERTURB_
22935         * tests/init.sh: Enable glibc's malloc-perturbing option.
22936
22937         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22938         With my recent change in init.sh from the two-line form:
22939             -#   : ${srcdir=.}
22940             -#   . "$srcdir/init.sh"; path_prepend_ .
22941             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22942         I noticed that using the one-line form would cause this test
22943         to fail with a false-positive, or to stop working altogether,
22944         depending on whether help-version changed or all the tests did.
22945         * top/maint.mk (_hv_regex): Remove this definition.
22946         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22947         (_hv_regex_strong): Use a stronger regex to check for conformance.
22948         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22949         Give a separate diagnostic for lack of conforming use.
22950
22951         maint.mk: prohibit definition of symbols defined by gnulib
22952         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22953         definition of symbols defined by gnulib.
22954
22955 2010-05-09  Bruno Haible  <bruno@clisp.org>
22956
22957         acl: Avoid test failure on Cygwin-hosted mingw.
22958         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22959
22960 2010-05-09  Bruno Haible  <bruno@clisp.org>
22961
22962         error: Use system's fcntl function.
22963         * lib/error.c (fcntl): Undefine.
22964
22965 2010-05-09  Jim Meyering  <meyering@redhat.com>
22966
22967         verify: adjust formatting to be more consistent
22968         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22969         argument-list '('s, and after one comma.
22970
22971 2010-05-09  Bruno Haible  <bruno@clisp.org>
22972
22973         error: More reliable output on mingw.
22974         * lib/error.c: Include <windows.h>.
22975         (is_open): New function.
22976         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22977         defined.
22978
22979 2010-05-09  Bruno Haible  <bruno@clisp.org>
22980
22981         vasnprintf: Fix syntax errors in libintl build on mingw.
22982         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22983         pad_ourselves and prec_ourselves after use.
22984
22985 2010-05-08  Bruno Haible  <bruno@clisp.org>
22986
22987         * lib/config.charset: Update comments for Cygwin 1.7.
22988         * lib/localcharset.c: Likewise.
22989
22990 2010-05-07  Jim Meyering  <meyering@redhat.com>
22991
22992         init.sh: improve comments
22993         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22994         . "${srcdir=.}/init.sh"; path_prepend_ .
22995         Add a note about path_prepend_ and the alternative of using
22996         TESTS_ENVIRONMENT.
22997
22998 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22999
23000         exclude: Unescape hashed patterns in wildcard mode.
23001         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23002         to the hash list.
23003         * tests/test-exclude8.sh: New test case.
23004         * modules/exclude-tests: Add new test.
23005
23006 2010-05-05  Eric Blake  <eblake@redhat.com>
23007
23008         verify: automate tests
23009         * modules/verify-tests: New module.
23010         * tests/test-verify.sh: New file.
23011         * tests/test-verify.c: Guard each negative test with a unique id.
23012         Also avoid warning about unused left hand of comma expressions.
23013
23014 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23015
23016         Further improvements to verify.h, suggested by Eric Blake.
23017         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23018         the GL_* versions, to avoid collision with OpenGL.
23019         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23020         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23021         than testing merely whether it's defined.
23022
23023         Modify verify.h to pacify gcc -Wredundant_decls.
23024         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23025         These use the prefix "GL_" since they're likely to be useful elsewhere.
23026         We may need to break them out into a different .h file.
23027         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23028         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23029         of verify_function__.
23030
23031 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23032
23033         Tests for module pwrite.
23034         * modules/pwrite-tests: New file.
23035         * tests/test-pwrite.sh: New file.
23036         * tests/test-pwrite.c: New file.
23037
23038         New module pwrite.
23039         * lib/unistd.in.h (pwrite): New declaration.
23040         * lib/pwrite.c: New file, from glibc with modifications.
23041         * m4/pwrite.m4: New file.
23042         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23043         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23044         REPLACE_PWRITE.
23045         * modules/pwrite: New file.
23046         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23047         REPLACE_PWRITE.
23048         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23049         * doc/posix-functions/pwrite.texi: Mention the new module.
23050
23051 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23052
23053         pread: Update documentation.
23054         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23055
23056 2010-05-04  Eric Blake  <eblake@redhat.com>
23057
23058         docs: update cygwin progress
23059         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23060         this bug.
23061         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23062         Added in cygwin 1.7.2.
23063         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23064         Likewise.
23065         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23066         Likewise.
23067         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23068         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23069         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23070         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23071         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23072         Mention nproc module.
23073         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23074         bug in cygwin 1.7.5 addition.
23075         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23076         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23077         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23078         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23079         1.7.5.
23080         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23081         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23082         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23083         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23084         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23085         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23086         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23087         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23088         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23089         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23090         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23091         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23092         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23093         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23094         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23095         Likewise.
23096         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23097         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23098         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23099         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23100         Likewise.
23101         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23102         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23103         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23104         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23105         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23106         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23107         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23108         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23109         Likewise.
23110         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23111         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23112         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23113         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23114         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23115         Likewise.
23116         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23117         Likewise.
23118         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23119         Likewise.
23120         * doc/glibc-functions/xdrrec_endofrecord.texi
23121         (xdrrec_endofrecord): Likewise.
23122         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23123         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23124         Likewise.
23125         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23126         Likewise.
23127
23128 2010-05-04  Jim Meyering  <meyering@redhat.com>
23129
23130         gendocs.sh: make its "-s FILE" option more useful
23131         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23132         $PACKAGE to reflect the probably-different basename of "FILE".
23133
23134 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23135
23136         bootstrap: don't ignore download_po_files failure
23137         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23138         failure.
23139
23140 2010-05-03  Jim Meyering  <meyering@redhat.com>
23141
23142         maint.mk: allow to pass options to gendocs.sh
23143         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23144         (gendocs_options_): New overridable variable.
23145
23146         gnu-web-doc-update: don't ignore configure or build failure
23147         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23148
23149         announce-gen: backslash-escape '@'s in --help output
23150         * build-aux/announce-gen: Fix syntax errors.
23151
23152         maint.mk, announce-gen: allow project-specific announcement mail headers
23153         * top/maint.mk (translation_project_): Define default.
23154         (announcement_Cc_, announcement_mail_headers_): Likewise.
23155         (announcement): Invoke announce-gen with new --mail-headers option.
23156         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23157
23158         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23159         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23160         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23161         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23162         line in the "err2" output file when running "make check" in verbose
23163         mode (i.e., with set -x enabled).
23164
23165 2010-05-03  Bruno Haible  <bruno@clisp.org>
23166
23167         wctob: Fix for weird platforms.
23168         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23169         argument value.
23170
23171 2010-05-03  Jim Meyering  <meyering@redhat.com>
23172
23173         maint.mk: prohibit unwarranted use of <strings.h>
23174         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23175         strings.h in a file that does not also use strcasecmp, strncasecmp,
23176         ffs or ffsll.
23177
23178         maint.mk: remove obsolete comments
23179         * top/maint.mk: Remove stale, commented-out rules.
23180
23181 2010-05-02  Bruno Haible  <bruno@clisp.org>
23182
23183         wcwidth: Declare also when it's aliased.
23184         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23185         macro.
23186
23187 2010-05-02  Bruno Haible  <bruno@clisp.org>
23188
23189         Fix regression from 2010-04-25.
23190         * gnulib-tool (func_modules_transitive_closure): Check the status of
23191         all modules, not only of the tests that are of the form foo-tests where
23192         foo is a module.
23193
23194 2010-05-02  Bruno Haible  <bruno@clisp.org>
23195
23196         wctob: Work around nasty Cygwin 1.7.2 bug.
23197         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23198         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23199
23200 2010-05-01  Bruno Haible  <bruno@clisp.org>
23201
23202         fpurge: Sharper test.
23203         * tests/test-fpurge.c (main): Add one more ftell check.
23204         * modules/fpurge-tests (Depends-on): Add ftell.
23205         Suggested by Eric Blake.
23206
23207 2010-05-01  Bruno Haible  <bruno@clisp.org>
23208
23209         ftello: Another test.
23210         * tests/test-ftello3.c: New file.
23211         * modules/ftello-tests (Files): Add it.
23212         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23213         MOSTLYCLEANFILES.
23214
23215         ftell: Another test.
23216         * tests/test-ftell3.c: New file.
23217         * modules/ftell-tests (Files): Add it.
23218         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23219         MOSTLYCLEANFILES.
23220
23221 2010-05-01  Bruno Haible  <bruno@clisp.org>
23222
23223         ftell, ftello: Work around Solaris bug.
23224         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23225         * lib/ftello.c: Include stdio-impl.h.
23226         (ftello): On Solaris, when _IOWRT is set, compute the result without
23227         looking at _IOREAD.
23228         * modules/ftello (Files): Add lib/stdio-impl.h.
23229         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23230         * doc/posix-functions/ftello.texi: Likewise.
23231         Reported by Eric Blake.
23232
23233 2010-05-01  Bruno Haible  <bruno@clisp.org>
23234
23235         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23236         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23237         the _IOWRT flag is also set.
23238
23239 2010-05-01  Bruno Haible  <bruno@clisp.org>
23240
23241         Fix doc about a HP-UX stdio bug.
23242         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23243         * doc/posix-functions/ftello.texi: Likewise.
23244
23245 2010-05-01  Bruno Haible  <bruno@clisp.org>
23246
23247         lseek test: Fix failure on Solaris.
23248         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23249         output.
23250
23251 2010-04-30  Jim Meyering  <meyering@redhat.com>
23252
23253         bootstrap: don't ignore failure to generate po*/Makevars
23254         * build-aux/bootstrap (with_gettext): Don't ignore failure
23255         to create po/Makevars or runtime-po/Makevars.
23256
23257 2010-04-29  Eric Blake  <eblake@redhat.com>
23258
23259         headers: relax license to LGPLv2+
23260         * modules/fcntl-h (License): Relax license.
23261         * modules/getopt-posix (License): Likewise.
23262         * modules/locale (License): Likewise.
23263         * modules/math (License): Likewise.
23264         * modules/pty (License): Likewise.
23265         * modules/sched (License): Likewise.
23266         * modules/search (License): Likewise.
23267         * modules/spawn (License): Likewise.
23268         * modules/stdarg (License): Likewise.
23269         * modules/sysexits (License): Likewise.
23270
23271 2010-04-29  Jim Meyering  <meyering@redhat.com>
23272
23273         inttypes: relax license to LGPLv2+
23274         * modules/inttypes (License): Relax license.
23275
23276 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23277
23278         * top/maint.mk (indent): Run twice to produce idempotent results.
23279
23280 2010-04-28  Bruno Haible  <bruno@clisp.org>
23281
23282         getdate: Generate getdate.c in the source directory.
23283         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23284         MOSTLYCLEANFILES.
23285         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23286
23287 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23288
23289         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23290         is not declared as a const *; avoid warnings in that case.
23291
23292 2010-04-28  Eric Blake  <eblake@redhat.com>
23293
23294         canonicalize-lgpl: avoid compiler warning
23295         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23296         declaration' / 'extraneous semicolon' warning with some compilers.
23297         Reported by Andreas Gruenbacher.
23298
23299 2010-04-28  Jim Meyering  <meyering@redhat.com>
23300
23301         init.sh: ensure a more reliable exit status when exiting via trap
23302         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23303         Inspired by patches from Dmitry V. Levin.
23304         Also trap on signal 3 (SIGQUIT).
23305
23306 2010-04-27  Bruno Haible  <bruno@clisp.org>
23307
23308         Update doc about utimes().
23309         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23310         'utimens' module.
23311         Reported by Andreas Gruenbacher <agruen@suse.de>.
23312
23313 2010-04-27  Eric Blake  <eblake@redhat.com>
23314
23315         full-read, full-write: relax license
23316         * modules/full-read (License): Drop to LGPLv2+.
23317         * modules/full-write (License): Likewise.
23318         * modules/safe-read (License): Likewise.
23319         * modules/safe-write (License): Likewise.
23320
23321         pthread: mention library for linking
23322         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23323
23324 2010-04-27  Jim Meyering  <meyering@redhat.com>
23325
23326         maint.mk: fix a bug introduced in last change
23327         * top/maint.mk (gl_assured_headers_): Now that all names are on
23328         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23329         is not anchored to end of word, it should be adequate.
23330
23331         maint.mk: avoid side-effect in latest syntax-check
23332         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23333         to run commands via $(shell...), and hence to incur cost only when
23334         the new rule is actually run.
23335
23336         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23337         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23338         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23339         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23340         (gl_assured_headers_, az_, AZ_): Define.
23341         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23342
23343 2010-04-26  Jim Meyering  <jim@meyering.net>
23344             Bruno Haible  <bruno@clisp.org>
23345
23346         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23347         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23348         Prompted by an exchange with Gilles Espinasse.
23349
23350 2010-04-26  Jim Meyering  <meyering@redhat.com>
23351
23352         git-version-gen: aesthetic tweak
23353         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23354         so that the command remains on a single line.
23355
23356 2010-04-26  Eric Blake  <eblake@redhat.com>
23357
23358         git-version-gen: allow use on EBCDIC hosts
23359         * build-aux/git-version-gen (dirty): Use literal rather than tying
23360         ourselves to ascii.
23361         Reported by Steve Goetze.
23362
23363 2010-04-25  Bruno Haible  <bruno@clisp.org>
23364
23365         netdb: Add support for GNULIB_POSIXCHECK.
23366         * lib/netdb.in.h: Include warn-on-use.h.
23367         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23368         functions are used when GNULIB_POSIXCHECK is defined and the
23369         getaddrinfo module is not in use.
23370         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23371         freeaddrinfo, gai_strerror, getnameinfo are declared.
23372         * modules/netdb (Depends-on): Add warn-on-use.
23373         (Makefile.am): Include warn-on-use.h in netdb.h.
23374
23375 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23376
23377         build: avoid "make check" failure without .git/ directory
23378         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23379         there is no .git/ directory.
23380
23381 2010-04-25  Bruno Haible  <bruno@clisp.org>
23382
23383         ptsname: Fix misuse of ttyname_r.
23384         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23385         of errno.
23386
23387 2010-04-25  Bruno Haible  <bruno@clisp.org>
23388
23389         ttyname_r: Make it work on Solaris 10.
23390         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23391         if the system function has the POSIX declaration. Test whether the
23392         function fails if the buffer is less than 128 bytes large.
23393         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23394         system's ttyname_r function. Provide a reasonably large buffer.
23395         * modules/ttyname_r (Depends-on): Add extensions.
23396         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23397
23398 2010-04-25  Bruno Haible  <bruno@clisp.org>
23399
23400         Use the 'extensions' module for some more functions on Solaris.
23401         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23402         module.
23403         * doc/posix-functions/ctime_r.texi: Likewise.
23404         * doc/posix-functions/getgrgid_r.texi: Likewise.
23405         * doc/posix-functions/getgrnam_r.texi: Likewise.
23406         * doc/posix-functions/getpwnam_r.texi: Likewise.
23407         * doc/posix-functions/getpwuid_r.texi: Likewise.
23408         * doc/posix-functions/readdir_r.texi: Likewise.
23409         * doc/posix-functions/sigwait.texi: Likewise.
23410         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23411         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23412
23413 2010-04-25  Bruno Haible  <bruno@clisp.org>
23414
23415         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23417         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23418         * lib/ttyname_r.c: Include <limits.h>.
23419         (ttyname_r): Define using the system's ttyname_r function, if it exists
23420         and not on Solaris.
23421         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23422         set.
23423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23424         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23425         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23426         Reported by Simon Josefsson.
23427
23428 2010-04-25  Bruno Haible  <bruno@clisp.org>
23429
23430         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23431         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23432         * doc/posix-functions/ctime_r.texi: Likewise.
23433         * doc/posix-functions/getgrgid_r.texi: Likewise.
23434         * doc/posix-functions/getgrnam_r.texi: Likewise.
23435         * doc/posix-functions/getlogin_r.texi: Likewise.
23436         * doc/posix-functions/getpwnam_r.texi: Likewise.
23437         * doc/posix-functions/getpwuid_r.texi: Likewise.
23438         * doc/posix-functions/readdir_r.texi: Likewise.
23439         * doc/posix-functions/sigwait.texi: Likewise.
23440         * doc/posix-functions/ttyname_r.texi: Likewise.
23441         Reported by Simon Josefsson.
23442
23443 2010-04-25  Bruno Haible  <bruno@clisp.org>
23444
23445         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23446         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23447         also to --create-testdir.
23448         (func_acceptable): Don't consider the status of *-tests modules here.
23449         (func_modules_transitive_closure): Consider it here, before including a
23450         test module.
23451         (func_import, func_create_testdir): Set inc_all_direct_tests,
23452         inc_all_indirect_tests.
23453         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23454         --create-testdir and --create-megatestdir.
23455
23456 2010-04-25  Bruno Haible  <bruno@clisp.org>
23457
23458         gnulib-tool: Add --without-*-tests options.
23459         * gnulib-tool (func_usage): Document the --without-*-tests options.
23460         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23461         excl_unportable_tests): New variables.
23462         Fail if they are specified with --import or --update.
23463         (func_acceptable): Respect the excl_*_tests variables.
23464         (func_import): Set the excl_*_tests variables to empty.
23465
23466 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23467             Bruno Haible  <bruno@clisp.org>
23468
23469         Work around a MacOS X 10.4 bug with openpty.
23470         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23471         * tests/test-openpty.c (main): Close the master side explicitly.
23472
23473 2010-04-25  Bruno Haible  <bruno@clisp.org>
23474
23475         strnlen: Fix a C++ test error on MacOS X and Solaris.
23476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23477         the function is not declared.
23478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23479         Simon Josefsson.
23480
23481 2010-04-24  Bruno Haible  <bruno@clisp.org>
23482
23483         Avoid a gcc warning.
23484         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23485         of correct type for %08lx directive.
23486         Reported by Eric Blake.
23487
23488 2010-04-24  Bruno Haible  <bruno@clisp.org>
23489
23490         vasnprintf: Correct errno value in case of out-of-memory.
23491         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23492         or sprintf. Use the errno value from SNPRINTF or sprintf.
23493         Reported by Ian Beckwith <ianb@erislabs.net>.
23494
23495 2010-04-24  Bruno Haible  <bruno@clisp.org>
23496
23497         ansi-c++-opt: Find correct compiler when cross-compiling.
23498         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23499         AC_CHECK_PROGS.
23500         Reported by Simon Josefsson.
23501
23502 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23503
23504         vc-list-files: Add support for subversion
23505         * build-aux/vc-list-files: Use "svn list" to generate the list of
23506         files controlled by subversion.
23507
23508 2010-04-23  Jim Meyering  <meyering@redhat.com>
23509
23510         vc-list-files tests: convert to use init.sh
23511         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23512         path_prepend_.
23513         Use Exit, not exit.
23514         Use skip_ rather than open coding it.
23515         Remove trap set-up and compare definitions.
23516         * tests/test-vc-list-files-git.sh: Likewise.
23517         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23518
23519 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23520
23521         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23522         backup files.
23523
23524 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23525
23526         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23527
23528 2010-04-20  Eric Blake  <eblake@redhat.com>
23529
23530         tests: be robust to ignored SIGPIPE
23531         * tests/test-select-in.sh: Consume all output.
23532         * tests/test-lseek.sh: Check correct exit status, while avoiding
23533         EPIPE.
23534
23535 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23536             Bruno Haible  <bruno@clisp.org>
23537
23538         visibility: Don't use -fvisibility if it leads to a warning.
23539         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23540         yes, don't pretend that visibility works if it leads to a warning.
23541         Reported by Mike Gran <spk121@yahoo.com>.
23542
23543 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23544
23545         * build-aux/bootstrap: Use "git -h" for testing for supported options
23546         instead of "git --help".  The short-form option only shows a summary,
23547         and doesn't layout the full man page.  Grep for the full option name
23548         in the summary, too.
23549
23550 2010-04-19  Bruno Haible  <bruno@clisp.org>
23551
23552         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23553         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23554         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23555         mention of RELOCATABLE_STRIP.
23556         Reported by Sylvain Beucler <beuc@beuc.net>.
23557
23558 2010-04-19  Bruno Haible  <bruno@clisp.org>
23559
23560         * lib/diffseq.h: Fix typo in comment.
23561         Reported by Eric Blake.
23562
23563 2010-04-19  Bruno Haible  <bruno@clisp.org>
23564
23565         ioctl: Move autoconf macro to a .m4 file.
23566         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23567         * modules/ioctl (Files): Add it.
23568         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23569         Reported by Ian Beckwith <ianb@erislabs.net>.
23570
23571 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23572             Bruno Haible  <bruno@clisp.org>
23573
23574         diffseq: Accommodate use-case with abstract arrays.
23575         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23576         is not defined.
23577         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23578         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23579
23580 2010-04-18  Bruno Haible  <bruno@clisp.org>
23581
23582         * doc/posix-headers/stdbool.texi: More precise wording.
23583
23584 2010-04-17  Jim Meyering  <meyering@redhat.com>
23585
23586         maint.mk: use gnu-style indentation in an embedded perl script
23587         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23588         Rename variable: s/two/last_two_bytes/
23589
23590 2010-04-16  Eric Blake  <eblake@redhat.com>
23591
23592         test-stdbool: skip test that fails with Solaris CC
23593         * tests/test-stdbool.c (f): Skip test that causes compilation
23594         error under buggy C++ compiler.
23595         * lib/stdbool.in.h: Document the limitation.
23596         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23597
23598         setenv: allow compilation with C++
23599         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23600         register keyword.
23601
23602         stdint: allow test to pass with C++
23603         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23604
23605         getopt: allow compilation with C++
23606         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23607         struct.
23608         * lib/getopt.c (_getopt_internal_r): Use correct type.
23609         Reported by Dagobert Michelson, via Joel E. Denny.
23610
23611 2010-04-16  Bruno Haible  <bruno@clisp.org>
23612
23613         Override netdb.h always.
23614         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23615         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23616         Reported by Ludovic Courtès <ludo@gnu.org>.
23617
23618 2010-04-15  Bruno Haible  <bruno@clisp.org>
23619
23620         openpty: Fix mistake from 2010-03-21.
23621         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23622         Reported by Simon Josefsson.
23623
23624 2010-04-15  Eric Blake  <eblake@redhat.com>
23625
23626         test-forkpty: fix expected signature
23627         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23628         Reported by Simon Josefsson.
23629
23630 2010-04-15  Jim Meyering  <meyering@redhat.com>
23631
23632         maint.mk: texinfo_suffix_re_: correct the default regexp
23633         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23634
23635         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23636         make it configurable via texinfo_suffix_re_.
23637
23638 2010-04-14  Eric Blake  <eblake@redhat.com>
23639
23640         strtok_r: relax license to LGPLv2+
23641         * modules/strtok_r (License): Relax license.
23642         Reported by Matthias Bolte.
23643
23644 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23645
23646         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23647         version 1.4.4 by default instead of requiring the libgcrypt
23648         version used during build.  This makes it possible to use the
23649         application with older but still binary compatible libgcrypt
23650         versions.
23651
23652 2010-04-13  Eric Blake  <eblake@redhat.com>
23653
23654         getopt-gnu: match recent glibc fixes and posix ruling
23655         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23656         '+' handling, when requesting extensions.
23657         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23658         'W;' handling.
23659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23660         * doc/posix-functions/getopt.texi (getopt): Document this.
23661         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23662         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23663         Likewise.
23664
23665         getopt: merge bug fixes from glibc
23666         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23667         diagnostics.  Honor '+:' correctly.  Reject ';'.
23668
23669         getopt-posix: detect MacOS bug
23670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23671         optind when missing a required argument.
23672         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23673         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23674         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23675         Likewise.
23676
23677         getopt-posix: avoid spurious failure on Solaris
23678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23679         an indicator that setting optind=1 is sufficient for reset.
23680
23681         getopt-posix: avoid spurious failure on FreeBSD
23682         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23683         in POSIX mode, since the m4 test uses it.
23684
23685         gnulib-tool: silence warning on BSD sh
23686         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23687
23688 2010-04-13  Jim Meyering  <meyering@redhat.com>
23689
23690         doc: users.txt: GNU patch now uses gnulib
23691         * users.txt: Add patch.
23692
23693 2010-04-12  Jim Meyering  <meyering@redhat.com>
23694
23695         maint.mk: generate more concise timing data for syntax-check rules
23696         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23697         " done" from each line that reports a syntax-check test duration.
23698
23699 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23700
23701         git-version-gen: use "git update-index..." rather than "git status"
23702         * build-aux/git-version-gen: Use git update-index --refresh, not
23703         "git status".  With some versions of git, "git status" would fail
23704         to update the index and result in an unwarranted "-dirty" suffix.
23705
23706 2010-04-11  Jim Meyering  <meyering@redhat.com>
23707
23708         openat: correct formatting (no semantic change)
23709         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23710         Suggested by Bruno Haible.
23711
23712 2010-04-11  Bruno Haible  <bruno@clisp.org>
23713
23714         Stricter declaration checking in testdirs.
23715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23716         If for_tests is true, augment AM_CPPFLAGS to define
23717         GNULIB_STRICT_CHECKING.
23718         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23719         GNULIB_STRICT_CHECKING is defined, verify that the function is
23720         declared.
23721
23722 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23723             Bruno Haible  <bruno@clisp.org>
23724
23725         libunistring: Improve configure output.
23726         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23727         Don't say "consider installing GNU libunistring" when checking again
23728         with libiconv.
23729
23730 2010-04-11  Bruno Haible  <bruno@clisp.org>
23731
23732         libunistring: Correct value of $LTLIBUNISTRING.
23733         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23734         correct the value of $LTLIBUNISTRING.
23735
23736 2010-04-11  Bruno Haible  <bruno@clisp.org>
23737
23738         havelib: Add static libraries to LIBS in the right order.
23739         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23740         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23741
23742 2010-04-11  Bruno Haible  <bruno@clisp.org>
23743
23744         libunistring: Detect libunistring also when it depends on libiconv.
23745         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23746         the second AC_LIB_HAVE_LINKFLAGS invocation.
23747
23748 2010-04-11  James Youngman  <jay@gnu.org>
23749
23750         close-stream: declare local scalars to be "const"
23751         * lib/close-stream.c (close_stream): Make boolean variables const
23752         to document the fact that we set but do not change them.
23753
23754 2010-04-11  Bruno Haible  <bruno@clisp.org>
23755
23756         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23757
23758 2010-04-11  Jim Meyering  <meyering@redhat.com>
23759
23760         maint.mk: don't include dist-check.mk
23761         * top/maint.mk: Remove bogus include directive.
23762
23763         maint.mk: improve empty-line-at-EOF check
23764         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23765         solution, rather than tail+Perl-based one.  The latter would read
23766         a few kilobytes from the end of each file, and did not handle empty
23767         files properly.
23768
23769         maint.mk: print the elapsed time for each syntax-check rule
23770         * top/maint.mk (sc_m_rules_): Save start time in a file.
23771         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23772         (local-check): Interpose the .z rules
23773
23774 2010-04-11  Jim Meyering  <meyering@redhat.com>
23775
23776         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23777         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23778         empty file with one that ends in an empty line.
23779
23780 2010-04-10  Bruno Haible  <bruno@clisp.org>
23781
23782         mkdir: Make it work on mingw64.
23783         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23784         * lib/mkdir.c: Update comment.
23785         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23786
23787 2010-04-10  Bruno Haible  <bruno@clisp.org>
23788
23789         Don't override improved macro from newer autoconf.
23790         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23791         autoconf >= 2.62.
23792         Reported by Joel E. Denny <jdenny@clemson.edu>.
23793
23794 2010-04-10  Jim Meyering  <meyering@redhat.com>
23795
23796         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23797         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23798
23799         maint.mk: correct a diagnostic
23800         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23801         in diagnostic; now use $prohibit.
23802
23803 2010-04-10  Bruno Haible  <address@hidden>
23804
23805         fchownat: Fix a C++ test error on Solaris 8.
23806         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23807         the function does not exist.
23808
23809 2010-04-10  Bruno Haible  <bruno@clisp.org>
23810
23811         vasnprintf: Add more tests.
23812         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23813         (test_function): Test converting an invalid wide string.
23814
23815         vasnprintf: Correct handling of unconvertible wide string arguments.
23816         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23817         VASNPRINTF.
23818         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23819         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23820         smaller than the expected maximum need for the directive. Set errno to
23821         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23822         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23824         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23825         * modules/vasnprintf (Files): Add m4/printf.m4.
23826         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23827
23828 2010-04-10  Bruno Haible  <bruno@clisp.org>
23829
23830         vasnprintf: Fix crash in %ls directive.
23831         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23832         string is passed as argument to %ls, with no precision and no width.
23833         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23834
23835 2010-04-10  Bruno Haible  <bruno@clisp.org>
23836
23837         vasnprintf: Fix multiple test failures on mingw.
23838         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23839         _snprintf, or snwprintf, not _snwprintf.
23840
23841 2010-04-10  Bruno Haible  <bruno@clisp.org>
23842
23843         write: Fix a C++ test error on mingw.
23844         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23845
23846 2010-04-10  Bruno Haible  <bruno@clisp.org>
23847
23848         vasnprintf test: Reduce code duplication.
23849         * tests/test-vasnprintf.c (test_function): New function, extracted from
23850         test_vasnprintf.
23851         (test_vasnprintf, test_asnprintf): Invoke it.
23852
23853 2010-04-10  Bruno Haible  <bruno@clisp.org>
23854
23855         strnlen: Fix warning in C++ mode on MacOS X.
23856         * lib/string.in.h (strnlen): Use the modern idiom.
23857         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23858         defining strnlen as a macro already in <config.h>.
23859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23860         REPLACE_STRNLEN.
23861         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23863
23864 2010-04-08  James Youngman  <jay@gnu.org>
23865
23866         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23867         the example.
23868
23869 2010-04-09  Jim Meyering  <meyering@redhat.com>
23870
23871         maint.mk: print better diagnostic when there is no $(_hv_file)
23872         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23873         announce that when $(_hv_file) (aka help-version) does not exist.
23874
23875         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23876         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23877         not try to interpret its random input bytes.  Jarno Rajahalme reported
23878         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23879         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23880         (mktempd_): Likewise, just in case.
23881
23882         ftruncate: add two years to projected module removal date: 2012
23883         * m4/ftruncate.m4: Adjust comments.
23884
23885         ftruncate: mark module as obsolete; even MinGW provides it, now
23886         * modules/ftruncate (Status): Obsolete.
23887         (Notice): Say that.
23888         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23890
23891 2010-04-08  Bruno Haible  <bruno@clisp.org>
23892
23893         Fix side effects from tests-related modules.
23894         * modules/dprintf-posix (Comment): New section.
23895         * modules/fprintf-posix (Comment): Likewise.
23896         * modules/obstack-printf-posix (Comment): Likewise.
23897         * modules/printf-posix (Comment): Likewise.
23898         * modules/snprintf-posix (Comment): Likewise.
23899         * modules/sprintf-posix (Comment): Likewise.
23900         * modules/vasnprintf-posix (Comment): Likewise.
23901         * modules/vasprintf-posix (Comment): Likewise.
23902         * modules/vdprintf-posix (Comment): Likewise.
23903         * modules/vfprintf-posix (Comment): Likewise.
23904         * modules/vprintf-posix (Comment): Likewise.
23905         * modules/vsnprintf-posix (Comment): Likewise.
23906         * modules/vsprintf-posix (Comment): Likewise.
23907         * modules/xprintf-posix (Comment): Likewise.
23908         * modules/xvasprintf-posix (Comment): Likewise.
23909         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23910         * modules/floorf-tests (Depends-on): Likewise.
23911         * modules/round-tests (Depends-on): Likewise.
23912         * modules/roundf-tests (Depends-on): Likewise.
23913         * modules/trunc-tests (Depends-on): Likewise.
23914         * modules/truncf-tests (Depends-on): Likewise.
23915         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23916         'fprintf-posix' module is not present.
23917         * tests/test-floorf2.c (check): Likewise.
23918         * tests/test-trunc2.c (check): Likewise.
23919         * tests/test-truncf2.c (check): Likewise.
23920         * tests/test-round2.c (equal): Likewise.
23921         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23922
23923 2010-04-07  Karl Berry  <karl@gnu.org>
23924
23925         * config/srclist.txt,
23926         * config/srclistvars.sh,
23927         * config/srclist-update: doc fixes.
23928
23929 2010-04-07  Jim Meyering  <meyering@redhat.com>
23930
23931         maint.mk: add a PATH crosschecking syntax-check rule
23932         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23933         Useful if you use a test like the one in help-version (coreutils,
23934         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23935         printed by prog --version.
23936
23937 2010-04-06  Bruno Haible  <bruno@clisp.org>
23938
23939         Fix link error on mingw.
23940         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23941         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23942
23943 2010-04-06  Bruno Haible  <bruno@clisp.org>
23944
23945         Assume rmdir exists.
23946         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23947
23948 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23949
23950         doc: update users.txt
23951         * users.txt: Add gcal.
23952
23953 2010-04-06  Jim Meyering  <meyering@redhat.com>
23954
23955         init.sh: simply unset TMPDIR rather than risking env -i
23956         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23957         although it probably works fine on all Unix-based systems, some
23958         systems (Cygwin?) cannot tolerate a totally cleared environment.
23959         Suggestion from Eric Blake.
23960
23961 2010-04-06  Jim Meyering  <meyering@redhat.com>
23962
23963         init.sh: portability fix: use env's POSIX-specified -i option not -u
23964         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23965         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23966
23967 2010-04-05  Bruno Haible  <bruno@clisp.org>
23968
23969         btowc: Work around Cygwin 1.7.2 bug.
23970         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23971         does not map NUL to 0.
23972         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23973
23974 2010-04-05  Bruno Haible  <bruno@clisp.org>
23975
23976         Make the multithread modules work on Cygwin 1.7.2.
23977         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23978         imported symbols can be declared weak, so that it returns "no" on
23979         Cygwin 1.7.2.
23980
23981 2010-04-05  Bruno Haible  <bruno@clisp.org>
23982
23983         Use the module 'strncat'.
23984         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23985
23986         Tests for module 'strncat'.
23987         * modules/strncat-tests: New file.
23988         * tests/test-strncat.c: New file.
23989
23990         New module 'strncat'.
23991         * lib/string.in.h (strncat): New declaration.
23992         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23993         * m4/strncat.m4: New file, based on m4/memchr.m4.
23994         * modules/strncat: New file.
23995         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23996         is declared.
23997         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23998         REPLACE_STRNCAT.
23999         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24000         REPLACE_STRNCAT.
24001         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24002         module.
24003         * tests/test-string-c++.cc: Check signature of strncat.
24004
24005 2010-04-05  Jim Meyering  <meyering@redhat.com>
24006
24007         xstrtoumax-tests: convert to use init.sh
24008         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24009         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24010         Use Exit, not exit.
24011         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24012
24013         xstrtoimax-tests: convert to use init.sh
24014         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24015         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24016         Use Exit, not exit.
24017         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24018
24019 2010-04-05  Bruno Haible  <bruno@clisp.org>
24020
24021         sys_socket: Avoid #define replacements in C++ mode.
24022         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24023         warning to the function if possible, rather than #defining the symbol
24024         to a dysfunctional alias.
24025
24026 2010-04-05  Bruno Haible  <bruno@clisp.org>
24027
24028         fseeko: Fix C++ test error on mingw.
24029         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24030         gl_FUNC_FSEEKO.
24031         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24032         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24033         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24034         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24035
24036 2010-04-05  Bruno Haible  <bruno@clisp.org>
24037
24038         duplocale: Improve test output.
24039         * tests/test-duplocale.c (main): Print reason for skipped test.
24040
24041 2010-04-05  Bruno Haible  <bruno@clisp.org>
24042
24043         Assume rmdir exists.
24044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24045         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24046
24047 2010-04-05  Bruno Haible  <bruno@clisp.org>
24048
24049         Fix link error on Solaris 8 with cc.
24050         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24051
24052 2010-04-05  Bruno Haible  <bruno@clisp.org>
24053
24054         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24055         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24056
24057 2010-04-05  Bruno Haible  <bruno@clisp.org>
24058
24059         vasprintf: Update documentation.
24060         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24061
24062 2010-04-05  Bruno Haible  <bruno@clisp.org>
24063
24064         ptsname: Improve test.
24065         * tests/test-ptsname.c (main): Also try the various master names of BSD
24066         systems.
24067
24068 2010-04-05  Bruno Haible  <bruno@clisp.org>
24069
24070         memchr: Avoid a possible C++ test error.
24071         * lib/string.in.h (memchr): Provide declaration if function is missing.
24072         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24073         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24075         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24076
24077 2010-04-05  Bruno Haible  <bruno@clisp.org>
24078
24079         strtok_r: Improve idiom.
24080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24081         AC_LIBOBJ is used.
24082
24083 2010-04-05  Bruno Haible  <bruno@clisp.org>
24084
24085         strdup: Improve idiom.
24086         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24087         AC_LIBOBJ is used.
24088         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24089         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24090         when AC_LIBOBJ is used.
24091
24092 2010-04-05  Bruno Haible  <bruno@clisp.org>
24093
24094         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24095         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24096         don't set REPLACE_MBSINIT to 1.
24097         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24098         don't set REPLACE_MBRTOWC to 1.
24099         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24100         exist, don't set REPLACE_MBSRTOWCS to 1.
24101         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24102         exist, don't set REPLACE_MBSNRTOWCS to 1.
24103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24104         don't set REPLACE_WCRTOMB to 1.
24105         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24106         exist, don't set REPLACE_WCSRTOMBS to 1.
24107         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24108         exist, don't set REPLACE_WCSNRTOMBS to 1.
24109
24110 2010-04-05  Bruno Haible  <bruno@clisp.org>
24111
24112         ldexpl: Improve idiom.
24113         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24114         make sure to set HAVE_DECL_LDEXPL to 0.
24115
24116 2010-04-05  Jim Meyering  <meyering@redhat.com>
24117
24118         xstrtol-tests: convert to use init.sh
24119         * modules/xstrtol-tests (Files): Add tests/init.sh.
24120         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24121         Use Exit, not exit.
24122         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24123
24124         atexit-tests: convert to use init.sh
24125         * modules/atexit-tests (Files): Add tests/init.sh.
24126         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24127         Use Exit, not exit.
24128         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24129
24130         init.sh: fix typo
24131         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24132
24133         init.sh: make it easier for a test script to write to the tty, ...
24134         when using automake's parallel-tests mode.
24135         * tests/init.sh (stderr_fileno_): Define overridable variable.
24136         (warn_): New function, to use it.
24137         (fail_, skip_, framework_failure_): Use warn_.
24138
24139 2010-04-04  Bruno Haible  <bruno@clisp.org>
24140
24141         btowc: Avoid warning.
24142         * lib/btowc.c: Include <stdlib.h>.
24143         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24144
24145 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24146             Bruno Haible  <bruno@clisp.org>
24147
24148         wchar: Port to NetBSD 1.5.
24149         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24150         * lib/wctype.in.h (WEOF): Likewise.
24151
24152 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24153             Bruno Haible  <bruno@clisp.org>
24154
24155         Port extended stdio to NetBSD 1.5.
24156         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24157         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24158         older.
24159
24160 2010-04-04  Bruno Haible  <bruno@clisp.org>
24161
24162         string: Remove unused substitution.
24163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24164         HAVE_DECL_STRERROR.
24165         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24166
24167 2010-04-04  Bruno Haible  <bruno@clisp.org>
24168
24169         strtod: Avoid a possible C++ test error.
24170         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24171         set REPLACE_STRTOD.
24172
24173 2010-04-04  Bruno Haible  <bruno@clisp.org>
24174
24175         strerror: Update documentation.
24176         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24177
24178 2010-04-04  Bruno Haible  <bruno@clisp.org>
24179
24180         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24181         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24182         _GL_CXXALIAS_SYS_CAST.
24183
24184 2010-04-04  Bruno Haible  <bruno@clisp.org>
24185
24186         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24187         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24188         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24189         REPLACE_FREXPL to 1.
24190         * doc/posix-functions/frexpl.texi: Update documentation.
24191
24192 2010-04-04  Bruno Haible  <bruno@clisp.org>
24193
24194         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24195         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24196
24197 2010-04-04  Bruno Haible  <bruno@clisp.org>
24198
24199         Implement nanosleep for native Windows.
24200         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24201
24202 2010-04-04  Bruno Haible  <bruno@clisp.org>
24203
24204         math: Fix some C++ test errors on Solaris 8.
24205         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24206
24207 2010-04-04  Bruno Haible  <bruno@clisp.org>
24208
24209         math: Fix some C++ test errors on Cygwin.
24210         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24211         truncl): Provide declaration if the system does not have it.
24212         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24213         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24214         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24215         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24216         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24217         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24218         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24219         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24220         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24221         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24222         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24223         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24224         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24225         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24226         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24227         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24229         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24230         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24231         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24232         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24233         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24234
24235 2010-04-04  Bruno Haible  <bruno@clisp.org>
24236
24237         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24238         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24239         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24240         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24241         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24242         * m4/isinf.m4 (gl_ISINF): Likewise.
24243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24244
24245 2010-04-04  Bruno Haible  <bruno@clisp.org>
24246
24247         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24248         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24249
24250 2010-04-04  Bruno Haible  <bruno@clisp.org>
24251
24252         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24253         * modules/tmpfile (configure.ac): Update.
24254
24255         tmpfile: Fix C++ test error on mingw.
24256         * lib/stdio.in.h (tmpfile): New declaration.
24257         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24258         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24259         * modules/tmpfile (Depends-on): Add stdio.
24260         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24261         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24262         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24263         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24264         REPLACE_TMPFILE.
24265         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24266
24267 2010-04-04  Bruno Haible  <bruno@clisp.org>
24268
24269         ioctl: Fix C++ test error on mingw.
24270         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24271         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24272         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24273
24274 2010-04-03  Bruno Haible  <bruno@clisp.org>
24275
24276         wcwidth: Fix C++ test error on mingw.
24277         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24279         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24280
24281 2010-04-03  Bruno Haible  <bruno@clisp.org>
24282
24283         nanosleep: Fix C++ test error on mingw.
24284         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24285         * lib/time.in.h (nanosleep): Use modern idiom.
24286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24287         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24288         REPLACE_NANOSLEEP to 1.
24289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24290         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24291
24292 2010-04-03  Bruno Haible  <bruno@clisp.org>
24293
24294         strptime: Fix C++ test error on mingw.
24295         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24296         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24297         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24298         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24299         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24300         not REPLACE_STRPTIME.
24301         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24302         REPLACE_STRPTIME.
24303
24304 2010-04-03  Bruno Haible  <bruno@clisp.org>
24305
24306         timegm: Fix C++ test error on mingw.
24307         * lib/time.in.h (timegm): Use modern idiom.
24308         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24309         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24310         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24311         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24312
24313 2010-04-03  Bruno Haible  <bruno@clisp.org>
24314
24315         timegm: Assume declaration if function exists.
24316         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24317         if it exists. Don't clobber ac_cv_func_timegm.
24318
24319 2010-04-03  Bruno Haible  <bruno@clisp.org>
24320
24321         time_r: Fix C++ test error on mingw.
24322         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24323         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24324         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24326         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24327
24328 2010-04-03  Bruno Haible  <bruno@clisp.org>
24329
24330         time_r: Minor updates.
24331         * modules/time_r (Description): Mention the provided functions.
24332         * lib/time_r.c: Don't include <string.h>.
24333         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24334         * doc/posix-functions/localtime_r.texi: Likewise.
24335
24336 2010-04-03  Bruno Haible  <bruno@clisp.org>
24337
24338         time: Fix regression introduced on 2010-03-08.
24339         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24340         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24341
24342 2010-04-03  Jim Meyering  <meyering@redhat.com>
24343
24344         maint.mk: don't silently disable project-specific syntax-check rules
24345         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24346         that they need to convert their project-specific syntax-check rules
24347         to use the new _sc_search_regexp.
24348
24349 2010-04-03  Bruno Haible  <bruno@clisp.org>
24350
24351         fchdir: Fix regression introduced on 2010-03-08.
24352         * lib/unistd.in.h (fchdir): Fix declaration.
24353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24355         REPLACE_FCHDIR.
24356         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24357         REPLACE_FCHDIR.
24358
24359 2010-04-03  Bruno Haible  <bruno@clisp.org>
24360
24361         getpagesize: Fix C++ test error on mingw.
24362         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24363         system does not declare the function.
24364         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24365         declared.
24366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24367         HAVE_DECL_GETPAGESIZE.
24368         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24369
24370 2010-04-03  Bruno Haible  <bruno@clisp.org>
24371
24372         stdio: Make C++ tests work on mingw.
24373         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24374         does not declare the function.
24375
24376 2010-04-03  Bruno Haible  <bruno@clisp.org>
24377
24378         ftello: Fix C++ test error on mingw.
24379         * lib/stdio.in.h (ftello): Use modern idiom.
24380         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24381         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24382         is missing and that it needs to be replaced.
24383         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24385         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24386
24387 2010-04-03  Bruno Haible  <bruno@clisp.org>
24388
24389         fseeko: Fix C++ test error on mingw.
24390         * lib/stdio.in.h (fseeko): Use modern idiom.
24391         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24392         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24393         is missing and that it needs to be replaced.
24394         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24396         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24397
24398 2010-04-03  Bruno Haible  <bruno@clisp.org>
24399
24400         mkstemp: Fix C++ test error on mingw.
24401         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24403         function is missing and that it needs to be replaced.
24404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24405         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24406
24407 2010-04-03  Bruno Haible  <bruno@clisp.org>
24408
24409         stpncpy: Fix C++ test error on mingw.
24410         * lib/string.in.h (stpncpy): Use modern idiom.
24411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24412         function is missing and that it needs to be replaced.
24413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24414         REPLACE_STPNCPY.
24415         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24416
24417 2010-04-03  Bruno Haible  <bruno@clisp.org>
24418
24419         sys_stat: Fix C++ test error on mingw.
24420         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24421         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24422
24423 2010-04-03  Bruno Haible  <bruno@clisp.org>
24424
24425         pty: Update doc.
24426         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24427
24428 2010-04-03  Bruno Haible  <bruno@clisp.org>
24429
24430         unistd: Fix C++ test error on mingw.
24431         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24432
24433 2010-04-03  Bruno Haible  <bruno@clisp.org>
24434
24435         Update doc regarding mingw.
24436         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24437         * doc/glibc-functions/login_tty.texi: Likewise.
24438         * doc/glibc-functions/forkpty.texi: Likewise.
24439
24440 2010-04-03  Bruno Haible  <bruno@clisp.org>
24441
24442         stdlib: Avoid compilation failure of c-strtold on mingw.
24443         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24444
24445 2010-04-03  Bruno Haible  <bruno@clisp.org>
24446
24447         locale: Make C++ tests work on Cygwin and mingw.
24448         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24449         cannot provide the function.
24450         Reported by Simon Josefsson.
24451
24452 2010-04-03  Bruno Haible  <bruno@clisp.org>
24453
24454         localename: Port to MacOS X 10.6.
24455         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24456         memory layout of the locales in MacOS X 10.6 as well.
24457         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24458
24459 2010-04-02  Bruno Haible  <bruno@clisp.org>
24460
24461         gnulib-tool: Ensure that long-running tests are executed last.
24462         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24463         running tests after the one for the other tests.
24464
24465 2010-04-02  Bruno Haible  <bruno@clisp.org>
24466
24467         gnulib-tool: Ensure the tests in the main directory are executed first.
24468         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24469         start with the current directory.
24470
24471 2010-04-02  Bruno Haible  <bruno@clisp.org>
24472
24473         Tests for module 'havelib', moved here from GNU gettext.
24474         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24475         modifications.
24476         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24477         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24478         with modifications.
24479         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24480         modifications.
24481         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24482         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24483         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24484         with modifications.
24485         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24486         with modifications.
24487         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24488         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24489         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24490         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24491         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24492         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24493         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24494         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24495         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24496         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24497         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24498         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24499         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24500         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24501         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24502         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24503         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24504         with modifications.
24505         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24506         with modifications.
24507         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24508         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24509         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24510         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24511         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24512         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24513         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24514         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24515         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24516         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24517         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24518         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24519         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24520         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24521         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24522         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24523         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24524         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24525         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24526         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24527         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24528         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24529         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24530         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24531         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24532         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24533         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24534         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24535         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24536         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24537         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24538         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24539         * tests/havelib/rpathx/rpathx.c: New file, from
24540         gettext/autoconf-lib-link.
24541         * tests/havelib/rpathx/Makefile.am: New file, from
24542         gettext/autoconf-lib-link.
24543         * tests/havelib/rpathx/configure.ac: New file, from
24544         gettext/autoconf-lib-link with modifications.
24545         * tests/havelib/rpathy/rpathy.c: New file, from
24546         gettext/autoconf-lib-link.
24547         * tests/havelib/rpathy/Makefile.am: New file, from
24548         gettext/autoconf-lib-link.
24549         * tests/havelib/rpathy/configure.ac: New file, from
24550         gettext/autoconf-lib-link with modifications.
24551         * tests/havelib/rpathz/rpathz.c: New file, from
24552         gettext/autoconf-lib-link.
24553         * tests/havelib/rpathz/Makefile.am: New file, from
24554         gettext/autoconf-lib-link.
24555         * tests/havelib/rpathz/configure.ac: New file, from
24556         gettext/autoconf-lib-link with modifications.
24557         * tests/havelib/rpathlx/usex.c: New file, from
24558         gettext/autoconf-lib-link.
24559         * tests/havelib/rpathlx/Makefile.am: New file, from
24560         gettext/autoconf-lib-link.
24561         * tests/havelib/rpathlx/configure.ac: New file, from
24562         gettext/autoconf-lib-link with modifications.
24563         * tests/havelib/rpathly/usey.c: New file, from
24564         gettext/autoconf-lib-link.
24565         * tests/havelib/rpathly/Makefile.am: New file, from
24566         gettext/autoconf-lib-link.
24567         * tests/havelib/rpathly/configure.ac: New file, from
24568         gettext/autoconf-lib-link with modifications.
24569         * tests/havelib/rpathlz/usez.c: New file, from
24570         gettext/autoconf-lib-link.
24571         * tests/havelib/rpathlz/Makefile.am: New file, from
24572         gettext/autoconf-lib-link.
24573         * tests/havelib/rpathlz/configure.ac: New file, from
24574         gettext/autoconf-lib-link with modifications.
24575         * tests/havelib/rpathlyx/usey.c: New file, from
24576         gettext/autoconf-lib-link.
24577         * tests/havelib/rpathlyx/Makefile.am: New file, from
24578         gettext/autoconf-lib-link.
24579         * tests/havelib/rpathlyx/configure.ac: New file, from
24580         gettext/autoconf-lib-link with modifications.
24581         * tests/havelib/rpathlzyx/usez.c: New file, from
24582         gettext/autoconf-lib-link.
24583         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24584         gettext/autoconf-lib-link.
24585         * tests/havelib/rpathlzyx/configure.ac: New file, from
24586         gettext/autoconf-lib-link with modifications.
24587         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24588         with modifications.
24589
24590 2010-04-02  Bruno Haible  <bruno@clisp.org>
24591
24592         gnulib-tool: Create distributed built sources also for the tests.
24593         * gnulib-tool (func_create_testdir): Also generate distributed built
24594         sources in the tests directory.
24595
24596 2010-04-02  Bruno Haible  <bruno@clisp.org>
24597
24598         gnulib-tool: Obey user's environment variables.
24599         * gnulib-tool (func_create_testdir): When creating built sources,
24600         respect the environment variables for autoconf, automake, etc. given by
24601         the user.
24602
24603 2010-04-02  Bruno Haible  <bruno@clisp.org>
24604
24605         gnulib-tool: Provide the value of --m4-base to modules.
24606         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24607         of gl_m4_base.
24608
24609 2010-04-02  Eric Blake  <eblake@redhat.com>
24610
24611         maint.mk: fix some fallout
24612         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24613         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24614
24615 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24616
24617         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24618         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24619         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24620         (sc_cast_of_x_alloc_return_value): Likewise.
24621         (sc_cast_of_alloca_return_value): Likewise.
24622         (sc_space_tab): Likewise.
24623         (sc_prohibit_atoi_atof): Likewise.
24624         (sc_prohibit_magic_number_exit): Likewise.
24625         (sc_error_exit_success): Likewise.
24626         (sc_file_system): Likewise.
24627         (sc_prohibit_have_config_h): Likewise.
24628         (sc_require_config_h): Likewise.
24629         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24630         (sc_obsolete_symbols): Likewise.
24631         (sc_changelog): Likewise.
24632         (sc_program_name): Likewise.
24633         (sc_the_the): Likewise.
24634         (sc_trailing_blank): Likewise.
24635         (sc_two_space_separator_in_usage): Likewise.
24636         (sc_useless_cpp_parens): Likewise.
24637         (sc_GPL_version): Likewise.
24638         (sc_GFDL_version): Likewise.
24639         (sc_texinfo_acronym): Likewise.
24640         (sc_prohibit_cvs_keyword): Likewise.
24641         (sc_prohibit_stat_st_blocks): Likewise.
24642         (sc_prohibit_S_IS_definition): Likewise.
24643         (sc_redundant_const): Likewise.
24644         (sc_makefile_TAB_only_indentation): Likewise.
24645         (sc_m4_quote_check): Likewise.
24646         (sc_makefile_path_separator_check): Likewise.
24647         (sc_copyright_check): Likewise.
24648         (sc_Wundef_boolean): Likewise.
24649         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24650
24651         maint.mk: match 0 or more whitespace-before-function-call '('
24652         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24653         that have zero or two-and-more spaces between the function name
24654         and the open parenthesis.
24655         (sc_error_message_warn_fatal): Likewise.
24656         (sc_error_message_uppercase): Likewise.
24657         (sc_error_message_period): Likewise.
24658
24659 2010-03-31  Eric Blake  <eblake@redhat.com>
24660
24661         maint.mk: check for [ as well as test
24662         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24663         Based on a libvirt report by Matthias Bolte.
24664
24665         gnumakefile: don't squelch _version output
24666         * top/GNUmakefile (_version): Create one-shot dependency rather
24667         than using $(shell) when version must be regenerated.
24668         (_autoreconf): Run verbosely, by default.
24669
24670         sys_time: avoid compiler warnings
24671         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24672         unconditional, fixing regression from 2010-03-29.
24673         Reported by Simon Josefsson.
24674
24675 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24676
24677         maint.mk: s/_header_without_use/_sc_header_without_use/
24678         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24679         (sc_prohibit_assert_without_use): Use the new name.
24680         (sc_prohibit_close_stream_without_use): Likewise.
24681         (sc_prohibit_getopt_without_use): Likewise.
24682         (sc_prohibit_quotearg_without_use): Likewise.
24683         (sc_prohibit_quote_without_use): Likewise.
24684         (sc_prohibit_long_options_without_use): Likewise.
24685         (sc_prohibit_inttostr_without_use): Likewise.
24686         (sc_prohibit_ignore_value_without_use): Likewise.
24687         (sc_prohibit_error_without_use): Likewise.
24688         (sc_prohibit_xalloc_without_use): Likewise.
24689         (sc_prohibit_hash_without_use): Likewise.
24690         (sc_prohibit_hash_pjw_without_use): Likewise.
24691         (sc_prohibit_safe_read_without_use): Likewise.
24692         (sc_prohibit_argmatch_without_use): Likewise.
24693         (sc_prohibit_canonicalize_without_use): Likewise.
24694         (sc_prohibit_root_dev_ino_without_use): Likewise.
24695         (sc_prohibit_openat_without_use): Likewise.
24696         (sc_prohibit_c_ctype_without_use): Likewise.
24697         (sc_prohibit_signal_without_use): Likewise.
24698         (sc_prohibit_intprops_without_use): Likewise.
24699
24700 2010-03-30  Eric Blake  <eblake@redhat.com>
24701
24702         maint: improve module indicators
24703         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24704         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24705         columns, and avoid extra macro expansion.
24706
24707         fdopendir: work around FreeBSD bug
24708         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24709         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24710         * modules/dirent (Makefile.am): Substitute it.
24711         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24712         declaration.
24713         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24714         fix.
24715         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24716
24717 2010-03-29  Bruno Haible  <bruno@clisp.org>
24718
24719         Emit #pragma system_header after the inclusion guard, not before.
24720         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24721         guard that spans the entire file, not before. This enables an
24722         optimization in GCC's preprocessor.
24723         * lib/ctype.in.h: Likewise.
24724         * lib/dirent.in.h: Likewise.
24725         * lib/errno.in.h: Likewise.
24726         * lib/float.in.h: Likewise.
24727         * lib/getopt.in.h: Likewise.
24728         * lib/iconv.in.h: Likewise.
24729         * lib/langinfo.in.h: Likewise.
24730         * lib/locale.in.h: Likewise.
24731         * lib/math.in.h: Likewise.
24732         * lib/netdb.in.h: Likewise.
24733         * lib/netinet_in.in.h: Likewise.
24734         * lib/pty.in.h: Likewise.
24735         * lib/sched.in.h: Likewise.
24736         * lib/se-selinux.in.h: Likewise.
24737         * lib/search.in.h: Likewise.
24738         * lib/spawn.in.h: Likewise.
24739         * lib/stdarg.in.h: Likewise.
24740         * lib/stdint.in.h: Likewise.
24741         * lib/string.in.h: Likewise.
24742         * lib/strings.in.h: Likewise.
24743         * lib/sys_file.in.h: Likewise.
24744         * lib/sys_ioctl.in.h: Likewise.
24745         * lib/sys_time.in.h: Likewise.
24746         * lib/sys_times.in.h: Likewise.
24747         * lib/sys_utsname.in.h: Likewise.
24748         * lib/sys_wait.in.h: Likewise.
24749         * lib/sysexits.in.h: Likewise.
24750         * lib/wctype.in.h: Likewise.
24751
24752 2010-03-28  James Youngman  <jay@gnu.org>
24753
24754         save-cwd: don't leak a file descriptor when the caller execs.
24755         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24756         saved file descriptor.
24757         * modules/save-cwd (Depends-on): Depend on cloexec.
24758
24759 2010-03-29  Bruno Haible  <bruno@clisp.org>
24760
24761         Remove vestiges of fts-lgpl module.
24762         * lib/fts_.h: Assume GNULIB_FTS is 1.
24763         * lib/fts.c: Likewise.
24764         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24765
24766 2010-03-28  Bruno Haible  <bruno@clisp.org>
24767
24768         Fix definition of tests witness macro.
24769         * gnulib-tool (func_import): Fix definition of witness macro.
24770
24771 2010-03-28  Bruno Haible  <bruno@clisp.org>
24772
24773         Fix ioctl's protoype on glibc systems.
24774         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24775         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24776         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24777         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24778         signature. If not, arrange to replace the ioctl function.
24779         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24780         REPLACE_IOCTL.
24781         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24782         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24783         Reported by Ludovic Courtès <ludo@gnu.org>.
24784
24785 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24786
24787         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24788         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24789         made it so grep -r --include=GLOB* ... did not work.
24790
24791 2010-03-26  Jim Meyering  <meyering@redhat.com>
24792             Eric Blake  <eblake@redhat.com>
24793
24794         maint.mk: prohibit use of test's -o and -a operators
24795         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24796
24797 2010-03-28  Bruno Haible  <bruno@clisp.org>
24798
24799         Remove unused GNULIB_XYZ macro definitions.
24800         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24801         invocation.
24802
24803 2010-03-28  Bruno Haible  <bruno@clisp.org>
24804
24805         Mark privileged tests modules.
24806         * modules/idpriv-drop-tests (Status): New section.
24807         * modules/idpriv-droptemp-tests (Status): New section.
24808
24809 2010-03-28  Bruno Haible  <bruno@clisp.org>
24810
24811         Split C++ tests into separate tests modules.
24812         * modules/dirent-c++-tests: New file, extracted from
24813         modules/dirent-tests.
24814         * modules/dirent-tests: Depend on it.
24815         * modules/fcntl-h-c++-tests: New file, extracted from
24816         modules/fcntl-h-tests.
24817         * modules/fcntl-h-tests: Depend on it.
24818         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24819         * modules/glob-tests: Depend on it.
24820         * modules/iconv-h-c++-tests: New file, extracted from
24821         modules/iconv-h-tests.
24822         * modules/iconv-h-tests: Depend on it.
24823         * modules/langinfo-c++-tests: New file, extracted from
24824         modules/langinfo-tests.
24825         * modules/langinfo-tests: Depend on it.
24826         * modules/locale-c++-tests: New file, extracted from
24827         modules/locale-tests.
24828         * modules/locale-tests: Depend on it.
24829         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24830         * modules/math-tests: Depend on it.
24831         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24832         * modules/pty-tests: Depend on it.
24833         * modules/search-c++-tests: New file, extracted from
24834         modules/search-tests.
24835         * modules/search-tests: Depend on it.
24836         * modules/signal-c++-tests: New file, extracted from
24837         modules/signal-tests.
24838         * modules/signal-tests: Depend on it.
24839         * modules/spawn-c++-tests: New file, extracted from
24840         modules/spawn-tests.
24841         * modules/spawn-tests: Depend on it.
24842         * modules/stdio-c++-tests: New file, extracted from
24843         modules/stdio-tests.
24844         * modules/stdio-tests: Depend on it.
24845         * modules/stdlib-c++-tests: New file, extracted from
24846         modules/stdlib-tests.
24847         * modules/stdlib-tests: Depend on it.
24848         * modules/string-c++-tests: New file, extracted from
24849         modules/string-tests.
24850         * modules/string-tests: Depend on it.
24851         * modules/sys_ioctl-c++-tests: New file, extracted from
24852         modules/sys_ioctl-tests.
24853         * modules/sys_ioctl-tests: Depend on it.
24854         * modules/sys_select-c++-tests: New file, extracted from
24855         modules/sys_select-tests.
24856         * modules/sys_select-tests: Depend on it.
24857         * modules/sys_socket-c++-tests: New file, extracted from
24858         modules/sys_socket-tests.
24859         * modules/sys_socket-tests: Depend on it.
24860         * modules/sys_stat-c++-tests: New file, extracted from
24861         modules/sys_stat-tests.
24862         * modules/sys_stat-tests: Depend on it.
24863         * modules/sys_time-c++-tests: New file, extracted from
24864         modules/sys_time-tests.
24865         * modules/sys_time-tests: Depend on it.
24866         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24867         * modules/time-tests: Depend on it.
24868         * modules/unistd-c++-tests: New file, extracted from
24869         modules/unistd-tests.
24870         * modules/unistd-tests: Depend on it.
24871         * modules/wchar-c++-tests: New file, extracted from
24872         modules/wchar-tests.
24873         * modules/wchar-tests: Depend on it.
24874         * modules/wctype-c++-tests: New file, extracted from
24875         modules/wctype-tests.
24876         * modules/wctype-tests: Depend on it.
24877         Reported by Simon Josefsson.
24878
24879 2010-03-28  Bruno Haible  <bruno@clisp.org>
24880
24881         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24882         * gnulib-tool (func_exists_module): New function, extracted from
24883         func_verify_module.
24884         (func_verify_module): Use it.
24885         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24886         'foo' only if 'foo' exists.
24887         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24888         module.
24889
24890 2010-03-28  Bruno Haible  <bruno@clisp.org>
24891
24892         gnulib-tool: Add support for special categories of tests.
24893         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24894         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24895         (func_usage): Document them.
24896         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24897         inc_unportable_tests, inc_all_tests): New variables.
24898         (func_acceptable): Consider these variables.
24899         (func_modules_transitive_closure): Make it work when the 'Status' field
24900         consists of multiple words.
24901         (func_import): Store and restore the values of inc_cxx_tests,
24902         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24903         inc_all_tests in gnulib-comp.m4.
24904         (func_create_testdir): Set inc_all_tests to true.
24905         * doc/gnulib.texi (Extra tests modules): New section.
24906         Suggested by Jim Meyering.
24907
24908 2010-03-28  Bruno Haible  <bruno@clisp.org>
24909
24910         ansi-c++-opt: Allow turning off the C++ build by default.
24911         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24912         gl_CXX_CHOICE_DEFAULT_NO is defined.
24913         Requested by Eric Blake.
24914
24915 2010-03-28  Bruno Haible  <bruno@clisp.org>
24916
24917         unistd: Avoid #define replacements in C++ mode.
24918         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24919         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24920         setsockopt, shutdown, select): In C++, attach a warning to the function
24921         if possible, rather than #defining the symbol to a dysfunctional alias.
24922         Reported by John W. Eaton <jwe@gnu.org>.
24923
24924 2010-03-28  Bruno Haible  <bruno@clisp.org>
24925
24926         Fix link errors on mingw.
24927         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24928         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24929         $(LIBSOCKET).
24930         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24931         $(LIBSOCKET).
24932
24933 2010-03-28  Bruno Haible  <bruno@clisp.org>
24934             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24935
24936         lib-ignore: Determine different options for different compilers.
24937         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24938         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24939         Add comments.
24940         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24941         * NEWS: Mention the change.
24942
24943 2010-03-27  Bruno Haible  <bruno@clisp.org>
24944
24945         Remove unused GNULIB_XYZ macro definitions.
24946         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24947         * modules/fseek (configure.ac): Likewise.
24948         * modules/ioctl (configure.ac): Likewise.
24949         * modules/open (configure.ac): Likewise.
24950         * modules/stdlib-safer (configure.ac): Likewise.
24951
24952 2010-03-27  Bruno Haible  <bruno@clisp.org>
24953
24954         Add a remark about certain modules.
24955         * modules/malloc (Comment): New section.
24956         * modules/realloc (Comment): Likewise.
24957         * modules/sigpipe (Comment): Likewise.
24958
24959 2010-03-27  Bruno Haible  <bruno@clisp.org>
24960
24961         Resolve conflict between the two kinds of module indicators.
24962         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24963         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24964         * modules/canonicalize (configure.ac): Invoke
24965         gl_MODULE_INDICATOR_FOR_TESTS.
24966         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24967         GNULIB_XYZ.
24968         * tests/test-dirent-c++.cc: Likewise.
24969         * tests/test-dirent-safer.c: Likewise.
24970         * tests/test-dup2.c: Likewise.
24971         * tests/test-fchdir.c: Likewise.
24972         * tests/test-fcntl-h-c++.cc: Likewise.
24973         * tests/test-getopt.c: Likewise.
24974         * tests/test-getopt.h: Likewise.
24975         * tests/test-langinfo-c++.cc: Likewise.
24976         * tests/test-locale-c++.cc: Likewise.
24977         * tests/test-math-c++.cc: Likewise.
24978         * tests/test-pty-c++.cc: Likewise.
24979         * tests/test-search-c++.cc: Likewise.
24980         * tests/test-signal-c++.cc: Likewise.
24981         * tests/test-spawn-c++.cc: Likewise.
24982         * tests/test-stdio-c++.cc: Likewise.
24983         * tests/test-stdlib-c++.cc: Likewise.
24984         * tests/test-string-c++.cc: Likewise.
24985         * tests/test-sys_ioctl-c++.cc: Likewise.
24986         * tests/test-sys_select-c++.cc: Likewise.
24987         * tests/test-sys_socket-c++.cc: Likewise.
24988         * tests/test-sys_stat-c++.cc: Likewise.
24989         * tests/test-sys_time-c++.cc: Likewise.
24990         * tests/test-time-c++.cc: Likewise.
24991         * tests/test-unistd-c++.cc: Likewise.
24992         * tests/test-wchar-c++.cc: Likewise.
24993         * tests/uninorm/test-u8-nfc.c: Likewise.
24994         * tests/uninorm/test-u8-nfd.c: Likewise.
24995         * tests/uninorm/test-u8-nfkc.c: Likewise.
24996         * tests/uninorm/test-u8-nfkd.c: Likewise.
24997         * tests/uninorm/test-u16-nfc.c: Likewise.
24998         * tests/uninorm/test-u16-nfd.c: Likewise.
24999         * tests/uninorm/test-u16-nfkc.c: Likewise.
25000         * tests/uninorm/test-u16-nfkd.c: Likewise.
25001         * tests/uninorm/test-u32-nfc.c: Likewise.
25002         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25003         * tests/uninorm/test-u32-nfd.c: Likewise.
25004         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25005         * tests/uninorm/test-u32-nfkc.c: Likewise.
25006         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25007         * tests/uninorm/test-u32-nfkd.c: Likewise.
25008         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25009         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25010
25011 2010-03-27  Bruno Haible  <bruno@clisp.org>
25012
25013         Distinguish two kinds of module indicators.
25014         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25015         gl_MODULE_INDICATOR.
25016         (gl_MODULE_INDICATOR): New macro.
25017         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25018         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25019         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25020         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25021         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25022         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25023         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25024         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25025         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25026         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25027         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25028         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25030         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25031         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25032         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25033         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25034         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25035         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25036         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25037         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25038         * modules/cloexec (configure.ac): Likewise.
25039         * modules/getopt-gnu (configure.ac): Likewise.
25040         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25041         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25042         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25043         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25044
25045 2010-03-27  Bruno Haible  <bruno@clisp.org>
25046
25047         New module description field 'Comment'.
25048         * gnulib-tool: New option --extract-comment.
25049         (func_usage): Document it.
25050         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25051         (func_get_comment): New function.
25052         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25053
25054 2010-03-27  Bruno Haible  <bruno@clisp.org>
25055
25056         Addendum to 2010-02-07 commit.
25057         * gnulib-tool (func_usage): Document --extract-applicability option.
25058
25059 2010-03-27  Bruno Haible  <bruno@clisp.org>
25060
25061         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25062         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25063         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25064         rather than link errors.
25065
25066 2010-03-27  Bruno Haible  <bruno@clisp.org>
25067
25068         Avoid side effects from tests-related modules on the compilation of lib.
25069         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25070         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25071         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25072         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25073         macro.
25074         (func_import): Define a witness macro. Assign it a value that depends
25075         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25076         tests-related modules.
25077         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25078         Reported by Jim Meyering.
25079
25080 2010-03-27  Bruno Haible  <bruno@clisp.org>
25081
25082         Factorize common .m4 code.
25083         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25084         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25085         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25086         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25087         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25088         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25089         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25090         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25091         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25092         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25093         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25094         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25095         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25096         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25097         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25098         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25099         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25100         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25102         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25103         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25104         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25105         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25107         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25108         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25109         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25111         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25112         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25113         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25114         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25115
25116 2010-03-27  Bruno Haible  <bruno@clisp.org>
25117
25118         Fix a compilation error on Cygwin with g++ >= 4.3.
25119         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25120         if it is undefined or if we alias it to chmod.
25121         (lstat): Don't warn about the use of this function if it is undefined
25122         or if we alias it to stat.
25123         Reported by Simon Josefsson.
25124
25125 2010-03-27  Bruno Haible  <bruno@clisp.org>
25126
25127         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25128         * modules/getlogin (configure.ac): Update.
25129
25130         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25131         * modules/getlogin_r (configure.ac): Update.
25132
25133         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25135         * modules/inet_ntop (configure.ac): Update.
25136
25137         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25138         * modules/inet_pton (configure.ac): Update.
25139
25140         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25141         * modules/mbslen (configure.ac): Update.
25142
25143         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25144         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25145         * modules/forkpty (configure.ac): Update.
25146         * modules/openpty (configure.ac): Update.
25147
25148 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25149
25150         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25151         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25152
25153 2010-03-25  Eric Blake  <eblake@redhat.com>
25154
25155         maint: use pragma consistently across replacement headers
25156         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25157         * lib/dirent.in.h (system_header): Likewise.
25158         * lib/errno.in.h (system_header): Likewise.
25159         * lib/float.in.h (system_header): Likewise.
25160         * lib/getopt.in.h (system_header): Likewise.
25161         * lib/iconv.in.h (system_header): Likewise.
25162         * lib/inttypes.in.h (system_header): Likewise.
25163         * lib/langinfo.in.h (system_header): Likewise.
25164         * lib/locale.in.h (system_header): Likewise.
25165         * lib/math.in.h (system_header): Likewise.
25166         * lib/netdb.in.h (system_header): Likewise.
25167         * lib/netinet_in.in.h (system_header): Likewise.
25168         * lib/pty.in.h (system_header): Likewise.
25169         * lib/sched.in.h (system_header): Likewise.
25170         * lib/se-selinux.in.h (system_header): Likewise.
25171         * lib/search.in.h (system_header): Likewise.
25172         * lib/spawn.in.h (system_header): Likewise.
25173         * lib/stdarg.in.h (system_header): Likewise.
25174         * lib/stdint.in.h (system_header): Likewise.
25175         * lib/string.in.h (system_header): Likewise.
25176         * lib/strings.in.h (system_header): Likewise.
25177         * lib/sys_file.in.h (system_header): Likewise.
25178         * lib/sys_ioctl.in.h (system_header): Likewise.
25179         * lib/sys_socket.in.h (system_header): Likewise.
25180         * lib/sys_times.in.h (system_header): Likewise.
25181         * lib/sys_utsname.in.h (system_header): Likewise.
25182         * lib/sys_wait.in.h (system_header): Likewise.
25183         * lib/sysexits.in.h (system_header): Likewise.
25184         * lib/unistd.in.h (system_header): Likewise.
25185         * lib/wctype.in.h (system_header): Likewise.
25186
25187         arpa/inet: fix mingw compilation warning
25188         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25189         Reported by Matthew Bolte.
25190
25191 2010-03-25  Bruno Haible  <bruno@clisp.org>
25192
25193         Avoid collision between gnulib wrapper and libintl wrapper.
25194         * lib/printf.c (printf): Don't define if a printf wrapper is already
25195         defined in intl/printf.c.
25196         Reported by Michel Boaventura <michel@michelboaventura.com>.
25197
25198 2010-03-25  Bruno Haible  <bruno@clisp.org>
25199
25200         Use ANSI C.
25201         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25202
25203 2010-03-25  Bruno Haible  <bruno@clisp.org>
25204
25205         Minor formatting changes.
25206         * lib/acosl.c: Insert space before function argument list.
25207         * lib/argz.c: Likewise.
25208         * lib/asinl.c: Likewise.
25209         * lib/expl.c: Likewise.
25210         * lib/gen-uni-tables.c: Likewise.
25211         * lib/gettext.h: Likewise.
25212         * lib/glthread/lock.h: Likewise.
25213         * lib/tanl.c: Likewise.
25214         * lib/uniname/uniname.c: Likewise.
25215         * tests/test-idpriv-drop.c: Likewise.
25216         * tests/test-idpriv-droptemp.c: Likewise.
25217         * tests/test-lock.c: Likewise.
25218         * tests/test-tls.c: Likewise.
25219         * lib/argp-help.c: Insert space before function-like macro argument
25220         list.
25221         * lib/memcmp.c: Likewise.
25222         * tests/test-base64.c: Likewise.
25223         * lib/localename.c: Insert space before sizeof's argument list.
25224         * lib/safe-alloc.h: Likewise.
25225         * lib/file-set.h: Insert space before macro argument list.
25226         * tests/test-argp.c: Likewise.
25227         * lib/argp-namefrob.h: Insert space before function parameter list.
25228         * lib/getaddrinfo.c: Likewise.
25229         * lib/netdb.in.h: Likewise.
25230         * lib/parse-duration.h: Likewise.
25231         * lib/parse-duration.c: Likewise.
25232         * lib/poll.c: Likewise.
25233         * lib/select.c: Likewise.
25234         * lib/trim.h: Likewise.
25235         * tests/test-usleep.c: Likewise.
25236         * lib/ldexpl.c: Insert space before function parameter list and before
25237         function argument list.
25238         * lib/logl.c: Likewise.
25239         * lib/sqrtl.c: Likewise.
25240         * lib/trim.c: Likewise.
25241         * lib/cosl.c: Use GNU style indentation. Insert space before function
25242         argument list.
25243         * lib/sinl.c: Likewise.
25244         * lib/tsearch.c: Insert space after 'for'.
25245         Reported by Jim Meyering.
25246
25247 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25248
25249         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25250         config header before grepping, as it's not present before
25251         autoreconf/configure are run.  Reported by Simon Josefsson.
25252
25253 2010-03-23  Bruno Haible  <bruno@clisp.org>
25254
25255         pt_chown: Make it work with automake < 1.11.
25256         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25257         Reported by Simon Josefsson.
25258
25259 2010-03-23  Bruno Haible  <bruno@clisp.org>
25260
25261         pt_chown: Don't depend on GPLed modules.
25262         * lib/pt_chown.c: Don't include idpriv.h.
25263         (main): Don't drop privileges.
25264         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25265         Reported by Simon Josefsson.
25266
25267 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25268
25269         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25270         suggestions from karl@freefriends.org (Karl Berry).
25271
25272 2010-03-22  Eric Blake  <eblake@redhat.com>
25273
25274         gethostname: further tweaks
25275         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25276         are overriding gethostname.
25277         Suggested by Bruno Haible.
25278
25279 2010-03-21  Bruno Haible  <bruno@clisp.org>
25280
25281         Fix comments.
25282         * lib/forkpty.c (rpl_forkpty): Fix comment.
25283         * lib/openpty.c (rpl_openpty): Likewise.
25284         Reported by Eric Blake.
25285
25286 2010-03-22  Eric Blake  <eblake@redhat.com>
25287
25288         gethostname: fix build on mingw
25289         * lib/unistd.in.h (includes): Work around fact that mingw
25290         <winsock2.h> re-includes <unistd.h>, by avoiding any
25291         redeclarations if we are being included by <winsock2.h>.
25292         Reported by Matthias Bolte.
25293
25294 2010-03-21  Bruno Haible  <bruno@clisp.org>
25295
25296         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25297         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25298         modifications.
25299         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25300         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25301         provide the replacement.
25302         * modules/forkpty (Depends-on): Add openpty, login_tty.
25303         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25304         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25305         * doc/glibc-functions/forkpty.texi: More supported platforms.
25306         * config/srclist.txt: Add forkpty.c (commented).
25307
25308 2010-03-21  Bruno Haible  <bruno@clisp.org>
25309
25310         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25311         (Makefile.am): Verify that PTY_LIB is defined.
25312
25313         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25314
25315 2010-03-21  Bruno Haible  <bruno@clisp.org>
25316
25317         Tests for module 'login_tty'.
25318         * modules/login_tty-tests: New file.
25319         * tests/test-login_tty.c: New file.
25320
25321         New module 'login_tty'.
25322         * lib/login_tty.c: New file.
25323         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25324         * modules/login_tty: New file.
25325         * doc/glibc-functions/login_tty.texi: Mention the new module.
25326
25327 2010-03-21  Bruno Haible  <bruno@clisp.org>
25328
25329         login_tty: Documentation.
25330         * doc/glibc-functions/login_tty.texi: New file.
25331         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25332
25333 2010-03-21  Bruno Haible  <bruno@clisp.org>
25334
25335         pty: Consistent macro naming.
25336         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25337         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25338         * modules/pty (configure.ac): Update.
25339
25340 2010-03-21  Bruno Haible  <bruno@clisp.org>
25341
25342         Tests for openpty: Make stricter.
25343         * tests/test-openpty.c (main): Add test of canonical processing and
25344         erase.
25345         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25346
25347         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25348         * lib/openpty.c (openpty): New replacement function.
25349         * lib/pty.in.h: Include <termios.h>.
25350         (openpty): Update declaration. Add comments.
25351         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25352         is not declared, arrange to provide the replacement. Check for _getpty
25353         and posix_openpt.
25354         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25355         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25356         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25357         * modules/pty-tests (test_pty_c___LDADD): New variable.
25358         * doc/glibc-functions/openpty.texi: More supported platforms.
25359
25360 2010-03-21  Bruno Haible  <bruno@clisp.org>
25361
25362         setenv: Tweaks.
25363         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25364         the test program.
25365         * doc/posix-functions/setenv.texi: Update platforms list.
25366
25367 2010-03-21  Bruno Haible  <bruno@clisp.org>
25368
25369         New module 'unlockpt'.
25370         * lib/unlockpt.c: New file, from glibc with modifications.
25371         * m4/unlockpt.m4: New file.
25372         * modules/unlockpt: New file.
25373         * lib/stdlib.in.h (unlockpt): New declaration.
25374         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25375         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25376         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25377         HAVE_UNLOCKPT.
25378         * doc/posix-functions/unlockpt.texi: Mention the new module.
25379         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25380         * config/srclist.txt: Add unlockpt.c (commented).
25381
25382 2010-03-21  Jim Meyering  <meyering@redhat.com>
25383
25384         maint.mk: prohibit inclusion of "intprops.h" without use
25385         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25386
25387 2010-03-21  Bruno Haible  <bruno@clisp.org>
25388
25389         New module 'grantpt'.
25390         * lib/grantpt.c: New file, from glibc with modifications.
25391         * m4/grantpt.m4: New file.
25392         * modules/grantpt: New file.
25393         * lib/stdlib.in.h (grantpt): New declaration.
25394         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25395         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25396         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25397         HAVE_GRANTPT.
25398         * doc/posix-functions/grantpt.texi: Mention the new module.
25399         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25400         * config/srclist.txt: Add grantpt.c (commented).
25401
25402 2010-03-21  Bruno Haible  <bruno@clisp.org>
25403
25404         New module 'pt_chown'.
25405         * lib/pt_chown.c: New file, from glibc with modifications.
25406         * lib/pty-private.h: New file, from glibc with modifications.
25407         * modules/pt_chown: New file.
25408         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25409
25410 2010-03-21  Bruno Haible  <bruno@clisp.org>
25411
25412         Tests for module 'ptsname'.
25413         * modules/ptsname-tests: New file.
25414         * tests/test-ptsname.c: New file.
25415
25416         New module 'ptsname'.
25417         * lib/ptsname.c: New file, from glibc with modifications.
25418         * m4/ptsname.m4: New file.
25419         * modules/ptsname: New file.
25420         * lib/stdlib.in.h (ptsname): New declaration.
25421         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25422         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25423         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25424         HAVE_PTSNAME.
25425         * doc/posix-functions/ptsname.texi: Mention the new module.
25426         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25427         * config/srclist.txt: Add ptsname.c (commented).
25428
25429 2010-03-21  Bruno Haible  <bruno@clisp.org>
25430
25431         Tests for module 'ttyname_r'.
25432         * modules/ttyname_r-tests: New file.
25433         * tests/test-ttyname_r.c: New file.
25434
25435         New module 'ttyname_r'.
25436         * lib/ttyname_r.c: New file.
25437         * m4/ttyname_r.m4: New file.
25438         * modules/ttyname_r: New file.
25439         * lib/unistd.in.h (ttyname_r): New declaration.
25440         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25441         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25442         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25443         HAVE_TTYNAME_R.
25444         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25445         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25446
25447 2010-03-20  Bruno Haible  <bruno@clisp.org>
25448
25449         signal: Undefine macro definitions in C++ mode.
25450         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25451         sigfillset): Undefine macro definitions from the system header in C++
25452         mode.
25453         Reported by John W. Eaton <jwe@gnu.org>.
25454
25455 2010-03-20  Bruno Haible  <bruno@clisp.org>
25456
25457         Ensure no #include statements inside extern "C" { ... }.
25458         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25459         contain #include statements.
25460         * lib/time.in.h: Likewise.
25461
25462 2010-03-20  Bruno Haible  <bruno@clisp.org>
25463
25464         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25465         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25466         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25467         Reported by John W. Eaton <jwe@gnu.org>.
25468
25469 2010-03-20  Bruno Haible  <bruno@clisp.org>
25470
25471         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25472         Reported by Jim Meyering.
25473
25474 2010-03-20  Bruno Haible  <bruno@clisp.org>
25475
25476         pipe: Set errno upon failure.
25477         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25478         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25479         errno value in error message.
25480
25481 2010-03-20  Bruno Haible  <bruno@clisp.org>
25482             Jim Meyering  <meyering@redhat.com>
25483
25484         lchown: Avoid "unused variable" warning.
25485         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25486
25487 2010-03-20  Bruno Haible  <bruno@clisp.org>
25488
25489         Work around unlink() bug on MacOS X 10.5.6.
25490         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25491         attempting to unlink a parent directory.
25492         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25493         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25494         activate for the replacement function.
25495         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25496
25497 2010-03-20  Bruno Haible  <bruno@clisp.org>
25498
25499         Fix link errors on Solaris 8.
25500         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25501         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25502
25503 2010-03-19  Jim Meyering  <meyering@redhat.com>
25504
25505         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25506         The _LIBC implementation of build_range_exp correctly honors the
25507         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25508         However, the non-_LIBC implementation would ignore that syntax-bit
25509         flag and return REG_ERANGE unconditionally.
25510         This change makes it honor that flag.
25511         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25512         Make two pointer parameters "const".
25513         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25514         (parse_bracket_exp): Update caller.
25515
25516         regex.m4: correct the reversed range endpoint ([b-a]) test
25517         * m4/regex.m4: When requiring that [b-a] evoke failure,
25518         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25519         test pass once again for x86-based systems.
25520
25521 2010-03-19  Bruno Haible  <bruno@clisp.org>
25522
25523         scandir: Fix link error on Solaris 8.
25524         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25525         macros.
25526
25527 2010-03-19  Bruno Haible  <bruno@clisp.org>
25528
25529         getusershell: Fix documentation.
25530         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25531         module.
25532         * doc/glibc-functions/setusershell.texi: Likewise.
25533
25534         getusershell: Provide declaration, missing on Solaris 9.
25535         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25536         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25537         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25538         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25540         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25541         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25542         HAVE_GETUSERSHELL.
25543         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25544
25545 2010-03-19  Bruno Haible  <bruno@clisp.org>
25546
25547         wctype: Provide iswblank function.
25548         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25549         exists and is fine.
25550         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25551         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25552         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25553         * doc/posix-functions/iswblank.texi: Update.
25554
25555 2010-03-19  Bruno Haible  <bruno@clisp.org>
25556
25557         Tests of module 'pty' in C++ mode.
25558         * modules/pty-tests: New file.
25559         * tests/test-pty-c++.cc: New file.
25560         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25561
25562 2010-03-19  Eric Blake  <eblake@redhat.com>
25563
25564         logb: fix documentation
25565         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25566         1.5 declaration bug.
25567
25568         forkpty, openpty: prefer glibc's const-safe prototype
25569         * lib/forkpty.c (rpl_forkpty): New file.
25570         * lib/openpty.c (rpl_openpty): Likewise.
25571         * modules/forkpty (Files): Distribute it.
25572         * modules/openpty (Files): Likewise.
25573         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25574         check...
25575         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25576         replacement for for non-const BSD signature.
25577         * modules/pty (Makefile.am): Substitute witnesses.
25578         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25579         * tests/test-forkpty.c: Update signature check.
25580         * tests/test-openpty.c: Likewise.
25581         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25582         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25583
25584         forkpty, openpty: split functions into new modules
25585         * modules/pty (Makefile.am): Substitute new witnesses.
25586         (Libraries): Move library detection...
25587         * modules/forkpty: ...into new module.
25588         * modules/openpty: Another new module.
25589         * modules/pty-tests: Rename and split...
25590         * modules/forkpty-tests: ...to this...
25591         * modules/openpty-tests: ...and this.
25592         * tests/test-pty.c: Rename and split...
25593         * tests/test-forkpty.c: ...to this...
25594         * tests/test-openpty.c: ...and this.
25595         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25596         (gl_PTY): Split library searching...
25597         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25598         (gl_FORKPTY, gl_OPENPTY): New macros.
25599         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25600         * NEWS: Mention the split.
25601         * MODULES.html.sh (Misc): Document the modules.
25602         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25603         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25604
25605         pty: improve replacement header
25606         * lib/pty.in.h: New file.
25607         * modules/pty (Files): Ship it.
25608         (Makefile.am): Always build replacement.
25609         * m4/pty.m4: Rename...
25610         * m4/pty_h.m4: ...to this.
25611         (gl_PTY): Modernize setting of witness macros; update check of
25612         forkpty to take proper advantage of cache.
25613         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25614
25615         getopt: avoid compiler warning
25616         * lib/getopt.c (attribute_hidden): Remove unused macro.
25617
25618 2010-03-18  Bruno Haible  <bruno@clisp.org>
25619
25620         Fix link errors on Solaris 8.
25621         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25622         * modules/search-tests (test_search_c___LDADD): Likewise.
25623         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25624         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25625         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25626         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25627         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25628         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25629         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25630
25631 2010-03-18  Bruno Haible  <bruno@clisp.org>
25632
25633         Fix bug introduced on 2010-03-14.
25634         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25635         (gl_SPAWN_H): Require it.
25636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25637         Reported by Simon Josefsson.
25638
25639 2010-03-18  Bruno Haible  <bruno@clisp.org>
25640
25641         Fix typo introduced on 2009-12-31.
25642         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25643         posix_spawn_file_actions_adddup2.
25644
25645 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25646         and Eric Blake  <eblake@redhat.com>
25647
25648         test-vc-list-files-git: make more robust
25649         * tests/test-vc-list-files-git.sh: Unset problematic environment
25650         variables.  Chain commands together.
25651
25652 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25653
25654         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25655         `AC_CHECK_DECL' invocation.
25656
25657 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25658
25659         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25660         appears before executable statements. Suggested by Petr Sumbera
25661         <Petr.Sumbera@Sun.COM>.
25662
25663 2010-03-14  Bruno Haible  <bruno@clisp.org>
25664
25665         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25666         portability problems. Instead use a simpler test.
25667         (main): Check that invalid arguments are rejected only on Linux.
25668
25669 2010-03-14  Bruno Haible  <bruno@clisp.org>
25670
25671         Fix bug introduced on 2009-12-31.
25672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25673         gl_PREREQ_SYS_H_WINSOCK2 always.
25674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25675         SYS_SOCKET_H variable.
25676         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25677         Update comments.
25678         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25679         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25682         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25683
25684 2010-03-14  Bruno Haible  <bruno@clisp.org>
25685
25686         Fix values returned by sinl, cosl.
25687         * lib/trigl.h: Add specification comments.
25688         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25689         that combines the values from the precomputed table with the values of
25690         the Chebyshev polynomials.
25691
25692 2010-03-14  Bruno Haible  <bruno@clisp.org>
25693
25694         Fix compilation error when modules 'posix_spawn[p]' are not used.
25695         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25697
25698 2010-03-14  Bruno Haible  <bruno@clisp.org>
25699
25700         Fix compilation error on mingw when module 'time_r' is not used.
25701         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25702         is 1.
25703         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25704         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25705         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25707
25708 2010-03-14  Bruno Haible  <bruno@clisp.org>
25709
25710         Fix compilation error with Sun C.
25711         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25712         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25713         instead of GCC specific ULONG_LONG_MAX.
25714         * lib/xstrtoll.c: Likewise.
25715         * lib/xstrtoull.c: Likewise.
25716
25717 2010-03-13  Bruno Haible  <bruno@clisp.org>
25718
25719         Allow the user to disable C++ code and tests.
25720         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25721         (gl_PROG_ANSI_CXX): Require it.
25722
25723 2010-03-13  Bruno Haible  <bruno@clisp.org>
25724
25725         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25726         cases.
25727
25728 2010-03-13  Bruno Haible  <bruno@clisp.org>
25729
25730         Test that gnulib does not break the standard C++ headers.
25731         * tests/test-locale-c++2.cc: New file.
25732         * modules/locale-tests (Files): Add it.
25733         (Makefile.am): Compile it for test-locale-c++.
25734         * tests/test-math-c++2.cc: New file.
25735         * modules/math-tests (Files): Add it.
25736         (Makefile.am): Compile it for test-math-c++.
25737         * tests/test-signal-c++2.cc: New file.
25738         * modules/signal-tests (Files): Add it.
25739         (Makefile.am): Compile it for test-signal-c++.
25740         * tests/test-stdio-c++2.cc: New file.
25741         * modules/stdio-tests (Files): Add it.
25742         (Makefile.am): Compile it for test-stdio-c++.
25743         * tests/test-stdlib-c++2.cc: New file.
25744         * modules/stdlib-tests (Files): Add it.
25745         (Makefile.am): Compile it for test-stdlib-c++.
25746         * tests/test-string-c++2.cc: New file.
25747         * modules/string-tests (Files): Add it.
25748         (Makefile.am): Compile it for test-string-c++.
25749         * tests/test-time-c++2.cc: New file.
25750         * modules/time-tests (Files): Add it.
25751         (Makefile.am): Compile it for test-time-c++.
25752         Reported by John W. Eaton <jwe@gnu.org>.
25753
25754 2010-03-13  Bruno Haible  <bruno@clisp.org>
25755
25756         * gnulib-tool (func_usage): Clarify which options are available for
25757         --create-testdir and --create-megatestdir.
25758
25759 2010-03-13  Bruno Haible  <bruno@clisp.org>
25760
25761         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25762         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25763         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25764         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25765         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25766         when appropriate.
25767         Reported by Jim Meyering.
25768
25769 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25770
25771         * gnulib-tool (func_import): Explain origin of code.
25772
25773 2010-03-12  Bruno Haible  <bruno@clisp.org>
25774
25775         Fix problem with automake's definition of CXXLINK.
25776         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25777         Reported by Simon Josefsson and Ludovic Courtès.
25778
25779 2010-03-12  Bruno Haible  <bruno@clisp.org>
25780
25781         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25782         stable releases.
25783
25784 2010-03-11  Bruno Haible  <bruno@clisp.org>
25785
25786         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25787         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25788         whether the system provides one variant or multiple variants of the
25789         function.
25790         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25791         C++ compilers.
25792         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25793         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25794         Reported by Jim Meyering.
25795
25796 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25797
25798         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25799
25800 2010-03-08  Bruno Haible  <bruno@clisp.org>
25801
25802         gnulib-tool: Add support for --libtool in --create-testdir.
25803         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25804         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25805
25806 2010-03-08  Eric Blake  <eblake@redhat.com>
25807
25808         gnulib-tool.texi: mention possibility of git submodule
25809         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25810         submodules.
25811         * doc/.gitignore: Ignore another generated file.
25812
25813 2010-03-08  Karl Berry  <karl@gnu.org>
25814
25815         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25816         of committing gnulib files while skipping others.
25817
25818 2010-03-07  Bruno Haible  <bruno@clisp.org>
25819
25820         Tests of module 'wctype' in C++ mode.
25821         * tests/test-wctype-c++.cc: New file.
25822         * modules/wctype-tests (Files): Add it and tests/signature.h.
25823         (Depends-on): Add ansi-c++-opt.
25824         (Makefile.am): Arrange to compile and run test-wctype-c++.
25825
25826         Tests of module 'wchar' in C++ mode.
25827         * tests/test-wchar-c++.cc: New file.
25828         * modules/wchar-tests (Files): Add it and tests/signature.h.
25829         (Depends-on): Add ansi-c++-opt.
25830         (Makefile.am): Arrange to compile and run test-wchar-c++.
25831         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25832         gl_MODULE_INDICATOR.
25833
25834         Tests of module 'unistd' in C++ mode.
25835         * tests/test-unistd-c++.cc: New file.
25836         * modules/unistd-tests (Files): Add it and tests/signature.h.
25837         (Depends-on): Add ansi-c++-opt.
25838         (Makefile.am): Arrange to compile and run test-unistd-c++.
25839         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25840         gl_MODULE_INDICATOR.
25841
25842         Tests of module 'time' in C++ mode.
25843         * tests/test-time-c++.cc: New file.
25844         * modules/time-tests (Files): Add it and tests/signature.h.
25845         (Depends-on): Add ansi-c++-opt.
25846         (Makefile.am): Arrange to compile and run test-time-c++.
25847         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25848
25849         Tests of module 'sys_time' in C++ mode.
25850         * tests/test-sys_time-c++.cc: New file.
25851         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25852         (Depends-on): Add ansi-c++-opt.
25853         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25854         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25855         gl_MODULE_INDICATOR.
25856
25857         Tests of module 'sys_stat' in C++ mode.
25858         * tests/test-sys_stat-c++.cc: New file.
25859         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25860         (Depends-on): Add ansi-c++-opt.
25861         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25862         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25863         gl_MODULE_INDICATOR.
25864
25865         Tests of module 'sys_socket' in C++ mode.
25866         * tests/test-sys_socket-c++.cc: New file.
25867         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25868         (Depends-on): Add ansi-c++-opt.
25869         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25870         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25871         gl_MODULE_INDICATOR.
25872
25873         Tests of module 'sys_select' in C++ mode.
25874         * tests/test-sys_select-c++.cc: New file.
25875         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25876         (Depends-on): Add ansi-c++-opt.
25877         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25878         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25879         gl_MODULE_INDICATOR.
25880
25881         Tests of module 'sys_ioctl' in C++ mode.
25882         * tests/test-sys_ioctl-c++.cc: New file.
25883         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25884         (Depends-on): Add ansi-c++-opt.
25885         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25886         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25887         gl_MODULE_INDICATOR.
25888
25889         Tests of module 'string' in C++ mode.
25890         * tests/test-string-c++.cc: New file.
25891         * modules/string-tests (Files): Add it and tests/signature.h.
25892         (Depends-on): Add ansi-c++-opt.
25893         (Makefile.am): Arrange to compile and run test-string-c++.
25894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25895         gl_MODULE_INDICATOR.
25896
25897         Tests of module 'stdlib' in C++ mode.
25898         * tests/test-stdlib-c++.cc: New file.
25899         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25900         (Depends-on): Add ansi-c++-opt.
25901         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25902         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25903         gl_MODULE_INDICATOR.
25904
25905         Tests of module 'stdio' in C++ mode.
25906         * tests/test-stdio-c++.cc: New file.
25907         * modules/stdio-tests (Files): Add it and tests/signature.h.
25908         (Depends-on): Add ansi-c++-opt.
25909         (Makefile.am): Arrange to compile and run test-stdio-c++.
25910         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25911         gl_MODULE_INDICATOR.
25912
25913         Tests of module 'spawn' in C++ mode.
25914         * tests/test-spawn-c++.cc: New file.
25915         * modules/spawn-tests (Files): Add it and tests/signature.h.
25916         (Depends-on): Add ansi-c++-opt.
25917         (Makefile.am): Arrange to compile and run test-spawn-c++.
25918         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25919         gl_MODULE_INDICATOR.
25920
25921         Tests of module 'signal' in C++ mode.
25922         * tests/test-signal-c++.cc: New file.
25923         * modules/signal-tests (Files): Add it and tests/signature.h.
25924         (Depends-on): Add ansi-c++-opt.
25925         (Makefile.am): Arrange to compile and run test-signal-c++.
25926         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25927         gl_MODULE_INDICATOR.
25928
25929         Tests of module 'search' in C++ mode.
25930         * tests/test-search-c++.cc: New file.
25931         * modules/search-tests (Files): Add it and tests/signature.h.
25932         (Depends-on): Add ansi-c++-opt.
25933         (Makefile.am): Arrange to compile and run test-search-c++.
25934         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25935         gl_MODULE_INDICATOR.
25936
25937         Tests of module 'math' in C++ mode.
25938         * tests/test-math-c++.cc: New file.
25939         * modules/math-tests (Files): Add it and tests/signature.h.
25940         (Depends-on): Add ansi-c++-opt.
25941         (Makefile.am): Arrange to compile and run test-math-c++.
25942         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25943
25944         Tests of module 'locale' in C++ mode.
25945         * tests/test-locale-c++.cc: New file.
25946         * modules/locale-tests (Files): Add it and tests/signature.h.
25947         (Depends-on): Add ansi-c++-opt.
25948         (Makefile.am): Arrange to compile and run test-locale-c++.
25949         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25950         gl_MODULE_INDICATOR.
25951
25952         Tests of module 'langinfo' in C++ mode.
25953         * tests/test-langinfo-c++.cc: New file.
25954         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25955         (Depends-on): Add ansi-c++-opt.
25956         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25957         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25958         gl_MODULE_INDICATOR.
25959
25960         Tests of module 'iconv-h' in C++ mode.
25961         * tests/test-iconv-h-c++.cc: New file.
25962         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25963         (Depends-on): Add ansi-c++-opt.
25964         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25965
25966         Tests of module 'glob' in C++ mode.
25967         * tests/test-glob-c++.cc: New file.
25968         * modules/glob-tests (Files): Add it.
25969         (Depends-on): Add ansi-c++-opt.
25970         (Makefile.am): Arrange to compile and run test-glob-c++.
25971
25972         Tests of module 'fcntl-h' in C++ mode.
25973         * tests/test-fcntl-h-c++.cc: New file.
25974         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25975         (Depends-on): Add ansi-c++-opt.
25976         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25977         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25978         gl_MODULE_INDICATOR.
25979
25980         Tests of module 'dirent' in C++ mode.
25981         * tests/test-dirent-c++.cc: New file.
25982         * modules/dirent-tests (Files): Add it and tests/signature.h.
25983         (Depends-on): Add ansi-c++-opt.
25984         (Makefile.am): Arrange to compile and run test-dirent-c++.
25985         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25986         gl_MODULE_INDICATOR.
25987
25988         New module 'ansi-c++-opt'.
25989         * modules/ansi-c++-opt: New file.
25990         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25991
25992         Document C++ namespace mode.
25993         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25994
25995         wctype: Avoid #define replacements in C++ mode.
25996         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25997         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25998         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25999         In C++, define a namespaced alias symbol.
26000         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26001         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26002         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26003         rule.
26004
26005         wchar: Avoid #define replacements in C++ mode.
26006         * lib/wchar.in.h: Include c++defs.h.
26007         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26008         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26009         symbol.
26010         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26011         * modules/wchar (Depends-on): Add c++defs.
26012         (Makefile.am): Update wchar.h rule.
26013
26014         unistd: Avoid #define replacements in C++ mode.
26015         * lib/unistd.in.h: Include c++defs.h.
26016         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26017         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26018         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26019         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26020         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26021         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26022         symbol.
26023         (environ): Update.
26024         * modules/unistd (Depends-on): Add c++defs.
26025         (Makefile.am): Update unistd.h rule.
26026
26027         time: Avoid #define replacements in C++ mode.
26028         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26029         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26030         define a namespaced alias symbol.
26031         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26032         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26033         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26034         * modules/time (Depends-on): Add c++defs, warn-on-use.
26035         (Makefile.am): Update time.h rule.
26036         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26037         * modules/nanosleep (configure.ac): Likewise.
26038         * modules/strptime (configure.ac): Likewise.
26039         * modules/timegm (configure.ac): Likewise.
26040
26041         sys_time: Avoid #define replacements in C++ mode.
26042         * lib/sys_time.in.h: Include c++defs.h.
26043         (gettimeofday): In C++, define a namespaced alias symbol.
26044         * modules/sys_time (Depends-on): Add c++defs.
26045         (Makefile.am): Update sys/time.h rule.
26046
26047         sys_stat: Avoid #define replacements in C++ mode.
26048         * lib/sys_stat.in.h: Include c++defs.h.
26049         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26050         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26051         namespaced alias symbol.
26052         In C++, define a namespaced alias symbol.
26053         * modules/sys_stat (Depends-on): Add c++defs.
26054         (Makefile.am): Update sys/stat.h rule.
26055
26056         sys_socket: Avoid #define replacements in C++ mode.
26057         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26058         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26059         definitions also when the system has a <sys/socket.h>.
26060         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26061         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26062         In C++, define a namespaced alias symbol.
26063         * modules/sys_socket (Depends-on): Add c++defs.
26064         (Makefile.am): Update sys/socket.h rule.
26065
26066         sys_select: Avoid #define replacements in C++ mode.
26067         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26068         definitions also when the system has a <sys/select.h>.
26069         (select): In C++, define a namespaced alias symbol.
26070         * modules/sys_select (Depends-on): Add c++defs.
26071         (Makefile.am): Update sys/select.h rule.
26072
26073         sys_ioctl: Avoid #define replacements in C++ mode.
26074         * lib/sys_ioctl.in.h: Include c++defs.h.
26075         (ioctl): In C++, define a namespaced alias symbol.
26076         * modules/sys_ioctl (Depends-on): Add c++defs.
26077         (Makefile.am): Update sys/ioctl.h rule.
26078
26079         string: Avoid #define replacements in C++ mode.
26080         * lib/string.in.h: Include c++defs.h.
26081         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26082         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26083         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26084         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26085         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26086         * modules/string (Depends-on): Add c++defs.
26087         (Makefile.am): Update string.h rule.
26088
26089         stdlib: Avoid #define replacements in C++ mode.
26090         * lib/stdlib.in.h: Include c++defs.h.
26091         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26092         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26093         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26094         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26095         symbol.
26096         * modules/stdlib (Depends-on): Add c++defs.
26097         (Makefile.am): Update stdlib.h rule.
26098
26099         stdio: Avoid #define replacements in C++ mode.
26100         * lib/stdio.in.h: Include c++defs.h.
26101         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26102         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26103         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26104         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26105         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26106         namespaced alias symbol.
26107         * modules/stdio (Depends-on): Add c++defs.
26108         (Makefile.am): Update stdio.h rule.
26109
26110         spawn: Avoid #define replacements in C++ mode.
26111         * lib/spawn.in.h: Include c++defs.h.
26112         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26113         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26114         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26115         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26116         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26117         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26118         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26119         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26120         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26121         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26122         In C++, define a namespaced alias symbol.
26123         * modules/spawn (Depends-on): Add c++defs.
26124         (Makefile.am): Update spawn.h rule.
26125
26126         signal: Avoid #define replacements in C++ mode.
26127         * lib/signal.in.h: Include c++defs.h.
26128         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26129         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26130         namespaced alias symbol.
26131         * modules/signal (Depends-on): Add c++defs.
26132         (Makefile.am): Update signal.h rule.
26133
26134         search: Avoid #define replacements in C++ mode.
26135         * lib/search.in.h: Include c++defs.h.
26136         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26137         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26138         symbol.
26139         * modules/search (Depends-on): Add c++defs.
26140         (Makefile.am): Update search.h rule.
26141
26142         math: Avoid #define replacements in C++ mode.
26143         * lib/math.in.h: Include c++defs.h.
26144         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26145         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26146         trunc, truncl): In C++, define a namespaced alias symbol.
26147         * modules/math (Depends-on): Add c++defs.
26148         (Makefile.am): Update math.h rule.
26149
26150         locale: Avoid #define replacements in C++ mode.
26151         * lib/locale.in.h: Include c++defs.h.
26152         (duplocale): In C++, define a namespaced alias symbol.
26153         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26155         * modules/locale (Depends-on): Add c++defs.
26156         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26157
26158         langinfo: Avoid #define replacements in C++ mode.
26159         * lib/langinfo.in.h: Include c++defs.h.
26160         (nl_langinfo): In C++, define a namespaced alias symbol.
26161         * modules/langinfo (Depends-on): Add c++defs.
26162         (Makefile.am): Update langinfo.h rule.
26163
26164         iconv-h: Avoid #define replacements in C++ mode.
26165         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26166         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26167         symbol.
26168         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26169         whenever iconv is present.
26170         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26171         (Makefile.am): Update iconv.h rule.
26172
26173         glob: Avoid #define replacements in C++ mode.
26174         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26175         (_gl_glob_errfunc_fn): New type.
26176         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26177         symbol.
26178         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26179         (Makefile.am): Update glob.h rule.
26180
26181         fcntl-h: Avoid #define replacements in C++ mode.
26182         * lib/fcntl.in.h: Include c++defs.h.
26183         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26184         * modules/fcntl-h (Depends-on): Add c++defs.
26185         (Makefile.am): Update fcntl.h rule.
26186
26187         dirent: Avoid #define replacements in C++ mode.
26188         * lib/dirent.in.h: Include c++defs.h.
26189         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26190         namespaced alias symbol.
26191         (dirfd): Update declaration.
26192         * modules/dirent (Depends-on): Add c++defs.
26193         (Makefile.am): Update dirent.h rule.
26194
26195         ctype: Make it usable in C++ code.
26196         * lib/ctype.in.h: Include c++defs.h.
26197         (isblank): Declare as extern "C".
26198         * modules/ctype (Depends-on): Add c++defs.
26199         (Makefile.am): Update ctype.h rule.
26200
26201         New module 'c++defs'.
26202         * modules/c++defs: New file.
26203         * build-aux/c++defs.h: New file.
26204         Reported by John W. Eaton <jwe@gnu.org>.
26205
26206 2010-03-07  Bruno Haible  <bruno@clisp.org>
26207
26208         logb: Provide missing declaration for Cygwin.
26209         * lib/math.in.h (logb): New declaration.
26210         * m4/logb.m4: New file.
26211         * modules/logb (Files): Add m4/logb.m4.
26212         (Depends-on): Add math.
26213         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26214         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26216         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26217         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26218
26219 2010-03-07  Bruno Haible  <bruno@clisp.org>
26220
26221         Fix test-cond link error.
26222         * tests/test-cond.c: Include <stdio.h>.
26223
26224 2010-03-07  Bruno Haible  <bruno@clisp.org>
26225
26226         Fix test-dirent-safer link error.
26227         * modules/dirent-safer-tests (Makefile.am): Define
26228         test_dirent_safer_LDADD.
26229
26230 2010-03-07  Bruno Haible  <bruno@clisp.org>
26231
26232         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26233         among default module list.
26234
26235 2010-03-07  Bruno Haible  <bruno@clisp.org>
26236
26237         Fix link error on platforms with GNU libiconv.
26238         * modules/unistr/u8-strcoll-tests (Makefile): Define
26239         test_u8_strcoll_LDADD.
26240         * modules/unistr/u16-strcoll-tests (Makefile): Define
26241         test_u16_strcoll_LDADD.
26242         * modules/unistr/u32-strcoll-tests (Makefile): Define
26243         test_u32_strcoll_LDADD.
26244
26245 2010-03-07  Bruno Haible  <bruno@clisp.org>
26246
26247         Use POSIX declarations for socket functions.
26248         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26249         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26250         rpl_sendto): Change declaration to match POSIX.
26251         * lib/connect.c (rpl_connect): Likewise.
26252         * lib/accept.c (rpl_accept): Likewise.
26253         * lib/bind.c (rpl_bind): Likewise.
26254         * lib/getpeername.c (rpl_getpeername): Likewise.
26255         * lib/getsockname.c (rpl_getsockname): Likewise.
26256         * lib/recv.c (rpl_recv): Likewise.
26257         * lib/send.c (rpl_send): Likewise.
26258         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26259         * lib/sendto.c (rpl_sendto): Likewise.
26260
26261 2010-03-06  Bruno Haible  <bruno@clisp.org>
26262
26263         Clarify access, euidaccess, faccessat.
26264         * doc/posix-functions/faccessat.texi: Mention security problem under
26265         "Other problems", not "Portability problems".
26266         * doc/posix-functions/access.texi: Likewise. Mention a related security
26267         problem.
26268         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26269         * lib/euidaccess.c: Add comments about platforms.
26270         * lib/unistd.in.h (access, euidaccess): Add warnings.
26271
26272 2010-03-07  Bruno Haible  <bruno@clisp.org>
26273
26274         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26275         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26276         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26277         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26278         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26279         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26280         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26281         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26282         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26284         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26285         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26286         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26287         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26288         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26289         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26290         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26291         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26292         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26293         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26294         Likewise.
26295         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26296         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26297         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26298         Likewise.
26299         * tests/test-spawn.c (main): Make it work when
26300         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26301
26302 2010-03-07  Bruno Haible  <bruno@clisp.org>
26303
26304         Fix incorrect Makefile.am generation in German locale.
26305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26306         Execute sed command with character range in C locale.
26307
26308 2010-03-06  Bruno Haible  <bruno@clisp.org>
26309
26310         Tests for module 'iconv-h'.
26311         * modules/iconv-h-tests: New file.
26312         * tests/test-iconv-h.c: New file.
26313
26314         New module 'iconv-h'.
26315         * modules/iconv-h: New file.
26316         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26317         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26318         (configure.ac): Remove gl_ICONV_H.
26319         (Makefile.am): Remove rule for iconv.h.
26320
26321 2010-03-06  Bruno Haible  <bruno@clisp.org>
26322
26323         More consistent naming of *.m4 files.
26324         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26325         * modules/wctype (Files): Update.
26326
26327         More consistent naming of *.m4 files.
26328         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26329         * modules/wchar (Files): Update.
26330
26331 2010-03-06  Jim Meyering  <meyering@redhat.com>
26332
26333         euidaccess: relax license to LGPLv2+
26334         * modules/euidaccess (License): Relax to LGPLv2+.
26335
26336 2010-03-06  Bruno Haible  <bruno@clisp.org>
26337
26338         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26339         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26340         (Makefile.am): Augment lib_SOURCES instead.
26341
26342 2010-03-04  Jim Meyering  <meyering@redhat.com>
26343
26344         utime: remove obsolete module
26345         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26346         unnecessary for years, and has been marked as obsolete for 10 months.
26347         * modules/utime: Remove file.
26348         * lib/utime.c: Remove file.
26349         * m4/utime.m4: Remove file.
26350         * m4/utimes-null.m4: Remove file.
26351         * doc/posix-functions/utime.texi (utime): Remove reference to
26352         the module.  Move the sole "fixed by gnulib" item into the
26353         "problems not fixed by Gnulib" list.
26354         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26355
26356 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26357
26358         * modules/exit (License): Relax license to LGPLv2+.
26359         (Status): Mark as obsolete.
26360         * NEWS: Mention deprecated 'exit' module.
26361         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26362         of now obsolete 'exit'.
26363
26364 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26365
26366         fts-lgpl: remove unused module
26367         * modules/fts-lgpl: Remove.
26368         * MODULES.html.sh (func_all_modules): Adjust.
26369         * check-module (find_included_lib_files): Adjust.
26370         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26371
26372 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26373
26374         copy-acl: enhance Solaris ACL error handling
26375         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26376         * lib/set-mode-acl.c (qset_acl): Likewise.
26377
26378 2010-03-02  Bruno Haible  <bruno@clisp.org>
26379
26380         spawn: Don't override the system defined values on FreeBSD 8.
26381         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26382         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26383         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26384         if HAVE_POSIX_SPAWN is 1.
26385         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26386
26387 2010-03-01  Bruno Haible  <bruno@clisp.org>
26388
26389         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26390         regarding Automake.
26391
26392 2010-02-25  Bruno Haible  <bruno@clisp.org>
26393
26394         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26395         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26396         setting, not afterwards.
26397         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26398
26399 2010-02-24  Eric Blake  <eblake@redhat.com>
26400
26401         bootstrap, git-version-gen: use timestamp
26402         * build-aux/git-version-gen (scriptversion): Force UTC.
26403         * build-aux/bootstrap (scriptversion): New variable.
26404
26405         bootstrap: allow older git
26406         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26407         older than 1.6.4.  Requested by the libvirt project.
26408
26409 2010-02-23  Eric Blake  <eblake@redhat.com>
26410
26411         warn-on-use: work with old autoconf
26412         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26413         AS_VAR semantics of autoconf 2.60.
26414         Reported by Bruno Haible.
26415
26416         bootstrap: improve some comments
26417         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26418         clarification comments.
26419
26420         gettimeofday: provide correct function
26421         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26422         when replacement is declared, otherwise provide gettimeofday.
26423         Reported by Michael Goffioul.
26424
26425 2010-02-23  Jim Meyering  <meyering@redhat.com>
26426
26427         lib-ignore: relax license to "unlimited", not LGPLv2+
26428         * modules/lib-ignore (License): Relax to "unlimited".
26429
26430 2010-02-23  Jim Meyering  <meyering@redhat.com>
26431
26432         lib-ignore: relax license to LGPLv2+
26433         * modules/lib-ignore (License): Relax to LGPLv2+.
26434
26435 2010-02-22  Eric Blake  <eblake@redhat.com>
26436
26437         lseek: avoid bash 3.2 broken pipe bug
26438         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26439         warning from bash 3.2.
26440         Reported by Ben Pfaff, with analysis from Bruno Haible.
26441
26442         bootstrap: support non-FSF copyright holder
26443         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26444         bootstrap.conf override of COPYRIGHT_HOLDER.
26445         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26446
26447         bootstrap: interoperate with gettext 0.14.1
26448         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26449
26450         bootstrap: allow for alternate submodule location
26451         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26452         hardcoding submodule location.
26453         (gnulib_mk): Allow direct use of Makefile.am.
26454
26455         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26456         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26457         rather than reconfiguring where the submodule points.
26458
26459         gettimeofday: restore support for platforms that lack function
26460         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26461         replacement if function is missing.
26462         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26463         * modules/sys_time (Makefile.am): Substitute it.
26464         * lib/sys_time.in.h (gettimeofday): Check it.
26465         Reported by Michael Goffioul.
26466
26467 2010-02-21  Bruno Haible  <bruno@clisp.org>
26468
26469         * lib/stdio.in.h (obstack_printf): Fix typo.
26470
26471 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26472
26473         vc-list-files: use bzr ls's -R option
26474         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26475         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26476
26477 2010-02-21  Jim Meyering  <meyering@redhat.com>
26478
26479         init.sh: fix EXEEXT shims to work also for names like test-prog
26480         * tests/init.sh: Re-exec a better shell, when needed.
26481         If the current shell lacks support for posix $(...), an init.sh-using
26482         test will now try to find a shell that supports that.  If EXEEXT is
26483         nonempty, we also require support for hyphen-in-alias-name and shell
26484         substitutions like ${var#glob}.  Failure to find such a shell results
26485         in a skipped test.
26486
26487 2010-02-21  Bruno Haible  <bruno@clisp.org>
26488
26489         Really work around around "broken pipe" error message from bash 3.2.
26490         * gnulib-tool (func_reset_sigpipe): Remove function.
26491         (echo): In bash 3.2, define to a function that uses printf.
26492         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26493
26494 2010-02-20  Bruno Haible  <bruno@clisp.org>
26495
26496         Restore support for automake 1.9.6 with autoconf 2.61.
26497         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26498         Reported by James Youngman <jay@gnu.org>.
26499
26500 2010-02-20  Bruno Haible  <bruno@clisp.org>
26501
26502         Improve *printf warning condition.
26503         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26504         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26505         and the function is overridden due to SIGPIPE emulation.
26506
26507 2010-02-20  Bruno Haible  <bruno@clisp.org>
26508
26509         * lib/stdio.in.h: Tweak comments.
26510
26511 2010-02-19  Bruno Haible  <bruno@clisp.org>
26512
26513         Make it easier to find modules. New gnulib-tool option '--find'.
26514         * gnulib-tool: New option --find.
26515         (func_usage): Document it.
26516         (func_sanitize_modulelist): New function, extracted from
26517         func_all_modules.
26518         (func_all_modules): Invoke it.
26519         * doc/gnulib-tool.texi (Which modules?): New node.
26520
26521 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26522
26523         * lib/sys_select.in.h: Provide select replacement even if
26524         sys/select.h exists on a system, for Interix.
26525
26526 2010-02-18  Jim Meyering  <meyering@redhat.com>
26527
26528         init.sh: don't use $(...) just yet
26529         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26530         to accommodate e.g., Solaris' /bin/sh.
26531
26532 2010-02-17  Bruno Haible  <bruno@clisp.org>
26533
26534         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26535         Reported by Ludovic Courtès <ludo@gnu.org>.
26536
26537 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26538
26539         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26540         linking with -lintl.
26541
26542 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26543
26544         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26545         if not provided by the system's netdb.h.  Reported by
26546         ludo@gnu.org (Ludovic Courtès).
26547
26548 2010-02-15  Jim Meyering  <meyering@redhat.com>
26549
26550         init.sh: improve portability and efficiency
26551         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26552         "dummy" in a for loop.
26553         Use '!', not '^' to select the complement of a character set used
26554         in a "case" statement.
26555         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26556         Suggestions from Eric Blake.
26557
26558         init.sh: automatically accommodate programs with the .exe suffix
26559         Automatically arrange for an invocation of "prog" to execute the
26560         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26561         may use the simpler "prog", yet still work when built on a system
26562         that requires specifying the added suffix.
26563         Do this by constructing a function named "prog" that invokes
26564         "prog.exe" for each .exe file in selected directories.
26565         * tests/init.sh (find_exe_basenames_): New function.
26566         (create_exe_shim_functions_): New function.
26567         (path_prepend_): Use it.
26568
26569         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26570         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26571         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26572
26573 2010-02-14  Jim Meyering  <meyering@redhat.com>
26574
26575         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26576         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26577         (sc_prohibit_hash_pjw_without_use): New rule.
26578
26579         maint.mk: allow the default upload destination dir to be overridden
26580         * top/maint.mk (upload_dest_dir_): Define with a default that
26581         preserves the status quo.
26582         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26583         Reported by Peter Simons.
26584
26585         maint.mk: prohibit inclusion of "hash.h" without_use
26586         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26587
26588 2010-02-10  Jim Meyering  <meyering@redhat.com>
26589
26590         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26591         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26592
26593 2010-02-09  Eric Blake  <ebb9@byu.net>
26594         and Bruno Haible  <bruno@clisp.org>
26595
26596         obstack-printf-posix: ensure declaration
26597         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26598         extracted from gl_FUNC_OBSTACK_PRINTF.
26599         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26600         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26601         Likewise.
26602         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26603         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26604         0.
26605
26606 2010-02-08  Bruno Haible  <bruno@clisp.org>
26607
26608         gnulib-tool: Fix typo in 2010-02-07 commit.
26609         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26610         Reported by Eric Blake.
26611
26612 2010-02-07  Bruno Haible  <bruno@clisp.org>
26613
26614         gnulib-tool: Fix up caching patches.
26615         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26616         option --no-cache. Use associative arrays when supported by the shell.
26617         (sed_comments): New variable.
26618         (modcache): Renamed from do_cache.
26619         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26620         abbreviate unnecessarily.
26621         (have_associative): New variable.
26622         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26623         way also for ksh and zsh.
26624         (func_init_sed_convert_to_cache_statements): New function, extracted
26625         from func_cache_lookup_module. Add support for associative arrays.
26626         Don't set the c_MODULE_cached variable here. Ignore all lines before
26627         the first field header. Remove only the final newline, not all trailing
26628         newlines. Support empty fields correctly. Limit the use of 'eval' to
26629         assignments.
26630         (func_get_description, func_get_status, func_get_notice,
26631         func_get_applicability, func_get_filelist, func_get_dependencies,
26632         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26633         func_get_automake_snippet, func_get_include_directive,
26634         func_get_link_directive, func_get_license, func_get_maintainer):
26635         Update documentation. List the unoptimized code first. Add support for
26636         associative arrays. Limit the use of 'eval' to assignments.
26637         (func_get_applicability): Undo stylistic pessimisations.
26638         (func_get_automake_snippet, func_get_include_directive): Reduce code
26639         duplication.
26640         (func_modules_transitive_closure, func_modules_add_dummy,
26641         func_modules_notice, func_modules_to_filelist, func_add_file,
26642         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26643         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26644         func_create_testdir, func_create_megatestdir): Update documentation.
26645
26646 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26647
26648         * gnulib-tool (func_cache_lookup_module): Store the module name
26649         belonging to the cache variable; error out if two different
26650         module names map to the same cache variable name.
26651
26652 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26653
26654         gnulib-tool: Make caching optional.
26655         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26656         Update matching short versions of --no-changelog.
26657         (func_usage): Update.
26658         (sed_extract_cache_prog): Renamed from ...
26659         (sed_extract_prog): ... this; revert to old extraction script.
26660         (func_get_description, func_get_status)
26661         (func_get_notice, func_get_applicability, func_get_filelist)
26662         (func_get_dependencies, func_get_autoconf_early_snippet)
26663         (func_get_autoconf_snippet, func_get_automake_snippet)
26664         (func_get_include_directive, func_get_link_directive)
26665         (func_get_license, func_get_maintainer): If $do_cache is false,
26666         use old, non-caching extraction scripts.
26667         Suggestion by Bruno Haible.
26668
26669 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26670
26671         gnulib-tool: cache module metainformation.
26672         * gnulib-tool (sed_extract_prog): Match newline before each
26673         header, and rewrite header to a shell variable suffix.
26674         (func_cache_var, func_cache_lookup_module): New functions,
26675         to turn a module name into a cache variable prefix, and to
26676         look up and cache module metainformation.
26677         (func_get_description, func_get_status)
26678         (func_get_notice, func_get_applicability, func_get_filelist)
26679         (func_get_dependencies, func_get_autoconf_early_snippet)
26680         (func_get_autoconf_snippet, func_get_automake_snippet)
26681         (func_get_include_directive, func_get_link_directive)
26682         (func_get_license, func_get_maintainer): Use
26683         func_cache_lookup_module.
26684
26685 2010-02-07  Bruno Haible  <bruno@clisp.org>
26686
26687         fnctl: Fix missing dependency.
26688         * modules/fcntl (Depends-on): Add getdtablesize.
26689         Reported by John W. Eaton <jwe@gnu.org>.
26690
26691 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26692
26693         Argp: fix recognition of short alias options.
26694
26695         * lib/argp-parse.c (convert_options): Fix improper use of
26696         `|' between character values.
26697         * tests/test-argp.c (group1_option): New alias option
26698         --read (-r).
26699         (group1_parser): Special handling for 'r'.
26700         (test15): New test case.
26701         (test_fun): Add test15.
26702         * tests/test-argp-2.sh: Update expected --help and --usage
26703         outputs.
26704
26705 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26706
26707         * tests/test-argp.c: Fix indentation.
26708
26709 2010-02-04  Eric Blake  <ebb9@byu.net>
26710
26711         gettimeofday: expose type of second argument
26712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26713         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26714         * tests/test-gettimeofday.c: Use it to silence warning.
26715         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26716         the issue.
26717
26718 2010-02-03  Jim Meyering  <meyering@redhat.com>
26719
26720         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26721         * lib/regcomp.c (TYPE_SIGNED): Define.
26722         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26723
26724         regcomp.c: avoid a new -Wshadow warning
26725         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26726
26727 2010-02-01  Jim Meyering  <meyering@redhat.com>
26728
26729         removing useless parentheses in cpp #define directives
26730         For motivation, see commit c0221df4, "define STREQ(a,b)
26731         consistently, removing useless parentheses"
26732         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26733         * lib/mountlist.c (MNT_IGNORE): Likewise.
26734         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26735
26736 2010-02-01  Eric Blake  <ebb9@byu.net>
26737
26738         sys_time: use link-warning
26739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26740         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26741         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26742         * modules/sys_time (Depends-on): Add warn-on-use.
26743         (Makefile.am): Always build replacement.
26744         (configure.ac): Update substitutions.
26745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26746         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26747         bother with SYS_TIME_H.
26748         * modules/gettimeofday (configure.ac): Declare indicator.
26749         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26750         in use.
26751
26752         closein-tests: silence compiler warning
26753         * tests/test-closein.c (main): Ignore fread result.
26754         * modules/closein-tests (Depends-on): Add ignore-value.
26755
26756         tests: silence warning about system return
26757         * tests/test-areadlink-with-size.c (main): Ignore system result.
26758         * tests/test-areadlink.c (main): Likewise.
26759         * tests/test-areadlinkat-with-size.c (main): Likewise.
26760         * tests/test-areadlinkat.c (main): Likewise.
26761         * tests/test-canonicalize-lgpl.c (main): Likewise.
26762         * tests/test-canonicalize.c (main): Likewise.
26763         * tests/test-chown.c (main): Likewise.
26764         * tests/test-fchownat.c (main): Likewise.
26765         * tests/test-fdutimensat.c (main): Likewise.
26766         * tests/test-fstatat.c (main): Likewise.
26767         * tests/test-futimens.c (main): Likewise.
26768         * tests/test-lchown.c (main): Likewise.
26769         * tests/test-link.c (main): Likewise.
26770         * tests/test-linkat.c (main): Likewise.
26771         * tests/test-lstat.c (main): Likewise.
26772         * tests/test-mkdir.c (main): Likewise.
26773         * tests/test-mkdirat.c (main): Likewise.
26774         * tests/test-mkfifo.c (main): Likewise.
26775         * tests/test-mkfifoat.c (main): Likewise.
26776         * tests/test-mknod.c (main): Likewise.
26777         * tests/test-readlink.c (main): Likewise.
26778         * tests/test-remove.c (main): Likewise.
26779         * tests/test-rename.c (main): Likewise.
26780         * tests/test-renameat.c (main): Likewise.
26781         * tests/test-rmdir.c (main): Likewise.
26782         * tests/test-symlink.c (main): Likewise.
26783         * tests/test-symlinkat.c (main): Likewise.
26784         * tests/test-unlink.c (main): Likewise.
26785         * tests/test-unlinkat.c (main): Likewise.
26786         * tests/test-utimens.c (main): Likewise.
26787         * tests/test-utimensat.c (main): Likewise.
26788         * modules/areadlink-tests (Depends-on): Add ignore-value.
26789         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26790         * modules/areadlinkat-tests (Depends-on): Likewise.
26791         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26792         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26793         * modules/canonicalize-tests (Depends-on): Likewise.
26794         * modules/chown-tests (Depends-on): Likewise.
26795         * modules/fdutimensat-tests (Depends-on): Likewise.
26796         * modules/futimens-tests (Depends-on): Likewise.
26797         * modules/lchown-tests (Depends-on): Likewise.
26798         * modules/link-tests (Depends-on): Likewise.
26799         * modules/linkat-tests (Depends-on): Likewise.
26800         * modules/lstat-tests (Depends-on): Likewise.
26801         * modules/mkdir-tests (Depends-on): Likewise.
26802         * modules/mkfifo-tests (Depends-on): Likewise.
26803         * modules/mkfifoat-tests (Depends-on): Likewise.
26804         * modules/mknod-tests (Depends-on): Likewise.
26805         * modules/openat-tests (Depends-on): Likewise.
26806         * modules/readlink-tests (Depends-on): Likewise.
26807         * modules/remove-tests (Depends-on): Likewise.
26808         * modules/rename-tests (Depends-on): Likewise.
26809         * modules/renameat-tests (Depends-on): Likewise.
26810         * modules/rmdir-tests (Depends-on): Likewise.
26811         * modules/symlink-tests (Depends-on): Likewise.
26812         * modules/symlinkat-tests (Depends-on): Likewise.
26813         * modules/unlink-tests (Depends-on): Likewise.
26814         * modules/utimens-tests (Depends-on): Likewise.
26815         * modules/utimensat-tests (Depends-on): Likewise.
26816
26817 2010-01-31  Bruno Haible  <bruno@clisp.org>
26818
26819         Perform the same test for many <math.h> functions.
26820         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26821         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26822         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26823         of gl_MATHFUNC.
26824         * modules/acos (configure.ac): Likewise.
26825         * modules/asin (configure.ac): Likewise.
26826         * modules/atan (configure.ac): Likewise.
26827         * modules/atan2 (configure.ac): Likewise.
26828         * modules/cbrt (configure.ac): Likewise.
26829         * modules/copysign (configure.ac): Likewise.
26830         * modules/cos (configure.ac): Likewise.
26831         * modules/cosh (configure.ac): Likewise.
26832         * modules/erf (configure.ac): Likewise.
26833         * modules/erfc (configure.ac): Likewise.
26834         * modules/exp (configure.ac): Likewise.
26835         * modules/fmod (configure.ac): Likewise.
26836         * modules/hypot (configure.ac): Likewise.
26837         * modules/j0 (configure.ac): Likewise.
26838         * modules/j1 (configure.ac): Likewise.
26839         * modules/jn (configure.ac): Likewise.
26840         * modules/lgamma (configure.ac): Likewise.
26841         * modules/log (configure.ac): Likewise.
26842         * modules/log10 (configure.ac): Likewise.
26843         * modules/log1p (configure.ac): Likewise.
26844         * modules/pow (configure.ac): Likewise.
26845         * modules/remainder (configure.ac): Likewise.
26846         * modules/sin (configure.ac): Likewise.
26847         * modules/sinh (configure.ac): Likewise.
26848         * modules/tan (configure.ac): Likewise.
26849         * modules/tanh (configure.ac): Likewise.
26850         * modules/y0 (configure.ac): Likewise.
26851         * modules/y1 (configure.ac): Likewise.
26852         * modules/yn (configure.ac): Likewise.
26853         Suggested by Paolo Bonzini.
26854
26855 2010-01-31  Bruno Haible  <bruno@clisp.org>
26856
26857         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26858
26859 2010-01-31  Bruno Haible  <bruno@clisp.org>
26860
26861         Work around getdelim() bug on FreeBSD 8.0.
26862         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26863         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26864         not work.
26865         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26866         is 1.
26867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26868         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26869         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26870         a non-zero size.
26871         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26872
26873 2010-01-31  Bruno Haible  <bruno@clisp.org>
26874
26875         Work around getline() bug on FreeBSD 8.0.
26876         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26877         and a non-zero size.
26878         * tests/test-getline.c (main): Likewise.
26879         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26880         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26881
26882 2010-01-28  Eric Blake  <ebb9@byu.net>
26883
26884         regex: fix build failure
26885         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26886         platforms.
26887
26888 2010-01-28  Jim Meyering  <meyering@redhat.com>
26889
26890         regex: do not ignore memory allocation failure
26891         * lib/regex_internal.c (create_cd_newstate): Detect
26892         re_node_set_init_copy failure.   Extracted from glibc commit
26893         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26894
26895         regex: sync more white-space changes from libc
26896         * lib/regex_internal.c: White-space only changes.
26897         * lib/regexec.c: Likewise.
26898
26899         regex: add many uses of __attribute_warn_unused_result__
26900         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26901         * lib/regexec.c: Likewise.
26902         Extracted from a messy glibc commit.
26903
26904         regcomp.c: spelling and merge-artifact from glibc
26905         * lib/regcomp.c: Merge remainder of glibc's
26906         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26907
26908         regcomp.c: sync white-space changes from glibc
26909         * lib/regcomp.c: Merge to accommodate white space
26910         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26911
26912         regcomp.c: do not ignore internal return values
26913         * lib/regcomp.c: Do not ignore internal return values.
26914         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26915         but without its white-space changes and spelling fixes.
26916
26917         regex_internal.h: define __attribute_warn_unused_result__
26918         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26919
26920         maint: add a syntax-check rule to check for vulnerable Makefile.in
26921         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26922
26923 2010-01-27  Jim Meyering  <meyering@redhat.com>
26924
26925         ncftpput-ftp: clean up spaces
26926         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26927         Remove trailing blanks.
26928
26929 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26930
26931         * build-aux/git-version-gen: Fix copyright statement.
26932         * build-aux/gnupload: Likewise.
26933         * tests/test-arcfour.c: Likewise.
26934         * tests/test-arctwo.c: Likewise.
26935         * tests/test-count-one-bits.c: Likewise.
26936         * tests/test-crc.c: Likewise.
26937         * tests/test-des.c: Likewise.
26938         * tests/test-gc-arcfour.c: Likewise.
26939         * tests/test-gc-arctwo.c: Likewise.
26940         * tests/test-gc-des.c: Likewise.
26941         * tests/test-gc-hmac-md5.c: Likewise.
26942         * tests/test-gc-hmac-sha1.c: Likewise.
26943         * tests/test-gc-md2.c: Likewise.
26944         * tests/test-gc-md4.c: Likewise.
26945         * tests/test-gc-md5.c: Likewise.
26946         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26947         * tests/test-gc-rijndael.c: Likewise.
26948         * tests/test-gc-sha1.c: Likewise.
26949         * tests/test-gc.c: Likewise.
26950         * tests/test-gethostname.c: Likewise.
26951         * tests/test-gettimeofday.c: Likewise.
26952         * tests/test-hash.c: Likewise.
26953         * tests/test-hmac-md5.c: Likewise.
26954         * tests/test-hmac-sha1.c: Likewise.
26955         * tests/test-md2.c: Likewise.
26956         * tests/test-md4.c: Likewise.
26957         * tests/test-md5.c: Likewise.
26958         * tests/test-memchr.c: Likewise.
26959         * tests/test-memchr2.c: Likewise.
26960         * tests/test-memcmp.c: Likewise.
26961         * tests/test-memmem.c: Likewise.
26962         * tests/test-memrchr.c: Likewise.
26963         * tests/test-rawmemchr.c: Likewise.
26964         * tests/test-read-file.c: Likewise.
26965         * tests/test-rijndael.c: Likewise.
26966         * tests/test-sockets.c: Likewise.
26967         * tests/test-strchrnul.c: Likewise.
26968         * tests/test-strstr.c: Likewise.
26969         * tests/test-strtod.c: Likewise.
26970         * build-aux/ncftpput-ftp: Likewise.
26971
26972 2010-01-26  Eric Blake  <ebb9@byu.net>
26973
26974         ignore-value: update recommended header name
26975         * modules/ignore-value (Include): Only use <> for headers that
26976         exist in glibc.
26977
26978 2010-01-26  Jim Meyering  <meyering@redhat.com>
26979
26980         test-userspec.c: avoid compiler warnings
26981         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26982         and "initialization discards qualifiers..." warnings.
26983         Put the first "uid" in its own scope, and make char* members "const".
26984
26985 2010-01-25  Bruno Haible  <bruno@clisp.org>
26986
26987         gnulib-tool: Make warning diagnostics consistent.
26988         * gnulib-tool (func_warning): New function.
26989         Use it everywhere where gnulib-tool produces output to stderr and it is
26990         not a fatal error.
26991
26992 2010-01-25  Bruno Haible  <bruno@clisp.org>
26993
26994         Fix test dependencies.
26995         * modules/xstrtol-tests (Depends-on): Add inttypes.
26996         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26997
26998 2010-01-25 Pádraig Brady <P@draigBrady.com>
26999
27000         syntax-check: detect incorrect boolean macro values in config.h
27001         * modules/maintainer-makefile (configure.ac): Parameterize the location
27002         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27003         The logic is from Eric Blake and the location indicated by Jim Meyering.
27004         Note the more natural CONFIG_HEADER name is prohibited by automake
27005         for backwards compatibility reasons.
27006         * top/maint.mk (sc_Wundef_boolean): New rule.
27007
27008 2010-01-25  Jim Meyering  <meyering@redhat.com>
27009
27010         bootstrap: detect MacOS 10.6's shasum, too
27011         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27012         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27013
27014 2010-01-23  Jim Meyering  <meyering@redhat.com>
27015
27016         xstrtoll: new module
27017         * modules/xstrtoll: New file.
27018         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27019         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27020         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27021         ./configure fails if you use this module and lack "long long".
27022         * modules/xstrtoll-tests: New module.
27023         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27024         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27025         new init.sh-based test framework.
27026
27027 2010-01-24  Bruno Haible  <bruno@clisp.org>
27028
27029         Tests for module 'yn'.
27030         * modules/yn-tests: New file.
27031         * tests/test-yn.c: New file.
27032
27033         Tests for module 'y1'.
27034         * modules/y1-tests: New file.
27035         * tests/test-y1.c: New file.
27036
27037         Tests for module 'y0'.
27038         * modules/y0-tests: New file.
27039         * tests/test-y0.c: New file.
27040
27041         Tests for module 'tanh'.
27042         * modules/tanh-tests: New file.
27043         * tests/test-tanh.c: New file.
27044
27045         Tests for module 'tan'.
27046         * modules/tan-tests: New file.
27047         * tests/test-tan.c: New file.
27048
27049         Tests for module 'sqrt'.
27050         * modules/sqrt-tests: New file.
27051         * tests/test-sqrt.c: New file.
27052
27053         Tests for module 'sinh'.
27054         * modules/sinh-tests: New file.
27055         * tests/test-sinh.c: New file.
27056
27057         Tests for module 'sin'.
27058         * modules/sin-tests: New file.
27059         * tests/test-sin.c: New file.
27060
27061         Tests for module 'rint'.
27062         * modules/rint-tests: New file.
27063         * tests/test-rint.c: New file.
27064
27065         Tests for module 'remainder'.
27066         * modules/remainder-tests: New file.
27067         * tests/test-remainder.c: New file.
27068
27069         Tests for module 'pow'.
27070         * modules/pow-tests: New file.
27071         * tests/test-pow.c: New file.
27072
27073         Tests for module 'nextafter'.
27074         * modules/nextafter-tests: New file.
27075         * tests/test-nextafter.c: New file.
27076
27077         Tests for module 'modf'.
27078         * modules/modf-tests: New file.
27079         * tests/test-modf.c: New file.
27080
27081         Tests for module 'logb'.
27082         * modules/logb-tests: New file.
27083         * tests/test-logb.c: New file.
27084
27085         Tests for module 'log1p'.
27086         * modules/log1p-tests: New file.
27087         * tests/test-log1p.c: New file.
27088
27089         Tests for module 'log10'.
27090         * modules/log10-tests: New file.
27091         * tests/test-log10.c: New file.
27092
27093         Tests for module 'log'.
27094         * modules/log-tests: New file.
27095         * tests/test-log.c: New file.
27096
27097         Tests for module 'lgamma'.
27098         * modules/lgamma-tests: New file.
27099         * tests/test-lgamma.c: New file.
27100
27101         Tests for module 'ldexp'.
27102         * modules/ldexp-tests: New file.
27103         * tests/test-ldexp.c: New file.
27104
27105         Tests for module 'jn'.
27106         * modules/jn-tests: New file.
27107         * tests/test-jn.c: New file.
27108
27109         Tests for module 'j1'.
27110         * modules/j1-tests: New file.
27111         * tests/test-j1.c: New file.
27112
27113         Tests for module 'j0'.
27114         * modules/j0-tests: New file.
27115         * tests/test-j0.c: New file.
27116
27117         Tests for module 'hypot'.
27118         * modules/hypot-tests: New file.
27119         * tests/test-hypot.c: New file.
27120
27121         Tests for module 'fmod'.
27122         * modules/fmod-tests: New file.
27123         * tests/test-fmod.c: New file.
27124
27125         Tests for module 'fabs'.
27126         * modules/fabs-tests: New file.
27127         * tests/test-fabs.c: New file.
27128
27129         Tests for module 'exp'.
27130         * modules/exp-tests: New file.
27131         * tests/test-exp.c: New file.
27132
27133         Tests for module 'erfc'.
27134         * modules/erfc-tests: New file.
27135         * tests/test-erfc.c: New file.
27136
27137         Tests for module 'erf'.
27138         * modules/erf-tests: New file.
27139         * tests/test-erf.c: New file.
27140
27141         Tests for module 'cosh'.
27142         * modules/cosh-tests: New file.
27143         * tests/test-cosh.c: New file.
27144
27145         Tests for module 'cos'.
27146         * modules/cos-tests: New file.
27147         * tests/test-cos.c: New file.
27148
27149         Tests for module 'copysign'.
27150         * modules/copysign-tests: New file.
27151         * tests/test-copysign.c: New file.
27152
27153         Tests for module 'cbrt'.
27154         * modules/cbrt-tests: New file.
27155         * tests/test-cbrt.c: New file.
27156
27157         Tests for module 'atan2'.
27158         * modules/atan2-tests: New file.
27159         * tests/test-atan2.c: New file.
27160
27161         Tests for module 'atan'.
27162         * modules/atan-tests: New file.
27163         * tests/test-atan.c: New file.
27164
27165         Tests for module 'asin'.
27166         * modules/asin-tests: New file.
27167         * tests/test-asin.c: New file.
27168
27169         Tests for module 'acos'.
27170         * modules/acos-tests: New file.
27171         * tests/test-acos.c: New file.
27172
27173 2010-01-24  Bruno Haible  <bruno@clisp.org>
27174
27175         Fix tests for common <math.h> functions.
27176         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27177         code snippet that references the function pointer, rather than merely
27178         calling the function. Substitute the FUNC_LIBM variable.
27179         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27180         * modules/acos (configure.ac): Likewise.
27181         * modules/asin (configure.ac): Likewise.
27182         * modules/atan (configure.ac): Likewise.
27183         * modules/atan2 (configure.ac): Likewise.
27184         * modules/cbrt (configure.ac): Likewise.
27185         * modules/copysign (configure.ac): Likewise.
27186         * modules/cos (configure.ac): Likewise.
27187         * modules/cosh (configure.ac): Likewise.
27188         * modules/erf (configure.ac): Likewise.
27189         * modules/erfc (configure.ac): Likewise.
27190         * modules/exp (configure.ac): Likewise.
27191         * modules/fabs (configure.ac): Likewise.
27192         * modules/fmod (configure.ac): Likewise.
27193         * modules/hypot (configure.ac): Likewise.
27194         * modules/j0 (configure.ac): Likewise.
27195         * modules/j1 (configure.ac): Likewise.
27196         * modules/jn (configure.ac): Likewise.
27197         * modules/ldexp (configure.ac): Likewise.
27198         * modules/lgamma (configure.ac): Likewise.
27199         * modules/log (configure.ac): Likewise.
27200         * modules/log10 (configure.ac): Likewise.
27201         * modules/log1p (configure.ac): Likewise.
27202         * modules/logb (configure.ac): Likewise.
27203         * modules/modf (configure.ac): Likewise.
27204         * modules/nextafter (configure.ac): Likewise.
27205         * modules/pow (configure.ac): Likewise.
27206         * modules/remainder (configure.ac): Likewise.
27207         * modules/rint (configure.ac): Likewise.
27208         * modules/sin (configure.ac): Likewise.
27209         * modules/sinh (configure.ac): Likewise.
27210         * modules/tan (configure.ac): Likewise.
27211         * modules/tanh (configure.ac): Likewise.
27212         * modules/y0 (configure.ac): Likewise.
27213         * modules/y1 (configure.ac): Likewise.
27214         * modules/yn (configure.ac): Likewise.
27215
27216 2010-01-24  Bruno Haible  <bruno@clisp.org>
27217
27218         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27219         * tests/test-acosl.c (x): New variable.
27220         (main): Store argument in x and fetch it from x.
27221         * tests/test-asinl.c (x): New variable.
27222         (main): Store argument in x and fetch it from x.
27223         * tests/test-atanl.c (x): New variable.
27224         (main): Store argument in x and fetch it from x.
27225         * tests/test-cosl.c (x): New variable.
27226         (main): Store argument in x and fetch it from x.
27227         * tests/test-expl.c (x): New variable.
27228         (main): Store argument in x and fetch it from x.
27229         * tests/test-logl.c (x): New variable.
27230         (main): Store argument in x and fetch it from x.
27231         * tests/test-sinl.c (x): New variable.
27232         (main): Store argument in x and fetch it from x.
27233         * tests/test-sqrtl.c (x): New variable.
27234         (main): Store argument in x and fetch it from x.
27235         * tests/test-tanl.c (x): New variable.
27236         (main): Store argument in x and fetch it from x.
27237
27238 2010-01-24  Bruno Haible  <bruno@clisp.org>
27239
27240         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27241         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27242         assignments to the initial TESTS_ENVIRONMENT.
27243         * doc/gnulib.texi (Unit test modules): Document it.
27244         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27245         TESTS_ENVIRONMENT.
27246         * modules/btowc-tests (Makefile.am): Likewise.
27247         * modules/c-stack-tests (Makefile.am): Likewise.
27248         * modules/c-strcase-tests (Makefile.am): Likewise.
27249         * modules/copy-file-tests (Makefile.am): Likewise.
27250         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27251         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27252         * modules/mbrtowc-tests (Makefile.am): Likewise.
27253         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27254         * modules/mbscasestr-tests (Makefile.am): Likewise.
27255         * modules/mbschr-tests (Makefile.am): Likewise.
27256         * modules/mbscspn-tests (Makefile.am): Likewise.
27257         * modules/mbsinit-tests (Makefile.am): Likewise.
27258         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27259         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27260         * modules/mbspbrk-tests (Makefile.am): Likewise.
27261         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27262         * modules/mbsrchr-tests (Makefile.am): Likewise.
27263         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27264         * modules/mbsspn-tests (Makefile.am): Likewise.
27265         * modules/mbsstr-tests (Makefile.am): Likewise.
27266         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27267         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27268         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27269         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27270         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27271         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27272         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27273         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27274         * modules/wcrtomb-tests (Makefile.am): Likewise.
27275         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27276         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27277         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27278         assignments from TESTS_ENVIRONMENT.
27279         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27280         augmentation.
27281         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27282         * modules/atexit-tests (Makefile.am): Likewise.
27283         * modules/binary-io-tests (Makefile.am): Likewise.
27284         * modules/closein-tests (Makefile.am): Likewise.
27285         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27286         * modules/exclude-tests (Makefile.am): Likewise.
27287         * modules/fflush-tests (Makefile.am): Likewise.
27288         * modules/fpending-tests (Makefile.am): Likewise.
27289         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27290         * modules/freadahead-tests (Makefile.am): Likewise.
27291         * modules/freadptr-tests (Makefile.am): Likewise.
27292         * modules/freadseek-tests (Makefile.am): Likewise.
27293         * modules/fseek-tests (Makefile.am): Likewise.
27294         * modules/fseeko-tests (Makefile.am): Likewise.
27295         * modules/ftell-tests (Makefile.am): Likewise.
27296         * modules/ftello-tests (Makefile.am): Likewise.
27297         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27298         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27299         * modules/lseek-tests (Makefile.am): Likewise.
27300         * modules/parse-duration-tests (Makefile.am): Likewise.
27301         * modules/perror-tests (Makefile.am): Likewise.
27302         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27303         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27304         * modules/pipe-tests (Makefile.am): Likewise.
27305         * modules/pread-tests (Makefile.am): Likewise.
27306         * modules/printf-posix-tests (Makefile.am): Likewise.
27307         * modules/select-tests (Makefile.am): Likewise.
27308         * modules/sigpipe-tests (Makefile.am): Likewise.
27309         * modules/tsearch-tests (Makefile.am): Likewise.
27310         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27311         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27312         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27313         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27314         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27315         * modules/version-etc-tests (Makefile.am): Likewise.
27316         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27317         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27318         * modules/xalloc-die-tests (Makefile.am): Likewise.
27319         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27320         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27321         * modules/xstrtol-tests (Makefile.am): Likewise.
27322         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27323         * modules/yesno-tests (Makefile.am): Likewise.
27324         Suggested by Jim Meyering.
27325
27326 2010-01-24  Bruno Haible  <bruno@clisp.org>
27327
27328         More documentation.
27329         * doc/gnulib.texi (Writing modules): New chapter.
27330         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27331         the new chapter.
27332
27333 2010-01-24  Jim Meyering  <meyering@redhat.com>
27334
27335         maint.mk: do not prepend "./" after filtering
27336         * top/maint.mk (_prepend_srcdir_prefix): New variable
27337         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27338         "./" when $(srcdir) is ".".
27339
27340         define STREQ(a,b) consistently, removing useless parentheses
27341         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27342         since the only risk is that "a" or "b" contains an unparenthesized
27343         comma, but if either did that, STREQ would have 3 or more arguments.
27344         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27345         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27346         * lib/hash-triple.c (STREQ): Likewise.
27347         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27348         * lib/getugroups.c (STREQ): Likewise.
27349
27350 2010-01-23  Jim Meyering  <meyering@redhat.com>
27351
27352         maint.mk: fix syntax-check in a non-srcdir build directory
27353         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27354         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27355
27356 2010-01-22  Jim Meyering  <meyering@redhat.com>
27357
27358         userspec: add unit tests
27359         * tests/test-userspec.c: New file.
27360         * modules/userspec-tests: Likewise.
27361
27362 2010-01-21  Jim Meyering  <meyering@redhat.com>
27363
27364         maint.mk: handle source file names containing "." robustly
27365         * top/maint.mk (_dot_escaped_srcdir): Define.
27366         (VC_LIST): Use it in LHS of sed substitution.
27367
27368 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27369
27370         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27371         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27372         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27373         from a non-srcdir build.
27374
27375 2010-01-20  Eric Blake  <ebb9@byu.net>
27376
27377         warn-on-use: use instead of link-warning
27378         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27379         * modules/unistd (Depends-on, Makefile.am): Likewise.
27380         * modules/arpa_inet (Depends-on): Replace link-warning with
27381         warn-on-use.
27382         (Makefile.am): Update rules accordingly.
27383         * modules/ctype (Depends-on, Makefile.am): Likewise.
27384         * modules/dirent (Depends-on, Makefile.am): Likewise.
27385         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27386         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27387         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27388         * modules/locale (Depends-on, Makefile.am): Likewise.
27389         * modules/math (Depends-on, Makefile.am): Likewise.
27390         * modules/search (Depends-on, Makefile.am): Likewise.
27391         * modules/signal (Depends-on, Makefile.am): Likewise.
27392         * modules/spawn (Depends-on, Makefile.am): Likewise.
27393         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27394         * modules/string (Depends-on, Makefile.am): Likewise.
27395         * modules/strings (Depends-on, Makefile.am): Likewise.
27396         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27397         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27398         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27399         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27400         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27401         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27402         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27403         * modules/wchar (Depends-on, Makefile.am): Likewise.
27404         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27405         should be poisoned.
27406         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27407         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27408         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27409         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27410         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27411         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27412         * m4/math_h.m4 (gl_MATH_H): Likewise.
27413         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27414         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27415         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27416         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27417         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27418         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27419         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27420         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27425         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27426         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27428         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27429         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27430         GL_LINK_WARNING.
27431         * lib/ctype.in.h: Likewise.
27432         * lib/dirent.in.h: Likewise.
27433         * lib/fcntl.in.h: Likewise.
27434         * lib/inttypes.in.h: Likewise.
27435         * lib/langinfo.in.h: Likewise.
27436         * lib/locale.in.h: Likewise.
27437         * lib/math.in.h: Likewise.
27438         * lib/search.in.h: Likewise.
27439         * lib/signal.in.h: Likewise.
27440         * lib/spawn.in.h: Likewise.
27441         * lib/stdio.in.h: Likewise.
27442         * lib/stdlib.in.h: Likewise.
27443         * lib/string.in.h: Likewise.
27444         * lib/strings.in.h: Likewise.
27445         * lib/sys_file.in.h: Likewise.
27446         * lib/sys_ioctl.in.h: Likewise.
27447         * lib/sys_select.in.h: Likewise.
27448         * lib/sys_socket.in.h: Likewise.
27449         * lib/sys_stat.in.h: Likewise.
27450         * lib/sys_times.in.h: Likewise.
27451         * lib/sys_utsname.in.h: Likewise.
27452         * lib/unistd.in.h: Likewise.
27453         * lib/wchar.in.h: Likewise.
27454
27455 2010-01-20  Bruno Haible  <bruno@clisp.org>
27456
27457         Avoid duplicate -lm.
27458         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27459         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27460         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27462         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27463         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27464         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27465         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27466         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27467         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27468         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27469         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27470         Reported by Paolo Bonzini.
27471
27472 2010-01-19  Bruno Haible  <bruno@clisp.org>
27473
27474         langinfo, nl_langinfo: Relicense under LGPLv2+.
27475         * modules/langinfo (License): Change to LGPLv2+.
27476         * modules/nl_langinfo (License): Likewise.
27477         Patch by David Lutterkort <lutter@redhat.com>.
27478
27479 2010-01-19  Bruno Haible  <bruno@clisp.org>
27480
27481         Avoid compilation error with cc on OSF/1 5.1.
27482         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27483         statement, not before.
27484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27485
27486 2010-01-18  Bruno Haible  <bruno@clisp.org>
27487
27488         Avoid a link error due to the __printf__ symbol.
27489         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27490         and 2.6.x.
27491         (__format__, __printf__): Remove definitions.
27492         * lib/argp-fmtstream.h: Likewise.
27493         * lib/argp.h: Likewise.
27494         * lib/error.h: Likewise.
27495         * lib/vasnprintf.h: Likewise.
27496         * lib/xprintf.h: Likewise.
27497         * lib/xvasprintf.h: Likewise.
27498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27499
27500 2010-01-18  Bruno Haible  <bruno@clisp.org>
27501
27502         Tests for module 'tanl'.
27503         * modules/tanl-tests: New file.
27504         * tests/test-tanl.c: New file.
27505
27506         Tests for module 'sqrtl'.
27507         * modules/sqrtl-tests: New file.
27508         * tests/test-sqrtl.c: New file.
27509
27510         Tests for module 'sinl'.
27511         * modules/sinl-tests: New file.
27512         * tests/test-sinl.c: New file.
27513
27514         Tests for module 'logl'.
27515         * modules/logl-tests: New file.
27516         * tests/test-logl.c: New file.
27517
27518         Tests for module 'expl'.
27519         * modules/expl-tests: New file.
27520         * tests/test-expl.c: New file.
27521
27522         Tests for module 'cosl'.
27523         * modules/cosl-tests: New file.
27524         * tests/test-cosl.c: New file.
27525
27526         Tests for module 'atanl'.
27527         * modules/atanl-tests: New file.
27528         * tests/test-atanl.c: New file.
27529
27530         Tests for module 'asinl'.
27531         * modules/asinl-tests: New file.
27532         * tests/test-asinl.c: New file.
27533
27534         Tests for module 'acosl'.
27535         * modules/acosl-tests: New file.
27536         * tests/test-acosl.c: New file.
27537
27538         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27539         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27540         tanl): Use the standard gnulib idiom.
27541         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27542         * lib/sinl.c: Likewise.
27543         * lib/tanl.c: Don't include trigl.c.
27544         (kernel_tanl): Make static.
27545         * lib/sincosl.c: Include trigl.h first.
27546         * lib/trigl.c: Likewise.
27547         * m4/acosl.m4: New file.
27548         * m4/asinl.m4: New file.
27549         * m4/atanl.m4: New file.
27550         * m4/cosl.m4: New file.
27551         * m4/expl.m4: New file.
27552         * m4/logl.m4: New file.
27553         * m4/sinl.m4: New file.
27554         * m4/sqrtl.m4: New file.
27555         * m4/tanl.m4: New file.
27556         * m4/mathl.m4: Remove file.
27557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27558         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27559         Don't initialize GNULIB_MATHL.
27560         * modules/acosl: New file.
27561         * modules/asinl: New file.
27562         * modules/atanl: New file.
27563         * modules/cosl: New file.
27564         * modules/expl: New file.
27565         * modules/logl: New file.
27566         * modules/sinl: New file.
27567         * modules/sqrtl: New file.
27568         * modules/tanl: New file.
27569         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27570         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27571         substitute GNULIB_MATHL.
27572         * modules/mathl: Rewritten.
27573         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27574         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27575         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27576         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27577         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27578         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27579         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27580         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27581         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27582
27583 2010-01-18  Bruno Haible  <bruno@clisp.org>
27584
27585         sqrt: Make gl_FUNC_SQRT requirable.
27586         * m4/sqrt.m4: New file.
27587         * modules/sqrt (Files): Add it.
27588         (configure.ac): Invoke gl_FUNC_SQRT.
27589
27590 2010-01-18  Bruno Haible  <bruno@clisp.org>
27591
27592         New modules for common <math.h> functions.
27593         * m4/mathfunc.m4: New file.
27594         * modules/acos: New file.
27595         * modules/asin: New file.
27596         * modules/atan: New file.
27597         * modules/atan2: New file.
27598         * modules/cbrt: New file.
27599         * modules/copysign: New file.
27600         * modules/cos: New file.
27601         * modules/cosh: New file.
27602         * modules/erf: New file.
27603         * modules/erfc: New file.
27604         * modules/exp: New file.
27605         * modules/fabs: New file.
27606         * modules/fmod: New file.
27607         * modules/hypot: New file.
27608         * modules/j0: New file.
27609         * modules/j1: New file.
27610         * modules/jn: New file.
27611         * modules/ldexp: New file.
27612         * modules/lgamma: New file.
27613         * modules/log: New file.
27614         * modules/log10: New file.
27615         * modules/log1p: New file.
27616         * modules/logb: New file.
27617         * modules/modf: New file.
27618         * modules/nextafter: New file.
27619         * modules/pow: New file.
27620         * modules/remainder: New file.
27621         * modules/rint: New file.
27622         * modules/sin: New file.
27623         * modules/sinh: New file.
27624         * modules/sqrt: New file.
27625         * modules/tan: New file.
27626         * modules/tanh: New file.
27627         * modules/y0: New file.
27628         * modules/y1: New file.
27629         * modules/yn: New file.
27630         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27631         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27632         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27633         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27634         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27635         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27636         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27637         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27638         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27639         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27640         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27641         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27642         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27643         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27644         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27645         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27646         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27647         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27648         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27649         * doc/posix-functions/log.texi: Mention the 'log' module.
27650         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27651         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27652         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27653         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27654         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27655         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27656         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27657         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27658         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27659         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27660         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27661         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27662         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27663         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27664         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27665         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27666
27667 2010-01-18  Jim Meyering  <meyering@redhat.com>
27668
27669         ignore-value: relax license to LGPLv2+
27670         * modules/ignore-value (License): Relax to LGPLv2+.
27671
27672         getdate: don't leak when TZ contains two or more '"'s
27673         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27674         double quote in TZ after the first one.
27675
27676         readtokens: do not leak internal token_lengths buffer
27677         * lib/readtokens.c (readtokens): Free the local, lengths,
27678         when the supplied "token_lengths" parameter is NULL.
27679
27680 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27681
27682         Fix a couple of missing LIBTHREAD link failures on AIX.
27683         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27684         $(LIBTHREAD).
27685         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27686
27687         Link test-poll against INET_PTON_LIB.
27688         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27689         for inet_pton on Solaris 10.
27690
27691 2010-01-17  Bruno Haible  <bruno@clisp.org>
27692
27693         unistdio/*-sprintf: Fix typo in module description.
27694         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27695         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27696         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27697         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27698         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27699         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27700         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27702
27703 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27704
27705         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27706         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27707         variables in shell case patterns, for AIX and HP-UX ksh.
27708
27709         Split large sed scripts, for HP-UX sed.
27710         * modules/stdio: Split sed scripts around 50 sed commands,
27711         to avoid HP-UX limit of 99 commands, in the near future.
27712         * modules/string: Likewise.
27713         * modules/unistd: Likewise.
27714
27715         gnulib-tool: avoid writing in the current directory.
27716         * gnulib-tool (func_emit_lib_Makefile_am)
27717         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27718         not in the current directory, so concurrent gnulib-tool
27719         instances do not interfere.
27720
27721 2010-01-16  Jim Meyering  <meyering@redhat.com>
27722
27723         doc: update users.txt
27724         * users.txt: Add grep.
27725         (diffutils, gzip): Update URLs.
27726
27727 2010-01-12  Bruno Haible  <bruno@clisp.org>
27728
27729         posix_spawn: Avoid test failure on Cygwin.
27730         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27731         characters.
27732         Reported by Simon Josefsson.
27733
27734 2010-01-12  Bruno Haible  <bruno@clisp.org>
27735
27736         * tests/test-cond.c (main): When skipping the test, show the reason.
27737
27738 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27739
27740         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27741
27742 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27743
27744         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27745         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27746
27747 2010-01-12  Eric Blake  <ebb9@byu.net>
27748
27749         build: guarantee AS_VAR_IF
27750         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27751         (gl_AS_VAR_IF): Move...
27752         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27753         Reported by Simon Josefsson.
27754
27755 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27756
27757         * lib/stdio.in.h: Fix typo.
27758
27759 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27760
27761         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27762         libgpg-error.
27763
27764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27765
27766         * tests/test-xalloc-die.sh: Use $EXEEXT.
27767
27768 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27769             Bruno Haible  <bruno@clisp.org>
27770
27771         getlogin, getlogin_r: Avoid test failure.
27772         * tests/test-getlogin.c: Include <stdio.h>.
27773         (main): Skip the test when the function fails because stdin is not a
27774         tty.
27775         * tests/test-getlogin_r.c: Include <stdio.h>.
27776         (main): Skip the test when the function fails because stdin is not a
27777         tty.
27778
27779 2010-01-11  Eric Blake  <ebb9@byu.net>
27780
27781         tests: avoid more large file warnings
27782         * tests/test-fflush.c: Avoid warning about ftell use.
27783         * tests/test-fseek.c: Avoid warning about fseek use.
27784
27785 2010-01-10  Bruno Haible  <bruno@clisp.org>
27786
27787         nproc: Work better on Linux when /proc and /sys are not mounted.
27788         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27789         as lower bound when, on glibc/Linux systems,
27790         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27791         Suggested by Pádraig Brady <P@draigbrady.com>.
27792         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27793
27794         nproc: Refactor.
27795         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27796         extracted from num_processors.
27797         (num_processors): Call it.
27798
27799 2010-01-11  Jim Meyering  <meyering@redhat.com>
27800
27801         utimecmp: avoid new warning from upcoming gcc-4.5.0
27802         * lib/utimecmp.c (BILLION): Define using #define rather than an
27803         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27804
27805 2010-01-11  Eric Blake  <ebb9@byu.net>
27806
27807         math: add portability warnings for classification macros
27808         * modules/math (Depends-on): Add warn-on-use.
27809         (Makefile.am): Provide new substitutions.
27810         * m4/math_h.m4 (gl_MATH_H): Require inline.
27811         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27812         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27813         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27814         implement warnings.
27815
27816         unistd: warn on use of environ without module
27817         * modules/unistd (Depends-on): Add warn-on-use.
27818         (Makefile.am): Provide new substitutions.
27819         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27820         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27821
27822         stdio: warn on suspicious uses
27823         * modules/stdio (Depends-on): Add warn-on-use.
27824         (Makefile.am): Provide new substitutions.
27825         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27826         fseeko.
27827         * lib/stdio.in.h (gets): Always warn on use.
27828         (fseek, ftell): Adjust when warnings are issued, and honor
27829         _GL_NO_LARGE_FILES as a way to silence the warning.
27830         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27831         any warning about large file offsets.
27832         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27833         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27834         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27835         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27836         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27837         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27838         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27839         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27840
27841         warn-on-use: new module
27842         * modules/warn-on-use: New file.
27843         * build-aux/warn-on-use.h: Likewise.
27844         * m4/warn-on-use.m4: Likewise.
27845         * MODULES.html.sh (Support for building): Mention it.
27846
27847 2010-01-10  Bruno Haible  <bruno@clisp.org>
27848
27849         Tests for module 'unistr/u32-strdup'.
27850         * modules/unistr/u32-strdup-tests: New file.
27851         * tests/unistr/test-u32-strdup.c: New file.
27852
27853         Tests for module 'unistr/u16-strdup'.
27854         * modules/unistr/u16-strdup-tests: New file.
27855         * tests/unistr/test-u16-strdup.c: New file.
27856
27857         Tests for module 'unistr/u8-strdup'.
27858         * modules/unistr/u8-strdup-tests: New file.
27859         * tests/unistr/test-u8-strdup.c: New file.
27860         * tests/unistr/test-strdup.h: New file.
27861
27862         Tests for module 'unistr/u32-strncmp'.
27863         * modules/unistr/u32-strncmp-tests: New file.
27864         * tests/unistr/test-u32-strncmp.c: New file.
27865
27866         Tests for module 'unistr/u16-strncmp'.
27867         * modules/unistr/u16-strncmp-tests: New file.
27868         * tests/unistr/test-u16-strncmp.c: New file.
27869
27870         Tests for module 'unistr/u8-strncmp'.
27871         * modules/unistr/u8-strncmp-tests: New file.
27872         * tests/unistr/test-u8-strncmp.c: New file.
27873         * tests/unistr/test-strncmp.h: New file.
27874
27875         Tests for module 'unistr/u32-strcoll'.
27876         * modules/unistr/u32-strcoll-tests: New file.
27877         * tests/unistr/test-u32-strcoll.c: New file.
27878
27879         Tests for module 'unistr/u16-strcoll'.
27880         * modules/unistr/u16-strcoll-tests: New file.
27881         * tests/unistr/test-u16-strcoll.c: New file.
27882
27883         Tests for module 'unistr/u8-strcoll'.
27884         * modules/unistr/u8-strcoll-tests: New file.
27885         * tests/unistr/test-u8-strcoll.c: New file.
27886
27887         Tests for module 'unistr/u32-strcmp'.
27888         * modules/unistr/u32-strcmp-tests: New file.
27889         * tests/unistr/test-u32-strcmp.c: New file.
27890         * tests/unistr/test-u32-strcmp.h: New file.
27891
27892         Tests for module 'unistr/u16-strcmp'.
27893         * modules/unistr/u16-strcmp-tests: New file.
27894         * tests/unistr/test-u16-strcmp.c: New file.
27895         * tests/unistr/test-u16-strcmp.h: New file.
27896
27897         Tests for module 'unistr/u8-strcmp'.
27898         * modules/unistr/u8-strcmp-tests: New file.
27899         * tests/unistr/test-u8-strcmp.c: New file.
27900         * tests/unistr/test-u8-strcmp.h: New file.
27901         * tests/unistr/test-strcmp.h: New file.
27902
27903         Tests for module 'unistr/u32-strncat'.
27904         * modules/unistr/u32-strncat-tests: New file.
27905         * tests/unistr/test-u32-strncat.c: New file.
27906
27907         Tests for module 'unistr/u16-strncat'.
27908         * modules/unistr/u16-strncat-tests: New file.
27909         * tests/unistr/test-u16-strncat.c: New file.
27910
27911         Tests for module 'unistr/u8-strncat'.
27912         * modules/unistr/u8-strncat-tests: New file.
27913         * tests/unistr/test-u8-strncat.c: New file.
27914         * tests/unistr/test-strncat.h: New file.
27915
27916         Tests for module 'unistr/u32-strcat'.
27917         * modules/unistr/u32-strcat-tests: New file.
27918         * tests/unistr/test-u32-strcat.c: New file.
27919
27920         Tests for module 'unistr/u16-strcat'.
27921         * modules/unistr/u16-strcat-tests: New file.
27922         * tests/unistr/test-u16-strcat.c: New file.
27923
27924         Tests for module 'unistr/u8-strcat'.
27925         * modules/unistr/u8-strcat-tests: New file.
27926         * tests/unistr/test-u8-strcat.c: New file.
27927         * tests/unistr/test-strcat.h: New file.
27928
27929         Tests for module 'unistr/u32-stpncpy'.
27930         * modules/unistr/u32-stpncpy-tests: New file.
27931         * tests/unistr/test-u32-stpncpy.c: New file.
27932
27933         Tests for module 'unistr/u16-stpncpy'.
27934         * modules/unistr/u16-stpncpy-tests: New file.
27935         * tests/unistr/test-u16-stpncpy.c: New file.
27936
27937         Tests for module 'unistr/u8-stpncpy'.
27938         * modules/unistr/u8-stpncpy-tests: New file.
27939         * tests/unistr/test-u8-stpncpy.c: New file.
27940         * tests/unistr/test-stpncpy.h: New file.
27941
27942         Tests for module 'unistr/u32-strncpy'.
27943         * modules/unistr/u32-strncpy-tests: New file.
27944         * tests/unistr/test-u32-strncpy.c: New file.
27945
27946         Tests for module 'unistr/u16-strncpy'.
27947         * modules/unistr/u16-strncpy-tests: New file.
27948         * tests/unistr/test-u16-strncpy.c: New file.
27949
27950         Tests for module 'unistr/u8-strncpy'.
27951         * modules/unistr/u8-strncpy-tests: New file.
27952         * tests/unistr/test-u8-strncpy.c: New file.
27953         * tests/unistr/test-strncpy.h: New file.
27954
27955         Tests for module 'unistr/u32-stpcpy'.
27956         * modules/unistr/u32-stpcpy-tests: New file.
27957         * tests/unistr/test-u32-stpcpy.c: New file.
27958
27959         Tests for module 'unistr/u16-stpcpy'.
27960         * modules/unistr/u16-stpcpy-tests: New file.
27961         * tests/unistr/test-u16-stpcpy.c: New file.
27962
27963         Tests for module 'unistr/u8-stpcpy'.
27964         * modules/unistr/u8-stpcpy-tests: New file.
27965         * tests/unistr/test-u8-stpcpy.c: New file.
27966         * tests/unistr/test-stpcpy.h: New file.
27967
27968         Tests for module 'unistr/u32-strcpy'.
27969         * modules/unistr/u32-strcpy-tests: New file.
27970         * tests/unistr/test-u32-strcpy.c: New file.
27971
27972         Tests for module 'unistr/u16-strcpy'.
27973         * modules/unistr/u16-strcpy-tests: New file.
27974         * tests/unistr/test-u16-strcpy.c: New file.
27975
27976         Tests for module 'unistr/u8-strcpy'.
27977         * modules/unistr/u8-strcpy-tests: New file.
27978         * tests/unistr/test-u8-strcpy.c: New file.
27979         * tests/unistr/test-strcpy.h: New file.
27980
27981         Tests for module 'unistr/u32-strnlen'.
27982         * modules/unistr/u32-strnlen-tests: New file.
27983         * tests/unistr/test-u32-strnlen.c: New file.
27984
27985         Tests for module 'unistr/u16-strnlen'.
27986         * modules/unistr/u16-strnlen-tests: New file.
27987         * tests/unistr/test-u16-strnlen.c: New file.
27988
27989         Tests for module 'unistr/u8-strnlen'.
27990         * modules/unistr/u8-strnlen-tests: New file.
27991         * tests/unistr/test-u8-strnlen.c: New file.
27992         * tests/unistr/test-strnlen.h: New file.
27993
27994         Tests for module 'unistr/u32-strlen'.
27995         * modules/unistr/u32-strlen-tests: New file.
27996         * tests/unistr/test-u32-strlen.c: New file.
27997
27998         Tests for module 'unistr/u16-strlen'.
27999         * modules/unistr/u16-strlen-tests: New file.
28000         * tests/unistr/test-u16-strlen.c: New file.
28001
28002         Tests for module 'unistr/u8-strlen'.
28003         * modules/unistr/u8-strlen-tests: New file.
28004         * tests/unistr/test-u8-strlen.c: New file.
28005
28006         Tests for module 'unistr/u32-prev'.
28007         * modules/unistr/u32-prev-tests: New file.
28008         * tests/unistr/test-u32-prev.c: New file.
28009
28010         Tests for module 'unistr/u16-prev'.
28011         * modules/unistr/u16-prev-tests: New file.
28012         * tests/unistr/test-u16-prev.c: New file.
28013
28014         Tests for module 'unistr/u8-prev'.
28015         * modules/unistr/u8-prev-tests: New file.
28016         * tests/unistr/test-u8-prev.c: New file.
28017
28018         Tests for module 'unistr/u32-next'.
28019         * modules/unistr/u32-next-tests: New file.
28020         * tests/unistr/test-u32-next.c: New file.
28021
28022         Tests for module 'unistr/u16-next'.
28023         * modules/unistr/u16-next-tests: New file.
28024         * tests/unistr/test-u16-next.c: New file.
28025
28026         Tests for module 'unistr/u8-next'.
28027         * modules/unistr/u8-next-tests: New file.
28028         * tests/unistr/test-u8-next.c: New file.
28029
28030         Tests for module 'unistr/u32-strmbtouc'.
28031         * modules/unistr/u32-strmbtouc-tests: New file.
28032         * tests/unistr/test-u32-strmbtouc.c: New file.
28033
28034         Tests for module 'unistr/u16-strmbtouc'.
28035         * modules/unistr/u16-strmbtouc-tests: New file.
28036         * tests/unistr/test-u16-strmbtouc.c: New file.
28037
28038         Tests for module 'unistr/u8-strmbtouc'.
28039         * modules/unistr/u8-strmbtouc-tests: New file.
28040         * tests/unistr/test-u8-strmbtouc.c: New file.
28041
28042         Tests for module 'unistr/u32-strmblen'.
28043         * modules/unistr/u32-strmblen-tests: New file.
28044         * tests/unistr/test-u32-strmblen.c: New file.
28045
28046         Tests for module 'unistr/u16-strmblen'.
28047         * modules/unistr/u16-strmblen-tests: New file.
28048         * tests/unistr/test-u16-strmblen.c: New file.
28049
28050         Tests for module 'unistr/u8-strmblen'.
28051         * modules/unistr/u8-strmblen-tests: New file.
28052         * tests/unistr/test-u8-strmblen.c: New file.
28053
28054         Tests for module 'unistr/u32-cpy-alloc'.
28055         * modules/unistr/u32-cpy-alloc-tests: New file.
28056         * tests/unistr/test-u32-cpy-alloc.c: New file.
28057
28058         Tests for module 'unistr/u16-cpy-alloc'.
28059         * modules/unistr/u16-cpy-alloc-tests: New file.
28060         * tests/unistr/test-u16-cpy-alloc.c: New file.
28061
28062         Tests for module 'unistr/u8-cpy-alloc'.
28063         * modules/unistr/u8-cpy-alloc-tests: New file.
28064         * tests/unistr/test-u8-cpy-alloc.c: New file.
28065         * tests/unistr/test-cpy-alloc.h: New file.
28066
28067         Tests for module 'unistr/u32-mbsnlen'.
28068         * modules/unistr/u32-mbsnlen-tests: New file.
28069         * tests/unistr/test-u32-mbsnlen.c: New file.
28070
28071         Tests for module 'unistr/u16-mbsnlen'.
28072         * modules/unistr/u16-mbsnlen-tests: New file.
28073         * tests/unistr/test-u16-mbsnlen.c: New file.
28074
28075         Tests for module 'unistr/u8-mbsnlen'.
28076         * modules/unistr/u8-mbsnlen-tests: New file.
28077         * tests/unistr/test-u8-mbsnlen.c: New file.
28078
28079         Tests for module 'unistr/u32-chr'.
28080         * modules/unistr/u32-chr-tests: New file.
28081         * tests/unistr/test-u32-chr.c: New file.
28082
28083         Tests for module 'unistr/u16-chr'.
28084         * modules/unistr/u16-chr-tests: New file.
28085         * tests/unistr/test-u16-chr.c: New file.
28086
28087         Tests for module 'unistr/u8-chr'.
28088         * modules/unistr/u8-chr-tests: New file.
28089         * tests/unistr/test-u8-chr.c: New file.
28090         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28091
28092         Tests for module 'unistr/u32-cmp2'.
28093         * modules/unistr/u32-cmp2-tests: New file.
28094         * tests/unistr/test-u32-cmp2.c: New file.
28095
28096         Tests for module 'unistr/u16-cmp2'.
28097         * modules/unistr/u16-cmp2-tests: New file.
28098         * tests/unistr/test-u16-cmp2.c: New file.
28099
28100         Tests for module 'unistr/u8-cmp2'.
28101         * modules/unistr/u8-cmp2-tests: New file.
28102         * tests/unistr/test-u8-cmp2.c: New file.
28103         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28104
28105         Tests for module 'unistr/u32-cmp'.
28106         * modules/unistr/u32-cmp-tests: New file.
28107         * tests/unistr/test-u32-cmp.c: New file.
28108
28109         Tests for module 'unistr/u16-cmp'.
28110         * modules/unistr/u16-cmp-tests: New file.
28111         * tests/unistr/test-u16-cmp.c: New file.
28112
28113         Tests for module 'unistr/u8-cmp'.
28114         * modules/unistr/u8-cmp-tests: New file.
28115         * tests/unistr/test-u8-cmp.c: New file.
28116         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28117
28118         Tests for module 'unistr/u32-set'.
28119         * modules/unistr/u32-set-tests: New file.
28120         * tests/unistr/test-u32-set.c: New file.
28121
28122         Tests for module 'unistr/u16-set'.
28123         * modules/unistr/u16-set-tests: New file.
28124         * tests/unistr/test-u16-set.c: New file.
28125
28126         Tests for module 'unistr/u8-set'.
28127         * modules/unistr/u8-set-tests: New file.
28128         * tests/unistr/test-u8-set.c: New file.
28129         * tests/unistr/test-set.h: New file.
28130
28131         Tests for module 'unistr/u32-move'.
28132         * modules/unistr/u32-move-tests: New file.
28133         * tests/unistr/test-u32-move.c: New file.
28134
28135         Tests for module 'unistr/u16-move'.
28136         * modules/unistr/u16-move-tests: New file.
28137         * tests/unistr/test-u16-move.c: New file.
28138
28139         Tests for module 'unistr/u8-move'.
28140         * modules/unistr/u8-move-tests: New file.
28141         * tests/unistr/test-u8-move.c: New file.
28142         * tests/unistr/test-move.h: New file.
28143
28144         Tests for module 'unistr/u32-cpy'.
28145         * modules/unistr/u32-cpy-tests: New file.
28146         * tests/unistr/test-u32-cpy.c: New file.
28147
28148         Tests for module 'unistr/u16-cpy'.
28149         * modules/unistr/u16-cpy-tests: New file.
28150         * tests/unistr/test-u16-cpy.c: New file.
28151
28152         Tests for module 'unistr/u8-cpy'.
28153         * modules/unistr/u8-cpy-tests: New file.
28154         * tests/unistr/test-u8-cpy.c: New file.
28155         * tests/unistr/test-cpy.h: New file.
28156
28157 2010-01-09  Bruno Haible  <bruno@clisp.org>
28158
28159         Tests for module 'unistr/u32-uctomb'.
28160         * modules/unistr/u32-uctomb-tests: New file.
28161         * tests/unistr/test-u32-uctomb.c: New file.
28162
28163         Tests for module 'unistr/u16-uctomb'.
28164         * modules/unistr/u16-uctomb-tests: New file.
28165         * tests/unistr/test-u16-uctomb.c: New file.
28166
28167         Tests for module 'unistr/u8-uctomb'.
28168         * modules/unistr/u8-uctomb-tests: New file.
28169         * tests/unistr/test-u8-uctomb.c: New file.
28170
28171         Tests for module 'unistr/u32-mbtoucr'.
28172         * modules/unistr/u32-mbtoucr-tests: New file.
28173         * tests/unistr/test-u32-mbtoucr.c: New file.
28174
28175         Tests for module 'unistr/u16-mbtoucr'.
28176         * modules/unistr/u16-mbtoucr-tests: New file.
28177         * tests/unistr/test-u16-mbtoucr.c: New file.
28178
28179         Tests for module 'unistr/u8-mbtoucr'.
28180         * modules/unistr/u8-mbtoucr-tests: New file.
28181         * tests/unistr/test-u8-mbtoucr.c: New file.
28182
28183         Tests for module 'unistr/u32-mbtouc'.
28184         * modules/unistr/u32-mbtouc-tests: New file.
28185         * tests/unistr/test-u32-mbtouc.c: New file.
28186
28187         Tests for module 'unistr/u16-mbtouc'.
28188         * modules/unistr/u16-mbtouc-tests: New file.
28189         * tests/unistr/test-u16-mbtouc.c: New file.
28190
28191         Tests for module 'unistr/u8-mbtouc'.
28192         * modules/unistr/u8-mbtouc-tests: New file.
28193         * tests/unistr/test-u8-mbtouc.c: New file.
28194
28195         Tests for module 'unistr/u32-mbtouc-unsafe'.
28196         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28197         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28198         * tests/unistr/test-u32-mbtouc.h: New file.
28199
28200         Tests for module 'unistr/u16-mbtouc-unsafe'.
28201         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28202         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28203         * tests/unistr/test-u16-mbtouc.h: New file.
28204
28205         Tests for module 'unistr/u8-mbtouc-unsafe'.
28206         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28207         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28208         * tests/unistr/test-u8-mbtouc.h: New file.
28209
28210         Tests for module 'unistr/u32-mblen'.
28211         * modules/unistr/u32-mblen-tests: New file.
28212         * tests/unistr/test-u32-mblen.c: New file.
28213
28214         Tests for module 'unistr/u16-mblen'.
28215         * modules/unistr/u16-mblen-tests: New file.
28216         * tests/unistr/test-u16-mblen.c: New file.
28217
28218         Tests for module 'unistr/u8-mblen'.
28219         * modules/unistr/u8-mblen-tests: New file.
28220         * tests/unistr/test-u8-mblen.c: New file.
28221
28222         Tests for module 'unistr/u32-to-u16'.
28223         * modules/unistr/u32-to-u16-tests: New file.
28224         * tests/unistr/test-u32-to-u16.c: New file.
28225
28226         Tests for module 'unistr/u32-to-u8'.
28227         * modules/unistr/u32-to-u8-tests: New file.
28228         * tests/unistr/test-u32-to-u8.c: New file.
28229
28230         Tests for module 'unistr/u16-to-u32'.
28231         * modules/unistr/u16-to-u32-tests: New file.
28232         * tests/unistr/test-u16-to-u32.c: New file.
28233
28234         Tests for module 'unistr/u16-to-u8'.
28235         * modules/unistr/u16-to-u8-tests: New file.
28236         * tests/unistr/test-u16-to-u8.c: New file.
28237
28238         Tests for module 'unistr/u8-to-u32'.
28239         * modules/unistr/u8-to-u32-tests: New file.
28240         * tests/unistr/test-u8-to-u32.c: New file.
28241
28242         Tests for module 'unistr/u8-to-u16'.
28243         * modules/unistr/u8-to-u16-tests: New file.
28244         * tests/unistr/test-u8-to-u16.c: New file.
28245
28246         Tests for module 'unistr/u32-check'.
28247         * modules/unistr/u32-check-tests: New file.
28248         * tests/unistr/test-u32-check.c: New file.
28249
28250         Tests for module 'unistr/u16-check'.
28251         * modules/unistr/u16-check-tests: New file.
28252         * tests/unistr/test-u16-check.c: New file.
28253
28254         Tests for module 'unistr/u8-check'.
28255         * modules/unistr/u8-check-tests: New file.
28256         * tests/unistr/test-u8-check.c: New file.
28257
28258         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28259         (category_equals): New function.
28260         (main): Add more tests.
28261         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28262
28263         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28264
28265 2010-01-10  Bruno Haible  <bruno@clisp.org>
28266
28267         unistr/u*-strcoll: Try harder to distinguish different strings.
28268         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28269         compare s1 and s2 to see if they are different.
28270
28271 2010-01-10  Bruno Haible  <bruno@clisp.org>
28272
28273         unistr/u*-stpncpy: Fix the return value.
28274         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28275         description of the return value consistent with stpncpy in glibc.
28276         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28277         written non-NUL unit.
28278
28279 2010-01-10  Bruno Haible  <bruno@clisp.org>
28280
28281         unistr/u*-next: Add missing dependencies.
28282         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28283         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28284         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28285
28286 2010-01-10  Bruno Haible  <bruno@clisp.org>
28287
28288         unistr/u8-mbsnlen: Fix return value for incomplete character.
28289         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28290         u8_mblen.
28291         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28292         Remove unistr/u8-mblen.
28293         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28294         u16_mblen.
28295         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28296         Remove unistr/u16-mblen.
28297
28298 2010-01-10  Bruno Haible  <bruno@clisp.org>
28299
28300         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28301         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28302         Reported by Brian Gough <bjg@gnu.org> and
28303         Chris Clayton <chris2553@googlemail.com> via
28304         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28305
28306 2010-01-09  Bruno Haible  <bruno@clisp.org>
28307
28308         unistr/u16-to-u32: Reject invalid input.
28309         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28310         u16_mbtouc.
28311         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28312         Remove unistr/u16-mbtouc.
28313
28314         unistr/u16-to-u8: Reject invalid input.
28315         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28316         u16_mbtouc.
28317         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28318         Remove unistr/u16-mbtouc.
28319
28320         unistr/u8-to-u32: Reject invalid input.
28321         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28322         u8_mbtouc.
28323         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28324         Remove unistr/u8-mbtouc.
28325
28326         unistr/u8-to-u16: Reject invalid input.
28327         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28328         u8_mbtouc.
28329         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28330         Remove unistr/u8-mbtouc.
28331
28332 2010-01-09  Bruno Haible  <bruno@clisp.org>
28333
28334         Tests for module 'getlogin'.
28335         * modules/getlogin-tests: New file.
28336         * tests/test-getlogin.c: New file.
28337
28338         New module 'getlogin'.
28339         * lib/unistd.in.h (getlogin): New declaration.
28340         * lib/getlogin.c: New file.
28341         * m4/getlogin.m4: New file.
28342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28343         HAVE_GETLOGIN.
28344         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28345         HAVE_GETLOGIN.
28346         * modules/getlogin: New file.
28347         * doc/posix-functions/getlogin.texi: Mention the new module.
28348         Reported by John W. Eaton <jwe@gnu.org>.
28349
28350 2010-01-09  Bruno Haible  <bruno@clisp.org>
28351
28352         getlogin_r: Support for native Windows.
28353         * lib/getlogin_r.c: Include <windows.h>
28354         (getlogin_r): Implement for native Windows.
28355         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28356         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28357         via John W. Eaton <jwe@gnu.org>.
28358
28359 2010-01-09  Bruno Haible  <bruno@clisp.org>
28360
28361         getlogin_r: Small fixes.
28362         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28363         succeeds.
28364         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28365         before testing whether getlogin_r is declared. No need to set
28366         HAVE_DECL_GETLOGIN_R to 1.
28367         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28368
28369 2010-01-09  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/unistd.in.h (getlogin_r): Add comment.
28372
28373 2010-01-09  Bruno Haible  <bruno@clisp.org>
28374
28375         Tests for module 'getlogin_r'.
28376         * modules/getlogin_r-tests: New file.
28377         * tests/test-getlogin_r.c: New file.
28378
28379 2010-01-09  Jim Meyering  <meyering@redhat.com>
28380
28381         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28382         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28383         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28384
28385 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28386
28387         * lib/dup2.c (rpl_dup2): Improve comment.
28388
28389 2010-01-08  Eric Blake  <ebb9@byu.net>
28390
28391         maint.mk: allow packages to add makefile @@ exceptions
28392         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28393         (sc_makefile_check): Rename...
28394         (sc_makefile_at_at_check): ...to this, and use hook.
28395
28396         dup2: work around mingw bug
28397         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28398         Reported by Simon Josefsson.
28399
28400 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28401
28402         glob: Fix C++ compilation.
28403         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28404         C++.
28405
28406 2010-01-07  Bruno Haible  <bruno@clisp.org>
28407
28408         Fix indentation of wctype.in.h, broken since 2007-01-06.
28409         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28410
28411 2010-01-07  Bruno Haible  <bruno@clisp.org>
28412
28413         mbslen: Avoid collision with system function.
28414         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28415         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28416         * m4/mbslen.m4: New file.
28417         * modules/mbslen (Files): Add it.
28418         (configure.ac): Invoke gl_MBSLEN.
28419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28420         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28422         via Ian Beckwith <ianb@erislabs.net>.
28423
28424 2010-01-07  Bruno Haible  <bruno@clisp.org>
28425
28426         dirent: Document the last fix.
28427         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28428
28429 2010-01-07  Bruno Haible  <bruno@clisp.org>
28430
28431         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28432         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28433         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28434         va_list are defined.
28435         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28436         Reported by Eric Blake.
28437
28438 2010-01-07  Bruno Haible  <bruno@clisp.org>
28439
28440         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28441         * modules/xlist (Depends-on): Add 'list',
28442         * modules/xoset (Depends-on): Add 'oset'.
28443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28444
28445 2010-01-07  Bruno Haible  <bruno@clisp.org>
28446
28447         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28448         * doc/posix-functions/strncasecmp.texi: Likewise.
28449
28450 2010-01-07  Bruno Haible  <bruno@clisp.org>
28451
28452         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28453
28454 2010-01-07  John W. Eaton  <jwe@octave.org>
28455
28456         wctype: allow C++ use
28457         * lib/wctype.in.h: Add extern "C" block for C++.
28458
28459 2010-01-06  Eric Blake  <ebb9@byu.net>
28460
28461         maint.mk: detect incorrect GFDL usage
28462         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28463
28464 2010-01-06  Jim Meyering  <meyering@redhat.com>
28465         and Eric Blake  <ebb9@byu.net>
28466
28467         maint.mk: ignore multi-line copyright in NEWS
28468         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28469
28470 2010-01-06  Eric Blake  <ebb9@byu.net>
28471
28472         select: add missing dependency
28473         * modules/select-tests (Depends-on): Move sockets dependency...
28474         * modules/select (Depends-on): ...here.
28475         Reported by Ian Beckwith.
28476
28477         doc: regenerate INSTALL
28478         * doc/INSTALL: Reflect recent autoconf update.
28479         * doc/INSTALL.ISO: Likewise.
28480         * doc/INSTALL.UTF-8: Likewise.
28481
28482         pread: fix compilation on glibc
28483         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28484         Reported by Ralf Wildenhues.
28485
28486         dirent: fix test failure
28487         * lib/dirent.in.h (includes): Guarantee ino_t.
28488         Reported by Ralf Wildenhues.
28489
28490 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28491
28492         linkat, renameat: avoid bad free
28493         * lib/at-func2.c (at_func2): Fix typo.
28494         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28495
28496 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28497
28498         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28499         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28500         to avoid failure of symlink test later.
28501
28502 2010-01-06  Eric Blake  <ebb9@byu.net>
28503
28504         stdio, unistd: guarantee ssize_t
28505         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28506         2008 are exposed when needed.
28507         * lib/stdio.in.h (includes): Likewise.
28508         Reported by Ralf Wildenhues.
28509
28510 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28511
28512         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28513         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28514         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28515
28516 2010-01-06  Jim Meyering  <meyering@redhat.com>
28517
28518         readtokens: this module *does* require xalloc.h
28519         It uses only functions that were omitted by the old syntax-check rule.
28520         * lib/readtokens.c: Include "xalloc.h" once again.
28521         * modules/readtokens (Depends-on): Add xalloc.
28522         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28523
28524 2010-01-05  Eric Blake  <ebb9@byu.net>
28525
28526         maint: support 'make announcement' from a VPATH build
28527         * top/maint.mk (announcement): Look for correct NEWS file.
28528
28529 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28530
28531         utimens (fdutimens): ignore a negative FD, per contract
28532         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28533         when we have a valid file descriptor.  Otherwise, using a brand
28534         new glibc (with just-patched futimens that now fails with EBADF)
28535         would cause this function to fail with ENOSYS.
28536         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28537         See also http://bugzilla.redhat.com/552320.
28538
28539 2010-01-05  Eric Blake  <ebb9@byu.net>
28540
28541         strcase: document what it provides
28542         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28543         gnulib module.
28544         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28545         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28546
28547 2010-01-05  Jim Meyering  <meyering@redhat.com>
28548
28549         maint: remove useless inclusions of "xalloc.h"
28550         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28551         * lib/readtokens.c: Likewise.
28552         * lib/same.c: Likewise.
28553         * modules/getloadavg (Depends-on): Remove xalloc.
28554         * modules/readtokens: Likewise.
28555         * modules/same: Likewise.
28556
28557         maint.mk: include 4 more function names in alloca.h-checking regexp
28558         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28559         regexp.  Before, we would give a false-positive (saying alloca.h
28560         is included unnecessarily) when the only uses involved omitted symbols.
28561
28562         xalloc.h: use consistent formatting
28563         * lib/xalloc.h: Move declarations to start in the first column.
28564
28565 2010-01-05  Eric Blake  <ebb9@byu.net>
28566
28567         mkdir: avoid xalloc
28568         * lib/mkdir.c (includes): Drop unused header.
28569         Reported by John W. Eaton.
28570
28571 2010-01-04  Jim Meyering  <meyering@redhat.com>
28572
28573         nl_langinfo: avoid configure-time syntax error
28574         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28575         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28576         the empty string.  Don't let that provoke a shell syntax error.
28577
28578         regcomp, regexec, fnmatch: avoid array bounds read error
28579         * lib/regcomp.c (build_equiv_class): From glibc:
28580         Use only the low 24 bits of a findidx return value as an index
28581         into the weights array.  Patch by Ulrich Drepper:
28582         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28583         * lib/regexec.c (check_node_accept_bytes): Likewise.
28584         * lib/fnmatch_loop.c (FCT): Likewise.
28585
28586         regcomp: skip collseq lookup when there are no rules
28587         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28588         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28589
28590         regcomp: recognize ill-formed { } expressions
28591         * lib/regcomp.c (parse_dup_op): From glibc:
28592         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28593
28594         regcomp: fix typo in comment
28595         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28596         s/satisfy/satisfies/.
28597
28598         regcomp: sync from glibc: remove dead store
28599         * lib/regcomp.c (duplicate_node_closure): Remove useless
28600         search_duplicated_node call and dead store.
28601
28602         regcomp: sync from glibc; always use nl_langinfo
28603         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28604         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28605         * modules/regex (Depends-on): Add nl_langinfo.
28606
28607 2010-01-04  Eric Blake  <ebb9@byu.net>
28608
28609         fdopendir: fix configure test
28610         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28611
28612 2010-01-01  Bruno Haible  <bruno@clisp.org>
28613
28614         wchar: Remove unused configure check.
28615         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28616
28617 2010-01-01  Eric Blake  <ebb9@byu.net>
28618
28619         headers: make check of system header explicit
28620         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28621         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28622         ourselves.
28623         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28625         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28626         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28627         internals.
28628         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28629         missing.
28630         Suggested by Bruno Haible.
28631
28632 2010-01-01  Jim Meyering  <meyering@redhat.com>
28633
28634         ChangeLog: tweak to eliminate unnecessary copyright line
28635         * ChangeLog: Remove a copyright line that was mistakenly updated
28636         by today's update-copyright run.  Reported by Eric Blake.
28637
28638         test-update-copyright: don't let envvar setting cause test failure
28639         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28640
28641 2010-01-01  Bruno Haible  <bruno@clisp.org>
28642
28643         localename: Avoid gcc warning.
28644         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28645         function if it is not used.
28646
28647 2010-01-01  Jim Meyering  <meyering@redhat.com>
28648
28649         update nearly all FSF copyright year lists to include 2010
28650         Use the same procedure as for 2009, outlined in
28651         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28652
28653         version-etc: set COPYRIGHT_YEAR to 2010
28654         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28655
28656 2009-12-31  Eric Blake  <ebb9@byu.net>
28657
28658         doc: correct availability of cygwin 1.5.x getopt
28659         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28660         variables.
28661         * doc/posix-functions/opterr.texi (opterr): Likewise.
28662         * doc/posix-functions/optind.texi (optind): Likewise.
28663         * doc/posix-functions/optopt.texi (optopt): Likewise.
28664         * doc/posix-functions/tzname.texi (tzname): Likewise.
28665
28666         openat: update maintainer
28667         * modules/openat (Maintainer): Add myself.
28668
28669         utimens: avoid shadowing warning
28670         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28671         buffers into one, to avoid shadowing, as well as avoiding a
28672         redundant stat.
28673         Reported by Jim Meyering.
28674
28675         test-dup2: avoid compiler warning
28676         * tests/test-dup2.c (is_inheritable): Only define if used.
28677
28678 2010-01-01  Bruno Haible  <bruno@clisp.org>
28679
28680         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28681         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28682         defined, use wctomb instead of wcrtomb.
28683
28684 2010-01-01  Bruno Haible  <bruno@clisp.org>
28685
28686         iconv: Reject native Solaris iconv.
28687         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28688         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28689
28690 2009-12-31  Bruno Haible  <bruno@clisp.org>
28691
28692         * tests/test-signal.c (main): Remove test of 'SIG'.
28693
28694 2009-12-31  Bruno Haible  <bruno@clisp.org>
28695
28696         spawn: Fix incomplete fix.
28697         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28698         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28699         warnings for GNULIB_POSIXCHECK again.
28700         Reported by Eric Blake.
28701
28702 2009-12-31  Bruno Haible  <bruno@clisp.org>
28703
28704         Avoid namespace pollution on glibc systems.
28705         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28706         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28707         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28708         glibc systems.
28709
28710 2009-12-31  Bruno Haible  <bruno@clisp.org>
28711
28712         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28713         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28714         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28715         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28716         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28717         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28718         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28719
28720 2009-12-31  Bruno Haible  <bruno@clisp.org>
28721
28722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28723         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28724         afterwards.
28725
28726 2009-12-31  Bruno Haible  <bruno@clisp.org>
28727
28728         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28729         SYS_UTSNAME_H.
28730
28731 2009-12-31  Bruno Haible  <bruno@clisp.org>
28732
28733         spawn: Fix misapplied patch.
28734         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28735         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28736         warnings for GNULIB_POSIXCHECK.
28737
28738 2009-12-31  Bruno Haible  <bruno@clisp.org>
28739
28740         times: Update after sys_times changed.
28741         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28742         * modules/times (Files): Add it.
28743         (configure.ac): Invoke gl_FUNC_TIMES.
28744
28745 2009-12-31  Bruno Haible  <bruno@clisp.org>
28746
28747         Use AC_C_INLINE where necessary.
28748         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28749         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28751         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28752         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28753         * m4/mbiter.m4 (gl_MBITER): Likewise.
28754         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28755         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28756         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28757         * modules/u64 (configure.ac): Likewise.
28758
28759 2009-12-31  Bruno Haible  <bruno@clisp.org>
28760
28761         Use AC_C_INLINE instead of module 'inline' where possible.
28762         * modules/inline (Description): Clarify purpose.
28763         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28764         * modules/count-one-bits (Depends-on): Remove inline.
28765         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28766         * modules/openat (Depends-on): Remove inline.
28767         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28768         instead of depending on module 'inline'.
28769         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28770         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28771         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28772         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28773         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28774         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28775         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28776         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28777         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28778         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28779         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28780         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28781         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28782         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28783         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28784         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28785         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28786         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28787         Likewise.
28788         * modules/unictype/property-ascii-hex-digit (Depends-on,
28789         configure.ac): Likewise.
28790         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28791         configure.ac): Likewise.
28792         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28793         configure.ac): Likewise.
28794         * modules/unictype/property-bidi-block-separator (Depends-on,
28795         configure.ac): Likewise.
28796         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28797         configure.ac): Likewise.
28798         * modules/unictype/property-bidi-common-separator (Depends-on,
28799         configure.ac): Likewise.
28800         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28801         Likewise.
28802         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28803         configure.ac): Likewise.
28804         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28805         configure.ac): Likewise.
28806         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28807         configure.ac): Likewise.
28808         * modules/unictype/property-bidi-european-digit (Depends-on,
28809         configure.ac): Likewise.
28810         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28811         configure.ac): Likewise.
28812         * modules/unictype/property-bidi-left-to-right (Depends-on,
28813         configure.ac): Likewise.
28814         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28815         configure.ac): Likewise.
28816         * modules/unictype/property-bidi-other-neutral (Depends-on,
28817         configure.ac): Likewise.
28818         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28819         Likewise.
28820         * modules/unictype/property-bidi-segment-separator (Depends-on,
28821         configure.ac): Likewise.
28822         * modules/unictype/property-bidi-whitespace (Depends-on,
28823         configure.ac): Likewise.
28824         * modules/unictype/property-combining (Depends-on, configure.ac):
28825         Likewise.
28826         * modules/unictype/property-composite (Depends-on, configure.ac):
28827         Likewise.
28828         * modules/unictype/property-currency-symbol (Depends-on,
28829         configure.ac): Likewise.
28830         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28831         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28832         Likewise.
28833         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28834         configure.ac): Likewise.
28835         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28836         Likewise.
28837         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28838         Likewise.
28839         * modules/unictype/property-extender (Depends-on, configure.ac):
28840         Likewise.
28841         * modules/unictype/property-format-control (Depends-on, configure.ac):
28842         Likewise.
28843         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28844         Likewise.
28845         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28846         Likewise.
28847         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28848         Likewise.
28849         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28850         Likewise.
28851         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28852         Likewise.
28853         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28854         Likewise.
28855         * modules/unictype/property-id-start (Depends-on, configure.ac):
28856         Likewise.
28857         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28858         Likewise.
28859         * modules/unictype/property-ids-binary-operator (Depends-on,
28860         configure.ac): Likewise.
28861         * modules/unictype/property-ids-trinary-operator (Depends-on,
28862         configure.ac): Likewise.
28863         * modules/unictype/property-ignorable-control (Depends-on,
28864         configure.ac): Likewise.
28865         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28866         Likewise.
28867         * modules/unictype/property-join-control (Depends-on, configure.ac):
28868         Likewise.
28869         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28870         Likewise.
28871         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28872         Likewise.
28873         * modules/unictype/property-logical-order-exception (Depends-on,
28874         configure.ac): Likewise.
28875         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28876         Likewise.
28877         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28878         * modules/unictype/property-non-break (Depends-on, configure.ac):
28879         Likewise.
28880         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28881         Likewise.
28882         * modules/unictype/property-numeric (Depends-on, configure.ac):
28883         Likewise.
28884         * modules/unictype/property-other-alphabetic (Depends-on,
28885         configure.ac): Likewise.
28886         * modules/unictype/property-other-default-ignorable-code-point
28887         (Depends-on, configure.ac): Likewise.
28888         * modules/unictype/property-other-grapheme-extend (Depends-on,
28889         configure.ac): Likewise.
28890         * modules/unictype/property-other-id-continue (Depends-on,
28891         configure.ac): Likewise.
28892         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28893         Likewise.
28894         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28895         Likewise.
28896         * modules/unictype/property-other-math (Depends-on, configure.ac):
28897         Likewise.
28898         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28899         Likewise.
28900         * modules/unictype/property-paired-punctuation (Depends-on,
28901         configure.ac): Likewise.
28902         * modules/unictype/property-paragraph-separator (Depends-on,
28903         configure.ac): Likewise.
28904         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28905         Likewise.
28906         * modules/unictype/property-pattern-white-space (Depends-on,
28907         configure.ac): Likewise.
28908         * modules/unictype/property-private-use (Depends-on, configure.ac):
28909         Likewise.
28910         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28911         Likewise.
28912         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28913         Likewise.
28914         * modules/unictype/property-radical (Depends-on, configure.ac):
28915         Likewise.
28916         * modules/unictype/property-sentence-terminal (Depends-on,
28917         configure.ac): Likewise.
28918         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28919         Likewise.
28920         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28921         * modules/unictype/property-terminal-punctuation (Depends-on,
28922         configure.ac): Likewise.
28923         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28924         Likewise.
28925         * modules/unictype/property-unassigned-code-value (Depends-on,
28926         configure.ac): Likewise.
28927         * modules/unictype/property-unified-ideograph (Depends-on,
28928         configure.ac): Likewise.
28929         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28930         Likewise.
28931         * modules/unictype/property-variation-selector (Depends-on,
28932         configure.ac): Likewise.
28933         * modules/unictype/property-white-space (Depends-on, configure.ac):
28934         Likewise.
28935         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28936         Likewise.
28937         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28938         Likewise.
28939         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28940         Likewise.
28941         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28942         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28943         Likewise.
28944
28945 2009-12-31  Bruno Haible  <bruno@clisp.org>
28946
28947         Remove unnecessary AC_C_INLINE invocation.
28948         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28949         since 2009-08-21.
28950
28951 2009-12-31  Jim Meyering  <meyering@redhat.com>
28952
28953         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28954         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28955         With this change, we can all remove the gpg_key_ID = ... definition
28956         from our respective cfg.mk files.
28957
28958         maint.mk: create announcement template in ~/, not in /tmp
28959         * top/maint.mk (emit_upload_commands): Adjust.
28960         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28961         Remove temporary file, .ci-msg.
28962
28963 2009-12-31  Eric Blake  <ebb9@byu.net>
28964
28965         link-warning: always build headers with link warnings
28966         * modules/arpa_inet (Makefile.am): Always build replacement
28967         header.
28968         * modules/ctype (Makefile.am): Likewise.
28969         * modules/dirent (Makefile.am): Likewise.
28970         * modules/inttypes (Makefile.am): Likewise.
28971         * modules/langinfo (Makefile.am): Likewise.
28972         * modules/locale (Makefile.am): Likewise.
28973         * modules/spawn (Makefile.am): Likewise.
28974         * modules/sys_file (Makefile.am): Likewise.
28975         * modules/sys_ioctl (Makefile.am): Likewise.
28976         * modules/sys_select (Makefile.am): Likewise.
28977         * modules/sys_socket (Makefile.am): Likewise.
28978         * modules/sys_times (Makefile.am): Likewise.
28979         * modules/sys_utsname (Makefile.am): Likewise.
28980         * modules/sys_wait (Makefile.am): Likewise.
28981         * modules/wchar (Makefile.am): Likewise.
28982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28983         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28984         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28985         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28986         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28987         Likewise.
28988         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28989         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28990         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28991         Likewise.
28992         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28993         Likewise.
28994         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28995         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28996         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28998         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28999         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29000         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29001         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29002         (gl_WCHAR_H_DEFAULTS): Likewise.
29003
29004 2009-12-31  Eric Blake  <ebb9@byu.net>
29005
29006         signal, spawn: use link warnings
29007         * lib/signal.in.h (sigset_t): Make unconditional.
29008         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29009         (sigpending, sigprocmask, sigaction): Add link warnings.
29010         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29011         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29012         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29013         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29014         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29015         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29016         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29017         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29018         (posix_spawn_file_actions_destroy)
29019         (posix_spawn_file_actions_addopen)
29020         (posix_spawn_file_actions_addclose)
29021         (posix_spawn_file_actions_adddup2): Likewise.
29022         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29023         * tests/test-signal.c (main): Enhance test.
29024
29025         spawn: improve wrapper support
29026         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29027         (gl_SPAWN_H_DEFAULTS): New defaults.
29028         * modules/spawn (Makefile.am): Substitute them.
29029         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29030         Only declare if missing or broken.
29031
29032         sys_times, sys_utsname: use include_next
29033         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29034         header.
29035         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29037         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29038         * modules/sys_times (Depends-on): Add include_next.
29039         (Makefile.am): Substitute additional values.
29040         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29041         * lib/sys_times.in.h (includes): Include native header, if
29042         available.
29043         * lib/sys_utsname.in.h (includes): Likewise.
29044         * tests/test-sys_times.c (main): Enhance test.
29045
29046         fdutimensat: revert prior patch
29047         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29048         utimens.h.
29049         Reported by Bruno Haible.
29050
29051 2009-12-30  Eric Blake  <ebb9@byu.net>
29052
29053         sys_wait: drop link-warning dependency
29054         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29055         link-warning efforts.
29056         * lib/sys_wait.in.h: Likewise.
29057
29058         fdutimensat: remove bogus dependency
29059         * modules/fdutimensat (Depends-on): Drop inline.
29060
29061         unistd: fix typo
29062         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29063
29064 2009-12-30  Bruno Haible  <bruno@clisp.org>
29065
29066         Fix compilation error with Solaris cc.
29067         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29068         * lib/unicase/u16-is-invariant.c: Likewise.
29069         * lib/unicase/u32-is-invariant.c: Likewise.
29070         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29071
29072 2009-12-30  Bruno Haible  <bruno@clisp.org>
29073
29074         Fix test crash.
29075         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29076         locales.
29077         Reported by Simon Josefsson <simon@josefsson.org>.
29078
29079 2009-12-30  Bruno Haible  <bruno@clisp.org>
29080
29081         Fix compilation error on most platforms.
29082         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29083         Reported by Simon Josefsson <simon@josefsson.org>
29084         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29085
29086 2009-12-30  Eric Blake  <ebb9@byu.net>
29087
29088         futimens, utimensat: work around ntfs-3g bug
29089         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29090         a ctime bug is present, and expand workaround to cover ntfs-3g.
29091         * lib/utimens.c (fdutimens, lutimens): Likewise.
29092         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29093         (validate_timespec): Adjust return value.
29094         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29095         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29096         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29097
29098 2009-12-29  Eric Blake  <ebb9@byu.net>
29099
29100         link-warning: make usage consistent
29101         * modules/ctype (Depends-on): Add link-warning.
29102         (Makefile.am): Update rules accordingly.
29103         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29104         * modules/locale (Depends-on, Makefile.am): Likewise.
29105         * modules/sys_file (Makefile.am): Likewise.
29106         * modules/getopt-posix (Makefile.am): Delete unused link warning
29107         efforts.
29108         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29109         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29110         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29111         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29112
29113         stdio: remove unused variables
29114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29115         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29116         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29117
29118         tests: test more substitute headers
29119         * modules/ctype-tests: New file.
29120         * modules/dirent-tests: Likewise.
29121         * modules/spawn-tests: Likewise.
29122         * modules/sys_file-tests: Likewise.
29123         * modules/sys_ioctl-tests: Likewise.
29124         * modules/sys_wait-tests: Likewise.
29125         * tests/test-ctype.c: Likewise.
29126         * tests/test-dirent.c: Likewise.
29127         * tests/test-spawn.c: Likewise.
29128         * tests/test-sys_file.c: Likewise.
29129         * tests/test-sys_ioctl.c: Likewise.
29130         * tests/test-sys_wait.c: Likewise.
29131         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29132         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29133         whether or not flock is in use.
29134
29135         tests: remove License section from module
29136         * modules/arpa_inet-tests: Remove unneeded section.
29137         * modules/byteswap-tests: Likewise.
29138         * modules/ceilf-tests: Likewise.
29139         * modules/ceill-tests: Likewise.
29140         * modules/crypto/des-tests: Likewise.
29141         * modules/crypto/gc-arcfour-tests: Likewise.
29142         * modules/crypto/gc-arctwo-tests: Likewise.
29143         * modules/crypto/gc-des-tests: Likewise.
29144         * modules/crypto/gc-hmac-md5-tests: Likewise.
29145         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29146         * modules/crypto/gc-md2-tests: Likewise.
29147         * modules/crypto/gc-md4-tests: Likewise.
29148         * modules/crypto/gc-md5-tests: Likewise.
29149         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29150         * modules/crypto/gc-rijndael-tests: Likewise.
29151         * modules/crypto/gc-sha1-tests: Likewise.
29152         * modules/crypto/gc-tests: Likewise.
29153         * modules/crypto/md2-tests: Likewise.
29154         * modules/crypto/md4-tests: Likewise.
29155         * modules/fcntl-h-tests: Likewise.
29156         * modules/floorf-tests: Likewise.
29157         * modules/floorl-tests: Likewise.
29158         * modules/frexp-nolibm-tests: Likewise.
29159         * modules/frexp-tests: Likewise.
29160         * modules/frexpl-nolibm-tests: Likewise.
29161         * modules/frexpl-tests: Likewise.
29162         * modules/getaddrinfo-tests: Likewise.
29163         * modules/inttypes-tests: Likewise.
29164         * modules/isfinite-tests: Likewise.
29165         * modules/isinf-tests: Likewise.
29166         * modules/ldexpl-tests: Likewise.
29167         * modules/locale-tests: Likewise.
29168         * modules/math-tests: Likewise.
29169         * modules/netdb-tests: Likewise.
29170         * modules/netinet_in-tests: Likewise.
29171         * modules/printf-frexp-tests: Likewise.
29172         * modules/printf-frexpl-tests: Likewise.
29173         * modules/priv-set-tests: Likewise.
29174         * modules/random_r-tests: Likewise.
29175         * modules/round-tests: Likewise.
29176         * modules/roundf-tests: Likewise.
29177         * modules/roundl-tests: Likewise.
29178         * modules/search-tests: Likewise.
29179         * modules/select-tests: Likewise.
29180         * modules/signal-tests: Likewise.
29181         * modules/stdbool-tests: Likewise.
29182         * modules/stddef-tests: Likewise.
29183         * modules/stdint-tests: Likewise.
29184         * modules/stdio-tests: Likewise.
29185         * modules/stdlib-tests: Likewise.
29186         * modules/string-tests: Likewise.
29187         * modules/strings-tests: Likewise.
29188         * modules/sys_select-tests: Likewise.
29189         * modules/sys_socket-tests: Likewise.
29190         * modules/sys_stat-tests: Likewise.
29191         * modules/sys_time-tests: Likewise.
29192         * modules/sys_utsname-tests: Likewise.
29193         * modules/sysexits-tests: Likewise.
29194         * modules/time-tests: Likewise.
29195         * modules/trunc-tests: Likewise.
29196         * modules/truncf-tests: Likewise.
29197         * modules/truncl-tests: Likewise.
29198         * modules/tsearch-tests: Likewise.
29199         * modules/unistd-tests: Likewise.
29200         * modules/wchar-tests: Likewise.
29201         * modules/wctype-tests: Likewise.
29202
29203         tests: fix license on several tests
29204         * tests/test-des.c: Update to GPLv3+.
29205         * tests/test-flock.c: Likewise.
29206         * tests/test-fsync.c: Likewise.
29207         * tests/test-futimens.h: Likewise.
29208         * tests/test-gc-arcfour.c: Likewise.
29209         * tests/test-gc-arctwo.c: Likewise.
29210         * tests/test-gc-des.c: Likewise.
29211         * tests/test-gc-hmac-md5.c: Likewise.
29212         * tests/test-gc-hmac-sha1.c: Likewise.
29213         * tests/test-gc-md2.c: Likewise.
29214         * tests/test-gc-md4.c: Likewise.
29215         * tests/test-gc-md5.c: Likewise.
29216         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29217         * tests/test-gc-rijndael.c: Likewise.
29218         * tests/test-gc-sha1.c: Likewise.
29219         * tests/test-gc.c: Likewise.
29220         * tests/test-getcwd.c: Likewise.
29221         * tests/test-link.c: Likewise.
29222         * tests/test-link.h: Likewise.
29223         * tests/test-lutimens.h: Likewise.
29224         * tests/test-md2.c: Likewise.
29225         * tests/test-md4.c: Likewise.
29226         * tests/test-mkdir.h: Likewise.
29227         * tests/test-rename.c: Likewise.
29228         * tests/test-rename.h: Likewise.
29229         * tests/test-safe-alloc.c: Likewise.
29230         * tests/test-utimens-common.h: Likewise.
29231         * tests/test-utimens.h: Likewise.
29232
29233         maint: sync license texts
29234         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29235         * doc/gpl-3.0.texi: Revert copyright year update.
29236         * doc/lgpl-3.0.texi: Likewise.
29237
29238 2009-12-29  Jim Meyering  <meyering@redhat.com>
29239
29240         update nearly all FSF copyright year lists to include 2009
29241         The files named by the following are exempted:
29242             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29243               test -f "$dst" && { echo "$dst"; continue; }
29244               test -d "$dst" || continue
29245               echo "$dst"/$(basename "$src")
29246             done > exempt
29247             git ls-files tests/unictype >> exempt
29248         In the remaining files, convert to all-interval notation if
29249         - there is already at least one year interval like 2000-2003
29250         - the file is maintained by me
29251         - the file is in lib/uni*/, where that style already prevails
29252         Otherwise, use update-copyright's default.
29253
29254 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29255         and Eric Blake  <ebb9@byu.net>
29256
29257         tests: don't require debug system() to pass
29258         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29259         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29260         * tests/test-unlink.h (test_unlink_func): Likewise.
29261         * tests/test-fstatat.c (main): ...into callers.
29262         * tests/test-lstat.c (main): Likewise.
29263         * tests/test-rmdir.c (main): Likewise.
29264         * tests/test-unlink.c (main): Likewise.
29265         * tests/test-unlinkat.c (main): Likewise.
29266         * tests/test-areadlink-with-size.c (main): Don't require a
29267         debug-only system call to pass, aiding cross-testing to mingw.
29268         * tests/test-areadlink.c (main): Likewise.
29269         * tests/test-areadlinkat-with-size.c (main): Likewise.
29270         * tests/test-areadlinkat.c (main): Likewise.
29271         * tests/test-canonicalize-lgpl.c (main): Likewise.
29272         * tests/test-canonicalize.c (main): Likewise.
29273         * tests/test-chown.c (main): Likewise.
29274         * tests/test-fchownat.c (main): Likewise.
29275         * tests/test-lchown.c (main): Likewise.
29276         * tests/test-fdutimensat.c (main): Likewise.
29277         * tests/test-futimens.c (main): Likewise.
29278         * tests/test-link.c (main): Likewise.
29279         * tests/test-linkat.c (main): Likewise.
29280         * tests/test-mkdir.c (main): Likewise.
29281         * tests/test-mkdirat.c (main): Likewise.
29282         * tests/test-mkfifo.c (main): Likewise.
29283         * tests/test-mkfifoat.c (main): Likewise.
29284         * tests/test-mknod.c (main): Likewise.
29285         * tests/test-readlink.c (main): Likewise.
29286         * tests/test-remove.c (main): Likewise.
29287         * tests/test-rename.c (main): Likewise.
29288         * tests/test-renameat.c (main): Likewise.
29289         * tests/test-symlink.c (main): Likewise.
29290         * tests/test-symlinkat.c (main): Likewise.
29291         * tests/test-utimens.c (main): Likewise.
29292         * tests/test-utimensat.c (main): Likewise.
29293
29294 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29295
29296         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29297         on $(UNUSED_PARAMETER_H) to avoid build failure.
29298
29299 2009-12-28  Jim Meyering  <meyering@redhat.com>
29300
29301         update-copyright: you may specify a max. line length other than 72
29302         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29303
29304         maint: use consistent FSF copyright line syntax
29305         * lib/posixtm.c: Add missing comma in FSF copyright line.
29306         * lib/posixtm.h: Likewise.
29307         * lib/getugroups.c: Add missing ", Inc.".
29308
29309         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29310         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29311         FSF copyright line.  Remove trailing blanks.
29312
29313 2009-12-28  Eric Blake  <ebb9@byu.net>
29314
29315         test-dup2: reduce dependencies
29316         * modules/cloexec (Configure.ac): Set witness.
29317         * modules/dup2-tests (Depends-on): Drop cloexec.
29318         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29319         not present.
29320         Suggested by Bruno Haible.
29321
29322 2009-12-26  Bruno Haible  <bruno@clisp.org>
29323
29324         Remove an unneeded dependency.
29325         * modules/fseterr (Depends-on): Remove dup2.
29326
29327 2009-12-26  Eric Blake  <ebb9@byu.net>
29328
29329         tests: use macros.h in more places
29330         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29331         (ASSERT_STREAM): Provide default of stderr.
29332         * tests/test-dirent-safer.c: Include macros.h, using alternate
29333         stream for assertions.
29334         * tests/test-dup-safer.c: Likewise.
29335         * tests/test-freopen-safer.c: Likewise.
29336         * tests/test-getopt.c: Likewise.
29337         * tests/test-openat-safer.c: Likewise.
29338         * tests/test-pipe.c: Likewise.
29339         * tests/test-popen-safer.c: Likewise.
29340         * modules/dirent-safer-tests (Files): Include macros.h.
29341         * modules/unistd-safer-tests (Files): Likewise.
29342         * modules/freopen-safer-tests (Files): Likewise.
29343         * modules/getopt-posix-tests (Files): Likewise.
29344         * modules/openat-safer-tests (Files): Likewise.
29345         * modules/pipe-tests (Files): Likewise.
29346
29347 2009-12-26  Bruno Haible  <bruno@clisp.org>
29348
29349         javacomp: Portability fix.
29350         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29351         that it also works on Solaris.
29352
29353 2009-12-26  Bruno Haible  <bruno@clisp.org>
29354
29355         localename: Fix storage allocation of gl_locale_name_thread's result.
29356         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29357         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29358         all platforms that have 'uselocale'.
29359         (gl_locale_name_thread_unsafe): New function, extracted from
29360         gl_locale_name_thread.
29361         (gl_locale_name_thread): Call struniq on all platforms that have
29362         'uselocale'.
29363         * tests/test-localename.c (test_locale_name_thread): Check that the
29364         resulting strings are permanently allocated.
29365         * modules/localename-tests (Depends-on): Add strdup.
29366
29367 2009-12-26  Bruno Haible  <bruno@clisp.org>
29368
29369         * tests/test-localename.c (categories): Fill in the strings.
29370
29371 2009-12-26  Jim Meyering  <meyering@redhat.com>
29372
29373         isdir: complete the removal of m4/isdir.m4
29374         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29375
29376         isdir: clean up, since at least grep still uses it
29377         * lib/isdir.c: Include "isdir.h".
29378         (S_ISDIR): Remove now-unneeded definition.
29379         * modules/isdir (Files): Add lib/isdir.h.
29380         * lib/isdir.h: New file, with declaration.
29381         * m4/isdir.m4: Remove file -- unneeded.
29382
29383 2009-12-25  Bruno Haible  <bruno@clisp.org>
29384
29385         selinux-h: Make generated .h files standalone.
29386         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29387         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29388         * lib/se-selinux.in.h: Likewise.
29389         * modules/selinux-h (Depends-on): Add unused-parameter.
29390         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29391         selinux/selinux.h and selinux/context.h.
29392         Suggested by Eric Blake.
29393
29394 2009-12-25  Bruno Haible  <bruno@clisp.org>
29395
29396         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29397         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29398         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29399         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29400         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29401
29402 2009-12-24  Bruno Haible  <bruno@clisp.org>
29403
29404         openat: Fix warning.
29405         * lib/openat-proc.c: Include <unistd.h>.
29406
29407 2009-12-24  Bruno Haible  <bruno@clisp.org>
29408
29409         New module 'unused-parameter'.
29410         * build-aux/unused-parameter.h: New file, extracted from earlier
29411         gnulib-common.m4.
29412         * modules/unused-parameter: New file.
29413         * lib/unistr.h: Include unused-parameter.h.
29414         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29415         _GL_UNUSED.
29416         * modules/unistr/base (Depends-on): Add unused-parameter.
29417
29418 2009-12-24  Bruno Haible  <bruno@clisp.org>
29419
29420         Add missing dependencies to 'extensions' module.
29421         * m4/extensions.m4: Add comment.
29422         * modules/accept4 (Depends-on): Add extensions.
29423         * modules/dup3 (Depends-on): Likewise.
29424         * modules/fcntl (Depends-on): Likewise.
29425         * modules/futimens (Depends-on): Likewise.
29426         * modules/mknod (Depends-on): Likewise.
29427         * modules/pipe2 (Depends-on): Likewise.
29428         * modules/stat-time (Depends-on): Likewise.
29429         * modules/strcasestr-simple (Depends-on): Likewise.
29430         * modules/strsignal (Depends-on): Likewise.
29431         * modules/utimensat (Depends-on): Likewise.
29432         * modules/localcharset (Depends-on): Likewise. Needed because of
29433         gl_FCNTL_O_FLAGS.
29434         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29435         AC_TYPE_MBSTATE_T.
29436         * modules/wcsnrtombs (Depends-on): Likewise.
29437         * modules/wcsrtombs (Depends-on): Likewise.
29438
29439 2009-12-24  Bruno Haible  <bruno@clisp.org>
29440
29441         binary-io: Avoid gcc warning due to SET_BINARY.
29442         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29443         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29444
29445 2009-12-24  Bruno Haible  <bruno@clisp.org>
29446
29447         Avoid future namespace pollution on glibc systems.
29448         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29449         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29450         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29451         glibc systems.
29452
29453 2009-12-24  Bruno Haible  <bruno@clisp.org>
29454
29455         Refactor common macros used in tests.
29456         * tests/macros.h: New file.
29457         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29458         and/or <stdlib.h>, if appropriate.
29459         (ASSERT, SIZEOF): Remove macros.
29460         * tests/test-areadlink-with-size.c: Likewise.
29461         * tests/test-areadlinkat.c: Likewise.
29462         * tests/test-areadlinkat-with-size.c: Likewise.
29463         * tests/test-argmatch.c: Likewise.
29464         * tests/test-argv-iter.c: Likewise.
29465         * tests/test-array-mergesort.c: Likewise.
29466         * tests/test-array_list.c: Likewise.
29467         * tests/test-array_oset.c: Likewise.
29468         * tests/test-avltree_list.c: Likewise.
29469         * tests/test-avltree_oset.c: Likewise.
29470         * tests/test-avltreehash_list.c: Likewise.
29471         * tests/test-base64.c: Likewise.
29472         * tests/test-binary-io.c: Likewise.
29473         * tests/test-bitrotate.c: Likewise.
29474         * tests/test-btowc.c: Likewise.
29475         * tests/test-byteswap.c: Likewise.
29476         * tests/test-c-ctype.c: Likewise.
29477         * tests/test-c-stack.c: Likewise.
29478         * tests/test-c-strcasecmp.c: Likewise.
29479         * tests/test-c-strcasestr.c: Likewise.
29480         * tests/test-c-strncasecmp.c: Likewise.
29481         * tests/test-c-strstr.c: Likewise.
29482         * tests/test-canonicalize-lgpl.c: Likewise.
29483         * tests/test-canonicalize.c: Likewise.
29484         * tests/test-carray_list.c: Likewise.
29485         * tests/test-ceilf1.c: Likewise.
29486         * tests/test-ceilf2.c: Likewise.
29487         * tests/test-ceill.c: Likewise.
29488         * tests/test-chown.c: Likewise.
29489         * tests/test-cloexec.c: Likewise.
29490         * tests/test-copy-acl.c: Likewise.
29491         * tests/test-copy-file.c: Likewise.
29492         * tests/test-count-one-bits.c: Likewise.
29493         * tests/test-dprintf-posix.c: Likewise.
29494         * tests/test-dup2.c: Likewise.
29495         * tests/test-dup3.c: Likewise.
29496         * tests/test-duplocale.c: Likewise.
29497         * tests/test-fbufmode.c: Likewise.
29498         * tests/test-fchdir.c: Likewise.
29499         * tests/test-fchownat.c: Likewise.
29500         * tests/test-fcntl-safer.c: Likewise.
29501         * tests/test-fcntl.c: Likewise.
29502         * tests/test-fdopendir.c: Likewise.
29503         * tests/test-fdutimensat.c: Likewise.
29504         * tests/test-fflush2.c: Likewise.
29505         * tests/test-file-has-acl.c: Likewise.
29506         * tests/test-filevercmp.c: Likewise.
29507         * tests/test-flock.c: Likewise.
29508         * tests/test-floorf1.c: Likewise.
29509         * tests/test-floorf2.c: Likewise.
29510         * tests/test-floorl.c: Likewise.
29511         * tests/test-fnmatch.c: Likewise.
29512         * tests/test-fopen.h: Likewise.
29513         * tests/test-fpending.c: Likewise.
29514         * tests/test-fprintf-posix.c: Likewise.
29515         * tests/test-fpurge.c: Likewise.
29516         * tests/test-freadable.c: Likewise.
29517         * tests/test-freadahead.c: Likewise.
29518         * tests/test-freading.c: Likewise.
29519         * tests/test-freadptr.c: Likewise.
29520         * tests/test-freadptr2.c: Likewise.
29521         * tests/test-freadseek.c: Likewise.
29522         * tests/test-freopen.c: Likewise.
29523         * tests/test-frexp.c: Likewise.
29524         * tests/test-frexpl.c: Likewise.
29525         * tests/test-fseek.c: Likewise.
29526         * tests/test-fseeko.c: Likewise.
29527         * tests/test-fstatat.c: Likewise.
29528         * tests/test-fstrcmp.c: Likewise.
29529         * tests/test-fsync.c: Likewise.
29530         * tests/test-ftell.c: Likewise.
29531         * tests/test-ftello.c: Likewise.
29532         * tests/test-func.c: Likewise.
29533         * tests/test-futimens.c: Likewise.
29534         * tests/test-fwritable.c: Likewise.
29535         * tests/test-fwriting.c: Likewise.
29536         * tests/test-getcwd.c: Likewise.
29537         * tests/test-getdate.c: Likewise.
29538         * tests/test-getdelim.c: Likewise.
29539         * tests/test-getdtablesize.c: Likewise.
29540         * tests/test-getgroups.c: Likewise.
29541         * tests/test-getline.c: Likewise.
29542         * tests/test-getndelim2.c: Likewise.
29543         * tests/test-glob.c: Likewise.
29544         * tests/test-hash.c: Likewise.
29545         * tests/test-i-ring.c: Likewise.
29546         * tests/test-iconv-utf.c: Likewise.
29547         * tests/test-iconv.c: Likewise.
29548         * tests/test-idpriv-drop.c: Likewise.
29549         * tests/test-idpriv-droptemp.c: Likewise.
29550         * tests/test-inet_ntop.c: Likewise.
29551         * tests/test-inet_pton.c: Likewise.
29552         * tests/test-isblank.c: Likewise.
29553         * tests/test-isfinite.c: Likewise.
29554         * tests/test-isinf.c: Likewise.
29555         * tests/test-isnan.c: Likewise.
29556         * tests/test-isnand.h: Likewise.
29557         * tests/test-isnanf.h: Likewise.
29558         * tests/test-isnanl.h: Likewise.
29559         * tests/test-lchown.c: Likewise.
29560         * tests/test-ldexpl.c: Likewise.
29561         * tests/test-link.c: Likewise.
29562         * tests/test-linkat.c: Likewise.
29563         * tests/test-linked_list.c: Likewise.
29564         * tests/test-linkedhash_list.c: Likewise.
29565         * tests/test-localename.c: Likewise.
29566         * tests/test-lseek.c: Likewise.
29567         * tests/test-lstat.c: Likewise.
29568         * tests/test-mbmemcasecmp.c: Likewise.
29569         * tests/test-mbmemcasecoll.c: Likewise.
29570         * tests/test-mbrtowc.c: Likewise.
29571         * tests/test-mbscasecmp.c: Likewise.
29572         * tests/test-mbscasestr1.c: Likewise.
29573         * tests/test-mbscasestr2.c: Likewise.
29574         * tests/test-mbscasestr3.c: Likewise.
29575         * tests/test-mbscasestr4.c: Likewise.
29576         * tests/test-mbschr.c: Likewise.
29577         * tests/test-mbscspn.c: Likewise.
29578         * tests/test-mbsinit.c: Likewise.
29579         * tests/test-mbsncasecmp.c: Likewise.
29580         * tests/test-mbsnrtowcs.c: Likewise.
29581         * tests/test-mbspbrk.c: Likewise.
29582         * tests/test-mbspcasecmp.c: Likewise.
29583         * tests/test-mbsrchr.c: Likewise.
29584         * tests/test-mbsrtowcs.c: Likewise.
29585         * tests/test-mbsspn.c: Likewise.
29586         * tests/test-mbsstr1.c: Likewise.
29587         * tests/test-mbsstr2.c: Likewise.
29588         * tests/test-mbsstr3.c: Likewise.
29589         * tests/test-memchr.c: Likewise.
29590         * tests/test-memchr2.c: Likewise.
29591         * tests/test-memcmp.c: Likewise.
29592         * tests/test-memmem.c: Likewise.
29593         * tests/test-memrchr.c: Likewise.
29594         * tests/test-mkdir.c: Likewise.
29595         * tests/test-mkdirat.c: Likewise.
29596         * tests/test-mkfifo.c: Likewise.
29597         * tests/test-mkfifoat.c: Likewise.
29598         * tests/test-mknod.c: Likewise.
29599         * tests/test-nanosleep.c: Likewise.
29600         * tests/test-nl_langinfo.c: Likewise.
29601         * tests/test-obstack-printf.c: Likewise.
29602         * tests/test-open.c: Likewise.
29603         * tests/test-openat.c: Likewise.
29604         * tests/test-pipe-filter-gi1.c: Likewise.
29605         * tests/test-pipe-filter-gi2-main.c: Likewise.
29606         * tests/test-pipe-filter-ii1.c: Likewise.
29607         * tests/test-pipe-filter-ii2-main.c: Likewise.
29608         * tests/test-pipe2.c: Likewise.
29609         * tests/test-popen.h: Likewise.
29610         * tests/test-posixtm.c: Likewise.
29611         * tests/test-pread.c: Likewise.
29612         * tests/test-printf-frexp.c: Likewise.
29613         * tests/test-printf-frexpl.c: Likewise.
29614         * tests/test-printf-posix.c: Likewise.
29615         * tests/test-priv-set.c: Likewise.
29616         * tests/test-quotearg.c: Likewise.
29617         * tests/test-random_r.c: Likewise.
29618         * tests/test-rawmemchr.c: Likewise.
29619         * tests/test-rbtree_list.c: Likewise.
29620         * tests/test-rbtree_oset.c: Likewise.
29621         * tests/test-rbtreehash_list.c: Likewise.
29622         * tests/test-readlink.c: Likewise.
29623         * tests/test-remove.c: Likewise.
29624         * tests/test-rename.c: Likewise.
29625         * tests/test-renameat.c: Likewise.
29626         * tests/test-rmdir.c: Likewise.
29627         * tests/test-round1.c: Likewise.
29628         * tests/test-roundf1.c: Likewise.
29629         * tests/test-roundl.c: Likewise.
29630         * tests/test-safe-alloc.c: Likewise.
29631         * tests/test-sameacls.c: Likewise.
29632         * tests/test-set-mode-acl.c: Likewise.
29633         * tests/test-setenv.c: Likewise.
29634         * tests/test-sigaction.c: Likewise.
29635         * tests/test-signbit.c: Likewise.
29636         * tests/test-sleep.c: Likewise.
29637         * tests/test-snprintf-posix.c: Likewise.
29638         * tests/test-snprintf.c: Likewise.
29639         * tests/test-sprintf-posix.c: Likewise.
29640         * tests/test-stat-time.c: Likewise.
29641         * tests/test-stat.c: Likewise.
29642         * tests/test-strcasestr.c: Likewise.
29643         * tests/test-strchrnul.c: Likewise.
29644         * tests/test-strerror.c: Likewise.
29645         * tests/test-striconv.c: Likewise.
29646         * tests/test-striconveh.c: Likewise.
29647         * tests/test-striconveha.c: Likewise.
29648         * tests/test-strsignal.c: Likewise.
29649         * tests/test-strstr.c: Likewise.
29650         * tests/test-strtod.c: Likewise.
29651         * tests/test-strverscmp.c: Likewise.
29652         * tests/test-symlink.c: Likewise.
29653         * tests/test-symlinkat.c: Likewise.
29654         * tests/test-trunc1.c: Likewise.
29655         * tests/test-trunc2.c: Likewise.
29656         * tests/test-truncf1.c: Likewise.
29657         * tests/test-truncf2.c: Likewise.
29658         * tests/test-truncl.c: Likewise.
29659         * tests/test-uname.c: Likewise.
29660         * tests/test-unlink.c: Likewise.
29661         * tests/test-unlinkat.c: Likewise.
29662         * tests/test-unsetenv.c: Likewise.
29663         * tests/test-usleep.c: Likewise.
29664         * tests/test-utimens.c: Likewise.
29665         * tests/test-utimensat.c: Likewise.
29666         * tests/test-vasnprintf-posix.c: Likewise.
29667         * tests/test-vasnprintf-posix2.c: Likewise.
29668         * tests/test-vasnprintf.c: Likewise.
29669         * tests/test-vasprintf-posix.c: Likewise.
29670         * tests/test-vasprintf.c: Likewise.
29671         * tests/test-vdprintf-posix.c: Likewise.
29672         * tests/test-vfprintf-posix.c: Likewise.
29673         * tests/test-vprintf-posix.c: Likewise.
29674         * tests/test-vsnprintf-posix.c: Likewise.
29675         * tests/test-vsnprintf.c: Likewise.
29676         * tests/test-vsprintf-posix.c: Likewise.
29677         * tests/test-wcrtomb.c: Likewise.
29678         * tests/test-wcsnrtombs.c: Likewise.
29679         * tests/test-wcsrtombs.c: Likewise.
29680         * tests/test-wctype.c: Likewise.
29681         * tests/test-wcwidth.c: Likewise.
29682         * tests/test-xfprintf-posix.c: Likewise.
29683         * tests/test-xmemdup0.c: Likewise.
29684         * tests/test-xprintf-posix.c: Likewise.
29685         * tests/test-xvasprintf.c: Likewise.
29686         * tests/unicase/test-locale-language.c: Likewise.
29687         * tests/unicase/test-mapping-part1.h: Likewise.
29688         * tests/unicase/test-predicate-part1.h: Likewise.
29689         * tests/unicase/test-u8-casecmp.c: Likewise.
29690         * tests/unicase/test-u8-casecoll.c: Likewise.
29691         * tests/unicase/test-u8-casefold.c: Likewise.
29692         * tests/unicase/test-u8-is-cased.c: Likewise.
29693         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29694         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29695         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29696         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29697         * tests/unicase/test-u8-tolower.c: Likewise.
29698         * tests/unicase/test-u8-totitle.c: Likewise.
29699         * tests/unicase/test-u8-toupper.c: Likewise.
29700         * tests/unicase/test-u16-casecmp.c: Likewise.
29701         * tests/unicase/test-u16-casecoll.c: Likewise.
29702         * tests/unicase/test-u16-casefold.c: Likewise.
29703         * tests/unicase/test-u16-is-cased.c: Likewise.
29704         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29705         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29706         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29707         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29708         * tests/unicase/test-u16-tolower.c: Likewise.
29709         * tests/unicase/test-u16-totitle.c: Likewise.
29710         * tests/unicase/test-u16-toupper.c: Likewise.
29711         * tests/unicase/test-u32-casecmp.c: Likewise.
29712         * tests/unicase/test-u32-casecoll.c: Likewise.
29713         * tests/unicase/test-u32-casefold.c: Likewise.
29714         * tests/unicase/test-u32-is-cased.c: Likewise.
29715         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29716         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29717         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29718         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29719         * tests/unicase/test-u32-tolower.c: Likewise.
29720         * tests/unicase/test-u32-totitle.c: Likewise.
29721         * tests/unicase/test-u32-toupper.c: Likewise.
29722         * tests/unicase/test-ulc-casecmp.c: Likewise.
29723         * tests/unicase/test-ulc-casecoll.c: Likewise.
29724         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29725         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29726         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29727         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29728         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29729         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29730         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29731         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29732         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29733         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29734         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29735         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29736         * tests/unictype/test-bidi_byname.c: Likewise.
29737         * tests/unictype/test-bidi_name.c: Likewise.
29738         * tests/unictype/test-bidi_of.c: Likewise.
29739         * tests/unictype/test-bidi_test.c: Likewise.
29740         * tests/unictype/test-block_list.c: Likewise.
29741         * tests/unictype/test-block_of.c: Likewise.
29742         * tests/unictype/test-block_test.c: Likewise.
29743         * tests/unictype/test-categ_and.c: Likewise.
29744         * tests/unictype/test-categ_and_not.c: Likewise.
29745         * tests/unictype/test-categ_byname.c: Likewise.
29746         * tests/unictype/test-categ_name.c: Likewise.
29747         * tests/unictype/test-categ_none.c: Likewise.
29748         * tests/unictype/test-categ_of.c: Likewise.
29749         * tests/unictype/test-categ_or.c: Likewise.
29750         * tests/unictype/test-categ_test_withtable.c: Likewise.
29751         * tests/unictype/test-combining.c: Likewise.
29752         * tests/unictype/test-decdigit.c: Likewise.
29753         * tests/unictype/test-digit.c: Likewise.
29754         * tests/unictype/test-mirror.c: Likewise.
29755         * tests/unictype/test-numeric.c: Likewise.
29756         * tests/unictype/test-pr_byname.c: Likewise.
29757         * tests/unictype/test-pr_test.c: Likewise.
29758         * tests/unictype/test-predicate-part1.h: Likewise.
29759         * tests/unictype/test-scripts.c: Likewise.
29760         * tests/unictype/test-sy_c_ident.c: Likewise.
29761         * tests/unictype/test-sy_java_ident.c: Likewise.
29762         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29763         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29764         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29765         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29766         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29767         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29768         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29769         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29770         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29771         * tests/uninorm/test-compat-decomposition.c: Likewise.
29772         * tests/uninorm/test-composition.c: Likewise.
29773         * tests/uninorm/test-decomposing-form.c: Likewise.
29774         * tests/uninorm/test-decomposition.c: Likewise.
29775         * tests/uninorm/test-u8-nfc.c: Likewise.
29776         * tests/uninorm/test-u8-nfd.c: Likewise.
29777         * tests/uninorm/test-u8-nfkc.c: Likewise.
29778         * tests/uninorm/test-u8-nfkd.c: Likewise.
29779         * tests/uninorm/test-u8-normcmp.c: Likewise.
29780         * tests/uninorm/test-u8-normcoll.c: Likewise.
29781         * tests/uninorm/test-u16-nfc.c: Likewise.
29782         * tests/uninorm/test-u16-nfd.c: Likewise.
29783         * tests/uninorm/test-u16-nfkc.c: Likewise.
29784         * tests/uninorm/test-u16-nfkd.c: Likewise.
29785         * tests/uninorm/test-u16-normcmp.c: Likewise.
29786         * tests/uninorm/test-u16-normcoll.c: Likewise.
29787         * tests/uninorm/test-u32-nfc.c: Likewise.
29788         * tests/uninorm/test-u32-nfd.c: Likewise.
29789         * tests/uninorm/test-u32-nfkc.c: Likewise.
29790         * tests/uninorm/test-u32-nfkd.c: Likewise.
29791         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29792         * tests/uninorm/test-u32-normcmp.c: Likewise.
29793         * tests/uninorm/test-u32-normcoll.c: Likewise.
29794         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29795         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29796         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29797         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29798         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29799         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29800         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29801         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29802         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29803         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29804         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29805         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29806         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29807         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29808         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29809         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29810         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29811         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29812         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29813         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29814         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29815         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29816         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29817         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29818         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29819         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29820         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29821         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29822         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29823         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29824         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29825         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29826         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29827         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29828         * tests/uniwidth/test-u8-width.c: Likewise.
29829         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29830         * tests/uniwidth/test-u16-width.c: Likewise.
29831         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29832         * tests/uniwidth/test-u32-width.c: Likewise.
29833         * tests/uniwidth/test-uc_width.c: Likewise.
29834         * tests/uniwidth/test-uc_width2.c: Likewise.
29835         * modules/acl-tests (Files): Add tests/macros.h.
29836         * modules/areadlink-tests (Files): Likewise.
29837         * modules/areadlink-with-size-tests (Files): Likewise.
29838         * modules/areadlinkat-tests (Files): Likewise.
29839         * modules/areadlinkat-with-size-tests (Files): Likewise.
29840         * modules/argmatch-tests (Files): Likewise.
29841         * modules/argv-iter-tests (Files): Likewise.
29842         * modules/array-list-tests (Files): Likewise.
29843         * modules/array-mergesort-tests (Files): Likewise.
29844         * modules/array-oset-tests (Files): Likewise.
29845         * modules/avltree-list-tests (Files): Likewise.
29846         * modules/avltree-oset-tests (Files): Likewise.
29847         * modules/avltreehash-list-tests (Files): Likewise.
29848         * modules/base64-tests (Files): Likewise.
29849         * modules/binary-io-tests (Files): Likewise.
29850         * modules/bitrotate-tests (Files): Likewise.
29851         * modules/btowc-tests (Files): Likewise.
29852         * modules/byteswap-tests (Files): Likewise.
29853         * modules/c-ctype-tests (Files): Likewise.
29854         * modules/c-stack-tests (Files): Likewise.
29855         * modules/c-strcase-tests (Files): Likewise.
29856         * modules/c-strcasestr-tests (Files): Likewise.
29857         * modules/c-strstr-tests (Files): Likewise.
29858         * modules/canonicalize-lgpl-tests (Files): Likewise.
29859         * modules/canonicalize-tests (Files): Likewise.
29860         * modules/carray-list-tests (Files): Likewise.
29861         * modules/ceilf-tests (Files): Likewise.
29862         * modules/ceill-tests (Files): Likewise.
29863         * modules/chown-tests (Files): Likewise.
29864         * modules/cloexec-tests (Files): Likewise.
29865         * modules/copy-file-tests (Files): Likewise.
29866         * modules/count-one-bits-tests (Files): Likewise.
29867         * modules/dprintf-posix-tests (Files): Likewise.
29868         * modules/dup2-tests (Files): Likewise.
29869         * modules/dup3-tests (Files): Likewise.
29870         * modules/duplocale-tests (Files): Likewise.
29871         * modules/fbufmode-tests (Files): Likewise.
29872         * modules/fchdir-tests (Files): Likewise.
29873         * modules/fcntl-safer-tests (Files): Likewise.
29874         * modules/fcntl-tests (Files): Likewise.
29875         * modules/fdopendir-tests (Files): Likewise.
29876         * modules/fdutimensat-tests (Files): Likewise.
29877         * modules/fflush-tests (Files): Likewise.
29878         * modules/filevercmp-tests (Files): Likewise.
29879         * modules/flock-tests (Files): Likewise.
29880         * modules/floorf-tests (Files): Likewise.
29881         * modules/floorl-tests (Files): Likewise.
29882         * modules/fnmatch-tests (Files): Likewise.
29883         * modules/fopen-safer-tests (Files): Likewise.
29884         * modules/fopen-tests (Files): Likewise.
29885         * modules/fpending-tests (Files): Likewise.
29886         * modules/fprintf-posix-tests (Files): Likewise.
29887         * modules/fpurge-tests (Files): Likewise.
29888         * modules/freadable-tests (Files): Likewise.
29889         * modules/freadahead-tests (Files): Likewise.
29890         * modules/freading-tests (Files): Likewise.
29891         * modules/freadptr-tests (Files): Likewise.
29892         * modules/freadseek-tests (Files): Likewise.
29893         * modules/freopen-tests (Files): Likewise.
29894         * modules/frexp-nolibm-tests (Files): Likewise.
29895         * modules/frexp-tests (Files): Likewise.
29896         * modules/frexpl-nolibm-tests (Files): Likewise.
29897         * modules/frexpl-tests (Files): Likewise.
29898         * modules/fseek-tests (Files): Likewise.
29899         * modules/fseeko-tests (Files): Likewise.
29900         * modules/fstrcmp-tests (Files): Likewise.
29901         * modules/fsync-tests (Files): Likewise.
29902         * modules/ftell-tests (Files): Likewise.
29903         * modules/ftello-tests (Files): Likewise.
29904         * modules/func-tests (Files): Likewise.
29905         * modules/futimens-tests (Files): Likewise.
29906         * modules/fwritable-tests (Files): Likewise.
29907         * modules/fwriting-tests (Files): Likewise.
29908         * modules/getcwd-tests (Files): Likewise.
29909         * modules/getdate-tests (Files): Likewise.
29910         * modules/getdelim-tests (Files): Likewise.
29911         * modules/getdtablesize-tests (Files): Likewise.
29912         * modules/getgroups-tests (Files): Likewise.
29913         * modules/getline-tests (Files): Likewise.
29914         * modules/getndelim2-tests (Files): Likewise.
29915         * modules/glob-tests (Files): Likewise.
29916         * modules/hash-tests (Files): Likewise.
29917         * modules/i-ring-tests (Files): Likewise.
29918         * modules/iconv-tests (Files): Likewise.
29919         * modules/iconv_open-utf-tests (Files): Likewise.
29920         * modules/idpriv-drop-tests (Files): Likewise.
29921         * modules/idpriv-droptemp-tests (Files): Likewise.
29922         * modules/inet_ntop-tests (Files): Likewise.
29923         * modules/inet_pton-tests (Files): Likewise.
29924         * modules/isblank-tests (Files): Likewise.
29925         * modules/isfinite-tests (Files): Likewise.
29926         * modules/isinf-tests (Files): Likewise.
29927         * modules/isnan-tests (Files): Likewise.
29928         * modules/isnand-nolibm-tests (Files): Likewise.
29929         * modules/isnand-tests (Files): Likewise.
29930         * modules/isnanf-nolibm-tests (Files): Likewise.
29931         * modules/isnanf-tests (Files): Likewise.
29932         * modules/isnanl-nolibm-tests (Files): Likewise.
29933         * modules/isnanl-tests (Files): Likewise.
29934         * modules/lchown-tests (Files): Likewise.
29935         * modules/ldexpl-tests (Files): Likewise.
29936         * modules/link-tests (Files): Likewise.
29937         * modules/linkat-tests (Files): Likewise.
29938         * modules/linked-list-tests (Files): Likewise.
29939         * modules/linkedhash-list-tests (Files): Likewise.
29940         * modules/localename-tests (Files): Likewise.
29941         * modules/lseek-tests (Files): Likewise.
29942         * modules/lstat-tests (Files): Likewise.
29943         * modules/mbmemcasecmp-tests (Files): Likewise.
29944         * modules/mbmemcasecoll-tests (Files): Likewise.
29945         * modules/mbrtowc-tests (Files): Likewise.
29946         * modules/mbscasecmp-tests (Files): Likewise.
29947         * modules/mbscasestr-tests (Files): Likewise.
29948         * modules/mbschr-tests (Files): Likewise.
29949         * modules/mbscspn-tests (Files): Likewise.
29950         * modules/mbsinit-tests (Files): Likewise.
29951         * modules/mbsncasecmp-tests (Files): Likewise.
29952         * modules/mbsnrtowcs-tests (Files): Likewise.
29953         * modules/mbspbrk-tests (Files): Likewise.
29954         * modules/mbspcasecmp-tests (Files): Likewise.
29955         * modules/mbsrchr-tests (Files): Likewise.
29956         * modules/mbsrtowcs-tests (Files): Likewise.
29957         * modules/mbsspn-tests (Files): Likewise.
29958         * modules/mbsstr-tests (Files): Likewise.
29959         * modules/memchr-tests (Files): Likewise.
29960         * modules/memchr2-tests (Files): Likewise.
29961         * modules/memcmp-tests (Files): Likewise.
29962         * modules/memmem-tests (Files): Likewise.
29963         * modules/memrchr-tests (Files): Likewise.
29964         * modules/mkdir-tests (Files): Likewise.
29965         * modules/mkfifo-tests (Files): Likewise.
29966         * modules/mkfifoat-tests (Files): Likewise.
29967         * modules/mknod-tests (Files): Likewise.
29968         * modules/nanosleep-tests (Files): Likewise.
29969         * modules/nl_langinfo-tests (Files): Likewise.
29970         * modules/obstack-printf-tests (Files): Likewise.
29971         * modules/open-tests (Files): Likewise.
29972         * modules/openat-tests (Files): Likewise.
29973         * modules/pipe-filter-gi-tests (Files): Likewise.
29974         * modules/pipe-filter-ii-tests (Files): Likewise.
29975         * modules/pipe2-tests (Files): Likewise.
29976         * modules/popen-safer-tests (Files): Likewise.
29977         * modules/popen-tests (Files): Likewise.
29978         * modules/posixtm-tests (Files): Likewise.
29979         * modules/pread-tests (Files): Likewise.
29980         * modules/printf-frexp-tests (Files): Likewise.
29981         * modules/printf-frexpl-tests (Files): Likewise.
29982         * modules/printf-posix-tests (Files): Likewise.
29983         * modules/priv-set-tests (Files): Likewise.
29984         * modules/quotearg-tests (Files): Likewise.
29985         * modules/random_r-tests (Files): Likewise.
29986         * modules/rawmemchr-tests (Files): Likewise.
29987         * modules/rbtree-list-tests (Files): Likewise.
29988         * modules/rbtree-oset-tests (Files): Likewise.
29989         * modules/rbtreehash-list-tests (Files): Likewise.
29990         * modules/readlink-tests (Files): Likewise.
29991         * modules/remove-tests (Files): Likewise.
29992         * modules/rename-tests (Files): Likewise.
29993         * modules/renameat-tests (Files): Likewise.
29994         * modules/rmdir-tests (Files): Likewise.
29995         * modules/round-tests (Files): Likewise.
29996         * modules/roundf-tests (Files): Likewise.
29997         * modules/roundl-tests (Files): Likewise.
29998         * modules/safe-alloc-tests (Files): Likewise.
29999         * modules/setenv-tests (Files): Likewise.
30000         * modules/sigaction-tests (Files): Likewise.
30001         * modules/signbit-tests (Files): Likewise.
30002         * modules/sleep-tests (Files): Likewise.
30003         * modules/snprintf-posix-tests (Files): Likewise.
30004         * modules/snprintf-tests (Files): Likewise.
30005         * modules/sprintf-posix-tests (Files): Likewise.
30006         * modules/stat-tests (Files): Likewise.
30007         * modules/stat-time-tests (Files): Likewise.
30008         * modules/strcasestr-tests (Files): Likewise.
30009         * modules/strchrnul-tests (Files): Likewise.
30010         * modules/strerror-tests (Files): Likewise.
30011         * modules/striconv-tests (Files): Likewise.
30012         * modules/striconveh-tests (Files): Likewise.
30013         * modules/striconveha-tests (Files): Likewise.
30014         * modules/strsignal-tests (Files): Likewise.
30015         * modules/strstr-tests (Files): Likewise.
30016         * modules/strtod-tests (Files): Likewise.
30017         * modules/strverscmp-tests (Files): Likewise.
30018         * modules/symlink-tests (Files): Likewise.
30019         * modules/symlinkat-tests (Files): Likewise.
30020         * modules/trunc-tests (Files): Likewise.
30021         * modules/truncf-tests (Files): Likewise.
30022         * modules/truncl-tests (Files): Likewise.
30023         * modules/uname-tests (Files): Likewise.
30024         * modules/unicase/cased-tests (Files): Likewise.
30025         * modules/unicase/ignorable-tests (Files): Likewise.
30026         * modules/unicase/locale-language-tests (Files): Likewise.
30027         * modules/unicase/tolower-tests (Files): Likewise.
30028         * modules/unicase/totitle-tests (Files): Likewise.
30029         * modules/unicase/toupper-tests (Files): Likewise.
30030         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30031         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30032         * modules/unicase/u8-casefold-tests (Files): Likewise.
30033         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30034         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30035         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30036         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30037         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30038         * modules/unicase/u8-tolower-tests (Files): Likewise.
30039         * modules/unicase/u8-totitle-tests (Files): Likewise.
30040         * modules/unicase/u8-toupper-tests (Files): Likewise.
30041         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30042         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30043         * modules/unicase/u16-casefold-tests (Files): Likewise.
30044         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30045         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30046         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30047         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30048         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30049         * modules/unicase/u16-tolower-tests (Files): Likewise.
30050         * modules/unicase/u16-totitle-tests (Files): Likewise.
30051         * modules/unicase/u16-toupper-tests (Files): Likewise.
30052         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30053         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30054         * modules/unicase/u32-casefold-tests (Files): Likewise.
30055         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30056         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30057         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30058         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30059         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30060         * modules/unicase/u32-tolower-tests (Files): Likewise.
30061         * modules/unicase/u32-totitle-tests (Files): Likewise.
30062         * modules/unicase/u32-toupper-tests (Files): Likewise.
30063         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30064         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30065         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30066         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30067         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30068         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30069         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30070         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30071         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30072         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30073         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30074         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30075         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30076         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30077         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30078         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30079         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30080         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30081         * modules/unictype/block-list-tests (Files): Likewise.
30082         * modules/unictype/block-of-tests (Files): Likewise.
30083         * modules/unictype/block-test-tests (Files): Likewise.
30084         * modules/unictype/category-C-tests (Files): Likewise.
30085         * modules/unictype/category-Cc-tests (Files): Likewise.
30086         * modules/unictype/category-Cf-tests (Files): Likewise.
30087         * modules/unictype/category-Cn-tests (Files): Likewise.
30088         * modules/unictype/category-Co-tests (Files): Likewise.
30089         * modules/unictype/category-Cs-tests (Files): Likewise.
30090         * modules/unictype/category-L-tests (Files): Likewise.
30091         * modules/unictype/category-Ll-tests (Files): Likewise.
30092         * modules/unictype/category-Lm-tests (Files): Likewise.
30093         * modules/unictype/category-Lo-tests (Files): Likewise.
30094         * modules/unictype/category-Lt-tests (Files): Likewise.
30095         * modules/unictype/category-Lu-tests (Files): Likewise.
30096         * modules/unictype/category-M-tests (Files): Likewise.
30097         * modules/unictype/category-Mc-tests (Files): Likewise.
30098         * modules/unictype/category-Me-tests (Files): Likewise.
30099         * modules/unictype/category-Mn-tests (Files): Likewise.
30100         * modules/unictype/category-N-tests (Files): Likewise.
30101         * modules/unictype/category-Nd-tests (Files): Likewise.
30102         * modules/unictype/category-Nl-tests (Files): Likewise.
30103         * modules/unictype/category-No-tests (Files): Likewise.
30104         * modules/unictype/category-P-tests (Files): Likewise.
30105         * modules/unictype/category-Pc-tests (Files): Likewise.
30106         * modules/unictype/category-Pd-tests (Files): Likewise.
30107         * modules/unictype/category-Pe-tests (Files): Likewise.
30108         * modules/unictype/category-Pf-tests (Files): Likewise.
30109         * modules/unictype/category-Pi-tests (Files): Likewise.
30110         * modules/unictype/category-Po-tests (Files): Likewise.
30111         * modules/unictype/category-Ps-tests (Files): Likewise.
30112         * modules/unictype/category-S-tests (Files): Likewise.
30113         * modules/unictype/category-Sc-tests (Files): Likewise.
30114         * modules/unictype/category-Sk-tests (Files): Likewise.
30115         * modules/unictype/category-Sm-tests (Files): Likewise.
30116         * modules/unictype/category-So-tests (Files): Likewise.
30117         * modules/unictype/category-Z-tests (Files): Likewise.
30118         * modules/unictype/category-Zl-tests (Files): Likewise.
30119         * modules/unictype/category-Zp-tests (Files): Likewise.
30120         * modules/unictype/category-Zs-tests (Files): Likewise.
30121         * modules/unictype/category-and-not-tests (Files): Likewise.
30122         * modules/unictype/category-and-tests (Files): Likewise.
30123         * modules/unictype/category-byname-tests (Files): Likewise.
30124         * modules/unictype/category-name-tests (Files): Likewise.
30125         * modules/unictype/category-none-tests (Files): Likewise.
30126         * modules/unictype/category-of-tests (Files): Likewise.
30127         * modules/unictype/category-or-tests (Files): Likewise.
30128         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30129         * modules/unictype/combining-class-tests (Files): Likewise.
30130         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30131         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30132         * modules/unictype/ctype-blank-tests (Files): Likewise.
30133         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30134         * modules/unictype/ctype-digit-tests (Files): Likewise.
30135         * modules/unictype/ctype-graph-tests (Files): Likewise.
30136         * modules/unictype/ctype-lower-tests (Files): Likewise.
30137         * modules/unictype/ctype-print-tests (Files): Likewise.
30138         * modules/unictype/ctype-punct-tests (Files): Likewise.
30139         * modules/unictype/ctype-space-tests (Files): Likewise.
30140         * modules/unictype/ctype-upper-tests (Files): Likewise.
30141         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30142         * modules/unictype/decimal-digit-tests (Files): Likewise.
30143         * modules/unictype/digit-tests (Files): Likewise.
30144         * modules/unictype/mirror-tests (Files): Likewise.
30145         * modules/unictype/numeric-tests (Files): Likewise.
30146         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30147         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30148         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30149         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30150         Likewise.
30151         * modules/unictype/property-bidi-block-separator-tests (Files):
30152         Likewise.
30153         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30154         Likewise.
30155         * modules/unictype/property-bidi-common-separator-tests (Files):
30156         Likewise.
30157         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30158         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30159         Likewise.
30160         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30161         Likewise.
30162         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30163         Likewise.
30164         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30165         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30166         Likewise.
30167         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30168         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30169         Likewise.
30170         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30171         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30172         * modules/unictype/property-bidi-segment-separator-tests (Files):
30173         Likewise.
30174         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30175         * modules/unictype/property-byname-tests (Files): Likewise.
30176         * modules/unictype/property-combining-tests (Files): Likewise.
30177         * modules/unictype/property-composite-tests (Files): Likewise.
30178         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30179         * modules/unictype/property-dash-tests (Files): Likewise.
30180         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30181         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30182         Likewise.
30183         * modules/unictype/property-deprecated-tests (Files): Likewise.
30184         * modules/unictype/property-diacritic-tests (Files): Likewise.
30185         * modules/unictype/property-extender-tests (Files): Likewise.
30186         * modules/unictype/property-format-control-tests (Files): Likewise.
30187         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30188         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30189         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30190         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30191         * modules/unictype/property-hyphen-tests (Files): Likewise.
30192         * modules/unictype/property-id-continue-tests (Files): Likewise.
30193         * modules/unictype/property-id-start-tests (Files): Likewise.
30194         * modules/unictype/property-ideographic-tests (Files): Likewise.
30195         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30196         * modules/unictype/property-ids-trinary-operator-tests (Files):
30197         Likewise.
30198         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30199         * modules/unictype/property-iso-control-tests (Files): Likewise.
30200         * modules/unictype/property-join-control-tests (Files): Likewise.
30201         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30202         * modules/unictype/property-line-separator-tests (Files): Likewise.
30203         * modules/unictype/property-logical-order-exception-tests (Files):
30204         Likewise.
30205         * modules/unictype/property-lowercase-tests (Files): Likewise.
30206         * modules/unictype/property-math-tests (Files): Likewise.
30207         * modules/unictype/property-non-break-tests (Files): Likewise.
30208         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30209         * modules/unictype/property-numeric-tests (Files): Likewise.
30210         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30211         * modules/unictype/property-other-default-ignorable-code-point-tests
30212         (Files): Likewise.
30213         * modules/unictype/property-other-grapheme-extend-tests (Files):
30214         Likewise.
30215         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30216         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30217         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30218         * modules/unictype/property-other-math-tests (Files): Likewise.
30219         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30220         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30221         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30222         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30223         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30224         * modules/unictype/property-private-use-tests (Files): Likewise.
30225         * modules/unictype/property-punctuation-tests (Files): Likewise.
30226         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30227         * modules/unictype/property-radical-tests (Files): Likewise.
30228         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30229         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30230         * modules/unictype/property-space-tests (Files): Likewise.
30231         * modules/unictype/property-terminal-punctuation-tests (Files):
30232         Likewise.
30233         * modules/unictype/property-test-tests (Files): Likewise.
30234         * modules/unictype/property-titlecase-tests (Files): Likewise.
30235         * modules/unictype/property-unassigned-code-value-tests (Files):
30236         Likewise.
30237         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30238         * modules/unictype/property-uppercase-tests (Files): Likewise.
30239         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30240         * modules/unictype/property-white-space-tests (Files): Likewise.
30241         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30242         * modules/unictype/property-xid-start-tests (Files): Likewise.
30243         * modules/unictype/property-zero-width-tests (Files): Likewise.
30244         * modules/unictype/scripts-tests (Files): Likewise.
30245         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30246         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30247         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30248         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30249         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30250         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30251         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30252         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30253         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30254         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30255         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30256         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30257         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30258         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30259         * modules/uninorm/composition-tests (Files): Likewise.
30260         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30261         * modules/uninorm/decomposition-tests (Files): Likewise.
30262         * modules/uninorm/filter-tests (Files): Likewise.
30263         * modules/uninorm/nfc-tests (Files): Likewise.
30264         * modules/uninorm/nfd-tests (Files): Likewise.
30265         * modules/uninorm/nfkc-tests (Files): Likewise.
30266         * modules/uninorm/nfkd-tests (Files): Likewise.
30267         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30268         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30269         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30270         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30271         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30272         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30273         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30274         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30275         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30276         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30277         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30278         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30279         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30280         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30281         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30282         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30283         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30284         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30285         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30286         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30287         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30288         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30289         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30290         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30291         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30292         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30293         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30294         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30295         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30296         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30297         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30298         * modules/uniwidth/u8-width-tests (Files): Likewise.
30299         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30300         * modules/uniwidth/u16-width-tests (Files): Likewise.
30301         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30302         * modules/uniwidth/u32-width-tests (Files): Likewise.
30303         * modules/uniwidth/width-tests (Files): Likewise.
30304         * modules/unlink-tests (Files): Likewise.
30305         * modules/unsetenv-tests (Files): Likewise.
30306         * modules/usleep-tests (Files): Likewise.
30307         * modules/utimens-tests (Files): Likewise.
30308         * modules/utimensat-tests (Files): Likewise.
30309         * modules/vasnprintf-posix-tests (Files): Likewise.
30310         * modules/vasnprintf-tests (Files): Likewise.
30311         * modules/vasprintf-posix-tests (Files): Likewise.
30312         * modules/vasprintf-tests (Files): Likewise.
30313         * modules/vdprintf-posix-tests (Files): Likewise.
30314         * modules/vfprintf-posix-tests (Files): Likewise.
30315         * modules/vprintf-posix-tests (Files): Likewise.
30316         * modules/vsnprintf-posix-tests (Files): Likewise.
30317         * modules/vsnprintf-tests (Files): Likewise.
30318         * modules/vsprintf-posix-tests (Files): Likewise.
30319         * modules/wcrtomb-tests (Files): Likewise.
30320         * modules/wcsnrtombs-tests (Files): Likewise.
30321         * modules/wcsrtombs-tests (Files): Likewise.
30322         * modules/wctype-tests (Files): Likewise.
30323         * modules/wcwidth-tests (Files): Likewise.
30324         * modules/xmemdup0-tests (Files): Likewise.
30325         * modules/xprintf-posix-tests (Files): Likewise.
30326         * modules/xvasprintf-tests (Files): Likewise.
30327
30328 2009-12-24  Eric Blake  <ebb9@byu.net>
30329
30330         test-nanosleep: fix typo
30331         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30332         patch.
30333         Reported by Bruno Haible.
30334
30335 2009-12-24  Bruno Haible  <bruno@clisp.org>
30336
30337         Reduce namespace pollution on glibc systems.
30338         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30339         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30340         systems.
30341         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30342         <getopt.h> on glibc systems.
30343         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30344         systems.
30345         * lib/fcntl.c: Include <unistd.h> here instead.
30346
30347 2009-12-24  Bruno Haible  <bruno@clisp.org>
30348
30349         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30350
30351 2009-12-24  Eric Blake  <ebb9@byu.net>
30352
30353         tests: add signature checks
30354         * tests/signature.h (SIGNATURE_CHECK): New file.
30355         * modules/atexit-tests (Files): Use it.
30356         * modules/btowc-tests (Files): Likewise.
30357         * modules/canonicalize-lgpl-tests (Files): Likewise.
30358         * modules/ceilf-tests (Files): Likewise.
30359         * modules/ceill-tests (Files): Likewise.
30360         * modules/chown-tests (Files): Likewise.
30361         * modules/dprintf-posix-tests (Files): Likewise.
30362         * modules/dup2-tests (Files): Likewise.
30363         * modules/dup3-tests (Files): Likewise.
30364         * modules/duplocale-tests (Files): Likewise.
30365         * modules/fchdir-tests (Files): Likewise.
30366         * modules/fcntl-tests (Files): Likewise.
30367         * modules/fdopendir-tests (Files): Likewise.
30368         * modules/fflush-tests (Files): Likewise.
30369         * modules/flock-tests (Files): Likewise.
30370         * modules/floorf-tests (Files): Likewise.
30371         * modules/floorl-tests (Files): Likewise.
30372         * modules/fnmatch-tests (Files): Likewise.
30373         * modules/fopen-tests (Files): Likewise.
30374         * modules/fprintf-posix-tests (Files): Likewise.
30375         * modules/freopen-tests (Files): Likewise.
30376         * modules/frexp-nolibm-tests (Files): Likewise.
30377         * modules/frexp-tests (Files): Likewise.
30378         * modules/frexpl-nolibm-tests (Files): Likewise.
30379         * modules/frexpl-tests (Files): Likewise.
30380         * modules/fseek-tests (Files): Likewise.
30381         * modules/fseeko-tests (Files): Likewise.
30382         * modules/fsync-tests (Files): Likewise.
30383         * modules/ftell-tests (Files): Likewise.
30384         * modules/ftello-tests (Files): Likewise.
30385         * modules/futimens-tests (Files): Likewise.
30386         * modules/getaddrinfo-tests (Files): Likewise.
30387         * modules/getcwd-tests (Files): Likewise.
30388         * modules/getdelim-tests (Files): Likewise.
30389         * modules/getdtablesize-tests (Files): Likewise.
30390         * modules/getgroups-tests (Files): Likewise.
30391         * modules/gethostname-tests (Files): Likewise.
30392         * modules/getline-tests (Files): Likewise.
30393         * modules/getopt-posix-tests (Files): Likewise.
30394         * modules/gettimeofday-tests (Files): Likewise.
30395         * modules/glob-tests (Files): Likewise.
30396         * modules/iconv-tests (Files): Likewise.
30397         * modules/inet_ntop-tests (Files): Likewise.
30398         * modules/inet_pton-tests (Files): Likewise.
30399         * modules/isblank-tests (Files): Likewise.
30400         * modules/lchown-tests (Files): Likewise.
30401         * modules/ldexpl-tests (Files): Likewise.
30402         * modules/link-tests (Files): Likewise.
30403         * modules/linkat-tests (Files): Likewise.
30404         * modules/lseek-tests (Files): Likewise.
30405         * modules/lstat-tests (Files): Likewise.
30406         * modules/mbrtowc-tests (Files): Likewise.
30407         * modules/mbsinit-tests (Files): Likewise.
30408         * modules/mbsnrtowcs-tests (Files): Likewise.
30409         * modules/mbsrtowcs-tests (Files): Likewise.
30410         * modules/memchr-tests (Files): Likewise.
30411         * modules/memcmp-tests (Files): Likewise.
30412         * modules/memmem-tests (Files): Likewise.
30413         * modules/memrchr-tests (Files): Likewise.
30414         * modules/mkdir-tests (Files): Likewise.
30415         * modules/mkfifo-tests (Files): Likewise.
30416         * modules/mkfifoat-tests (Files): Likewise.
30417         * modules/mknod-tests (Files): Likewise.
30418         * modules/nanosleep-tests (Files): Likewise.
30419         * modules/nl_langinfo-tests (Files): Likewise.
30420         * modules/obstack-printf-tests (Files): Likewise.
30421         * modules/open-tests (Files): Likewise.
30422         * modules/openat-tests (Files): Likewise.
30423         * modules/perror-tests (Files): Likewise.
30424         * modules/pipe2-tests (Files): Likewise.
30425         * modules/poll-tests (Files): Likewise.
30426         * modules/popen-tests (Files): Likewise.
30427         * modules/posix_spawn-tests (Files): Likewise.
30428         * modules/posix_spawnp-tests (Files): Likewise.
30429         * modules/pread-tests (Files): Likewise.
30430         * modules/printf-posix-tests (Files): Likewise.
30431         * modules/pty-tests (Files): Likewise.
30432         * modules/random_r-tests (Files): Likewise.
30433         * modules/rawmemchr-tests (Files): Likewise.
30434         * modules/readlink-tests (Files): Likewise.
30435         * modules/remove-tests (Files): Likewise.
30436         * modules/rename-tests (Files): Likewise.
30437         * modules/renameat-tests (Files): Likewise.
30438         * modules/rmdir-tests (Files): Likewise.
30439         * modules/round-tests (Files): Likewise.
30440         * modules/roundf-tests (Files): Likewise.
30441         * modules/roundl-tests (Files): Likewise.
30442         * modules/select-tests (Files): Likewise.
30443         * modules/setenv-tests (Files): Likewise.
30444         * modules/sigaction-tests (Files): Likewise.
30445         * modules/sleep-tests (Files): Likewise.
30446         * modules/snprintf-posix-tests (Files): Likewise.
30447         * modules/snprintf-tests (Files): Likewise.
30448         * modules/sprintf-posix-tests (Files): Likewise.
30449         * modules/stat-tests (Files): Likewise.
30450         * modules/strcasestr-tests (Files): Likewise.
30451         * modules/strchrnul-tests (Files): Likewise.
30452         * modules/strerror-tests (Files): Likewise.
30453         * modules/strsignal-tests (Files): Likewise.
30454         * modules/strstr-tests (Files): Likewise.
30455         * modules/strtod-tests (Files): Likewise.
30456         * modules/strverscmp-tests (Files): Likewise.
30457         * modules/symlink-tests (Files): Likewise.
30458         * modules/symlinkat-tests (Files): Likewise.
30459         * modules/times-tests (Files): Likewise.
30460         * modules/trunc-tests (Files): Likewise.
30461         * modules/truncf-tests (Files): Likewise.
30462         * modules/truncl-tests (Files): Likewise.
30463         * modules/tsearch-tests (Files): Likewise.
30464         * modules/uname-tests (Files): Likewise.
30465         * modules/unlink-tests (Files): Likewise.
30466         * modules/unsetenv-tests (Files): Likewise.
30467         * modules/usleep-tests (Files): Likewise.
30468         * modules/utimensat-tests (Files): Likewise.
30469         * modules/vasprintf-tests (Files): Likewise.
30470         * modules/vdprintf-posix-tests (Files): Likewise.
30471         * modules/vfprintf-posix-tests (Files): Likewise.
30472         * modules/vprintf-posix-tests (Files): Likewise.
30473         * modules/vsnprintf-posix-tests (Files): Likewise.
30474         * modules/vsnprintf-tests (Files): Likewise.
30475         * modules/vsprintf-posix-tests (Files): Likewise.
30476         * modules/wcrtomb-tests (Files): Likewise.
30477         * modules/wcsnrtombs-tests (Files): Likewise.
30478         * modules/wcsrtombs-tests (Files): Likewise.
30479         * modules/wcwidth-tests (Files): Likewise.
30480         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30481         * tests/test-isinf.c (isinf): Likewise.
30482         * tests/test-isnan.c (isnan): Likewise.
30483         * tests/test-signbit.c (signbit): Likewise.
30484         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30485         declaration, either as macro or with correct signature.
30486         (select): Ensure function under test is declared with correct
30487         signature in correct header.
30488         * tests/test-atexit.c (atexit): Likewise.
30489         * tests/test-btowc.c (btowc): Likewise.
30490         * tests/test-canonicalize-lgpl.c (realpath)
30491         (canonicalize_file_name): Likewise.
30492         * tests/test-ceilf1.c (ceilf): Likewise.
30493         * tests/test-ceill.c (ceill): Likewise.
30494         * tests/test-chown.c (chown): Likewise.
30495         * tests/test-dprintf-posix.c (dprintf): Likewise.
30496         * tests/test-dup2.c (dup2): Likewise.
30497         * tests/test-dup3.c (dup3): Likewise.
30498         * tests/test-duplocale.c (duplocale): Likewise.
30499         * tests/test-fchdir.c (fchdir): Likewise.
30500         * tests/test-fchownat.c (fchownat): Likewise.
30501         * tests/test-fcntl.c (fcntl): Likewise.
30502         * tests/test-fdopendir.c (fdopendir): Likewise.
30503         * tests/test-fflush.c (fflush): Likewise.
30504         * tests/test-flock.c (flock): Likewise.
30505         * tests/test-floorf1.c (floorf): Likewise.
30506         * tests/test-floorl.c (floorl): Likewise.
30507         * tests/test-fnmatch.c (fnmatch): Likewise.
30508         * tests/test-fopen.c (fopen): Likewise.
30509         * tests/test-fprintf-posix.c (fprintf): Likewise.
30510         * tests/test-freopen.c (freopen): Likewise.
30511         * tests/test-frexp.c (frexp): Likewise.
30512         * tests/test-frexpl.c (frexpl): Likewise.
30513         * tests/test-fseek.c (fseek): Likewise.
30514         * tests/test-fseeko.c (fseeko): Likewise.
30515         * tests/test-fstatat.c (fstatat): Likewise.
30516         * tests/test-fsync.c (fsync): Likewise.
30517         * tests/test-ftell.c (ftell): Likewise.
30518         * tests/test-ftello.c (ftello): Likewise.
30519         * tests/test-futimens.c (futimens): Likewise.
30520         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30521         (gai_strerror): Likewise.
30522         * tests/test-getcwd.c (getcwd): Likewise.
30523         * tests/test-getdelim.c (getdelim): Likewise.
30524         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30525         * tests/test-getgroups.c (getgroups): Likewise.
30526         * tests/test-gethostname.c (gethostname): Likewise.
30527         * tests/test-getline.c (getline): Likewise.
30528         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30529         Likewise.
30530         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30531         * tests/test-glob.c (glob, globfree): Likewise.
30532         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30533         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30534         * tests/test-inet_pton.c (inet_pton): Likewise.
30535         * tests/test-isblank.c (isblank): Likewise.
30536         * tests/test-lchown.c (lchown): Likewise.
30537         * tests/test-ldexpl.c (ldexpl): Likewise.
30538         * tests/test-link.c (link): Likewise.
30539         * tests/test-linkat.c (linkat): Likewise.
30540         * tests/test-lseek.c (lseek): Likewise.
30541         * tests/test-lstat.c (lstat): Likewise.
30542         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30543         * tests/test-mbsinit.c (mbsinit): Likewise.
30544         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30545         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30546         * tests/test-memchr.c (memchr): Likewise.
30547         * tests/test-memcmp.c (memcmp): Likewise.
30548         * tests/test-memmem.c (memmem): Likewise.
30549         * tests/test-memrchr.c (memrchr): Likewise.
30550         * tests/test-mkdir.c (mkdir): Likewise.
30551         * tests/test-mkdirat.c (mkdirat): Likewise.
30552         * tests/test-mkfifo.c (mkfifo): Likewise.
30553         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30554         * tests/test-mknod.c (mknod): Likewise.
30555         * tests/test-nanosleep.c (nanosleep): Likewise.
30556         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30557         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30558         Likewise.
30559         * tests/test-open.c (open): Likewise.
30560         * tests/test-openat.c (openat): Likewise.
30561         * tests/test-perror.c (perror): Likewise.
30562         * tests/test-pipe2.c (pipe2): Likewise.
30563         * tests/test-poll.c (poll): Likewise.
30564         * tests/test-popen.c (popen, pclose): Likewise.
30565         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30566         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30567         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30568         (posix_spawn_file_actions_destroy)
30569         (posix_spawn_file_actions_addclose)
30570         (posix_spawn_file_actions_addopen)
30571         (posix_spawn_file_actions_adddup2): Likewise.
30572         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30573         * tests/test-pread.c (pread): Likewise.
30574         * tests/test-printf-posix.c (printf): Likewise.
30575         * tests/test-pty.c (openpty, forkpty): Likewise.
30576         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30577         (random_r): Likewise.
30578         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30579         * tests/test-readlink.c (readlink): Likewise.
30580         * tests/test-remove.c (remove): Likewise.
30581         * tests/test-rename.c (rename): Likewise.
30582         * tests/test-renameat.c (renameat): Likewise.
30583         * tests/test-rmdir.c (rmdir): Likewise.
30584         * tests/test-round1.c (round): Likewise.
30585         * tests/test-roundf1.c (roundf): Likewise.
30586         * tests/test-roundl.c (roundl): Likewise.
30587         * tests/test-setenv.c (setenv): Likewise.
30588         * tests/test-sigaction.c (sigaction): Likewise.
30589         * tests/test-sleep.c (sleep): Likewise.
30590         * tests/test-snprintf.c (snprintf): Likewise.
30591         * tests/test-sprintf-posix.c (sprintf): Likewise.
30592         * tests/test-stat.c (stat): Likewise.
30593         * tests/test-stpncpy.c (stpncpy): Likewise.
30594         * tests/test-strcasestr.c (strcasestr): Likewise.
30595         * tests/test-strchrnul.c (strchrnul): Likewise.
30596         * tests/test-strerror.c (strerror): Likewise.
30597         * tests/test-strsignal.c (strsignal): Likewise.
30598         * tests/test-strstr.c (strstr): Likewise.
30599         * tests/test-strtod.c (strtod): Likewise.
30600         * tests/test-strverscmp.c (strverscmp): Likewise.
30601         * tests/test-symlink.c (symlink): Likewise.
30602         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30603         * tests/test-times.c (times): Likewise.
30604         * tests/test-trunc1.c (trunc): Likewise.
30605         * tests/test-truncf1.c (truncf): Likewise.
30606         * tests/test-truncl.c (truncl): Likewise.
30607         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30608         Likewise.
30609         * tests/test-uname.c (uname): Likewise.
30610         * tests/test-unlink.c (unlink): Likewise.
30611         * tests/test-unlinkat.c (unlinkat): Likewise.
30612         * tests/test-unsetenv.c (unsetenv): Likewise.
30613         * tests/test-usleep.c (usleep): Likewise.
30614         * tests/test-utimensat.c (utimensat): Likewise.
30615         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30616         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30617         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30618         * tests/test-vprintf-posix.c (vprintf): Likewise.
30619         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30620         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30621         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30622         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30623         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30624         * tests/test-wcwidth.c (wcwidth): Likewise.
30625
30626         build: pull in conditional headers during GNULIB_POSIXCHECK
30627         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30628         definitions from any conditionally-included headers.
30629         * lib/stdlib.in.h (includes): Likewise.
30630         * lib/unistd.in.h (includes): Likewise.
30631
30632 2009-12-24  Bruno Haible  <bruno@clisp.org>
30633
30634         * tests/test-argv-iter.c: Include header file being tested immediately
30635         after config.h.
30636         * tests/test-base64.c: Likewise.
30637         * tests/test-flock.c: Likewise.
30638         * tests/test-fsync.c: Likewise.
30639         * tests/test-getdate.c: Likewise.
30640         * tests/test-getndelim2.c: Likewise.
30641         * tests/test-isfinite.c: Likewise.
30642         * tests/test-isinf.c: Likewise.
30643         * tests/test-strerror.c: Likewise.
30644         * tests/test-strsignal.c: Likewise.
30645
30646 2009-12-23  Eric Blake  <ebb9@byu.net>
30647
30648         unistd: work around cygwin bug
30649         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30650         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30651         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30652
30653 2009-12-23  Bruno Haible  <bruno@clisp.org>
30654
30655         localename: More tests.
30656         * tests/test-localename.c (SIZEOF): New macro.
30657         (categories): New variable.
30658         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30659         test_locale_name_default): Add test w.r.t. thread locale.
30660         (test_locale_name_thread): New function.
30661         (main): Invoke it.
30662
30663         localename: Make aware of thread locale.
30664         * lib/localename.h (gl_locale_name_thread): New declaration.
30665         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30666         behaviour with respect to thread locale.
30667         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30668         <langinfo.h>, glthread/lock.h.
30669         (SIZE_BITS): New macro.
30670         (string_hash): New function.
30671         (struct hash_node): New type.
30672         (HASH_TABLE_SIZE): New macro.
30673         (struniq_hash_table, struniq_lock): New variables.
30674         (struniq): New function.
30675         (gl_locale_name_thread): New function.
30676         (gl_locale_name): Invoke it.
30677         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30678         * modules/localename (Depends-on): Add lock.
30679         Reported by Mike Gran <spk121@yahoo.com>.
30680
30681 2009-12-23  Eric Blake  <ebb9@byu.net>
30682
30683         va-args: new module
30684         * modules/va-args: New file.
30685         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30686         * MODULES.html.sh (Core language properties): Mention it.
30687
30688         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30689         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30690         named alias for __attribute__((__unused__)).
30691         * lib/chown.c: Update client.
30692         * lib/fchmodat.c: Likewise.
30693         * lib/fts.c: Likewise.
30694         * lib/getdate.y: Likewise.
30695         * lib/getgroups.c: Likewise.
30696         * lib/getopt.c: Likewise.
30697         * lib/getugroups.c: Likewise.
30698         * lib/mkdir.c: Likewise.
30699         * lib/mkfifo.c: Likewise.
30700         * lib/mkfifoat.c: Likewise.
30701         * lib/mknod.c: Likewise.
30702         * lib/mknodat.c: Likewise.
30703         * lib/readlink.c: Likewise.
30704         * lib/se-context.in.h: Likewise.
30705         * lib/se-selinux.in.h: Likewise.
30706         * lib/sockets.c: Likewise.
30707         * lib/symlink.c: Likewise.
30708         * lib/symlinkat.c: Likewise.
30709         * lib/unicodeio.c: Likewise.
30710         * lib/unistr.h: Likewise.
30711         * tests/test-areadlink.c: Likewise.
30712         * tests/test-areadlinkat.c: Likewise.
30713         * tests/test-filenamecat.c: Likewise.
30714         * tests/test-fseeko.c: Likewise.
30715         * tests/test-ftello.c: Likewise.
30716         * tests/test-getdate.c: Likewise.
30717         * tests/test-getgroups.c: Likewise.
30718         * tests/test-gethostname.c: Likewise.
30719         * tests/test-quotearg.c: Likewise.
30720         * tests/test-version-etc.c: Likewise.
30721         * tests/test-xalloc-die.c: Likewise.
30722         * tests/test-xfprintf-posix.c: Likewise.
30723         * tests/test-xprintf-posix.c: Likewise.
30724         * tests/test-xvasprintf.c: Likewise.
30725
30726         tests: avoid compiler warnings
30727         * tests/test-fcntl.c (main): Delete unused parameters.
30728         * tests/test-freopen-safer.c (main): Likewise.
30729         * tests/test-xalloc-die.c (main): Mark unused parameters.
30730         * tests/test-fseeko.c (main): Likewise.
30731         * tests/test-ftello.c (main): Likewise.
30732         * tests/test-nanosleep.c (main): Avoid declaration warning.
30733         * tests/test-sleep.c (main): Likewise.
30734         * tests/test-unsetenv.c (main): Silence warning about string
30735         literal.
30736         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30737
30738 2009-12-23  Bruno Haible  <bruno@clisp.org>
30739
30740         * tests/test-localename.c (test_locale_name): New function, extracted
30741         from main. Also test mixed situations.
30742         (test_locale_name_posix, test_locale_name_environ,
30743         test_locale_name_default): New functions.
30744         (main): Invoke them all.
30745         * modules/localename-tests (configure.ac): Test for newlocale.
30746
30747 2009-12-23  Bruno Haible  <bruno@clisp.org>
30748
30749         unistd: Ensure getcwd gets declared before being overridden.
30750         * lib/unistd.in.h: Conditionally include <io.h>.
30751
30752 2009-12-22  Bruno Haible  <bruno@clisp.org>
30753
30754         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30755         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30756         (gl_WCHAR_H): Invoke it.
30757         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30758         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30759         Reported by Karl Berry <karl@freefriends.org>.
30760
30761 2009-12-22  Eric Blake  <ebb9@byu.net>
30762
30763         math, unistd: avoid redundant includes
30764         * lib/math.in.h (isnan): No need to re-include <math.h>.
30765         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30766
30767         getsubopt: work around cygwin bug
30768         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30769         avoid conflicting with system getsubopt.
30770         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30771         bug.
30772
30773         getopt: synchronize from glibc
30774         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30775         parameter order.  Adjust all callers.
30776         (_getopt_internal_r, main): Adjust quoting in error messages.
30777         Drop considerations for outdated POSIX 1003.2 error message.
30778         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30779         callers.
30780         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30781
30782         test-getopt: test stderr behavior
30783         * modules/getopt-posix-tests (Depends-on): Add dup2.
30784         * tests/test-getopt.c (ASSERT): Avoid stderr.
30785         (main): Move stderr to a temporary file.
30786         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30787         Instead, add parameter to inform caller if output occurred.
30788         (test_getopt): Adjust all existing tests to expect silence, and
30789         add new tests of leading ":".
30790         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30791         glibc shortcomings with leading "-:" or "+:" in optstring.
30792         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30793         Likewise.
30794         * doc/posix-functions/getopt.texi (getopt): Likewise.
30795
30796         test-getopt: enhance test
30797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30798         supports optind=0.
30799         * tests/test-getopt.c (OPTIND_MIN): Move...
30800         * tests/test-getopt.h (OPTIND_MIN): ...here.
30801         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30802         Require that optind=0 works, since modern BSD supports it in
30803         addition to optreset, and since coreutils expects it.
30804         (test_getopt_long_only): New test.
30805         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30806         glibc shortcomings with 'W;', and enforcement of optind=0.
30807         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30808         Likewise.
30809
30810 2009-12-21  Bruno Haible  <bruno@clisp.org>
30811
30812         localename: Improvements for MacOS X and Cygwin.
30813         * lib/localename.h (gl_locale_name_environ): New declaration.
30814         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30815         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30816         (gl_locale_name_posix): Invoke it.
30817         (gl_locale_name_default): Add comments. Use Windows native API also on
30818         Cygwin.
30819
30820 2009-12-21  Bruno Haible  <bruno@clisp.org>
30821
30822         Update list of Win32 locale ids.
30823         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30824         (LANG_SAMI): Renamed from LANG_SAAMI.
30825         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30826         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30827         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30828         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30829         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30830         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30831         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30832         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30833         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30834         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30835         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30836         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30837         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30838         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30839         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30840         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30841         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30842         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30843         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30844         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30845         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30846         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30847         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30848         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30849         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30850         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30851         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30852         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30853         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30854         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30855         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30856         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30857         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30858         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30859         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30860         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30861         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30862         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30863         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30864         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30865         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30866         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30867         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30868         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30869         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30870         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30871         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30872         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30873         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30874         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30875         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30876         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30877         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30878         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30879         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30880         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30881         Add more languages and countries for Sami, Sorbian. Add more countries
30882         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30883         for Pashto. Change country for Syriac, Tswana.
30884
30885 2009-12-21  Eric Blake  <ebb9@byu.net>
30886
30887         test-utimens: avoid spurious failure
30888         * tests/test-chown.h (nap): Factor...
30889         * tests/nap.h: ...into new file.
30890         * tests/test-lchown.h (nap): Avoid duplication.
30891         * tests/test-utimens-common.h (nap): Use shared implementation,
30892         necessary on file systems with 1-second resolution.
30893         * modules/chown-tests (Files): Include new file.
30894         * modules/fdutimensat-tests (Files): Likewise.
30895         * modules/futimens-tests (Files): Likewise.
30896         * modules/lchown-tests (Files): Likewise.
30897         * modules/openat-tests (Files): Likewise.
30898         * modules/utimens-tests (Files): Likewise.
30899         * modules/utimensat-tests (Files): Likewise.
30900
30901 2009-12-19  Eric Blake  <ebb9@byu.net>
30902
30903         futimens, utimensat: work around Linux bug
30904         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30905         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30906         * lib/utimensat.c (rpl_utimensat): Work around it.
30907         * lib/futimens.c (rpl_futimens): Adjust comment.
30908
30909         utimens: work around Linux ctime bug
30910         * lib/utimens.c (detect_ctime_bug): New helper function.
30911         (update_timespec): Differentiate between workaround needed for
30912         this bug vs. what is needed for systems that lack utimensat.
30913         (fdutimens, lutimens): Work around bug.
30914
30915         utimens: check for ctime update
30916         * tests/test-utimens-common.h (check_ctime): Define.
30917         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30918         * tests/test-futimens.h (test_futimens): Likewise.
30919         * tests/test-lutimens.h (test_lutimens): Likewise.
30920         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30921         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30922
30923 2009-12-19  Bruno Haible  <bruno@clisp.org>
30924
30925         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30926         * tests/test-dprintf-posix2.sh: New file.
30927         * tests/test-dprintf-posix2.c: New file.
30928         * modules/dprintf-posix-tests (Files): Add them.
30929         (configure.ac): Check for getrlimit and setrlimit.
30930         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30931
30932 2009-12-19  Bruno Haible  <bruno@clisp.org>
30933
30934         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30935         * tests/test-fprintf-posix3.sh: New file.
30936         * tests/test-fprintf-posix3.c: New file.
30937         * modules/fprintf-posix-tests (Files): Add them.
30938         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30939
30940 2009-12-19  Eric Blake  <ebb9@byu.net>
30941
30942         dirfd: fix prototype
30943         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30944         * lib/dirfd.c (dirfd): Likewise.
30945
30946         canonicalize: reduce memory usage
30947         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30948         allocation to size.
30949         Reported by Solar Designer <solar@openwall.com>.
30950
30951 2009-12-19  Bruno Haible  <bruno@clisp.org>
30952
30953         New module attribute 'Applicability'.
30954         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30955         * gnulib-tool: New option --extract-applicability.
30956         (func_usage): Document it.
30957         (sed_extract_prog): Recognize it.
30958         (func_get_applicability): New function.
30959         (func_import): Generalize handling of 'link-warning' module.
30960         * modules/link-warning (Applicability): New section.
30961         * modules/arg-nonnull (Applicability): New section.
30962         Repoted by Simon Josefsson <simon@josefsson.org>.
30963
30964 2009-12-19  Bruno Haible  <bruno@clisp.org>
30965
30966         fflush: tweak
30967         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30968         * lib/fseeko.c (rpl_fseeko): Likewise.
30969
30970 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30971
30972         * lib/gl_list.h: Fix typo in comment.
30973
30974 2009-12-16  Eric Blake  <ebb9@byu.net>
30975
30976         fcntl: use to simplify other modules
30977         * modules/cloexec (Depends-on): Add fcntl.
30978         * modules/fchdir (Depends-on): Likewise.
30979         * modules/fd-safer-flag (Depends-on): Likewise.
30980         * modules/unistd-safer (Depends-on): Likewise.
30981         * modules/dup3 (configure.ac): Set module indicator.
30982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30983         missing.
30984         * lib/fchdir.c (_gl_register_dup): Fix comment.
30985         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30986         * lib/dup-safer.c (dup_safer): Likewise.
30987         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30988         * lib/dup3.c (dup3): Likewise.
30989         * tests/test-fchdir.c (main): Enhance test.
30990         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30991
30992         fcntl: port portions of fcntl to mingw
30993         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30994         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30995         replacement for mingw.
30996         * modules/fcntl (Description): Update.
30997         (Depends-on): Add dup2.
30998         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30999         * modules/fcntl-h (Makefile.am): Substitute it.
31000         * lib/fcntl.in.h (fcntl): Update declaration.
31001         (F_DUPFD, F_GETFD): New macros, when needed.
31002         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31003         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31004         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31005         we now guarantee.
31006
31007         fcntl: work around cygwin bug in F_DUPFD
31008         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31009         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31010         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31011         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31012         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31013
31014         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31015         * modules/fcntl (Files): List new files.
31016         (configure.ac): Run a test.
31017         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31018         * lib/fcntl.c (rpl_fcntl): Likewise.
31019         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31020         (gl_FCNTL_H): Always replace fcntl.h.
31021         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31022         * lib/fcntl.in.h (fcntl): Declare replacement.
31023         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31024         needed, plus a witness.
31025         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31026         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31027         * tests/test-fcntl.c: New file.
31028         * modules/fcntl-tests: Likewise.
31029
31030         binary-io: avoid potential compilation warning
31031         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31032         directives.
31033
31034         fflush: avoid compilation error on NetBSD
31035         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31036         between off_t and fpos_t, since the latter is sometimes a struct.
31037         * lib/fseeko.c (rpl_fseeko): Likewise.
31038         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31039
31040 2009-12-15  Eric Blake  <ebb9@byu.net>
31041
31042         fcntl-h, stdio, sys_ioctl: fix declarations
31043         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31044         function must not take arguments.
31045         * lib/sys_ioctl.in.h (ioctl): Likewise.
31046         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31047         (open): Add a link warning.
31048
31049 2009-12-15  Jim Meyering  <meyering@redhat.com>
31050
31051         areadlink, areadlink-with-size: relax license to LGPLv2+
31052         * modules/areadlink (License): Relax to LGPLv2+.
31053         * modules/areadlink-with-size (License): Likewise.
31054
31055 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31056             Bruno Haible  <bruno@clisp.org>
31057
31058         *printf: Fix memory leak.
31059         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31060         * lib/vfprintf.c (vfprintf): Likewise.
31061         * lib/dprintf.c (dprintf): Likewise.
31062         * lib/vdprintf.c (vdprintf): Likewise.
31063
31064 2009-12-14  Eric Blake  <ebb9@byu.net>
31065
31066         accept4: adjust module dependencies
31067         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31068
31069         utimens: one more try at avoiding compiler warning
31070         * lib/utimens.c (lutimens): Lower scope of result.
31071
31072 2009-12-13  Bruno Haible  <bruno@clisp.org>
31073
31074         Move the malloc checking from module 'list' to new module 'xlist'.
31075         * modules/xlist: New file.
31076         * lib/gl_xlist.h: New file.
31077         * lib/gl_xlist.c: New file.
31078         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31079         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31080         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31081         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31082         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31083         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31084         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31085         gl_sortedlist_nx_add): New declarations.
31086         (struct gl_list_implementation): Rename and change methods accordingly.
31087         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31088         (gl_list_nx_create): Renamed from gl_list_create.
31089         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31090         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31091         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31092         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31093         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31094         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31095         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31096         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31097         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31098         gl_list_create_empty.
31099         (gl_list_nx_create): Renamed from gl_list_create.
31100         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31101         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31102         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31103         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31104         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31105         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31106         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31107         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31108         * lib/gl_array_list.c: Don't include xalloc.h.
31109         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31110         NULL upon out-of-memory.
31111         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31112         out-of-memory.
31113         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31114         Change return type to 'int'.
31115         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31116         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31117         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31118         upon out-of-memory.
31119         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31120         upon out-of-memory.
31121         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31122         upon out-of-memory.
31123         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31124         upon out-of-memory.
31125         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31126         out-of-memory.
31127         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31128         Update.
31129         (gl_array_list_implementation): Update.
31130         * lib/gl_carray_list.c: Don't include xalloc.h.
31131         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31132         Return NULL upon out-of-memory.
31133         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31134         out-of-memory.
31135         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31136         Change return type to 'int'.
31137         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31138         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31139         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31140         upon out-of-memory.
31141         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31142         upon out-of-memory.
31143         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31144         out-of-memory.
31145         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31146         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31147         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31148         Update.
31149         (gl_carray_list_implementation): Update.
31150         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31151         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31152         gl_linked_create_empty. Return NULL upon out-of-memory.
31153         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31154         out-of-memory.
31155         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31156         Change return type to 'int'. Return -1 upon out-of-memory.
31157         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31158         out-of-memory.
31159         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31160         upon out-of-memory.
31161         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31162         upon out-of-memory.
31163         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31164         NULL upon out-of-memory.
31165         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31166         upon out-of-memory.
31167         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31168         out-of-memory.
31169         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31170         Update.
31171         * lib/gl_linked_list.c: Don't include xalloc.h.
31172         (gl_linked_list_implementation): Update.
31173         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31174         (add_to_bucket): Change return type to 'int'.
31175         (gl_linkedhash_list_implementation): Update.
31176         * lib/gl_anytree_list1.h (free_subtree): New function.
31177         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31178         gl_tree_create_empty. Return NULL upon out-of-memory.
31179         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31180         Change return type to 'int'. Return -1 upon out-of-memory.
31181         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31182         out-of-memory.
31183         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31184         (gl_tree_remove_node): New function, moved here from
31185         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31186         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31187         Update.
31188         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31189         malloc, not xmalloc. Return NULL upon out-of-memory.
31190         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31191         out-of-memory.
31192         (gl_tree_remove_node_from_tree): New function, extracted from
31193         gl_tree_remove_node.
31194         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31195         upon out-of-memory.
31196         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31197         out-of-memory.
31198         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31199         upon out-of-memory.
31200         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31201         upon out-of-memory.
31202         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31203         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31204         not xmalloc. Return NULL upon out-of-memory.
31205         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31206         out-of-memory.
31207         (gl_tree_remove_node_from_tree): New function, extracted from
31208         gl_tree_remove_node.
31209         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31210         upon out-of-memory.
31211         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31212         out-of-memory.
31213         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31214         upon out-of-memory.
31215         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31216         upon out-of-memory.
31217         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31218         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31219         gl_anytree_list1.h before gl_anyavltree_list2.h.
31220         (gl_avltree_list_implementation): Update.
31221         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31222         gl_anytree_list1.h before gl_anyavltree_list2.h.
31223         (gl_rbtree_list_implementation): Update.
31224         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31225         Change return type to 'int'. Return -1 upon out-of-memory. Use
31226         __builtin_expect.
31227         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31228         (gl_avltreehash_list_implementation): Update.
31229         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31230         (gl_rbtreehash_list_implementation): Update.
31231         * modules/array-list (Depends-on): Remove xalloc.
31232         * modules/carray-list (Depends-on): Likewise.
31233         * modules/linked-list (Depends-on): Likewise.
31234         * modules/linkedhash-list (Depends-on): Likewise.
31235         * modules/avltree-list (Depends-on): Likewise.
31236         * modules/rbtree-list (Depends-on): Likewise.
31237         * modules/avltreehash-list (Depends-on): Likewise.
31238         * modules/rbtreehash-list (Depends-on): Likewise.
31239
31240         * modules/xsublist: New file.
31241         * lib/gl_xsublist.h: New file.
31242         * lib/gl_xsublist.c: New file.
31243         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31244         (gl_sublist_nx_create): New declaration.
31245         * lib/gl_sublist.c: Don't include xalloc.h.
31246         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31247         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31248         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31249         Change return type to 'int'. Return -1 upon out-of-memory.
31250         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31251         upon out-of-memory.
31252         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31253         NULL upon out-of-memory.
31254         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31255         upon out-of-memory.
31256         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31257         NULL upon out-of-memory.
31258         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31259         NULL upon out-of-memory.
31260         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31261         upon out-of-memory.
31262         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31263         (gl_sublist_list_implementation): Update.
31264         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31265         upon out-of-memory.
31266         * modules/sublist (Depends-on): Remove xalloc.
31267
31268         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31269         * tests/test-carray_list.c: Likewise.
31270         * tests/test-linked_list.c: Likewise.
31271         * tests/test-linkedhash_list.c: Likewise.
31272         * tests/test-avltree_list.c: Likewise.
31273         * tests/test-rbtree_list.c: Likewise.
31274         * tests/test-avltreehash_list.c: Likewise.
31275         * tests/test-rbtreehash_list.c: Likewise.
31276         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31277         * modules/carray-list-tests (Makefile.am): Likewise.
31278         * modules/linked-list-tests (Makefile.am): Likewise.
31279         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31280         * modules/avltree-list-tests (Makefile.am): Likewise.
31281         * modules/rbtree-list-tests (Makefile.am): Likewise.
31282         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31283         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31284
31285         * NEWS: Mention the changes.
31286
31287         * lib/clean-temp.c: Include gl_xlist.h.
31288         * modules/clean-temp (Depends-on): Add xlist.
31289
31290         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31291         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31292
31293         * tests/test-array_oset.c: Include gl_xlist.h.
31294         * modules/array-oset-tests (Depends-on): Add xlist.
31295
31296         Reported by José E. Marchesi <jemarch@gnu.org>.
31297
31298 2009-12-13  Bruno Haible  <bruno@clisp.org>
31299
31300         Move the malloc checking from module 'oset' to new module 'xoset'.
31301         * modules/xoset: New file.
31302         * lib/gl_xoset.h: New file.
31303         * lib/gl_xoset.c: New file.
31304         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31305         declarations.
31306         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31307         (struct gl_oset_implementation): Rename and change methods accordingly.
31308         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31309         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31310         'int'. Mark as __warn_unused_result__.
31311         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31312         gl_oset_create_empty.
31313         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31314         'int'.
31315         * lib/gl_array_oset.c: Don't include xalloc.h.
31316         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31317         malloc, not xmalloc.
31318         (grow): Change return type to 'int'. Don't call xalloc_die.
31319         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31320         to 'int'.
31321         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31322         'int'.
31323         (gl_array_oset_implementation): Update.
31324         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31325         gl_tree_create_empty.
31326         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31327         'int'.
31328         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31329         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31330         xmalloc.
31331         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31332         not xmalloc.
31333         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31334         xmalloc.
31335         (gl_avltree_oset_implementation): Update.
31336         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31337         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31338         xmalloc.
31339         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31340         not xmalloc.
31341         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31342         xmalloc.
31343         (gl_rbtree_oset_implementation): Update.
31344         * modules/array-oset (Depends-on): Remove xalloc.
31345         * modules/avltree-oset (Depends-on): Likewise.
31346         * modules/rbtree-oset (Depends-on): Likewise.
31347         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31348         * tests/test-avltree_oset.c: Likewise.
31349         * tests/test-rbtree_oset.c: Likewise.
31350         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31351         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31352         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31353         * NEWS: Mention the change.
31354
31355 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31356
31357         maint.mk: allow a project to override release-prep commands
31358         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31359         commands into a new rule.
31360         (release-prep): New rule.
31361         (release-prep-hook): New overridable variable.
31362
31363 2009-12-13  Bruno Haible  <bruno@clisp.org>
31364
31365         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31366
31367 2009-12-13  Jim Meyering  <meyering@redhat.com>
31368
31369         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31370         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31371
31372 2009-12-12  Bruno Haible  <bruno@clisp.org>
31373
31374         duplocale: Tweak.
31375         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31376
31377 2009-12-12  Karl Berry  <karl@gnu.org>
31378
31379         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31380
31381 2009-12-12  Bruno Haible  <bruno@clisp.org>
31382
31383         * m4/po.m4: Undo incorrect untabification.
31384
31385 2009-12-12  Bruno Haible  <bruno@clisp.org>
31386
31387         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31388         * modules/c-strtod (Depends-on): Add locale.
31389         * modules/c-strtold (Depends-on): Likewise.
31390
31391 2009-12-12  Bruno Haible  <bruno@clisp.org>
31392
31393         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31394
31395 2009-12-11  Eric Blake  <ebb9@byu.net>
31396
31397         setenv: relax requirement in light of POSIX ruling
31398         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31399         not NULL.
31400         * tests/test-setenv.c (main): Relax test.
31401         * tests/test-unsetenv.c (main): Likewise.
31402         * doc/posix-functions/setenv.texi (setenv): Document this.
31403         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31404
31405 2009-12-11  Bruno Haible  <bruno@clisp.org>
31406
31407         New module 'fd-safer-flag'.
31408         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31409         * lib/dup-safer.c (dup_safer_flag): Remove function.
31410         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31411         * lib/fd-safer.c (fd_safer_flag): Remove function.
31412         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31413         * modules/cloexec (configure.ac): Drop indicator macro.
31414         * modules/fd-safer-flag: New file.
31415         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31416         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31417         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31418
31419 2009-12-11  Bruno Haible  <bruno@clisp.org>
31420
31421         Tests for module 'nl_langinfo'.
31422         * modules/nl_langinfo-tests: New file.
31423         * tests/test-nl_langinfo.sh: New file.
31424         * tests/test-nl_langinfo.c: New file.
31425
31426         New module 'nl_langinfo'.
31427         * lib/nl_langinfo.c: New file.
31428         * m4/nl_langinfo.m4: New file.
31429         * modules/nl_langinfo: New file.
31430         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31431
31432 2009-12-11  Bruno Haible  <bruno@clisp.org>
31433
31434         Tests for module 'langinfo'.
31435         * modules/langinfo-tests: New file.
31436         * tests/test-langinfo.c: New file.
31437
31438         New module 'langinfo'.
31439         * lib/langinfo.in.h: New file.
31440         * m4/langinfo_h.m4: New file.
31441         * modules/langinfo: New file.
31442         * doc/posix-headers/langinfo.texi: Mention the new module.
31443
31444 2009-12-11  Bruno Haible  <bruno@clisp.org>
31445
31446         * lib/config.charset: Untabify.
31447
31448 2009-12-11  Bruno Haible  <bruno@clisp.org>
31449
31450         * modules/unistd-safer (configure.ac): Drop indicator macro.
31451
31452 2009-12-11  Bruno Haible  <bruno@clisp.org>
31453
31454         Move pipe2-safer code to its own file.
31455         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31456         * lib/pipe-safer.c (pipe2_safer): Remove function.
31457         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31458         (Makefile.am): Add it to lib_SOURCES.
31459
31460 2009-12-10  Bruno Haible  <bruno@clisp.org>
31461
31462         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31463
31464 2009-12-10  Bruno Haible  <bruno@clisp.org>
31465
31466         Declare which arguments expect non-NULL values, for GCC and clang.
31467         * build-aux/arg-nonnull.h: New file.
31468         * modules/arg-nonnull: New file.
31469         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31470         (inet_ntop, inet_pton): Use it.
31471         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31472         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31473         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31474         (open, openat): Use it.
31475         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31476         (fnmatch): Use it.
31477         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31478         (getopt, getopt_long, getopt_long_only): Use it.
31479         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31480         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31481         Use it.
31482         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31483         (iconv_open): Use it.
31484         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31485         (strtoimax, strtoumax): Use it.
31486         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31487         (duplocale): Use it.
31488         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31489         (frexp, frexpl): Use it.
31490         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31491         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31492         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31493         (tsearch, tfind, tdelete, twalk): Use it.
31494         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31495         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31496         sigpending): Use it.
31497         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31498         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31499         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31500         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31501         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31502         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31503         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31504         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31505         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31506         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31507         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31508         Use it.
31509         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31510         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31511         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31512         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31513         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31514         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31515         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31516         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31517         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31518         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31519         strtoull, unsetenv): Use it.
31520         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31521         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31522         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31523         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31524         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31525         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31526         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31527         (strcasecmp, strncasecmp): Use it.
31528         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31529         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31530         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31531         rpl_setsockopt): Use it.
31532         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31533         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31534         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31535         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31536         (gettimeofday): Use it.
31537         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31538         (times): Use it.
31539         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31540         (uname): Use it.
31541         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31542         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31543         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31544         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31545         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31546         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31547         unlinkat, write): Use it.
31548         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31549         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31550         * lib/argv-iter.h: Include arg-nonnull.h.
31551         (_ATTRIBUTE_NONNULL_): Remove macro.
31552         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31553         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31554         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31555         optimization.
31556         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31557         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31558         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31559         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31560         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31561         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31562         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31563         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31564         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31565         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31566         * modules/dirent (Depends-on): Add arg-nonnull.
31567         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31568         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31569         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31570         * modules/fnmatch (Depends-on): Add arg-nonnull.
31571         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31572         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31573         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31574         * modules/glob (Depends-on): Add arg-nonnull.
31575         (Makefile.am): Insert arg-nonnull.h into glob.h.
31576         * modules/iconv_open (Depends-on): Add arg-nonnull.
31577         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31578         * modules/inttypes (Depends-on): Add arg-nonnull.
31579         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31580         * modules/locale (Depends-on): Add arg-nonnull.
31581         (Makefile.am): Insert arg-nonnull.h into locale.h.
31582         * modules/math (Depends-on): Add arg-nonnull.
31583         (Makefile.am): Insert arg-nonnull.h into math.h.
31584         * modules/netdb (Depends-on): Add arg-nonnull.
31585         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31586         * modules/search (Depends-on): Add arg-nonnull.
31587         (Makefile.am): Insert arg-nonnull.h into search.h.
31588         * modules/signal (Depends-on): Add arg-nonnull.
31589         (Makefile.am): Insert arg-nonnull.h into signal.h.
31590         * modules/spawn (Depends-on): Add arg-nonnull.
31591         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31592         * modules/stdio (Depends-on): Add arg-nonnull.
31593         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31594         * modules/stdlib (Depends-on): Add arg-nonnull.
31595         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31596         * modules/string (Depends-on): Add arg-nonnull.
31597         (Makefile.am): Insert arg-nonnull.h into string.h.
31598         * modules/strings (Depends-on): Add arg-nonnull.
31599         (Makefile.am): Insert arg-nonnull.h into strings.h.
31600         * modules/sys_socket (Depends-on): Add arg-nonnull.
31601         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31602         * modules/sys_stat (Depends-on): Add arg-nonnull.
31603         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31604         * modules/sys_time (Depends-on): Add arg-nonnull.
31605         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31606         * modules/sys_times (Depends-on): Add arg-nonnull.
31607         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31608         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31609         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31610         * modules/time (Depends-on): Add arg-nonnull.
31611         (Makefile.am): Insert arg-nonnull.h into time.h.
31612         * modules/unistd (Depends-on): Add arg-nonnull.
31613         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31614         * modules/wchar (Depends-on): Add arg-nonnull.
31615         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31616         * modules/argv-iter (Depends-on): Add arg-nonnull.
31617         * tests/test-canonicalize.c (null_ptr): New function.
31618         (main): Use it.
31619         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31620         (main): Use it.
31621         * tests/test-memmem.c (null_ptr): New function.
31622         (main): Use it.
31623         Reported by Jim Meyering.
31624
31625 2009-12-10  Bruno Haible  <bruno@clisp.org>
31626
31627         Use spaces for indentation, not tabs.
31628         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31629         * m4/*.m4: Untabify.
31630         * build-aux/*.h: Untabify.
31631         * tests/**/*.[hc]: Untabify.
31632         * README: New section "Indent with spaces, not TABs", based on
31633         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31634         * NEWS: Mention the change.
31635
31636 2009-12-10  Bruno Haible  <bruno@clisp.org>
31637
31638         pty test: Fix link error.
31639         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31640         test_pty_LDADD.
31641
31642 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31643
31644         * modules/pty: New file.
31645         * modules/pty-tests: New file.
31646         * m4/pty.m4: New file.
31647         * tests/test-pty.c: New file.
31648         * doc/glibc-headers/pty.texi: Modified.
31649         * doc/glibc-functions/forkpty.texi: Modified.
31650         * doc/glibc-functions/openpty.texi: Modified.
31651
31652 2009-12-10  Bruno Haible  <bruno@clisp.org>
31653
31654         Avoid syntax error in C++ mode.
31655         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31656
31657 2009-12-10  Bruno Haible  <bruno@clisp.org>
31658
31659         Use sed with option -e.
31660         * gnulib-tool (func_version, func_emit_copyright_notice,
31661         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31662         option -e to sed.
31663         * modules/link-warning (Makefile.am): Likewise.
31664
31665 2009-12-10  Jim Meyering  <meyering@redhat.com>
31666
31667         mgetgroups: do not write bytes beyond end of malloc'd buffer
31668         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31669         username, we call getgroups with a one-element-shorter buffer,
31670         but still told it the length was original, max_n_groups.
31671
31672 2009-12-09  Eric Blake  <ebb9@byu.net>
31673
31674         cloexec: relax license
31675         * modules/cloexec (Maintainer): Add myself.
31676         (License): Use LGPL, not GPL.
31677
31678         link-warning: optimize generation
31679         * modules/link-warning (Makefile.am): Reduce process usage.
31680
31681 2009-12-09  Bruno Haible  <bruno@clisp.org>
31682
31683         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31684         workaround was added on 2009-11-17.
31685
31686 2009-12-09  Jim Meyering  <meyering@redhat.com>
31687             Bruno Haible  <bruno@clisp.org>
31688
31689         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31690         * modules/link-warning (Makefile.am): Make the comment-removing sed
31691         command more robust in the face of bootstrap-prepended comment lines.
31692
31693 2009-12-09  Bruno Haible  <bruno@clisp.org>
31694
31695         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31696         most one group.
31697
31698 2009-12-09  Simon Josefsson <simon@josefsson.org>
31699             Bruno Haible  <bruno@clisp.org>
31700
31701         * build-aux/link-warning.h: Add copyright notice.
31702         * modules/link-warning (Makefile.am): Generate link-warning.h from
31703         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31704         * NEWS: Mention change in link-warning module.
31705         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31706         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31707         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31708         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31709         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31710         * modules/math (Makefile.am): Add dependency to math.h.
31711         * modules/search (Makefile.am): Add dependency to search.h.
31712         * modules/signal (Makefile.am): Add dependency to signal.h.
31713         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31714         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31715         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31716         * modules/string (Makefile.am): Add dependency to string.h.
31717         * modules/strings (Makefile.am): Add dependency to strings.h.
31718         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31719         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31720         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31721         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31722         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31723         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31724         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31725         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31726         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31727
31728 2009-12-09  Bruno Haible  <bruno@clisp.org>
31729
31730         fchdir: Optimize away rpl_fstat when possible.
31731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31732         REPLACE_OPEN_DIRECTORY.
31733         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31734
31735 2009-12-09  Bruno Haible  <bruno@clisp.org>
31736
31737         * lib/fchdir.c: Update comment.
31738
31739 2009-12-09  Bruno Haible  <bruno@clisp.org>
31740
31741         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31742
31743 2009-12-08  Eric Blake  <ebb9@byu.net>
31744
31745         fchdir: avoid memory leak on re-registration.
31746         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31747
31748 2009-12-08  Jim Meyering  <meyering@redhat.com>
31749
31750         init.sh: avoid Solaris 10 /bin/sh portability problem
31751         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31752         sourced script:
31753           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31754           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31755           bar
31756         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31757         and two tests used that idiom.
31758         * tests/init.sh: Update suggested usage comments.
31759         (path_prepend_): New function, to be used in place
31760         of the --src-path=DIR option.
31761         (setup_): Move PATH-prepending code into path_prepend_.
31762         * tests/test-pread.sh: Adapt to new usage.
31763         * tests/test-xalloc-die.sh: Likewise.
31764
31765 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31766
31767         * doc/gnulib.texi (Glibc pty.h): Add.
31768         * doc/glibc-functions/forkpty.texi: Add.
31769         * doc/glibc-functions/openpty.texi: Add.
31770         Suggested by Bruno Haible.
31771
31772 2009-12-08  Eric Blake  <ebb9@byu.net>
31773
31774         fchdir: fix logic bugs
31775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31776         * tests/test-fchdir.c (main): Enhance test.
31777         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31778         is in use.
31779
31780         dup2: fix logic bugs
31781         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31782         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31783         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31784         exists.
31785         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31786
31787 2009-12-07  Eric Blake  <ebb9@byu.net>
31788
31789         unlink: fix m4 detection
31790         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31791
31792         unistd-safer: add unit test
31793         * modules/unistd-safer-tests: New file.
31794         * tests/test-dup-safer.c: Likewise.
31795         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31796         * tests/test-dup2.c (setmode): Likewise.
31797         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31798
31799         cloexec: preserve text vs. binary across dup_cloexec
31800         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31801         mode.
31802         * modules/dup2-tests (Depends-on): Add binary-io.
31803         * modules/cloexec-tests (Depends-on): Likewise.
31804         * tests/test-dup2.c (setmode, is_mode): New helpers.
31805         (main): Add tests that translation mode is preserved.
31806         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31807         Reported by Bruno Haible.
31808
31809         mgetgroups: reduce duplicate listings
31810         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31811         resulting array.
31812         * tests/test-chown.h (test_chown): Simplify client.
31813         * tests/test-lchown.h (test_lchown): Likewise.
31814
31815 2009-12-06  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31818         value.
31819
31820 2009-12-06  Bruno Haible  <bruno@clisp.org>
31821
31822         * lib/progname.c: Include stdio.h, stdlib.h.
31823         (set_program_name): Reject a NULL argument.
31824
31825 2009-12-05  Eric Blake  <ebb9@byu.net>
31826
31827         pipe2-safer: new module
31828         * modules/pipe2-safer: New file.
31829         * lib/unistd-safer.h (pipe2_safer): New prototype.
31830         * lib/unistd--.h (pipe2): New wrapper.
31831         * lib/pipe-safer.c (pipe2_safer): New function.
31832         * modules/pipe (Depends-on): Add pipe2-safer.
31833         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31834
31835         stdlib-safer: preserve cloexec flag for mkostemp[s]
31836         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31837         fd_safer_flag.
31838
31839         unistd-safer: allow preservation of cloexec status via flag
31840         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31841         prototypes.
31842         * lib/dup-safer.c (dup_safer_flag): New function.
31843         * lib/fd-safer.c (fd_safer_flag): Likewise.
31844         * modules/cloexec (configure.ac): Set witness.
31845
31846         test-dup2: enhance test
31847         * modules/dup2-tests (Depends-on): Add cloexec.
31848         * tests/test-dup2.c (main): Enhance test.
31849
31850         cloexec: add dup_cloexec
31851         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31852         header and comments.
31853         * lib/cloexec.c (set_cloexec_flag): Add comments.
31854         (dup_cloexec): New function, with mingw implementation borrowed
31855         from...
31856         * lib/w32spawn.h (dup_noinherit): ...here.
31857         * modules/execute (Depends-on): Add cloexec.
31858         * modules/pipe (Depends-on): Likewise.
31859         * modules/cloexec (Depends-on): Add dup2.
31860         * modules/cloexec-tests (Files): New file.
31861         * tests/test-cloexec.c: Likewise.
31862
31863         test-xalloc-die: fix test for mingw
31864         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31865         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31866         directory and .exe suffix off argv[0] output.
31867
31868         test-fseeko: fix test for mingw
31869         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31870         than undefining fseek, so test will pass on mingw.
31871
31872 2009-12-05  Bruno Haible  <bruno@clisp.org>
31873
31874         * lib/progname.h (set_program_name): Clarify specification.
31875         * lib/progname.c (set_program_name): Likewise.
31876         Reported by Jim Meyering.
31877
31878 2009-12-05  Jim Meyering  <meyering@redhat.com>
31879
31880         maint.mk: backslash-escape parens in default regexp
31881         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31882         backslash-escape the literal parentheses.
31883
31884         maint.mk: news-date-check: use grep -E
31885         * top/maint.mk (today): Define a Make variable, not a...
31886         (news-date-check): ...shell variable.
31887         (news-date-regexp): Use the Make variable.
31888         Use grep's -E option.  Change the failing diagnostic to mention
31889         the variable, $(news-date-regexp).
31890
31891 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31892
31893         maintainer-makefile: allow customization of NEWS entry format
31894         * top/maint.mk (news-date-regexp): New overridable variable.
31895         (news-date-check): Use it.
31896
31897 2009-12-04  Eric Blake  <ebb9@byu.net>
31898
31899         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31900         * lib/mgetgroups.h (xgetgroups): New prototype.
31901         * lib/mgetgroups.c (xgetgroups): New wrapper.
31902         (mgetgroups): Handle ENOSYS.
31903         * modules/mgetgroups (Depends-on): Add realloc.
31904         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31905
31906         mgetgroups: avoid argument promotion issues with -1
31907         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31908         for invalid gid_t.
31909         * tests/test-chown.h (getegid, test_chown): Likewise.
31910         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31911
31912 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31913
31914         exclude: Fix header file problems.
31915         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31916
31917 2009-12-01  Jim Meyering  <meyering@redhat.com>
31918
31919         fts: fts_open: do not let an empty string cause immediate failure
31920         This is required in support of GNU rm, for which the command
31921         "rm A '' B" must process and remove both A and B, in spite of
31922         the empty string argument.
31923         * lib/fts.c (fts_open): Do not let the presence of an empty string
31924         cause fts_open to fail immediately.  Most fts-using tools must be
31925         able to process all arguments, in order, and can be expected to
31926         diagnose such arguments themselves.
31927
31928 2009-11-30  Eric Blake  <ebb9@byu.net>
31929
31930         utimens: fix compilation error
31931         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31932         Declare variable at right scope.
31933
31934 2009-11-29  Jim Meyering  <meyering@redhat.com>
31935
31936         bootstrap: handle perl-5.11's changed --version output
31937         * build-aux/bootstrap (get_version): Handle perl separately,
31938         since perl-5.11's --version output is different.
31939
31940 2009-11-28  Jim Meyering  <meyering@redhat.com>
31941
31942         userspec: depend on the inttostr module, too
31943         * modules/userspec (Depends-on): Add inttostr.
31944
31945         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31946         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31947         number of MAXUID when it evaluates to (uid_t) -1.
31948         Likewise for group ID.  Reported by Matt McCutchen in
31949         <http://savannah.gnu.org/bugs/?28113>
31950
31951         userspec: reformat to use spaces, not TABs
31952         * lib/userspec.c: Expand TABs to spaces.
31953         Add Emacs' "indent-tabs-mode: nil" hint.
31954
31955 2009-11-27  Eric Blake  <ebb9@byu.net>
31956
31957         getopt-gnu: flush out another BSD bug
31958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31959         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31960         flush out BSD bug.
31961         * tests/test-getopt.h (test_getopt): End lists with NULL.
31962         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31963         (test_getopt_long_posix): Enhance test.
31964         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31965         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31966         getopt-gnu.
31967         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31968         Likewise.
31969
31970 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31971
31972         * modules/idpriv-droptemp-tests (Notice): Fix text.
31973
31974 2009-11-27  Jim Meyering  <meyering@redhat.com>
31975
31976         test-xalloc-die: avoid spurious failure due to libtool argv difference
31977         In a libtool-enabled project, this test would fail due to a difference
31978         in the emitted program name, e.g.,
31979         -test-xalloc-die: memory exhausted
31980         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31981         Use program to avoid that.
31982         * modules/xalloc-die-tests (Depends-on): Add progname.
31983         * tests/test-xalloc-die.c: Include progname.h".
31984         (program_name): Remove decl.
31985         (main): Call set_program_name.
31986         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31987
31988 2009-11-26  Richard Jones  <rjones@redhat.com>
31989
31990         w32sock: leave win32 error in place.
31991         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31992
31993 2009-11-26  Eric Blake  <ebb9@byu.net>
31994
31995         init.sh: suggest to use skip_ and fail_ functions in comments
31996         * tests/init.sh: Add a sentence.
31997
31998 2009-11-25  Bruno Haible  <bruno@clisp.org>
31999
32000         init.sh: add documentation in comments
32001         * tests/init.sh: Add some developer and user documentation.
32002
32003 2009-11-26  Jim Meyering  <meyering@redhat.com>
32004
32005         init.sh: accommodate even those who specify bogus srcdir manually
32006         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32007         configure-time tests to be sanitized, so that there is no need to
32008         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32009         (with no double quotes) suffices.  However, since tests may be
32010         invoked manually, and since you may explicitly set srcdir to the
32011         name of a directory containing spaces, do quote its uses here.
32012         * tests/test-pread.sh: Likewise.
32013         Suggested by Bruno Haible.
32014
32015         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32016         * tests/test-pread.sh: Write no data into the pipe, because
32017         test-pread actually reads none.  This avoids a diagnostic,
32018         "bash: echo: write error: Broken pipe", that arises in the unusual
32019         event something is ignoring SIGPIPE, and might be interpreted
32020         as some sort of failure.  Reported by Bruno Haible.
32021
32022 2009-11-25  Jim Meyering  <meyering@redhat.com>
32023
32024         test-pread: cover failure with ESPIPE and EINVAL
32025         * tests/test-pread.c (main): Test for failure, too.
32026         * tests/test-pread.sh: Invoke with stdin on a pipe.
32027         Suggested by Eric Blake.
32028
32029         pread: improvement and fix
32030         * modules/pread (Depends-on): Depend on lseek, for portability to
32031         e.g., mingw.  Suggested by Eric Blake.
32032         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32033
32034         unistd.in.h: correct declaration of pread
32035         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32036         Reported by Richard W.M. Jones.
32037
32038         test-pread.sh: distribute the test script
32039         * modules/pread-tests (Files): Include test-pread.sh.
32040
32041         test-pread.sh: clean up
32042         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32043         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32044         That is unnecessary, since it's always ".".
32045         Suggestion from Eric Blake.
32046
32047         test-pread.sh: make executable
32048         * tests/test-pread.sh: Set executable bit.
32049         Reported by Eric Blake.
32050
32051         correct typo in test-pread.sh
32052         * tests/test-pread.sh: Add #! line.
32053
32054         test pread
32055         * tests/test-pread.c: New file.
32056         * tests/test-pread.sh: Likewise.
32057         * modules/pread-tests: Likewise.
32058
32059         pread: new module
32060         * modules/pread: New file.
32061         * lib/unistd.in.h (pread): Define/declare.
32062         * lib/pread.c (pread): New file.
32063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32064         * modules/unistd (Makefile.am): Substitute witnesses.
32065         * doc/posix-functions/pread.texi (pread): Update.
32066         * MODULES.html.sh: Add pread.
32067
32068 2009-11-25  Jim Meyering  <meyering@redhat.com>
32069
32070         tests/init.sh: new file to be used via most *.sh tests
32071         * tests/init.sh: New file.
32072
32073 2009-11-25  Eric Blake  <ebb9@byu.net>
32074
32075         utimens: work around older Linux failure with symlinks
32076         * lib/utimens.c (lutimensat_works_really): New variable.
32077         (fdutimens, lutimens): Use it to manage kernels that support
32078         nanosecond times on files, but not on symlinks.
32079         Reported by OndÅ™ej Vašík.
32080
32081         utimes: fix configure grammar
32082         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32083
32084 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32085
32086         regex: Fix fastmap for multibyte character ranges.
32087         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32088         characters when a multibyte character range is included.
32089
32090 2009-11-22  Andy Wingo  <wingo@pobox.com>
32091
32092         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32093         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32094
32095 2009-11-24  Bruno Haible  <bruno@clisp.org>
32096
32097         doc: Most *_l functions exist in MacOS X 10.5.
32098         * doc/posix-functions/duplocale.texi: Update platforms list.
32099         * doc/posix-functions/freelocale.texi: Likewise.
32100         * doc/posix-functions/newlocale.texi: Likewise.
32101         * doc/posix-functions/uselocale.texi: Likewise.
32102         * doc/posix-functions/isalnum_l.texi: Likewise.
32103         * doc/posix-functions/isalpha_l.texi: Likewise.
32104         * doc/posix-functions/isblank_l.texi: Likewise.
32105         * doc/posix-functions/iscntrl_l.texi: Likewise.
32106         * doc/posix-functions/isdigit_l.texi: Likewise.
32107         * doc/posix-functions/isgraph_l.texi: Likewise.
32108         * doc/posix-functions/islower_l.texi: Likewise.
32109         * doc/posix-functions/isprint_l.texi: Likewise.
32110         * doc/posix-functions/ispunct_l.texi: Likewise.
32111         * doc/posix-functions/isspace_l.texi: Likewise.
32112         * doc/posix-functions/isupper_l.texi: Likewise.
32113         * doc/posix-functions/iswalnum_l.texi: Likewise.
32114         * doc/posix-functions/iswalpha_l.texi: Likewise.
32115         * doc/posix-functions/iswblank_l.texi: Likewise.
32116         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32117         * doc/posix-functions/iswctype_l.texi: Likewise.
32118         * doc/posix-functions/iswdigit_l.texi: Likewise.
32119         * doc/posix-functions/iswgraph_l.texi: Likewise.
32120         * doc/posix-functions/iswlower_l.texi: Likewise.
32121         * doc/posix-functions/iswprint_l.texi: Likewise.
32122         * doc/posix-functions/iswpunct_l.texi: Likewise.
32123         * doc/posix-functions/iswspace_l.texi: Likewise.
32124         * doc/posix-functions/iswupper_l.texi: Likewise.
32125         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32126         * doc/posix-functions/isxdigit_l.texi: Likewise.
32127         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32128         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32129         * doc/posix-functions/strcoll_l.texi: Likewise.
32130         * doc/posix-functions/strfmon_l.texi: Likewise.
32131         * doc/posix-functions/strftime_l.texi: Likewise.
32132         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32133         * doc/posix-functions/strxfrm_l.texi: Likewise.
32134         * doc/posix-functions/tolower_l.texi: Likewise.
32135         * doc/posix-functions/toupper_l.texi: Likewise.
32136         * doc/posix-functions/towctrans_l.texi: Likewise.
32137         * doc/posix-functions/towlower_l.texi: Likewise.
32138         * doc/posix-functions/towupper_l.texi: Likewise.
32139         * doc/posix-functions/wcscoll_l.texi: Likewise.
32140         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32141         * doc/posix-functions/wctrans_l.texi: Likewise.
32142         * doc/posix-functions/wctype_l.texi: Likewise.
32143         * doc/glibc-functions/strptime_l.texi: Likewise.
32144         * doc/glibc-functions/strtod_l.texi: Likewise.
32145         * doc/glibc-functions/strtof_l.texi: Likewise.
32146         * doc/glibc-functions/strtol_l.texi: Likewise.
32147         * doc/glibc-functions/strtold_l.texi: Likewise.
32148         * doc/glibc-functions/strtoll_l.texi: Likewise.
32149         * doc/glibc-functions/strtoul_l.texi: Likewise.
32150         * doc/glibc-functions/strtoull_l.texi: Likewise.
32151         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32152         * doc/glibc-functions/wcstod_l.texi: Likewise.
32153         * doc/glibc-functions/wcstof_l.texi: Likewise.
32154         * doc/glibc-functions/wcstol_l.texi: Likewise.
32155         * doc/glibc-functions/wcstold_l.texi: Likewise.
32156         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32157         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32158         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32159
32160 2009-11-24  Bruno Haible  <bruno@clisp.org>
32161
32162         duplocale: Fix logic bug.
32163         * lib/duplocale.c: Don't include <langinfo.h>.
32164         (_NL_LOCALE_NAME): Remove macro.
32165         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32166         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32167
32168 2009-11-23  Jim Meyering  <meyering@redhat.com>
32169
32170         test-update-copyright: don't hard-code /usr/bin/perl
32171         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32172         perl to print the current year.  Gilles Espinasse reported that
32173         the replaced use of perl was hard-coded as /usr/bin/perl.
32174
32175 2009-11-23  Bruno Haible  <bruno@clisp.org>
32176
32177         duplocale: Add support for glibc 2.3.x.
32178         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32179
32180 2009-11-22  Bruno Haible  <bruno@clisp.org>
32181
32182         vasnprintf: Tiny optimization.
32183         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32184         MacOS X.
32185
32186 2009-11-22  Bruno Haible  <bruno@clisp.org>
32187
32188         Tests for module 'duplocale'.
32189         * modules/duplocale-tests: New file.
32190         * tests/test-duplocale.c: New file.
32191
32192         New module 'duplocale'.
32193         * m4/duplocale.m4: New file.
32194         * lib/locale.in.h (duplocale): New declaration.
32195         * lib/duplocale.c: New file.
32196         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32197         gl_LOCALE_H_DEFAULTS): New macros.
32198         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32199         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32200         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32201         REPLACE_DUPLOCALE.
32202         * modules/duplocale: New file.
32203         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32204
32205 2009-11-22  Bruno Haible  <bruno@clisp.org>
32206
32207         * modules/locale-tests (configure.ac): Test for newlocale function.
32208         * tests/test-locale.c: When the system has extended locale functions,
32209         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32210
32211         locale: Make locale_t available when possible.
32212         * lib/locale.in.h: Include <xlocale.h> when it exists.
32213         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32214         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32215         * modules/locale (Depends-on): Add extensions.
32216         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32217         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32218
32219 2009-11-22  Bruno Haible  <bruno@clisp.org>
32220
32221         Add comments.
32222         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32223         invocation.
32224         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32225         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32226         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32227
32228 2009-11-22  Bruno Haible  <bruno@clisp.org>
32229
32230         error: account for the possibility of freopen (stdout).
32231         * lib/error.c: Include <unistd.h>.
32232         (flush_stdout): New function, extracted from error and error_at_line.
32233         Determine stdout's fd dynamically.
32234         (error, error_at_line): Invoke flush_stdout.
32235         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32236         * modules/error (Depends-on): Add unistd.
32237
32238 2009-11-22  Bruno Haible  <bruno@clisp.org>
32239
32240         diffseq: Add comment.
32241         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32242
32243 2009-11-22  Jim Meyering  <meyering@redhat.com>
32244
32245         c-stack: avoid defining an unused static function
32246         * lib/c-stack.c (find_stack_direction): Do not define this function
32247         when it will not be used.
32248
32249         diffseq: avoid spurious gcc warnings
32250         * lib/diffseq.h (IF_LINT2): Define.
32251         (compareseq): Use it to initialize two members of "part".
32252         This avoids two used-uninitialized warnings.
32253
32254 2009-11-21  Jim Meyering  <meyering@redhat.com>
32255
32256         c-stack: avoid "ignoring return value of `write'" warning
32257         * lib/c-stack.c: Include "ignore-value.h".
32258         (die): Explicitly ignore each write return value.
32259         * modules/c-stack (Depends-on): Add ignore-value.
32260
32261 2009-11-21  Bruno Haible  <bruno@clisp.org>
32262
32263         diffseq: reduce scope of variable 'best'.
32264         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32265         variable, earlier used for two different purposes.
32266
32267 2009-11-21  Jim Meyering  <meyering@redhat.com>
32268
32269         diffseq: remove useless assignment to "best"
32270         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32271         assignment.  At that point "best" is already guaranteed to be zero.
32272
32273 2009-11-20  Eric Blake  <ebb9@byu.net>
32274
32275         build: mention ftp redirector in release announcements
32276         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32277         values that used to come from cfg.mk; mention FTP redirect URL.
32278         * build-aux/announce-gen: Mention the mirror list.
32279         Suggested by Karl Berry.
32280
32281         nanosleep: improve port to mingw
32282         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32284         LIB_NANOSLEEP, but only when needed.
32285         * modules/select (Link): Document LIBSOCKET.
32286         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32287         enough.
32288
32289         nanosleep: work around cygwin bug
32290         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32291         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32292         bug.
32293         (getnow): Delete, not needed.
32294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32295         LIB_CLOCK_GETTIME.
32296         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32297         clock-time, gettime.
32298         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32299         bug.
32300         * modules/nanosleep-tests: New test.
32301         * tests/test-nanosleep.c: New file.
32302
32303         sleep: work around cygwin bug
32304         * lib/sleep.c (rpl_sleep): Work around the bug.
32305         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32306         (gl_PREREQ_SLEEP): Delete unused macro.
32307         * modules/sleep (Depends-on): Add verify.
32308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32309         * modules/unistd (Makefile.am): Substitute witness.
32310         * lib/unistd.in.h (sleep): Update prototype.
32311         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32312         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32313         * modules/sleep-tests (Depends-on): Check for alarm.
32314
32315 2009-11-20  Jim Meyering  <meyering@redhat.com>
32316
32317         maint.mk: improve sc_prohibit_magic_number_exit
32318         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32319         so it does not match uses like System.exit(1).
32320         Add comments showing how to correct all offenders.
32321
32322 2009-11-19  Eric Blake  <ebb9@byu.net>
32323
32324         xalloc-die-tests: add missing library
32325         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32326
32327         test-xvasprintf: silence compiler warnings
32328         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32329         empty string from gcc.
32330
32331 2009-11-19  Jim Meyering  <meyering@redhat.com>
32332
32333         xfreopen: new module, from coreutils
32334         * modules/xfreopen: New module.
32335         * lib/xfreopen.c: New file.
32336         * lib/xfreopen.h: New file.
32337         * MODULES.html.sh (File stream based Input/Output"): Add it.
32338
32339 2009-11-19  Eric Blake  <ebb9@byu.net>
32340
32341         manywarnings: depend on warnings
32342         * modules/manywarnings (Depends-on): Add warnings.
32343
32344         build: avoid compiler warnings
32345         * lib/select.c (rpl_select): Delete unused variable.
32346         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32347
32348 2009-11-18  Eric Blake  <ebb9@byu.net>
32349
32350         tests: avoid false negative with --with-packager
32351         * tests/test-version-etc.sh: Discard packager information.
32352         * tests/test-argp-version-etc-1.sh: Likewise.
32353         Reported by Mike Frysinger.
32354
32355         utimens: fix regression on Solaris
32356         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32357         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32358         can only change fd timestamps via futimesat.  Instead, use an
32359         additional witness macro to avoid BSD bug.
32360         Reported by Jim Meyering.
32361
32362 2009-11-17  Eric Blake  <ebb9@byu.net>
32363
32364         usleep: use it to simplify tests
32365         * modules/stat-time-tests (Depends-on): Add usleep.
32366         (configure.ac): Drop usleep check.
32367         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32368         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32369         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32370         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32371         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32372         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32373         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32374         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32375         Likewise.
32376         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32377         * tests/test-lchown.h (nap): Likewise.
32378         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32379         * tests/test-stat-time.c (nap): Likewise.
32380         * tests/test-utimens-common.h (nap): Update comments.
32381
32382         usleep: new module
32383         * modules/usleep: New file.
32384         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32385         * lib/usleep.c (usleep): Likewise.
32386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32387         * modules/unistd (Makefile.am): Substitute witnesses.
32388         * lib/unistd.in.h (usleep): Add declaration.
32389         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32390         * MODULES.html.sh (Date and time): Likewise.
32391         * modules/usleep-tests (Depends-on): New test.
32392         * tests/test-usleep.c: New file.
32393
32394         chown: work around OpenBSD bug
32395         * lib/chown.c (rpl_chown): Work around the bug.
32396         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32397         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32399         * modules/chown (Depends-on): Add stdbool.
32400         * modules/lchown (Depends-on): Likewise.
32401         * doc/posix-functions/chown.texi (chown): Document the bug.
32402         * doc/posix-functions/lchown.texi (lchown): Likewise.
32403         * tests/test-lchown.h (test_chown): Relax test.
32404
32405         mkstemp: avoid conflict with C++ keyword template
32406         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32407         * lib/mkostemp.c (mkostemp): Likewise.
32408         * lib/mkostemps.c (mkostemps): Likewise.
32409         * lib/mkstemp.c (mkstemp): Likewise.
32410         * lib/mkstemps.c (mkstemps): Likewise.
32411
32412         xalloc-die-tests: optimize
32413         * tests/test-xalloc-die.sh: Reduce number of processes.
32414
32415 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32416
32417         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32418         patch from ludo@gnu.org (Ludovic Courtès).
32419
32420 2009-11-17  Jim Meyering  <meyering@redhat.com>
32421
32422         version-etc: use proper license string
32423         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32424         * modules/version-etc-fsf: Likewise.
32425
32426 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32427
32428         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32429         printed to stdout.  Deal with EOL differences.
32430
32431 2009-11-17  Eric Blake  <ebb9@byu.net>
32432
32433         unsetenv: work around Solaris bug
32434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32435         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32436         Reported by Jim Meyering.
32437
32438         vasnprintf: avoid compiler warnings
32439         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32440         variables.
32441         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32442
32443 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32444
32445         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32446         settings since xalloc-die is no longer the self test,
32447         xalloc-die.sh is.
32448
32449 2009-11-17  Jim Meyering  <meyering@redhat.com>
32450
32451         test-xalloc-die.sh: make the code agree with the commit log
32452         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32453         at the end, just in case you happen to have a test-xalloc-die
32454         program in some other PATH directory.
32455
32456         test-xalloc-die.sh: fix a portability bug
32457         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32458         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32459         Otherwise, argv[0] (as often seen in diagnostics) would be too
32460         system-dependent, sometimes with, and sometimes without the leading "./".
32461
32462         version-etc-fsf: relax license to LGPLv3+
32463         * modules/version-etc-fsf (License): Relax license.
32464
32465 2009-11-16  Eric Blake  <ebb9@byu.net>
32466
32467         xalloc-die-tests: avoid printing null pointer
32468         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32469         shell script.
32470         * tests/test-xalloc-die.c (program_name): Declare.
32471         * tests/test-xalloc-die.sh (tmpfiles): New file.
32472
32473         setenv, unsetenv: work around various bugs
32474         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32475         (setenv) [HAVE_SETENV]: Work around bugs.
32476         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32477         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32478         for bugs.
32479         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32480         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32482         * modules/stdlib (Makefile.am): Update substitutions.
32483         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32484         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32485         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32486         * modules/setenv-tests: New test.
32487         * modules/unsetenv-tests: Likewise.
32488         * tests/test-setenv.c: New file.
32489         * tests/test-unsetenv.c: Likewise.
32490
32491 2009-11-16  Jim Meyering  <meyering@redhat.com>
32492
32493         version-etc: relax license to LGPLv3+
32494         * modules/version-etc (License): Relax license.
32495
32496         better AC_REQUIRE expanded-before-required-warning avoidance
32497         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32498         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32499         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32500         which is no longer needed.
32501
32502 2009-11-16  Eric Blake  <ebb9@byu.net>
32503
32504         test-freading: clean up temporary file
32505         * tests/test-freading.c (main): Remove file on success, and use
32506         ASSERT more liberally.
32507         Reported by Jim Meyering.
32508
32509 2009-11-16  Jim Meyering  <meyering@redhat.com>
32510
32511         avoid new AC_REQUIRE expanded-before-required warnings
32512         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32513         merely using it.
32514         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32515         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32516
32517 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32518
32519         * tests/test-xalloc-die.c: New file.
32520         * modules/xalloc-die-tests: New file.
32521         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32522         XFAIL_TESTS so it can be appended by modules.
32523
32524 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32525
32526         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32527         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32528
32529 2009-11-14  Eric Blake  <ebb9@byu.net>
32530
32531         fnmatch: avoid compiler warning
32532         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32533         to silence compiler warning about mismatch signedness in ?:.
32534         Reported by Robert Millan.
32535
32536         intprops: add double-inclusion guard
32537         * lib/intprops.h: Allow idempotent includes.
32538         Suggested by Bruce Korb.
32539
32540         openat: detect Solaris fchownat bug
32541         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32542         penalizing glibc chownat when only lchownat is broken.
32543         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32544         trailing slash bugs.
32545         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32546         * modules/openat-tests (Files): Include more files.
32547         (Depends-on): Add mgetgroups, sleep, stat-time.
32548         (configure.ac): Add additional checks.
32549         (Makefile.am): Build new test.
32550         * tests/test-fchownat.c: New file.
32551
32552         lchown: detect Solaris and FreeBSD bug
32553         * lib/lchown.c (rpl_lchown): Work around bug.
32554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32556         * modules/unistd (Makefile.am): Populate it.
32557         * lib/unistd.in.h (lchown): Update declaration.
32558         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32559         * modules/lchown-tests: New file.
32560         * tests/test-lchown.h (test_lchown): Likewise.
32561         * tests/test-lchown.c (main): Likewise.
32562
32563         chown: detect Solaris and FreeBSD bug
32564         * lib/chown.c (rpl_chown): Work around bug.
32565         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32566         (gl_PREREQ_CHOWN): Delete.
32567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32568         * modules/unistd (Makefile.am): Populate it.
32569         * lib/unistd.in.h (chown): Update declaration.
32570         * lib/lchown.c (chown): Update client.
32571         * modules/lchown (Depends-on): Add lstat.
32572         * doc/posix-functions/chown.texi (chown): Document the bug.
32573         * doc/posix-functions/getgroups.texi (getgroups): Document
32574         getgroups pitfall.
32575         * modules/chown-tests: New file.
32576         * tests/test-chown.h (test_chown): Likewise.
32577         * tests/test-chown.c (main): Likewise.
32578
32579 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32580
32581         gnulib-tool: correctly detect absence of m4 directories
32582         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32583
32584 2009-11-14  Jim Meyering  <meyering@redhat.com>
32585
32586         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32587         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32588
32589 2009-11-14  John W. Eaton  <jwe@gnu.org>
32590
32591         strftime.h: wrap funtion declaration in extern "C" block
32592         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32593
32594 2009-11-13  Eric Blake  <ebb9@byu.net>
32595
32596         getgroups: avoid compiler warning
32597         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32598
32599         getgroups: work around FreeBSD bug
32600         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32601         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32602         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32603         * tests/test-getgroups.c (main): Fix buffer overrun.
32604
32605         getgroups: avoid compilation failure
32606         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32607         * modules/getgroups (Depends-on): Add stdint.
32608
32609 2009-11-13  Jim Meyering  <meyering@redhat.com>
32610
32611         test-getgroups: avoid compilation failure
32612         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32613
32614 2009-11-13  Eric Blake  <ebb9@byu.net>
32615
32616         mgetgroups: new module, taken from coreutils
32617         * modules/mgetgroups: New file.
32618         * lib/mgetgroups.h: Likewise.
32619         * lib/mgetgroups.c (mgetgroups): Likewise.
32620         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32621         * MODULES.html.sh (Users and groups): Mention it.
32622
32623         getgroups: don't expose GETGROUPS_T to user
32624         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32625         an element at a time if GETGROUPS_T is wrong size.
32626         * lib/getugroups.h (getugroups): Change signature.
32627         * lib/unistd.in.h (getgroups): Likewise.
32628         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32629         signature needs fixing.
32630         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32631         AC_TYPE_GETGROUPS.
32632         * modules/group-member (Depends-on): Add getgroups.
32633         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32634         (group_member): Rely on getgroups replacement.
32635         * lib/getugroups.c (getugroups): Use gid_t.
32636         * tests/test-getgroups.c (main): Likewise.
32637         * NEWS: Mention the signature change.
32638         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32639         problem with signature.
32640         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32641         GETGROUPS_T is still useful for setgroups.
32642
32643         getgroups, getugroups: provide stubs for mingw
32644         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32645         * lib/getugroups.c (getugroups): Likewise.
32646         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32647         function.  Modernize replacement scheme.
32648         (gl_PREREQ_GETGROUPS): Delete.
32649         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32650         * modules/getgroups (configure.ac): Declare witness.
32651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32652         * modules/unistd (Depends-on): Substitute witness.
32653         * lib/unistd.in.h (getgroups): Declare replacement.
32654
32655         getgroups: avoid calling exit
32656         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32657         drop xalloc.
32658         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32659         dependencies.
32660         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32661         exiting, in the rare case of malloc failure.
32662
32663         getgroups: fix logic error
32664         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32665         has more than 20 groups.
32666         * modules/getgroups-tests: New test.
32667         * tests/test-getgroups.c: New file.
32668
32669 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32670
32671         * tests/test-base64.c: Improve.
32672
32673 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32674
32675         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32676         Blake <ebb9@byu.net>.
32677
32678 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32679
32680         * tests/test-xvasprintf.c: Add %s%s related checks.
32681
32682 2009-11-12  Eric Blake  <ebb9@byu.net>
32683
32684         version-etc: match standards.texi style
32685         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32686         and use <> only for URLs.
32687
32688 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32689
32690         fts: do not fail on a submount during traversal
32691         * lib/fts.c (fts_build): Read the stat info again after opening
32692         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32693         Original report at http://bugzilla.redhat.com/501848.
32694
32695 2009-11-12  Jim Meyering  <meyering@redhat.com>
32696
32697         bootstrap: sync from coreutils
32698         * build-aux/bootstrap (bootstrap_epilogue): New function.
32699         Use git_modules_config in one more place.  This make bootstrap's
32700         --gnulib-srcdir option more useful for testing.
32701
32702         bootstrap: generalize autoheader check
32703         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32704         AC_CONFIG_HEADERS.
32705
32706 2009-11-11  Eric Blake  <ebb9@byu.net>
32707
32708         mkfifoat: use new modules for Solaris and BSD bugs
32709         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32710         * lib/mkfifoat.c (mknodat): Split...
32711         * lib/mknodat.c (mknodat): ...into new file.
32712         * modules/mkfifoat (Files): Ship new file.
32713         (Depends-on): Add mkfifo, mknod.
32714         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32715         (Depends-on): Add symlink.
32716         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32717         redundant with test_mkfifo.h.
32718         (do_mkfifoat, do_mknodat): New helpers.
32719
32720         mknod: new module
32721         * modules/mknod: New file.
32722         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32723         * lib/mknod.c (mknod): Likewise.
32724         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32725         defaults.
32726         * modules/sys_stat (Makefile.am): Substitute them.
32727         * lib/sys_stat.in.h (mknod): Declare replacement.
32728         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32729         Document it.
32730         * doc/posix-functions/mknod.texi (mknod): Likewise.
32731         * modules/mknod-tests: New test.
32732         * tests/test-mknod.c: Likewise.
32733
32734         mkfifo: new module
32735         * modules/mkfifo: New file.
32736         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32737         * lib/mkfifo.c (mkfifo): Likewise.
32738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32739         defaults.
32740         * modules/sys_stat (Makefile.am): Substitute them.
32741         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32742         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32743         Document it.
32744         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32745         * modules/mkfifo-tests: New test.
32746         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32747         from test-mkfifoat.c.
32748         * tests/test-mkfifo.c: New file.
32749
32750         readlink: detect FreeBSD bug
32751         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32752         slash on symlink.
32753         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32754         * tests/test-readlink.h (test_readlink): Enhance test.
32755
32756         symlink: detect FreeBSD bug
32757         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32758         slash on symlink.
32759         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32760         * tests/test-symlink.h (test_symlink): Enhance test.
32761
32762 2009-11-10  Eric Blake  <ebb9@byu.net>
32763
32764         link: detect FreeBSD bug
32765         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32766         symlink.
32767         * doc/posix-functions/link.texi (link): Document the bug.
32768         * tests/test-link.h (test_link): Enhance test.
32769         * tests/test-linkat.c (main): Update caller.
32770
32771         unlink, remove: detect FreeBSD bug
32772         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32773         slash on symlink.
32774         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32775         * doc/posix-functions/remove.texi (remove): Likewise.
32776         * tests/test-unlink.h (test_unlink): Enhance test.
32777         * tests/test-remove.c (main): Likewise.
32778
32779 2009-11-09  Eric Blake  <ebb9@byu.net>
32780
32781         rename: detect FreeBSD bug
32782         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32783         slash on symlink.
32784         * modules/renameat-tests (Depends-on): Add filenamecat.
32785         * tests/test-rename.h (test_rename): Allow one more errno.
32786         * tests/test-renameat.c (main): Likewise.
32787         * doc/posix-functions/rename.texi (rename): Document the bug.
32788
32789         open: detect FreeBSD bug
32790         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32791         symlink.
32792         * doc/posix-functions/open.texi (open): Document the bug.
32793         * doc/posix-functions/utimes.texi (utimes): Likewise.
32794         * tests/test-open.h (test_open): Add parameters, and test symlink
32795         handling.
32796         * tests/test-open.c (main): Adjust caller.
32797         * tests/test-fcntl-safer.c (main): Likewise.
32798         * modules/open-tests (Depends-on): Add stdbool, symlink.
32799         * modules/fcntl-safer-tests (Depends-on): Likewise.
32800         * tests/test-openat.c (main): Add test-open tests.
32801
32802         stat: detect FreeBSD bug
32803         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32804         symlink.
32805         * doc/posix-functions/stat.texi (stat): Document the bug.
32806         * tests/test-stat.h (test_stat_func): Add argument.
32807         * tests/test-stat.c (main): Adjust caller.
32808         * tests/test-fstatat.c (main): Likewise.
32809         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32810         Reported by Jim Meyering.
32811
32812 2009-11-09  James Youngman  <jay@gnu.org>
32813
32814         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32815         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32816
32817 2009-11-08  Jim Meyering  <meyering@redhat.com>
32818
32819         utimens: remove invalid futimesat call
32820         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32821         It used the file descriptor of the target file as the DIR_FD
32822         parameter and NULL as the file name.  That caused failure with
32823         errno == EFAULT on FreeBSD-8.0-rc2
32824
32825 2009-11-07  Eric Blake  <ebb9@byu.net>
32826
32827         fflush, freadseek: use fseeko, not fseek
32828         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32829         (clear_ungetc_buffer): Avoid potential problems on large files.
32830         * lib/freadseek.c (freadseek): Likewise.
32831         * modules/freadseek (Depends-on): Add fseeko.
32832         * modules/fseek (configure.ac): Set a witness.
32833         * tests/test-fflush.c (main): Use fseeko.
32834         * tests/test-fpurge.c (fseek): Disable link warning.
32835         * tests/test-freadable.c (fseek): Likewise.
32836         * tests/test-freading.c (fseek): Likewise.
32837         * tests/test-fseeko.c (fseek): Likewise.
32838         * tests/test-ftell.c (fseek): Likewise.
32839         * tests/test-ftello.c (fseek): Likewise.
32840         * tests/test-fwritable.c (fseek): Likewise.
32841         * tests/test-fwriting.c (fseek): Likewise.
32842
32843 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32844
32845         * modules/memchr (Depends-on): Drop getpagesize dependency.
32846
32847 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32848
32849         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32850         Reported by Ludovic Courtès.
32851         * build-aux/pmccabe2html: Improve example usage.
32852         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32853
32854 2009-11-06  Jim Meyering  <meyering@redhat.com>
32855
32856         do-release-commit-and-tag: New module.
32857         Automate the release-commit and tag process.
32858         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32859         * modules/do-release-commit-and-tag: New file.
32860         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32861
32862 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32863
32864         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32865         because test-select.c uses inet_pton.
32866
32867 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32868
32869         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32870         GETADDRINFO_LIB.  Bump serial number.
32871         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32872         Suggested by Eric Blake <ebb9@byu.net>.
32873
32874 2009-11-05  Eric Blake  <ebb9@byu.net>
32875
32876         strtod: detect darwin bug
32877         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32878         Reported by Leo Davis.
32879
32880         freopen-safer: new module
32881         * modules/freopen-safer: New module.
32882         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32883         * lib/freopen-safer.c (freopen_safer): New file.
32884         * lib/stdio-safer.h (freopen_safer): New declaration.
32885         * lib/stdio--.h (freopen): New override.
32886         * MODULES.html.sh (File stream based Input/Output): Mention it.
32887         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32888         freopen-safer module.
32889         * doc/posix-functions/stderr.texi (stderr): Likewise.
32890         * doc/posix-functions/stdin.texi (stdin): Likewise.
32891         * doc/posix-functions/stdout.texi (stdout): Likewise.
32892         * modules/freopen-safer-tests: New test.
32893         * tests/test-reopen-safer.c: New file.
32894
32895 2009-11-05  Jim Meyering  <meyering@redhat.com>
32896
32897         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32898         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32899
32900 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32901
32902         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32903
32904 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32905
32906         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32907
32908 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32909
32910         Fix link error.
32911         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32912         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32913
32914 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32915
32916         * tests/test-func.c: Also test value of __func__.
32917
32918 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32919
32920         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32921         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32922
32923 2009-11-05  Bruno Haible  <bruno@clisp.org>
32924
32925         Fix link error.
32926         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32927         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32928         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32929
32930 2009-11-05  Bruno Haible  <bruno@clisp.org>
32931
32932         Tests for module 'inet_pton'.
32933         * modules/inet_pton-tests: New file.
32934         * tests/test-inet_pton.c: New file.
32935
32936 2009-11-05  Bruno Haible  <bruno@clisp.org>
32937
32938         Tests for module 'inet_ntop'.
32939         * modules/inet_ntop-tests: New file.
32940         * tests/test-inet_ntop.c: New file.
32941
32942 2009-11-04  Eric Blake  <ebb9@byu.net>
32943
32944         stdlib-safer: wrap all mkstemp variants
32945         * modules/mkostemp (configure.ac): Set witness.
32946         * modules/mkostemps (configure.ac): Likewise.
32947         * modules/mkstemps (configure.ac): Likewise.
32948         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32949         (mkstemps_safer): Wrap more functions.
32950         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32951         wrapping.
32952         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32953         (mkstemps_safer): Implement the wrappers.
32954
32955         mkstemps, mkostemps: new modules
32956         * modules/mkostemps: New module.
32957         * modules/mkstemps: Likewise.
32958         * lib/mkostemps.c (mkostemps): New file.
32959         * lib/mkstemps.c (mkstemps): Likewise.
32960         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32961         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32963         * modules/stdlib (Makefile.am): Substitute them.
32964         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32965         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32966         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32967         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32968         * MODULES.html.sh (File system functions): Mention them.
32969
32970         tempname: resync from glibc
32971         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32972         same values for __GT_FILE as glibc.  Abort even when assertions
32973         are disabled.
32974         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32975         match its value otherwise.  Allow idempotent inclusion.
32976         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32977         * lib/mkostemp.c (mkostemp): Likewise.
32978         * lib/mkstemp.c (mkstemp): Likewise.
32979         * lib/tmpfile.c (tmpfile): Likewise.
32980         * NEWS: Document this.
32981
32982         utimens: fix use of futimens on older Linux
32983         * lib/utimens.c (fdutimens): Use updated, rather than original,
32984         timespec to avoid bug in older Linux kernel.
32985         Reported by Simon Josefsson.
32986
32987 2009-11-04  Bruno Haible  <bruno@clisp.org>
32988
32989         Make num_processors more flexible and consistent.
32990         * lib/nproc.h (enum nproc_query): New type.
32991         (num_processors): Add a 'query' argument.
32992         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32993         (num_processors): Add a 'query' argument. Test the value of the
32994         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32995         mingw, count the number of CPUs available for the current process.
32996         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32997         Check for sched_getaffinity and sched_getaffinity_np.
32998         * modules/nproc (Depends-on): Add c-ctype, extensions.
32999         * NEWS: Mention the change.
33000
33001 2009-11-03  Bruno Haible  <bruno@clisp.org>
33002
33003         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33004
33005 2009-11-03  Jim Meyering  <meyering@redhat.com>
33006
33007         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33008         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33009         if it is defined.
33010
33011 2009-11-02  Eric Blake  <ebb9@byu.net>
33012
33013         mktime, timegm: share common declaration
33014         * lib/mktime-internal.h: New file.
33015         * lib/mktime.c: Use it rather than open-coding a declaration.
33016         * lib/timegm.c: Likewise.
33017         * modules/mktime (Files): Ship it.
33018         * modules/timegm (Files): Likewise.
33019         Suggested by Bruno Haible.
33020
33021         test-update-copyright: update test to match script changes
33022         * tests/test-update-copyright.sh: Avoid hard-coding perl
33023         location.  Don't update *.bak created by earlier runs.
33024
33025 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33026             Simon Josefsson  <simon@josefsson.org>
33027             Bruno Haible  <bruno@clisp.org>
33028
33029         Fix link error on Solaris 8.
33030         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33031         also in libnsl. Define also INET_PTON_LIB.
33032         * modules/inet_pton (Link): New section.
33033
33034 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33035             Bruno Haible  <bruno@clisp.org>
33036
33037         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33038         * modules/inet_ntop (Link): New section.
33039         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33040
33041 2009-11-02  Eric Blake  <ebb9@byu.net>
33042
33043         maint: avoid compiler warnings in m4 macros
33044         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33045         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33046
33047 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33048
33049         * m4/pmccabe2html.m4: Remove file.
33050         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33051         function.  Change maintainer.
33052         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33053         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33054         Courtès).
33055
33056 2009-10-31  Eric Blake  <ebb9@byu.net>
33057
33058         fseeko: fix m4 regression
33059         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33060         regression from 2009-10-27.
33061         Reported by Ralf Wildenhues.
33062
33063 2009-10-31  Jim Meyering  <meyering@redhat.com>
33064
33065         inttostr: aesthetics and improved (compile-time) safety
33066         Define inttype_is_signed rather than inttype_is_unsigned,
33067         since the sole use is via "#if inttype_is_signed".
33068         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33069         inttype_is_unsigned.
33070         * lib/offtostr.c (inttype_is_signed): Likewise.
33071         * lib/uinttostr.c (inttype_is_signed): Likewise.
33072         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33073         * lib/inttostr.c (inttostr): Use verify to cross-check the
33074         inttype_is_signed value and the signedness of the actual type.
33075         * modules/inttostr (Depends-on): Add verify.
33076
33077 2009-10-30  Eric Blake  <ebb9@byu.net>
33078
33079         build: avoid compiler warnings
33080         * lib/fchmodat.c (lchmod): Mark unused variables.
33081         * lib/getopt.c (_getopt_initialize): Likewise.
33082         * lib/mktime.c (__mktime_internal): Provide prototype.
33083         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33084         older gcc that do not understand #pragma GCC diagnostic.
33085         * lib/uinttostr.c (inttype_is_unsigned): Define.
33086         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33087
33088 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33089
33090         stat: fix compilation on AIX
33091         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33092         only see struct stat64.
33093
33094 2009-10-30  Eric Blake  <ebb9@byu.net>
33095
33096         exclude: make more robust
33097         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33098         rather than masking a coding bug.
33099         Suggested by Bruno Haible.
33100
33101 2009-10-30  Jim Meyering  <meyering@redhat.com>
33102
33103         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33104         Rather than putting #!/usr/bin/perl on the first line,
33105         start with a variant of what's recommended by "man perlrun" that
33106         invokes the first "perl" program from your shell's search path.
33107         * build-aux/gitlog-to-changelog: Replace #!... as above.
33108         Add a "Local Variables" perl mode setting.
33109         Prompted by a patch from Ludovic Courtès.
33110         Improved by Eric Blake.
33111         * build-aux/useless-if-before-free: Likewise.
33112         * build-aux/announce-gen: Likewise.
33113         * build-aux/update-copyright: Likewise.
33114
33115 2009-10-29  Eric Blake  <ebb9@byu.net>
33116
33117         filenamecat-lgpl: adjust clients
33118         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33119         filenamecat.
33120         * modules/renameat (Depends-on): Likewise.
33121
33122         filenamecat: split into filenamecat-lgpl
33123         * modules/filenamecat-lgpl: New module.
33124         * modules/filenamecat (Files): Move library-safe files into
33125         filenamecat-lgpl.
33126         (Depends-on): Add filenamecat-lgpl.
33127         (configure.ac): Declare witness.
33128         * lib/filenamecat.h (file_name_concat): Only declare when using
33129         GPL module.
33130         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33131         Move...
33132         * lib/filenamecat-lgpl.c: ...into new file.
33133         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33134         (gl_FILE_NAME_CONCAT): Use it.
33135         * MODULES.html.sh (File system functions): Mention new module.
33136
33137         argp: avoid memory leak
33138         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33139         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33140         base_name, since the latter malloc()s and can call exit().
33141         Leak introduced 2006-07-03.
33142
33143         dirname-lgpl: adjust clients that don't need full dirname
33144         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33145         * modules/filenamecat (Depends-on): Likewise.
33146         * modules/linkat (Depends-on): Likewise.
33147         * modules/mkancesdirs (Depends-on): Likewise.
33148         * modules/mkdir (Depends-on): Likewise.
33149         * modules/openat (Depends-on): Likewise.
33150         * modules/savewd (Depends-on): Likewise.
33151         * modules/rename (Depends-on): Likewise.
33152         (License): Relax license.
33153         * modules/mkdir-tests (Depends-on): Drop progname.
33154         (Makefile.am): Delete unneeded LDADD.
33155         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33156
33157         dirname: split into dirname-lgpl
33158         * modules/dirname-lgpl: New module.
33159         * modules/dirname (Files): Move library-safe files into
33160         dirname-lgpl.
33161         (Depends-on): Add dirname-lgpl.
33162         (configure.ac): Declare witness.
33163         * modules/double-slash-root (License): Relax license.
33164         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33165         module.
33166         * lib/dirname.c (dir_len, mdir_name): Move...
33167         * lib/dirname-lgpl.c: ...into new file.
33168         * lib/basename.c (last_component, base_len): Move...
33169         * lib/basename-lgpl.c: ...into new file.
33170         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33171         (gl_DIRNAME): Use it.
33172         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33173         Mention new module.
33174         * modules/dirname-tests (Depends-on): Add progname.
33175         * tests/test-dirname.c (program_name): Delete.
33176
33177         mkdir: make safe for libraries
33178         * modules/mkdir (Depends-on): Drop xalloc.
33179         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33180         exit.
33181
33182         tests: avoid some compiler warnings
33183         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33184         literals.
33185         * tests/test-memchr.c (main): Avoid type mismatch.
33186         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33187         * tests/test-base64.c (main): Likewise.
33188         * tests/test-getdelim.c (main): Likewise.
33189         * tests/test-gethostname.c (main): Likewise.
33190         * tests/test-getline.c (main): Likewise.
33191         * tests/test-netinet_in.c (main): Likewise.
33192         * tests/test-select.c (open_server_socket, main): Likewise.
33193         * tests/test-select-stdin.c (main): Likewise.
33194         * tests/test-sockets.c (main): Likewise.
33195         * tests/test-strsignal.c (main): Likewise.
33196         * tests/test-sys_select.c (main): Likewise.
33197         * tests/test-sys_socket.c (main): Likewise.
33198         * tests/test-u64.c (main): Likewise.
33199         * tests/test-xfprintf-posix.c (main): Likewise.
33200         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33201
33202         sockets: avoid compiler warning
33203         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33204
33205         maint: detect usage(1) and other suspicious exits
33206         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33207
33208 2009-10-29  Jim Meyering  <meyering@redhat.com>
33209
33210         timespec: long-to-int truncation could make timespec_cmp malfunction
33211         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33212         a multiple of 2^32 nanoseconds as no difference.
33213
33214 2009-10-28  Jim Meyering  <meyering@redhat.com>
33215
33216         fprintftime: wrap macro code argument in "do {...} while(0)"
33217         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33218         cpy macro must be a statement that can be followed by a semicolon.
33219         Now that the else clause contains a comment and is hence longer
33220         than one line, I require curly braces.  That in turn requires
33221         that we wrap this code block in the standard do...while(0).
33222
33223         fprintftime: remove stray semicolon from previous change
33224         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33225
33226         fprintftime: avoid a warning about ignored fwrite return value
33227         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33228         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33229         that is unsafe.
33230         * modules/fprintftime (Depends-on): Add ignore-value.
33231
33232         exclude: avoid an unwarranted warning
33233         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33234
33235 2009-10-27  Eric Blake  <ebb9@byu.net>
33236
33237         fseek: avoid compilation failure when fflush is replaced
33238         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33239         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33240         module is in use.
33241         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33242         module is not in use; since REPLACE_FSEEK worked otherwise.
33243         (GNULIB_FTELLO): Likewise for ftell.
33244         Reported by Ian Beckwith and others.
33245
33246 2009-10-27  Bruno Haible  <bruno@clisp.org>
33247
33248         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33249         Reported by Jim Meyering.
33250
33251 2009-10-27  Jim Meyering  <jim@meyering.net>
33252             Bruno Haible  <bruno@clisp.org>
33253
33254         Avoid warning despite dropping the return value of fwrite.
33255         * lib/unicodeio.c: Include ignore-value.h.
33256         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33257         * modules/unicodeio (Depends-on): Add ignore-value.
33258
33259 2009-10-26  Eric Blake  <ebb9@byu.net>
33260
33261         areadlinkat: fix fallback path
33262         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33263         pointer and zero.
33264
33265 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33266
33267         Use a better IO block size for modern systems
33268         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33269         * lib/md2.c: Likewise.
33270         * lib/md4.c: Likewise.
33271         * lib/md5.c: Likewise.
33272         * lib/sha1.c: Likewise.
33273         * lib/sha256.c: Likewise.
33274         * lib/sha512.c: Likewise.
33275
33276 2009-10-22  Eric Blake  <ebb9@byu.net>
33277
33278         tests: avoid several compiler warnings
33279         * tests/test-getcwd.c (main): Avoid buffer underflow.
33280         * tests/test-getdate.c (main): String literals are not safe with
33281         putenv, so use setenv.  Declare unused argument.
33282         * modules/getdate-tests (Depends-on): Add setenv.
33283         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33284         problems with string literals in char *.
33285         * tests/test-hash.c (main): Avoid shadowing declaration.
33286         (insert_new): Treat string literals as char const *.
33287         * tests/test-getopt.h (test_getopt): Likewise.
33288         (getopt_loop): Alter types to minimize casting elsewhere.
33289         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33290         (test_getopt_long_posix): Likewise.
33291         (do_getopt_long): Add wrapper to minimize casting.
33292         * tests/test-atexit.c (clear_temp_file): Use void.
33293         * tests/test-areadlink-with-size.c (main): Declare unused
33294         arguments.
33295         * tests/test-areadlink.c (main): Likewise.
33296         * tests/test-areadlinkat-with-size.c (main): Likewise.
33297         * tests/test-areadlinkat.c (main): Likewise.
33298         * tests/test-canonicalize-lgpl.c (main): Likewise.
33299         * tests/test-canonicalize.c (main): Likewise.
33300         * tests/test-dirent-safer.c (main): Likewise.
33301         * tests/test-dirname.c (main): Likewise.
33302         * tests/test-dup2.c (main): Likewise.
33303         * tests/test-fchdir.c (main): Likewise.
33304         * tests/test-fcntl-h.c (main): Likewise.
33305         * tests/test-fcntl-safer.c (main): Likewise.
33306         * tests/test-fdopendir.c (main): Likewise.
33307         * tests/test-fdutimensat.c (main): Likewise.
33308         * tests/test-fflush.c (main): Likewise.
33309         * tests/test-filenamecat.c (main): Likewise.
33310         * tests/test-filevercmp.c (main): Likewise.
33311         * tests/test-fopen-safer.c (main): Likewise.
33312         * tests/test-fopen.c (main): Likewise.
33313         * tests/test-fpending.c (main): Likewise.
33314         * tests/test-fpurge.c (main): Likewise.
33315         * tests/test-freading.c (main): Likewise.
33316         * tests/test-fstatat.c (main): Likewise.
33317         * tests/test-fsync.c (main): Likewise.
33318         * tests/test-futimens.c (main): Likewise.
33319         * tests/test-getndelim2.c (main): Likewise.
33320         * tests/test-gettimeofday.c (main): Likewise.
33321         * tests/test-getopt.c (main): Likewise.
33322         * tests/test-i-ring.c (main): Likewise.
33323         * tests/test-inttypes.c (main): Likewise.
33324         * tests/test-link.c (main): Likewise.
33325         * tests/test-lstat.c (main): Likewise.
33326         * tests/test-math.c (main): Likewise.
33327         * tests/test-md5.c (main): Likewise.
33328         * tests/test-memchr2.c (main): Likewise.
33329         * tests/test-memrchr.c (main): Likewise.
33330         * tests/test-mkdir.c (main): Likewise.
33331         * tests/test-mkdirat.c (main): Likewise.
33332         * tests/test-mkfifoat.c (main): Likewise.
33333         * tests/test-open.c (main): Likewise.
33334         * tests/test-openat-safer.c (main): Likewise.
33335         * tests/test-openat.c (main): Likewise.
33336         * tests/test-quotearg.c (main): Likewise.
33337         * tests/test-rawmemchr.c (main): Likewise.
33338         * tests/test-readlink.c (main): Likewise.
33339         * tests/test-remove.c (main): Likewise.
33340         * tests/test-rename.c (main): Likewise.
33341         * tests/test-renameat.c (main): Likewise.
33342         * tests/test-rmdir.c (main): Likewise.
33343         * tests/test-sha1.c (main): Likewise.
33344         * tests/test-signal.c (main): Likewise.
33345         * tests/test-sigaction.c (main): Likewise.
33346         * tests/test-stat.c (main): Likewise.
33347         * tests/test-stat-time.c (main): Likewise.
33348         * tests/test-stddef.c (main): Likewise.
33349         * tests/test-stdint.c (main): Likewise.
33350         * tests/test-stdio.c (main): Likewise.
33351         * tests/test-stdlib.c (main): Likewise.
33352         * tests/test-strchrnul.c (main): Likewise.
33353         * tests/test-strerror.c (main): Likewise.
33354         * tests/test-string.c (main): Likewise.
33355         * tests/test-strtod.c (main): Likewise.
33356         * tests/test-strverscmp.c (main): Likewise.
33357         * tests/test-symlink.c (main): Likewise.
33358         * tests/test-symlinkat.c (main): Likewise.
33359         * tests/test-sys_stat.c (main): Likewise.
33360         * tests/test-sys_time.c (main): Likewise.
33361         * tests/test-time.c (main): Likewise.
33362         * tests/test-unistd.c (main): Likewise.
33363         * tests/test-unlink.c (main): Likewise.
33364         * tests/test-unlinkat.c (main): Likewise.
33365         * tests/test-utimens.c (main): Likewise.
33366         * tests/test-utimensat.c (main): Likewise.
33367         * tests/test-version-etc.c (main): Likewise.
33368         * tests/test-wchar.c (main): Likewise.
33369         * tests/test-wctype.c (main): Likewise.
33370         * tests/test-xprintf-posix.c (main): Likewise.
33371         * tests/test-posixtm.c (main): Likewise.
33372         (STREQ): Delete unused macro.
33373         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33374         shadowed variables.
33375         * tests/test-memchr.c (main): Likewise.
33376
33377 2009-10-21  Eric Blake  <ebb9@byu.net>
33378
33379         areadlinkat: avoid failure on older glibc
33380         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33381         rather than mis-comparing 0 against FUNC_RESULT of char*.
33382
33383 2009-10-21  Bruno Haible  <bruno@clisp.org>
33384
33385         * modules/stpncpy (License): Relicense under LGPLv2+.
33386         Reported by David Lutterkort <lutter@redhat.com>.
33387
33388 2009-10-20  Eric Blake  <ebb9@byu.net>
33389
33390         utimensat: work around Solaris 9 bug
33391         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33392         has trailing slash bugs.
33393         * tests/test-lutimens.h (test_lutimens): Enhance test.
33394         * tests/test-utimens.h (test_utimens): Likewise.
33395         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33396         * doc/posix-functions/utimes.texi (utimes): Likewise.
33397         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33398         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33399         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33400         * doc/posix-functions/futimens.texi (futimens): Likewise.
33401
33402         fdutimensat: new module
33403         * modules/fdutimensat: New file.
33404         * lib/fdutimensat.c (fdutimensat): Likewise.
33405         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33406         * MODULES.html.sh (File system functions): Mention module.
33407         * modules/fdutimensat-tests: New test.
33408         * tests/test-fdutimensat.c: Likewise.
33409
33410         doc: regenerate INSTALL
33411         * doc/INSTALL: Reflect recent autoconf update.
33412         * doc/INSTALL.ISO: Likewise.
33413         * doc/INSTALL.UTF-8: Likewise.
33414
33415 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33416
33417         acl: warn if ACL support is not detected
33418         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33419
33420 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33421
33422         * lib/nproc.h: Add extern "C" block for C++.
33423
33424 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33425             Bruno Haible  <bruno@clisp.org>
33426
33427         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33428         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33429         * doc/posix-functions/isalpha.texi: Likewise.
33430         * doc/posix-functions/isblank.texi: Likewise.
33431         * doc/posix-functions/iscntrl.texi: Likewise.
33432         * doc/posix-functions/isdigit.texi: Likewise.
33433         * doc/posix-functions/isgraph.texi: Likewise.
33434         * doc/posix-functions/islower.texi: Likewise.
33435         * doc/posix-functions/isprint.texi: Likewise.
33436         * doc/posix-functions/ispunct.texi: Likewise.
33437         * doc/posix-functions/isspace.texi: Likewise.
33438         * doc/posix-functions/isupper.texi: Likewise.
33439         * doc/posix-functions/isxdigit.texi: Likewise.
33440
33441 2009-10-18  Bruno Haible  <bruno@clisp.org>
33442
33443         Tests for module 'isblank'.
33444         * modules/isblank-tests: New file.
33445         * tests/test-isblank.c: New file.
33446
33447         New module 'isblank'.
33448         * lib/isblank.c: New file.
33449         * m4/isblank.m4: New file.
33450         * modules/isblank: New file.
33451         * doc/posix-functions/isblank.texi: Mention the new module.
33452
33453 2009-10-18  Bruno Haible  <bruno@clisp.org>
33454
33455         New module 'ctype'.
33456         * lib/ctype.in.h: New file.
33457         * m4/ctype.m4: New file.
33458         * modules/ctype: New file.
33459         * doc/posix-headers/ctype.texi: Mention the new module.
33460
33461 2009-10-18  Jim Meyering  <meyering@redhat.com>
33462
33463         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33464         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33465         right after its initialization, rather than farther down.
33466         Keeping these in close proximity makes it easier to ensure
33467         that each such variable is initialized.  E.g.,
33468
33469             LIB_CLOCK_GETTIME=
33470             AC_SUBST([LIB_CLOCK_GETTIME])
33471
33472         This change also increments these serial numbers.
33473         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33474         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33476
33477 2009-10-18  Bruno Haible  <bruno@clisp.org>
33478
33479         Don't let environment variables perturb build.
33480         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33481         (gl_PREREQ_GETHRXTIME): ... not here.
33482
33483 2009-10-18  Bruno Haible  <bruno@clisp.org>
33484
33485         Avoid symlink attack in localcharset module.
33486         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33487         (O_NOFOLLOW): Define fallback.
33488         (get_charset_aliases): Don't open the file if it is a symbolic link.
33489         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33490         gl_FCNTL_H.
33491         (gl_FCNTL_H): Require it.
33492         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33493         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33494         Reported by Fergal Glynn <fglynn@veracode.com>.
33495
33496 2009-10-18  Bruno Haible  <bruno@clisp.org>
33497
33498         Implement nproc for mingw.
33499         * lib/nproc.c: Include <windows.h>
33500         (num_processors): On native Windows platforms, try GetSystemInfo.
33501
33502 2009-10-18  Bruno Haible  <bruno@clisp.org>
33503
33504         Implement nproc for IRIX.
33505         * lib/nproc.c: Include <sys/sysmp.h>.
33506         (num_processors): On IRIX systems, try sysmp.
33507         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33508
33509 2009-10-18  Bruno Haible  <bruno@clisp.org>
33510
33511         Implement nproc for HP-UX.
33512         * lib/nproc.c: Include <sys/pstat.h>
33513         (num_processors): On HP-UX systems, try pstat_getdynamic.
33514         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33515         pstat_getdynamic.
33516
33517 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33518             Bruno Haible  <bruno@clisp.org>
33519
33520         Implement nproc for NetBSD, OpenBSD.
33521         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33522         (ARRAY_SIZE): New macro.
33523         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33524         * m4/nproc.m4: New file.
33525         * modules/nproc (Files): Add m4/nproc.m4.
33526         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33527         (Makefile.am): Instead, augment lib_SOURCES.
33528
33529 2009-10-18  Bruno Haible  <bruno@clisp.org>
33530
33531         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33532         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33533         sys/param.h.
33534
33535 2009-10-16  Eric Blake  <ebb9@byu.net>
33536
33537         utimensat: new module
33538         * modules/utimensat: New file.
33539         * lib/utimensat.c (utimensat): Likewise.
33540         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33541         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33542         so we can work around Linux bugs.
33543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33544         * modules/sys_stat (Makefile.am): Substitute them.
33545         * lib/sys_stat.in.h (utimensat): Declare it.
33546         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33547         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33548         * modules/utimensat-tests: New test.
33549         * tests/test-utimensat.c: Likewise.
33550
33551         utimens: let lutimens work on non-symlinks
33552         * lib/utimens.c (lutimens): Fall back to utimens rather than
33553         failing with ENOSYS, when file is not a symlink.
33554         (utimens): Reduce redirection.
33555         * tests/test-lutimens.h (test_lutimens): Update test to cover
33556         non-symlinks.
33557         * tests/test-utimens.h (test_utimens): Update test to cover
33558         symlinks.
33559         * tests/test-utimens.c (main): Update caller.
33560
33561         utimens: cache whether utimensat syscall works
33562         * lib/utimens.c (utimensat_works_really): New cache variable.
33563         (fdutimens, lutimens): Use it to avoid failing syscall.
33564
33565         test-stat-time, test-utimens: improve portability
33566         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33567         ext4 on alpha, and for cygwin.
33568         * tests/test-utimens-common.h: New file.
33569         (nap): Factor delays into single function.
33570         * tests/test-lutimens.h (test_lutimens): Use new header.
33571         * tests/test-futimens.h (test_futimens): Likewise.
33572         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33573         timestamps to occur from same machine, as was done previously for
33574         test_utimens.
33575         * modules/utimens-tests (Files): Ship new file.
33576         * modules/futimens-tests (Files): Likewise.
33577         Reported in part by Jim Meyering.
33578
33579         sys_stat: sort replacement declarations
33580         * lib/sys_stat.in.h: Sort declarations.
33581         * lib/futimens.c (futimens): Fix typo.
33582
33583 2009-10-15  Jim Meyering  <meyering@redhat.com>
33584
33585         don't let environment settings perturb build
33586         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33587         could cause a configure-time and/or build-time malfunction.
33588         Typically, a configure-time function-in-library test is performed
33589         via code like this:
33590
33591           LIB_VAR=
33592           AC_SUBST([LIB_VAR])
33593           prefix_saved_LIBS=$LIBS
33594             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33595                        [test "$ac_cv_search_FUNC" = "none required" ||
33596                         LIB_VAR=$ac_cv_search_FUNC])
33597           LIBS=$prefix_saved_LIBS
33598
33599         However, in each of the files affected by this change, the LIB_VAR=
33600         initialization was omitted.  Thus, when set in the environment, its
33601         value would propagate into generated Makefiles when FUNC is not found
33602         in LIB_NAME.
33603         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33604         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33606
33607 2009-10-14  Eric Blake  <ebb9@byu.net>
33608
33609         fchdir: avoid infinite recursion in mingw
33610         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33611         recursing.
33612
33613         test-stat-time: port to mingw
33614         * tests/test-stat-time.c (force_unlink): Return a value.
33615         (test_ctime) [W32]: Fix compilation error.
33616         (nap): Don't call usleep with too large an argument.  Use
33617         force_unlink.
33618         * doc/pastposix-functions/usleep.texi (usleep): Document the
33619         portability issue.
33620
33621 2009-10-13  Jim Meyering  <meyering@redhat.com>
33622
33623         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33624         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33625         * modules/pipe-filter-ii: Likewise.
33626         * modules/sys_socket-tests: Likewise.
33627         * modules/tsearch-tests: Likewise.
33628         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33629         (check): Depend on it.
33630
33631 2009-10-12  Eric Blake  <ebb9@byu.net>
33632
33633         utimens-tests: port to NFS file systems
33634         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33635         comparisons to avoid spurious failures from timestamp drift
33636         between NFS machines.
33637
33638 2009-10-12  Eric Blake  <ebb9@byu.net>
33639
33640         stat-time-tests: minor cleanups
33641         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33642         * tests/test-stat-time.c (nap): Separate assignment from call.
33643         Suggested by Paolo Bonzini and Bruno Haible.
33644
33645         sys_stat: guarantee struct timespec
33646         * lib/sys_stat.in.h (includes): Always include <time.h>
33647         * modules/sys_stat (Depends-on): Add time.
33648         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33649         mode_t permission values.
33650         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33651         get at subsecond timestamps.
33652
33653 2009-10-10  Eric Blake  <ebb9@byu.net>
33654
33655         futimens: new module
33656         * modules/futimens: New file.
33657         * lib/futimens.c (futimens): Likewise.
33658         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33659         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33660         we can work around Linux bugs.
33661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33662         * modules/sys_stat (Makefile.am): Substitute them.
33663         * lib/sys_stat.in.h (futimens): Declare it.
33664         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33665         * doc/posix-functions/futimens.texi (futimens): Likewise.
33666         * modules/futimens-tests: New test.
33667         * tests/test-futimens.c: Likewise.
33668
33669         utimens: introduce fdutimens
33670         * lib/utimens.h (fdutimens): New prototype.
33671         * lib/utimens.c (gl_futimens): Move guts...
33672         (fdutimens): ...to new interface.
33673         * tests/test-utimens.c (do_fdutimens): Use it.
33674
33675         utimens: add UTIME_NOW and UTIME_OMIT support
33676         * lib/utimens.c (validate_timespec, update_timespec): New helper
33677         functions.
33678         (gl_futimens, lutimens): Use them.
33679         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33680         stdbool, sys_stat.
33681         (Link): Mention resulting library dependency.
33682         * modules/utimecmp (Link): Likewise.
33683         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33684         (Makefile.am): Pick up library dependency.
33685         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33686         definition.
33687         * tests/test-sys_stat.c: Test the definitions.
33688         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33689         * NEWS: Document library dependency.
33690
33691         utimecmp: support symlink timestamps
33692         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33693         hashing when possible.  Use pathconf when available.
33694         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33695         * modules/utimecmp (Depends-on): Add lstat.
33696
33697         utimens: add lutimens interface
33698         * lib/utimens.c (lutimens): New function.
33699         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33700         * lib/utimens.h (lutimens): Declare new interface.
33701         * tests/test-utimens.c (main): Enhance test.
33702         * tests/test-lutimens.h (test_lutimens): New file.
33703         * modules/utimens-tests (Files): Distribute it.
33704         (Depends-on): Add symlink.
33705         (configure.ac): Check for usleep.
33706
33707         utimens: validate futimens usage
33708         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33709         fewer syscalls on failure later on.  Avoid compiler warning on
33710         mingw.
33711         * modules/utimens (Depends-on): Add dup2.
33712
33713         utimens: add test
33714         * modules/utimens-tests: New test.
33715         * tests/test-utimens.h: New file.
33716         * tests/test-futimens.h: Likewise.
33717         * tests/test-utimens.c: Likewise.
33718
33719         doc: mention timestamp portability issues
33720         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33721         instead.
33722         * doc/posix-functions/utime.texi (utime): Likewise.
33723         * doc/posix-functions/utimes.texi (utimes): Likewise.
33724         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33725         instead.
33726         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33727         module.
33728         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33729         Mention weakness with symlink timestamps.
33730         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33731         to utimensat/futimens instead.
33732         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33733
33734         test-dup2: enhance test
33735         * tests/test-dup2.c (main): Also check AT_FDCWD.
33736
33737         test-stat-time: avoid more spurious failures
33738         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33739         xfs; and avoid race if the two timestamps cross quantization edge.
33740
33741         relocatable: prefer 'file system' over 'filesystem'
33742         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33743         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33744         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33745         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33746         * lib/relocatable.c (compute_curr_prefix): Likewise.
33747
33748 2009-10-10  Jim Meyering  <meyering@redhat.com>
33749
33750         stat-time-tests: check for the usleep function
33751         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33752
33753 2009-10-10  Bruno Haible  <bruno@clisp.org>
33754
33755         * modules/xnanosleep: Put the Link section after the Include section.
33756
33757 2009-10-09  Eric Blake  <ebb9@byu.net>
33758
33759         dup2: work around FreeBSD 6.1 bug
33760         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33761         * doc/posix-functions/dup2.texi (dup2): Document it.
33762         Reported by Nelson H. F. Beebe and Jim Meyering.
33763
33764         test-stat-time: port to buggy NFS clients
33765         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33766         (test_ctime): Also skip test if mtime and ctime are skewed.
33767
33768         maint: prefer 'file system' over 'filesystem'
33769         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33770         * doc/posix-functions/lstat.texi (lstat): Likewise.
33771         * lib/file-has-acl.c (file_has_acl): Likewise.
33772         * lib/fwriteerror.c [TEST]: Likewise.
33773         * tests/test-areadlink.h (test_areadlink): Likewise.
33774         * tests/test-areadlinkat-with-size.c (main): Likewise.
33775         * tests/test-areadlinkat.c (main): Likewise.
33776         * tests/test-canonicalize-lgpl.c (main): Likewise.
33777         * tests/test-canonicalize.c (main): Likewise.
33778         * tests/test-fstatat.c (main): Likewise.
33779         * tests/test-linkat.c (main): Likewise.
33780         * tests/test-lstat.h (test_lstat_func): Likewise.
33781         * tests/test-mkdir.h (test_mkdir): Likewise.
33782         * tests/test-readlink.h (test_readlink): Likewise.
33783         * tests/test-remove.c (main): Likewise.
33784         * tests/test-rename.h (test_rename): Likewise.
33785         * tests/test-renameat.c (main): Likewise.
33786         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33787         * tests/test-symlink.h (test_symlink): Likewise.
33788         * tests/test-symlinkat.c (main): Likewise.
33789         * tests/test-unlink.h (test_unlink_func): Likewise.
33790         * tests/test-unlinkat.c (main): Likewise.
33791
33792         maint: make realtime library usage explicit
33793         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33794         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33795         * modules/settime (Link): Likewise.
33796         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33797
33798         test-stat-time: speed up execution
33799         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33800         warning on mingw.
33801         (nap): New helper function.
33802         (prepare_test): Use it to reduce sleep time.
33803         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33804         execution.
33805         * modules/stat-time-tests (configure.ac): Check for usleep.
33806
33807 2009-10-09  Jim Meyering  <meyering@redhat.com>
33808
33809         selinux-h: always use getfilecon wrappers
33810         * lib/getfilecon.c: New file.
33811         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33812         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33813         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33814         (fgetfilecon): Provide a stub.
33815         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33816         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33817         file unconditionally.
33818         When <selinux/selinux.h> is found, arrange to use wrappers.
33819         * modules/selinux-h (Files): Add getfilecon.c.
33820         (Makefile.am): Substitute include-next-related bits
33821         into the now-always-generated selinux/selinux.h file.
33822         * doc/glibc-functions/lgetfilecon.texi: New file.
33823         * doc/glibc-functions/fgetfilecon.texi: New file.
33824         * doc/glibc-functions/getfilecon.texi: New file.
33825         * doc/glibc-functions/getfilecon-desc.texi: New file.
33826         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33827         which to pull in the new files.
33828         * MODULES.html.sh (Misc): Add selinux-h.
33829
33830 2009-10-08  Jim Meyering  <meyering@redhat.com>
33831
33832         unistd: fix comment typo
33833         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33834
33835 2009-10-08  Eric Blake  <ebb9@byu.net>
33836
33837         areadlink: use SIZE_MAX consistently
33838         * modules/areadlink (Depends-on): Add stdint.
33839         * modules/areadlink-with-size (Depends-on): Likewise.
33840         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33841         gives NULL; drop sys/types, since unistd gives size_t; and add
33842         stdint for SIZE_MAX.
33843         (SIZE_MAX): Rely on headers.
33844         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33845         and add stdint.
33846         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33847         (SIZE_MAX): Likewise.
33848         (INITIAL_BUF_SIZE): Turn into enum.
33849         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33850
33851 2009-10-08  Jim Meyering  <meyering@redhat.com>
33852
33853         areadlinkat: avoid compilation failure
33854         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33855         Fix typo in comment.
33856
33857 2009-10-07  Eric Blake  <ebb9@byu.net>
33858
33859         areadlinkat-with-size: new module
33860         * modules/areadlinkat-with-size: New module.
33861         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33862         * lib/areadlink.h (areadlinkat): Declare it.
33863         * MODULES.html.sh (File system functions): Mention it.
33864         * modules/areadlinkat-with-size-tests: New test.
33865         * tests/test-areadlinkat-with-size.c: New file.
33866
33867         xreadlinkat: new module
33868         * modules/xreadlinkat: New module.
33869         * lib/xreadlinkat.c (xreadlinkat): New file.
33870         * lib/xreadlink.h (xreadlinkat): Declare it.
33871         * MODULES.html.sh (File system functions): Mention it.
33872
33873         areadlinkat: new module
33874         * lib/at-func.c (FUNC_FAIL): New define.
33875         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33876         * modules/areadlinkat: New module.
33877         * lib/linkat.c (areadlinkat): Move...
33878         * lib/areadlinkat.c (areadlinkat): ...to new file.
33879         * lib/areadlink.h (areadlinkat): Declare it.
33880         * modules/linkat (Depends-on): Add areadlinkat.
33881         * MODULES.html.sh (File system functions): Mention it.
33882         * modules/areadlinkat-tests: New test.
33883         * tests/test-areadlinkat.c: New file.
33884
33885         areadlink, areadlink-with-size: add tests
33886         * modules/areadlink-tests: New test.
33887         * modules/areadlink-with-size-tests: Likewise.
33888         * tests/test-areadlink.h: New file.
33889         * tests/test-areadlink.c: Likewise.
33890         * tests/test-areadlink-with-size.c: Likewise.
33891
33892         maint: minor cleanups
33893         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33894         _UNUSED_PARAMETER_ instead.
33895         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33896         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33897         * modules/linkat-tests (Files): Distribute test-link.h.
33898
33899         openat, utimens: whitespace cleanup
33900         * lib/openat.c: Prefer space throughout, rather than mix of 8
33901         spaces vs. tabs.
33902         * lib/at-func.c: Likewise.
33903         * lib/utimens.c: Likewise.
33904
33905         openat: avoid using wrong fd
33906         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33907         working directory chooses same fd.
33908         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33909
33910         mkdir, mkdirat: fix cygwin 1.5.x bug
33911         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33912         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33913         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33914         bug.
33915         (gl_PREREQ_MKDIR): Delete unused macro.
33916         * modules/mkdir (Files): Track file rename.
33917         (configure.ac): Update macro name.
33918         * modules/openat (Depends-on): Add mkdir.
33919         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33920
33921         mkdir, mkdirat: add tests
33922         * modules/mkdir-tests: New test.
33923         * tests/test-mkdir.h: New file.
33924         * tests/test-mkdir.c: Likewise.
33925         * tests/test-mkdirat.c: Likewise.
33926         * modules/openat-tests (Files): Add new files.
33927         (Makefile.am): Run new test.
33928
33929 2009-10-06  Eric Blake  <ebb9@byu.net>
33930
33931         doc: tweak *at function documentation
33932         * doc/posix-functions/faccessat.texi (faccessat): Mention
33933         known issue with replacement.
33934         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33935         * doc/posix-functions/linkat.texi (linkat): Likewise.
33936         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33937         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33938         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33939         * doc/posix-functions/renameat.texi (renameat): Likewise.
33940         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33941
33942         openat: fix GNU/Hurd bug in unlinkat
33943         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33944         broken.
33945         * doc/posix-functions/unlink.texi (unlink): Document this.
33946         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33947
33948         fdopendir: fix GNU/Hurd bug
33949         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33950         allowing non-directory fds.
33951         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33953         * modules/dirent (Makefile.am): Substitute it.
33954         * lib/dirent.in.h (fdopendir): Declare replacement.
33955         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33956         * tests/test-fdopendir.c (main): Test something other than
33957         /dev/null, since on Hurd that behaves like a directory.
33958
33959         test-symlink: port to GNU/Hurd
33960         * tests/test-symlink.h (test_symlink): Relax expected errno.
33961
33962         doc: tweak more cygwin information
33963         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33964         now compatible with glibc.
33965         * doc/posix-functions/getopt.texi (getopt): Likewise.
33966
33967         getopt-gnu: add another test
33968         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33969         guarantee behavior relied on by m4.
33970         * tests/test-getopt.c (main): Use it.
33971         * modules/getopt-posix-tests (Depends-on): Add setenv.
33972         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33973
33974         getopt: fix compilation on darwin
33975         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33976         include.
33977         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33978         Reported by Ludovic Courtès.
33979
33980 2009-10-06  Bruno Haible  <bruno@clisp.org>
33981
33982         * modules/size_max (Description): Discourage its use.
33983         Reported by Simon Josefsson.
33984
33985 2009-10-06  Jim Meyering  <meyering@redhat.com>
33986
33987         linkat: avoid compilation failure
33988         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33989
33990 2009-10-05  Eric Blake  <ebb9@byu.net>
33991
33992         linkat: support Linux 2.6.17
33993         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33994         linkat on Linux, but allow cache variable override.
33995         * lib/linkat.c (rpl_linkat): Define override.
33996         * modules/linkat (Depends-on): Add symlinkat.
33997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33998         * modules/unistd (Makefile.am): Substitute it.
33999         * lib/unistd.in.h (linkat): Declare replacement.
34000         Reported by Pádraig Brady.
34001
34002         quotearg: port test to systems with C.UTF-8 locale
34003         * tests/test-quotearg.c (struct result_strings): Add another
34004         member, differentiating between C.ASCII and C.UTF-8 handling.
34005         (compare_strings): Add parameter.
34006         (main): Adjust all callers.
34007
34008         getopt: avoid clash with FreeBSD _getopt_internal
34009         * lib/getopt.in.h (_getopt_internal): Override the name.
34010         * lib/getopt_int.h (includes): Pick up any overrides.
34011         Reported by Reuben Thomas.
34012
34013         hash: allow C89 compilation
34014         * lib/hash.c (check_tuning): Move declaration before statement.
34015         Reported by Reuben Thomas.
34016
34017 2009-10-05  Karl Berry  <karl@gnu.org>
34018
34019         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34020
34021 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34022             Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/uname.c (uname): Use a table-driven algorithm to compute
34025         Windows NT versions.
34026
34027 2009-10-04  Bruno Haible  <bruno@clisp.org>
34028
34029         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34030         program_invocation_short_name.
34031         * modules/progname (configure.ac): Test for presence of
34032         program_invocation_short_name.
34033         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34034
34035 2009-10-04  Bruno Haible  <bruno@clisp.org>
34036
34037         * lib/progname.c (set_program_name): Fix comment.
34038         Reported by Jim Meyering.
34039
34040 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34041             Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/uname.c: Include <string.h>.
34044         (uname): Do only one call to GetVersionEx in the common case.
34045
34046 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34047             Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34050         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34051         (uname): Add support for Windows CE and various non-x86 CPU types.
34052
34053 2009-10-03  Bruno Haible  <bruno@clisp.org>
34054
34055         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34056         invocation to tests/configure.ac.
34057         Reported by Ian Beckwith <ianb@erislabs.net>.
34058
34059 2009-10-02  Eric Blake  <ebb9@byu.net>
34060
34061         fchdir: avoid compiler warning
34062         * lib/fchdir.c (canonicalize_file_name)
34063         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34064
34065         test-open: support mingw errno values
34066         * tests/test-open.h (test_open): Relax test.
34067         * tests/test-fopen.h (test_fopen): Likewise.
34068         * tests/test-openat-safer.c (main): Likewise.
34069
34070         open: fix opening directory on mingw
34071         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34072
34073         test-open: on GNU/Hurd, /dev/null is a directory
34074         * tests/test-fopen.h (main): Rename...
34075         (test_fopen): ...to this.  Use a guaranteed non-directory when
34076         confirming open behavior on trailing slash.
34077         * tests/test-openat-safer.c (main): Likewise.
34078         * tests/test-open.h (main): Likewise....
34079         (test_open): ...to this.
34080         * tests/test-fopen.c (main): Adjust caller.
34081         * tests/test-fopen-safer.c (main): Likewise.
34082         * tests/test-open.c (main): Likewise.
34083         * tests/test-fcntl-safer.c (main): Likewise.
34084         Reported by Samuel Thibault.
34085
34086         rename, fchdir: don't ignore chdir failure
34087         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34088         * lib/rename.c (rpl_rename) [W32]: Likewise.
34089         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34090         an empty destination directory if source cannot be renamed,
34091         although there is still possibility for failure.
34092         * doc/posix-functions/rename.texi (rename): Document the race.
34093         Reported by Jim Meyering.
34094
34095         maint: cleanup whitespace in recent commits
34096         * lib/rename.c (rpl_rename): Remove tabs.
34097         * tests/test-link.h (test_link): Likewise.
34098         * lib/fchdir.c (get_name): Likewise.
34099         Reported by Jim Meyering.
34100
34101 2009-10-02  Ben Pfaff  <blp@gnu.org>
34102
34103         relocatable-prog-wrapper: Add missing dependency on
34104         double-slash-root.
34105         * modules/relocatable-prog-wrapper: Add dependency.
34106         Reported by Ian Beckwith <ianb@erislabs.net>.
34107
34108 2009-10-02  Eric Blake  <ebb9@byu.net>
34109
34110         renameat: fix Solaris bugs
34111         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34112         needed fixing.
34113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34114         * modules/stdio (Makefile.am): Substitute it.
34115         * lib/stdio.in.h (renameat): Declare replacement.
34116         * lib/renameat.c (rpl_renameat): Implement fix.
34117
34118         renameat: new module
34119         * modules/renameat: New file.
34120         * lib/renameat.c (renameat): Likewise.
34121         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34123         * modules/stdio (Makefile.am): Substitute them.
34124         * lib/stdio.in.h (renameat): Declare it.
34125         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34126         * doc/posix-functions/renameat.texi (renameat): Likewise.
34127         * modules/renameat-tests: New test.
34128         * tests/test-renameat.c: Likewise.
34129
34130         rename: fix mingw bugs
34131         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34132         directory overwrite bugs.
34133
34134         rename: fix another cygwin 1.5 bug
34135         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34136         checks.
34137         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34138         unnecessary cygwin workarounds.  Also work around bug with moving
34139         full directory onto an empty one.
34140         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34141
34142         rename-dest-slash: merge into rename module
34143         * modules/rename-dest-slash (Status): Mark obsolete.
34144         (Depends-on): Add rename.
34145         (Files): Let rename do it all.
34146         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34147         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34148         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34149         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34150         * lib/rename.c (rpl_rename): Update comments.
34151
34152         rename: fix cygwin 1.5.x bugs
34153         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34154         * lib/rename.c (rpl_rename): Work around them.
34155         * modules/rename (Depends-on): Add same-inode.
34156
34157         rename: fix Solaris 10 bug
34158         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34159         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34160         was the only bug.
34161
34162         rename: fix Solaris 9 bug
34163         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34164         on non-directory.  Avoid calling exit.
34165         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34166         strdup.
34167         * modules/rename-tests (Depends-on): Drop lstat.
34168         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34169         (gl_PREREQ_RENAME): Delete unused macro.
34170
34171         rename-dest-slash: fix NetBSD bug
34172         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34173         links.
34174         * modules/rename-dest-slash (Depends-on): Add same-inode.
34175
34176         rename-tests: new test, exposes several platform bugs
34177         * modules/rename-tests: New file.
34178         * tests/test-rename.h: Likewise.
34179         * tests/test-rename.c: Likewise.
34180         * doc/posix-functions/rename.texi (rename): Improve documentation,
34181         including bugs that will eventually be fixed in gnulib.
34182
34183 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34184
34185         * lib/uname.c: Include <stdlib.h>
34186         (uname): Assume version info is available.
34187
34188 2009-10-02  Jim Meyering  <meyering@redhat.com>
34189
34190         gnu-web-doc-update: correct --help output
34191         * build-aux/gnu-web-doc-update: Make --help output relevant.
34192
34193         gnu-web-doc-update: add standard options
34194         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34195
34196         gnu-web-doc-update: New module.
34197         Use this script to automatically update the on-line web documentation
34198         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34199         * modules/gnu-web-doc-update: New file, from coreutils.
34200         * build-aux/gnu-web-doc-update: New script.
34201
34202 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34203
34204         link: LoadLibrary is not needed.
34205         * lib/link.c: Use GetModuleHandle.
34206
34207 2009-10-01  Eric Blake  <ebb9@byu.net>
34208
34209         getopt: bump serial number
34210         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34211         change.
34212
34213         tests: tighten link, rmdir, and remove tests
34214         * tests/test-link.h (includes): No need to use <config.h> here.
34215         Clean up if directory hard link was created, otherwise test for
34216         trailing '.'.
34217         * tests/test-linkat.c (main): Simplify.
34218         * tests/test-remove.c (main): Enhance test for trailing '.'.
34219         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34220
34221 2009-10-01  Jim Meyering  <meyering@redhat.com>
34222
34223         maint.mk: requiring "make major" was annoying, for a "minor" release.
34224         What is intended is "stable", to contrast with alpha and beta,
34225         so require "make stable", not "make major".
34226         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34227         (get_tool_versions): Likewise.
34228         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34229
34230 2009-09-30  Ben Pfaff  <blp@gnu.org>
34231
34232         Fix broken build of replacement for Windows tmpfile().
34233         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34234         flags argument added along with the 'mkostemp' module.
34235
34236 2009-09-28  Bruno Haible  <bruno@clisp.org>
34237
34238         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34239         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34240         to 'remove_elt'.
34241         (gl_list_remove): Update.
34242         * lib/gl_list.c (gl_list_remove): Update.
34243         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34244         to 'remove_elt'.
34245         (gl_oset_remove): Update.
34246         * lib/gl_list.c (gl_oset_remove): Update.
34247         Reported by Eric Blake.
34248
34249 2009-09-28  Eric Blake  <ebb9@byu.net>
34250
34251         doc: mention yet more cygwin 1.7 status
34252         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34253         cygwin.
34254         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34255         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34256
34257         argp: fix test failure
34258         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34259         that are not upper-case.  Pass correct range to tolower.
34260
34261 2009-09-27  Jim Meyering  <meyering@redhat.com>
34262
34263         test-yesno: work around sparc-dash here-document infelicity
34264         Without this change, the literal \177 byte in a here document
34265         would make dash 0.5.5.1-3 access uninitialized memory.
34266         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34267         Instead, use a marker, "@", and filter through tr to create the desired
34268         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34269
34270 2009-09-27  Bruno Haible  <bruno@clisp.org>
34271
34272         Disable untested support for new flavours of ACLs on AIX.
34273         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34274         progress.
34275         * lib/set-mode-acl.c (qset_acl): Likewise.
34276
34277 2008-12-07  Bruno Haible  <bruno@clisp.org>
34278
34279         Add support for new flavours of ACLs on AIX. (Untested.)
34280         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34281         (file_has_acl): Add support for newer AIX.
34282         * lib/set-mode-acl.c (qset_acl): Likewise.
34283         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34284         Rainer Tammer <tammer@tammer.net>.
34285
34286 2009-09-26  Eric Blake  <ebb9@byu.net>
34287
34288         argp: fix compilation of getopt
34289         * lib/getopt.in.h (includes): Use different guard than glibc.
34290         Reported by Sergey Poznyakoff.
34291
34292         doc: mention more cygwin 1.7 status
34293         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34294         bug.
34295         * doc/posix-functions/execl.texi (execl): Likewise.
34296         * doc/posix-functions/execle.texi (execle): Likewise.
34297         * doc/posix-functions/execlp.texi (execlp): Likewise.
34298         * doc/posix-functions/execv.texi (execv): Likewise.
34299         * doc/posix-functions/execve.texi (execve): Likewise.
34300         * doc/posix-functions/execvp.texi (execvp): Likewise.
34301         * doc/glibc-functions/canonicalize_file_name.texi
34302         (canonicalize_file_name): Cygwin 1.7 now provides this.
34303         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34304         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34305         on AT_SYMLINK_NOFOLLOW.
34306
34307 2009-09-24  Eric Blake  <ebb9@byu.net>
34308
34309         test-linkat: make test more robust
34310         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34311
34312         getopt: fix inclusion guards for cygwin
34313         * modules/getopt-posix (Depends-on): Add include-next.
34314         (Makefile.am): Substitute more items in replacement header.
34315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34316         <getopt.h>.
34317         * lib/getopt.in.h (includes): Use split inclusion guard, and
34318         prefer <getopt.h> over include <unistd.h> when one is present.
34319         (option): Also override name of 'struct option'.
34320
34321         same-inode: revert prior change; it is not yet ready
34322         * NEWS: Undo mention of this change.
34323         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34324         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34325         * lib/cycle-check.c (cycle_check): Likewise.
34326         * lib/same.c (same_name): Likewise.
34327         * lib/at-func2.c (at_func2): Likewise.
34328
34329 2009-09-23  Eric Blake  <ebb9@byu.net>
34330
34331         linkat: new module
34332         * modules/linkat: New file.
34333         * lib/at-func2.c (at_func2): Likewise.
34334         * lib/linkat.c (linkat): Likewise.
34335         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34336         * lib/openat-priv.h (at_func2): Add declaration.
34337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34338         * modules/unistd (Makefile.am): Substitute them.
34339         * lib/unistd.in.h (linkat): Declare it.
34340         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34341         * doc/posix-functions/linkat.texi (linkat): Likewise.
34342         * doc/posix-functions/link.texi (link): Tweak wording.
34343         * tests/test-link.c (main): Move guts...
34344         * tests/test-link.h (test_link): ...into new file.
34345         * modules/linkat-tests: New test.
34346         * tests/test-linkat.c: Likewise.
34347         * modules/link-tests (Files): Ship new file.
34348         (Depends-on): Add stdbool.
34349
34350         dirname: add library-safe mdir_name
34351         * lib/dirname.h (mdir_name): New prototype.
34352         * lib/dirname.c (dir_name): Move guts...
34353         (mdir_name): ...to new function that avoids xalloc_die.
34354
34355         fchdir: another mingw fix
34356         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34357         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34358         on mingw (where it has not yet been ported), and make it optional
34359         elsewhere.
34360         (_gl_register_fd): Use it.
34361
34362         same-inode: make SAME_INODE tri-state, to port to mingw
34363         * NEWS: Mention this change.
34364         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34365         st_ino always being 0.
34366         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34367         * lib/cycle-check.c (cycle_check): Likewise.
34368         * lib/same.c (same_name): Likewise.
34369
34370         lstat: avoid mingw compilation error
34371         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34372         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34373         lstat ourselves.
34374         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34375         was adequate.
34376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34377         the checks for lstat.
34378         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34379
34380         link: fix test failure on Solaris 9
34381         * lib/link.c (rpl_link): Don't assume link will catch bogus
34382         trailing slash on source.
34383
34384         test-symlinkat: enhance test
34385         * tests/test-readlink.c (main): Move guts...
34386         * tests/test-readlink.h (test_readlink): ...into new file.
34387         * tests/test-symlink.c (main): Move guts...
34388         * tests/test-symlink.h (test_symlink): ...into new file.
34389         * tests/test-symlinkat.c (main): Use new files for further
34390         coverage.
34391         (do_symlink, do_readlink): New helper functions.
34392         * modules/symlink-tests (Files): Ship new file.
34393         (Depends-on): Add stdbool.
34394         * modules/readlink-tests (Files): Ship new file.
34395         (Depends-on): Add stdbool.
34396         * modules/symlinkat-tests (Files): Use new files.
34397
34398 2009-09-23  Eric Blake  <ebb9@byu.net>
34399
34400         readlink: document portability issue with symlink length
34401         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34402         systems have bogus st_size on symlinks, and mention the
34403         areadlink-with-size module.
34404         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34405         * doc/posix-functions/readlink.texi (readlink): Mention the
34406         areadlink module, and ERANGE failure.
34407         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34408         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34409
34410         readlink: fix Solaris 9 bug with trailing slash
34411         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34412         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34413         * doc/posix-functions/readlink.texi (readlink): Document this.
34414         * modules/readlink-tests: New test.
34415         * tests/test-readlink.c: Likewise.
34416
34417         readlink: fix cygwin 1.5.x bug with return type
34418         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34419         * lib/unistd.in.h (readlink): Use ssize_t.
34420         * lib/readlink.c (readlink): Likewise.
34421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34422         * modules/unistd (Makefile.am): Substitute it.
34423         * lib/unistd.in.h (readlink): Declare replacement.
34424         * doc/posix-functions/readlink.texi (readlink): Document this.
34425
34426         symlink: use throughout gnulib
34427         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34428         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34429         symlink is not used.
34430         * modules/symlinkat (Depends-on): Add symlink.
34431         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34432         * modules/canonicalize-tests (Depends-on): Likewise.
34433         * modules/lstat-tests (Depends-on): Likewise.
34434         * modules/openat-tests (Depends-on): Likewise.
34435         * modules/remove-tests (Depends-on): Likewise.
34436         * modules/rmdir-tests (Depends-on): Likewise.
34437         * modules/unlink-tests (Depends-on): Likewise.
34438         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34439         * tests/test-canonicalize.c (symlink): Likewise.
34440         * tests/test-fstatat.c (symlink): Likewise.
34441         * tests/test-lstat.c (symlink): Likewise.
34442         * tests/test-remove.c (symlink): Likewise.
34443         * tests/test-rmdir.c (symlink): Likewise.
34444         * tests/test-unlink.c (symlink): Likewise.
34445         * tests/test-unlinkat.c (symlink): Likewise.
34446
34447         symlink: new module, for Solaris 9 bug
34448         * modules/symlink: New file.
34449         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34450         * lib/symlink.c: Likewise.
34451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34452         * modules/unistd (Makefile.am): Substitute them.
34453         * lib/unistd.in.h (symlink): Declare replacement.
34454         * MODULES.html.sh (File system functions): Mention it.
34455         * doc/posix-functions/symlink.texi (symlink): Likewise.
34456         * modules/symlink-tests: New test.
34457         * tests/test-symlink.c: Likewise.
34458
34459 2009-09-23  Bruno Haible  <bruno@clisp.org>
34460
34461         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34462         when needed.
34463         Test case: gnulib-tool --import --with-tests atexit inttypes.
34464         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34465
34466 2009-09-23  Bruno Haible  <bruno@clisp.org>
34467
34468         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34469         subcommand, not in a subshell.
34470
34471 2009-09-22  Eric Blake  <ebb9@byu.net>
34472
34473         unistd: sort replacement declarations
34474         * lib/unistd.in.h: Sort declarations.
34475
34476         open, openat: minor optimization
34477         * lib/open.c (open): If open succeeded, len is non-zero.
34478         * lib/openat.c (rpl_openat): Likewise.
34479
34480         link-follow: ensure correct result
34481         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34482         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34483         distinguish between possible failures.
34484
34485 2009-09-21  Eric Blake  <ebb9@byu.net>
34486
34487         fts: avoid compiler warning
34488         * lib/fts.c (dirent_inode_sort_may_be_useful)
34489         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34490
34491 2009-09-19  Bruno Haible  <bruno@clisp.org>
34492
34493         * lib/progreloc.c (canonicalize_file_name): New declaration.
34494
34495 2009-09-19  Eric Blake  <ebb9@byu.net>
34496
34497         link: fix quoting
34498         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34499
34500         openat: fix openat bugs on Solaris 9
34501         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34502         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34503         * modules/openat (Depends-on): Add open.
34504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34505         * modules/fcntl-h (Makefile.am): Substitute it.
34506         * lib/fcntl.in.h (openat): Declare replacement.
34507         * doc/posix-functions/openat.texi (openat): Document this.
34508
34509         openat: move fstatat and unlinkat into correct files
34510         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34511         compiled.
34512         * lib/openat.c (fstatat, unlinkat): Move...
34513         * lib/fstatat.c (fstatat): ...into correct files.
34514         * lib/unlinkat.c (unlinkat): Likewise.
34515
34516         openat: fix unlinkat bugs on Solaris 9
34517         * lib/unlinkat.c (unlinkat): New file.
34518         * modules/openat (Depends-on): Add unlink.
34519         (Files): Distribute it.
34520         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34521         trailing slash behavior is broken.
34522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34523         * modules/unistd (Makefile.am): Substitute it.
34524         * lib/unistd.in.h (unlinkat): Declare replacement.
34525         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34526
34527         openat: fix fstatat bugs on Solaris 9
34528         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34529         stat.
34530         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34531
34532         test-unlinkat: enhance test, to expose Solaris 9 bug
34533         * tests/test-unlink.c (main): Factor guts...
34534         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34535         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34536         * tests/test-rmdir.c (main): Adjust caller.
34537         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34538         (unlinker): New helper function.
34539         (rmdirat): Enhance check.
34540         * modules/rmdir-tests (Depends-on): Add stdbool.
34541         * modules/unlink-tests (Depends-on): Likewise.
34542         (Files): Add test-unlink.h.
34543         * modules/openat-tests (Files): Likewise.
34544         (Depends-on): Add unlinkdir.
34545
34546         test-fstatat: new test, to expose Solaris 9 bugs
34547         * tests/test-stat.c (main): Factor guts...
34548         * tests/test-stat.h (test_stat_func): ...into new file.
34549         * tests/test-lstat.c (main): Factor guts...
34550         * tests/test-lstat.h (test_lstat_func): ...into new file.
34551         * tests/test-fstatat.c: New file.
34552         * modules/stat-tests (Files): Add test-stat.h.
34553         * modules/lstat-tests (Files): Add test-lstat.h.
34554         (Depends-on): Add stdbool.
34555         * modules/openat-tests (Depends-on): Add pathmax.
34556         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34557         (Makefile.am): Run new test.
34558
34559         remove: new module, for mingw and Solaris 9 bugs
34560         * modules/remove: New file.
34561         * lib/remove.c: Likewise.
34562         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34564         * modules/stdio (Makefile.am): Use them.
34565         * lib/stdio.in.h (remove): Declare replacement.
34566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34567         * doc/posix-functions/remove.texi (remove): Likewise.
34568         * modules/remove-tests: New test.
34569         * tests/test-remove.c: Likewise.
34570
34571         unlink: new module, for Solaris 9 bug
34572         * modules/unlink: New file.
34573         * lib/unlink.c: Likewise.
34574         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34576         * modules/unistd (Makefile.am): Use them.
34577         * lib/unistd.in.h (stat): Declare replacement.
34578         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34579         * doc/posix-functions/unlink.texi (unlink): Likewise.
34580         * modules/unlink-tests: New test.
34581         * tests/test-unlink.c: Likewise.
34582
34583         lstat: fix Solaris 9 bug
34584         * lib/lstat.c (lstat): Also check for trailing slash on
34585         non-symlink, non-directories.  Use stat module to simplify logic.
34586         * doc/posix-functions/lstat.texi (lstat): Document it.
34587         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34588         (configure.ac): Check for symlink.
34589         * tests/test-lstat.c (main): Add more tests.
34590
34591         stat: add as dependency to other modules
34592         * modules/chown (Depends-on): Add stat.
34593         * modules/euidaccess (Depends-on): Likewise.
34594         * modules/fchdir (Depends-on): Likewise.
34595         * modules/isdir (Depends-on): Likewise.
34596         * modules/link (Depends-on): Likewise.
34597         * modules/lstat (Depends-on): Likewise.
34598         * modules/mkdir-p (Depends-on): Likewise.
34599         * modules/modechange (Depends-on): Likewise.
34600         * modules/open (Depends-on): Likewise.
34601         * modules/readlink (Depends-on): Likewise.
34602         * modules/same (Depends-on): Likewise.
34603
34604         stat: fix Solaris 9 bug
34605         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34606         slash.
34607         * lib/stat.c (rpl_stat): Work around it.
34608         * doc/posix-functions/stat.texi (stat): Update documentation.
34609
34610         stat: new module, for mingw bug
34611         * modules/stat: New file.
34612         * lib/stat.c: Likewise.
34613         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34614         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34615         * modules/sys_stat (Makefile.am): Use them.
34616         * lib/sys_stat.in.h (stat): Declare replacement.
34617         * lib/openat.c (fstatat): Deal with lstat and stat being function
34618         macros.
34619         * modules/openat (Depends-on): Add inline.
34620         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34621         * doc/posix-functions/stat.texi (stat): Likewise.
34622         * modules/stat-tests: New test.
34623         * tests/test-stat.c: Likewise.
34624
34625 2009-09-19  Jim Meyering  <meyering@redhat.com>
34626
34627         syntax-check: detect unnecessary inclusion of canonicalize.h
34628         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34629
34630 2009-09-19  Eric Blake  <ebb9@byu.net>
34631
34632         canonicalize-lgpl: adjust clients to use correct header
34633         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34634         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34635         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34636         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34637         * lib/progreloc.c (includes): Likewise.
34638
34639 2009-09-19  Jim Meyering  <meyering@redhat.com>
34640
34641         test-posixtm.c: correct a comment
34642         * tests/test-posixtm.c: Correct first-line comment.
34643         Spotted by Eric Blake.
34644
34645 2009-09-16  Jim Meyering  <meyering@redhat.com>
34646
34647         posixtm-tests: make T const-correct; add a test case
34648         * tests/test-posixtm.c (T): Declare const.
34649         Add a test for -(2^31+1).
34650         Remove useless can-succeed-only-in-2002 test.
34651
34652         posixtm-tests: adjust the sole failing test
34653         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34654         expected output matches what mktime now produces.  Cross-checked via
34655         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34656
34657         posixtm: move #ifdef'd tests into a new module
34658         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34659         * tests/test-posixtm.c: ... this new file.
34660         * modules/posixtm-tests: New module.
34661
34662 2009-09-19  Eric Blake  <ebb9@byu.net>
34663
34664         openat: simplify use of at-func.c
34665         * lib/at-func.c (includes): Include prerequisites here, to
34666         simplify requirements on client files.
34667         * lib/openat-priv.h: Add double-inclusion guard.
34668         * lib/faccessat.c (includes): Simplify.
34669         * lib/fchmodat.c (includes): Likewise.
34670         * lib/fchownat.c (includes): Likewise.
34671         * lib/mkdirat.c (includes): Likewise.
34672         * lib/mkfifoat.c (includes): Likewise.
34673         * lib/symlinkat.c (includes): Likewise.
34674
34675         openat: allow return of fd 0
34676         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34677         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34678         unistd-safer.
34679         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34680         <fcntl.h>; this module does not leak fds.
34681         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34682         must be allowed to return 0, leaving openat_safer to add the
34683         safety.
34684         (openat_permissive): Avoid writing to just-opened fd 2 if
34685         restoring the current directory fails.
34686         * lib/openat-die.c (openat_restore_fail): Add comment.
34687         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34688         (save_cwd): Guarantee safe fd, but without use of open_safer.
34689         * tests/test-openat.c: New test.
34690         * modules/openat-tests (Files, Makefile.am): Distribute and build
34691         new file.
34692
34693         relocatable-prog-wrapper: fix build
34694         * modules/relocatable-prog-wrapper (Files): Update name of
34695         canonicalize m4 file, broken on 2009-09-17.
34696         Reported by emad hajjar <aleppos@hotmail.com>.
34697
34698 2009-09-19  Bruno Haible  <bruno@clisp.org>
34699
34700         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34701         * lib/safe-alloc.c: Likewise.
34702         Reported by Ian Beckwith <ianb@erislabs.net>.
34703
34704 2009-09-18  Bruno Haible  <bruno@clisp.org>
34705
34706         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34707         Reported by <erobles@sensacd.com.mx>.
34708
34709 2009-09-17  Eric Blake  <ebb9@byu.net>
34710
34711         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34712         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34713         slashes when checking if last component is missing.
34714         * tests/test-canonicalize.c (main): Test this.
34715
34716         canonicalize, canonicalize-lgpl: honor // if distinct from /
34717         * modules/canonicalize (Files): Add double-slash-root.m4.
34718         * modules/canonicalize-lgpl (Files): Likewise.
34719         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34720         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34721         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34722         fallback definition.
34723         (canonicalize_filename_mode): Use it to protect //.
34724         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34725         (__realpath): Likewise.
34726         * tests/test-canonicalize.c (main): Test this.
34727         * tests/test-canonicalize-lgpl.c (main): Likewise.
34728         * modules/canonicalize-tests (Depends-on): Add same-inode.
34729         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34730
34731         canonicalize-lgpl: fix glibc bug with trailing slash
34732         * m4/canonicalize-lgpl.m4: Move contents...
34733         * m4/canonicalize.m4: ...here.
34734         (gl_CANONICALIZE_LGPL): Factor realpath check...
34735         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34736         glibc 2.3.5 bug, fixed 2005-04-27.
34737         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34738         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34739         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34740         * modules/canonicalize-lgpl (Files): Manage file rename.
34741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34742         * modules/stdlib (Makefile.am): Substitute witness.
34743         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34744         is needed.
34745         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34746         replacement is required.
34747         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34748         * doc/glibc-functions/canonicalize_file_name.texi
34749         (canonicalize_file_name): Document this.
34750         * doc/posix-functions/realpath.texi (realpath): Likewise.
34751
34752         canonicalize-lgpl: reject non-directory with trailing slash
34753         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34754         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34755         catches failures in glibc 2.3.5.
34756         * tests/test-canonicalize.c (main): Likewise.
34757
34758         canonicalize-lgpl: use native realpath if it works
34759         * lib/canonicalize-lgpl.c (realpath): Guard with
34760         FUNC_REALPATH_WORKS.
34761         * lib/stdlib.in.h (realpath): Make declaration optional based on
34762         HAVE_REALPATH.
34763         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34764         native realpath works.
34765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34766         * modules/stdlib (Makefile.am): Substitute witness.
34767
34768         canonicalize, canonicalize-lgpl: use <stdlib.h>
34769         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34770         (Include): Mention <stdlib.h>.
34771         (configure.ac): Mention functions we provide.
34772         * modules/canonicalize (configure.ac): Likewise.
34773         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34774         realpath if canonicalize_file_name is missing.
34775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34776         * modules/stdlib (Makefile.am): Substitute witnesses.
34777         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34778         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34779         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34780         * NEWS: Document this.
34781         * doc/glibc-functions/canonicalize_file_name.texi
34782         (canonicalize_file_name): Likewise.
34783         * doc/posix-functions/realpath.texi (realpath): Likewise.
34784         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34785
34786         test-canonicalize: consolidate into single C program
34787         * tests/test-canonicalize.sh: Delete; move setup into...
34788         * tests/test-canonicalize.c (main): ...the program, making it
34789         easier to run in debugger.  Add some tests.
34790         * modules/canonicalize-tests (Files): Remove unused file.
34791         (Depends-on): Add progname.
34792         (configure.ac, Makefile.am): Simplify.
34793
34794         test-canonicalize-lgpl: consolidate into single C program
34795         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34796         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34797         easier to run in debugger.  Add some tests.
34798         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34799         (configure.ac, Makefile.am): Simplify.
34800
34801         canonicalize: avoid resolvepath
34802         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34803         unnecessary checks.
34804         * lib/canonicalize.c (includes): Simplify.
34805         (canonicalize_file_name): Drop resolvepath implementation.
34806         * modules/canonicalize (Depends-on): Drop filenamecat.
34807
34808         canonicalize: don't lose errno
34809         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34810         over calls to free.
34811
34812         canonicalize: simplify errno handling
34813         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34814         assignment.
34815
34816         canonicalize, canonicalize-lgpl: update module dependencies
34817         * modules/canonicalize (Depends-on): Add extensions, lstat,
34818         pathmax, stdlib.
34819         (Files): Drop pathmax.h.
34820         (configure.ac): Adjust macro name.
34821         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34822         lstat, stdlib, sys_stat.
34823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34824         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34825         extensions.
34826         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34827         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34828         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34829         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34830         declaration, if available.
34831         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34832         we can rely on the readlink module.
34833         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34834         (includes): Use <unistd.h> unconditionally.
34835
34836 2009-09-17  Eric Blake  <ebb9@byu.net>
34837
34838         maint: make Include sections of modules consistent
34839         * modules/alloca: Use only header name; no need to list #include.
34840         * modules/alloca-opt: Likewise.
34841         * modules/arpa_inet: Likewise.
34842         * modules/canon-host: Likewise.
34843         * modules/configmake: Likewise.
34844         * modules/dirent: Likewise.
34845         * modules/eealloc: Likewise.
34846         * modules/environ: Likewise.
34847         * modules/fchdir: Likewise.
34848         * modules/fcntl: Likewise.
34849         * modules/fcntl-h: Likewise.
34850         * modules/gethrxtime: Likewise.
34851         * modules/gettime: Likewise.
34852         * modules/ignore-value: Likewise.
34853         * modules/inet_ntop: Likewise.
34854         * modules/inet_pton: Likewise.
34855         * modules/inttypes: Likewise.
34856         * modules/isnand-nolibm: Likewise.
34857         * modules/isnanf-nolibm: Likewise.
34858         * modules/mbchar: Likewise.
34859         * modules/mbfile: Likewise.
34860         * modules/mbiter: Likewise.
34861         * modules/mbuiter: Likewise.
34862         * modules/netdb: Likewise.
34863         * modules/netinet_in: Likewise.
34864         * modules/nproc: Likewise.
34865         * modules/pagealign_alloc: Likewise.
34866         * modules/poll: Likewise.
34867         * modules/printf-frexp: Likewise.
34868         * modules/pthread: Likewise.
34869         * modules/putenv: Likewise.
34870         * modules/random_r: Likewise.
34871         * modules/relocatable-prog: Likewise.
34872         * modules/search: Likewise.
34873         * modules/select: Likewise.
34874         * modules/selinux-h: Likewise.
34875         * modules/settime: Likewise.
34876         * modules/signal: Likewise.
34877         * modules/size_max: Likewise.
34878         * modules/socklen: Likewise.
34879         * modules/ssize_t: Likewise.
34880         * modules/stdarg: Likewise.
34881         * modules/stdbool: Likewise.
34882         * modules/stddef: Likewise.
34883         * modules/stdint: Likewise.
34884         * modules/stdio: Likewise.
34885         * modules/stdlib: Likewise.
34886         * modules/string: Likewise.
34887         * modules/strings: Likewise.
34888         * modules/sys_file: Likewise.
34889         * modules/sys_ioctl: Likewise.
34890         * modules/sys_select: Likewise.
34891         * modules/sys_socket: Likewise.
34892         * modules/sys_stat: Likewise.
34893         * modules/sys_time: Likewise.
34894         * modules/sys_times: Likewise.
34895         * modules/sys_utsname: Likewise.
34896         * modules/sys_wait: Likewise.
34897         * modules/sysexits: Likewise.
34898         * modules/time: Likewise.
34899         * modules/times: Likewise.
34900         * modules/tmpfile: Likewise.
34901         * modules/trim: Likewise.
34902         * modules/unistd: Likewise.
34903         * modules/wchar: Likewise.
34904         * modules/wctype: Likewise.
34905
34906 2009-09-17  Bruno Haible  <bruno@clisp.org>
34907
34908         Make getdate.y compile on QNX and NetBSD 5 / i386.
34909         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34910         TIME_T_FITS_IN_LONG_INT.
34911         * lib/getdate.y (long_time_t): New type.
34912         (relative_time): Change type of 'seconds' field to long_time_t.
34913         (get_date): Update types of local variables. Check against overflow
34914         during conversion from long_time_t to time_t.
34915         Reported by Matt Kraai <kraai@ftbfs.org>
34916         and Hasso Tepper <hasso@netbsd.org>.
34917
34918 2009-09-17  Bruno Haible  <bruno@clisp.org>
34919
34920         * modules/COPYING: Update copyright years.
34921         * modules/README: Likeiwse.
34922         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34923         Reported by Ian Beckwith <ianb@erislabs.net>.
34924
34925 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34926
34927         * users.txt: Update references for gnuit package.
34928
34929 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34930
34931         * m4/getdelim.m4: Fix typo in copyright line.
34932
34933 2009-09-17  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/atoll.c: Use the standard header with GPL copyright.
34936         * lib/argz.in.h: Likewise.
34937         * lib/glob.c: Likewise.
34938         * lib/glob-libc.h: Likewise.
34939         * lib/random_r.c: Likewise.
34940         * lib/siglist.h: Likewise.
34941         * lib/strsignal.c: Likewise.
34942         Reported by Ian Beckwith <ianb@erislabs.net>.
34943
34944 2009-09-17  Eric Blake  <ebb9@byu.net>
34945
34946         rmdir: ensure correct dependency order
34947         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34948
34949 2009-09-17  Bruno Haible  <bruno@clisp.org>
34950
34951         Disable assertion that fails on NetBSD 5 / i386.
34952         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34953         Reported by Sam Steingold <sds@gnu.org>
34954         and Hasso Tepper <hasso@netbsd.org>.
34955
34956 2009-09-16  Eric Blake  <ebb9@byu.net>
34957
34958         unlinkdir: port to mingw
34959         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34960         on which no one can unlink a directory.
34961
34962         stdlib: sort witness names
34963         * modules/stdlib (Makefile.am): Sort replacements.
34964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34965         * lib/stdlib.in.h: Likewise.
34966
34967         parse-duration-tests: avoid link failure
34968         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34969         LIBINTL.
34970         Reported by Tom G. Christensen.
34971
34972         openat-tests: ensure unlinkat behaves like rmdir
34973         * tests/test-rmdir.c (main): Factor guts...
34974         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34975         * modules/rmdir-tests (Files): Ship new file.
34976         * modules/openat-tests: New test.
34977         * tests/test-unlinkat.c: Likewise.
34978
34979         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34980         * modules/rmdir-errno (Status, Notice): Now obsolete.
34981
34982         rmdir: work around cygwin 1.5.x and mingw bugs
34983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34984         * lib/rmdir.c (rmdir): Work around it.
34985         * modules/rmdir (Status, Notice): No longer obsolete.
34986         (Files): Add dos.m4.
34987         (Depends-on): Add unistd.
34988         (configure.ac): Set witnesses.
34989         (License): Relax to LGPLv2+.
34990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34991         * modules/unistd (Makefile.am): Substitute witnesses.
34992         * lib/unistd.in.h (rmdir): Declare replacement.
34993         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34994         * modules/rmdir-tests: New tests.
34995         * tests/test-rmdir.c: Likewise.
34996
34997 2009-09-15  Eric Blake  <ebb9@byu.net>
34998
34999         fchdir: improve use of replacement functions
35000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35003         REPLACE_CLOSEDIR.
35004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35005         * modules/sys_stat (Makefile.am): Substitute correct witness.
35006         * modules/dirent (Makefile.am): Likewise.
35007         * modules/unistd (Makefile.am): Likewise.
35008         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35009         * lib/unistd.in.h (dup): Likewise.
35010         * lib/sys_stat.in.h (fstat): Likewise.
35011
35012         maint: ignore gnulib-tool temp files
35013         * .gitignore: Ignore files created during gnulib-tool --test.
35014
35015 2009-09-13  Jim Meyering  <meyering@redhat.com>
35016
35017         posixtm: don't reject a time that specify "60" as the number of seconds
35018         * lib/posixtm.c (posixtime): The code to reject invalid dates
35019         would also reject a time specified with the .60 suffix.
35020         But POSIX allows that, in order to accommodate leap seconds.
35021         So don't reject it.
35022         (main): Adjust tests accordingly.
35023         * modules/posixtm (Depends-on): Add stpcpy.
35024
35025 2009-09-11  Jim Meyering  <meyering@redhat.com>
35026
35027         announce-gen: include [$release_type] in emitted Subject:
35028         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35029         e.g., [stable] in the emitted Subject: line.
35030
35031 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35032
35033         Remove obsolete macros from several modules.
35034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35035         obsolete Autoconf macros with their modern counterparts.
35036         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35037         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35039         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35040         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35043         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35044         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35045         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35046         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35048         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35049         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35050         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35051         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35052         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35053         * m4/time_r.m4 (gl_TIME_R): Likewise.
35054         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35055         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35056         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35057
35058         Fix copyright header in build-aux scripts.
35059         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35060         recommendation.
35061         * build-aux/ncftpput-ftp: Likewise.
35062         * build-aux/update-copyright: Likewise.
35063
35064 2009-09-09  Eric Blake  <ebb9@byu.net>
35065
35066         test-link: allow Linux choice of errno
35067         * tests/test-link.c (main): Relax test for alternate error.
35068
35069         strndup: fix improper m4 caching
35070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35071         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35072         (gl_PREREQ_STRNDUP): Delete.
35073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35074         * modules/string (Makefile.am): Substitute it.
35075         * lib/string.in.h (strndup): Modernize prototype.
35076
35077         getcwd: port to mingw
35078         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35079         different from the POSIX assumptions made throughout the getcwd
35080         module; fortunately, the mingw getcwd does not need replacement.
35081         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35082         * modules/getcwd-tests: New test.
35083         * tests/test-getcwd.c: Likewise.
35084
35085         link: fix platform bugs
35086         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35087         * lib/link.c (link): Work around them.  Fix related mingw bug.
35088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35089         * modules/unistd (Makefile.am): Substitute it.
35090         * lib/unistd.in.h (link): Declare replacement.
35091         * doc/posix-functions/link.texi (link): Document this.
35092         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35093
35094         test-link: consolidate into single C program, test more cases
35095         * tests/test-link.sh: Delete.
35096         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35097         at least Cygwin and Solaris.
35098         * modules/link-tests (Files): Remove unused file.
35099         (Depends-on): Add errno, sys_stat.
35100         (Makefile.am): Simplify.
35101
35102 2009-09-08  Bruno Haible  <bruno@clisp.org>
35103
35104         Work around towlower, towupper bug on mingw.
35105         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35106         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35107         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35108         * doc/posix-functions/towupper.texi: Likewise.
35109         Reported by Eric Blake.
35110
35111 2009-09-08  Jim Meyering  <meyering@redhat.com>
35112
35113         build: don't try to run autoheader if we don't use it
35114         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35115         is not used in configure.ac.
35116
35117 2009-09-08  Eric Blake  <ebb9@byu.net>
35118
35119         euidaccess: fix compilation error
35120         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35121
35122         rawmemchr: relax license
35123         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35124         okay.
35125         Reported by Jim Meyering.
35126
35127         mkfifoat: new module
35128         * modules/mkfifoat: New file.
35129         * lib/mkfifoat.c: Likewise.
35130         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35132         * modules/sys_stat (Makefile.am): Use them.
35133         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35134         * MODULES.html.sh (File system functions): Mention module.
35135         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35136         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35137         * modules/mkfifoat-tests: New test.
35138         * tests/test-mkfifoat.c: Likewise.
35139
35140         strchrnul: relax license
35141         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35142         okay.
35143         Reported by Jim Meyering.
35144
35145 2009-09-08  Eric Blake  <ebb9@byu.net>
35146
35147         fstatat: fix compilation on Solaris
35148         * lib/fstatat.c (includes): Add fcntl.h.
35149         Reported by Pádraig Brady.
35150
35151 2009-09-07  Eric Blake  <ebb9@byu.net>
35152
35153         rename: modernize replacement
35154         * modules/rename (Depends-on): Add stdio.
35155         (configure.ac): Declare witness.
35156         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35157         stdio take care of replacement.
35158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35159         * modules/stdio (Makefile.am): Substitute them.
35160         * lib/stdio.in.h (rename): Declare replacement.
35161         * lib/rename.c (includes): Allow cross-compilation to non-windows
35162         machines.
35163         * doc/posix-functions/rename.texi (rename): Improve
35164         documentation.
35165
35166         stdio: sort witness names
35167         * modules/stdio (Makefile.am): Sort replacements.
35168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35169         * lib/stdio.in.h: Likewise.
35170
35171         getcwd: minor cleanups
35172         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35173         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35174
35175         openat: provide more convenience names
35176         * modules/faccessat (configure.ac): Add C witness.
35177         * lib/unistd.in.h (readlinkat): Fix typo.
35178         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35179         convenience wrappers.
35180         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35181         wrappers in syntax checks.
35182
35183 2009-09-06  Eric Blake  <ebb9@byu.net>
35184
35185         doc: fix comments in recent patches
35186         * lib/faccessat.c: Mention correct function.
35187         * lib/fchmodat.c: Likewise.
35188         * lib/fchownat.c: Likewise.
35189         * lib/symlinkat.c: Likewise.
35190         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35191         constants.
35192
35193         faccessat, symlinkat: continue cleanup of previous patch
35194         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35195         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35196         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35198         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35199         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35200         set.
35201
35202 2009-09-06  Bruno Haible  <bruno@clisp.org>
35203
35204         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35205         (fstatat): Declare if GNULIB_FSTATAT is set.
35206         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35207         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35208         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35209         * modules/fcntl-h (Files): Remove m4/openat.m4.
35210         * modules/sys_stat (Files): Remove m4/openat.m4.
35211         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35212         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35213         * modules/unistd (Files): Remove m4/openat.m4.
35214         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35215         GNULIB_OPENAT.
35216         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35217         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35219         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35220         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35221         gl_OPENAT_DEFAULTS.
35222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35223         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35224         Don't require gl_OPENAT_DEFAULTS.
35225         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35226         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35227         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35228         (gl_OPENAT_DEFAULTS): Remove macro.
35229
35230 2009-09-06  Bruno Haible  <bruno@clisp.org>
35231
35232         * modules/openat (configure.ac): Remove unneeded witness.
35233
35234 2009-09-06  Bruno Haible  <bruno@clisp.org>
35235
35236         Set errno to ENOSYS when a function is entirely unsupported.
35237         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35238         EOPNOTSUPP.
35239         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35240         * modules/chown (Depends-on): Remove errno.
35241
35242 2009-09-06  Bruno Haible  <bruno@clisp.org>
35243
35244         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35245
35246 2009-09-06  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35249
35250 2009-09-06  Ben Pfaff  <blp@gnu.org>
35251             Bruno Haible  <bruno@clisp.org>
35252
35253         Work around a glibc bug in strtok_r.
35254         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35255         Undefine if UNDEFINE_STRTOK_R is set.
35256         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35258         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35259         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35260         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35261         UNDEFINE_STRTOK_R.
35262         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35263
35264 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35265
35266         exclude: minor fix
35267         * lib/exclude.c: Include wctype.h
35268
35269 2009-09-06  Akim Demaille  <demaille@gostai.com>
35270
35271         bootstrap: improve error message
35272         * build-aux/bootstrap (find_tool): Upon failure, report the list
35273         of candidates.
35274         Honor the initial value of the envvar.
35275
35276 2009-09-05  Eric Blake  <ebb9@byu.net>
35277
35278         symlinkat: new module
35279         * modules/symlinkat: New file.
35280         * lib/symlinkat.c: Likewise.
35281         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35283         * modules/unistd (Makefile.am): Use them.
35284         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35285         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35286         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35287         * MODULES.html.sh (File system functions): Mention module.
35288         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35289         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35290         * modules/symlinkat-tests: New test.
35291         * tests/test-symlinkat.c: Likewise.
35292
35293         test-openat-safer: add more checks
35294         * tests/test-openat-safer.c (main): Check more code paths.
35295
35296 2009-09-05  Jim Meyering  <meyering@redhat.com>
35297
35298         syntax-check: detect unnecessary inclusion of openat.h
35299         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35300
35301 2009-09-05  Bruno Haible  <bruno@clisp.org>
35302
35303         Support towlower, towupper.
35304         * doc/posix-functions/towlower.texi: Mention module wctype.
35305         * doc/posix-functions/towupper.texi: Likewise.
35306         * lib/wctype.in.h (towlower, towupper): New functions.
35307         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35308         (ASSERT): New macro.
35309         (e): New variable.
35310         (main): Test also towlower, towupper. Test WEOF argument.
35311         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35312
35313 2009-09-05  Bruno Haible  <bruno@clisp.org>
35314
35315         Fix conversion behaviour when the input is invalid.
35316         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35317         mark occurring in first pass of indirect conversion.
35318         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35319         input.
35320         Found by clang's static analyzer.
35321
35322 2009-09-05  Bruno Haible  <bruno@clisp.org>
35323
35324         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35325         where direct conversion is possible.
35326
35327 2009-09-04  Eric Blake  <ebb9@byu.net>
35328
35329         openat: fail with ENOENT on empty name
35330         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35331         buffer.
35332
35333         link-follow: fix logic bug in prior patch
35334         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35335         reversed sense of yes and no in prior patch.  Avoid confusing
35336         compilation failure with desired semantics.
35337
35338         link-follow: accomodate mingw and cross-compilation
35339         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35340         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35341         cross-compilation results to -1, to make linkat easier to
35342         implement when cross-compiling.  Trivially support mingw.
35343         * modules/link-follow (configure.ac): Call new name.
35344         * NEWS: Mention this.
35345
35346 2009-09-03  Eric Blake  <ebb9@byu.net>
35347
35348         faccessat: compile replacement
35349         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35350         needed.
35351
35352         fts: fix compilation error
35353         * lib/fts.c (includes): Re-add "openat.h", for
35354         openat_needs_fchdir.
35355
35356         faccessat: new module
35357         * modules/faccessat: New file.
35358         * lib/faccessat.c: Likewise.
35359         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35361         * modules/unistd (Makefile.am): Use it.
35362         * lib/unistd.in.h (faccessat): Declare it.
35363         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35364         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35365         * MODULES.html.sh (File system functions): Mention it.
35366         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35367         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35368
35369         euidaccess: prefer POSIX over non-standard implementation
35370         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35371         * lib/euidaccess.c (euidaccess): Use it if available.
35372
35373         openat: make template easier to use
35374         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35375         AT_FUNC_F2 to be undefined.
35376         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35377         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35378         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35379         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35380         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35381         Likewise.
35382         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35383         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35384         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35385         Likewise.
35386
35387         openat: declare in POSIX headers
35388         * NEWS: Mention this.
35389         * modules/openat (configure.ac): Declare witnesses.
35390         (Depends-on): Add fcntl-h, sys_stat, unistd.
35391         (Include): Mention correct headers.
35392         * modules/fcntl-h (Depends-on): Add link-warning.
35393         (Files): Add openat.m4.
35394         (Makefile.am): Substitute witnesses.
35395         * modules/sys_stat (Files, Makefile.am): Likewise.
35396         * modules/unistd (Files, Makefile.am): Likewise.
35397         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35398         (gl_OPENAT_DEFAULTS): New macro.
35399         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35402         (SYS_STAT_H): Remove unused variable.
35403         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35404         * lib/fcntl--.h (includes): Remove unneeded header.
35405         * lib/openat-safer.c (includes): Likewise.
35406         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35407         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35408         appropriate headers.
35409         (__OPENAT_PREFIX): Delete.
35410         * lib/fcntl.in.h (openat): Provide declaration.
35411         (AT_FDCWD): Fix Solaris bug.
35412         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35413         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35414         * lib/fchmodat.c (includes):  Adjust to find declaration.
35415         * lib/fchownat.c (includes): Likewise.
35416         * lib/mkdirat.c (includes): Likewise.
35417         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35418         still visible.
35419
35420 2009-09-02  Eric Blake  <ebb9@byu.net>
35421
35422         errno: use consistently
35423         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35424         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35425         * lib/canonicalize.c (ELOOP): Likewise.
35426         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35427         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35428         * lib/lchown.c (EOPNOTSUPP): Likewise.
35429         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35430         * lib/savewd.c (ESTALE): Likewise.
35431         * lib/settime.c (ENOSYS): Likewise.
35432         * lib/utimens.c (ENOSYS): Likewise.
35433         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35434         * lib/chdir-safer.c (ELOOP): Likewise.
35435         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35436         * modules/c-stack (Depends-on): Add errno.
35437         * modules/canonicalize (Depends-on): Likewise.
35438         * modules/chdir-safer (Depends-on): Likewise.
35439         * modules/fdopendir (Depends-on): Likewise.
35440         * modules/inet_ntop (Depends-on): Likewise.
35441         * modules/inet_pton (Depends-on): Likewise.
35442         * modules/lchown (Depends-on): Likewise.
35443         * modules/openat (Depends-on): Likewise.
35444         * modules/savewd (Depends-on): Likewise.
35445         * modules/settime (Depends-on): Likewise.
35446         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35447
35448         fts: avoid leaking fds
35449         * modules/fts (Depends-on): Add cloexec.
35450         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35451         flag.
35452
35453         fts: make directory fds more robust
35454         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35455         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35456
35457         backupfile, chdir-long, fts, savedir: make safer
35458         * lib/backupfile.c (includes): Use "dirent--.h", since
35459         numbered_backup can write to stderr during readdir.
35460         * lib/savedir.c (includes): Likewise.
35461         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35462         emulation can write to stderr on failure.
35463         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35464         * lib/getcwd.c: Document why opendir_safer is unused.
35465         * lib/glob.c: Likewise.
35466         * lib/scandir.c: Likewise.
35467         * lib/openat-proc.c: Likewise, for open_safer.
35468         * modules/backupfile (Depends-on): Add dirent-safer.
35469         * modules/savedir (Depends-on): Likewise.
35470         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35471         * modules/chdir-long (Depends-on): Add openat-safer.
35472
35473         openat-safer: new module
35474         * modules/openat-safer: New file.
35475         * lib/openat-safer.c: Likewise.
35476         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35477         * lib/fcntl-safer.h (openat_safer): Declare.
35478         * lib/fcntl--.h (openat): Override.
35479         * MODULES.html.sh (File descriptor based I/O): Mention it.
35480         * lib/openat.h: Add double-inclusion guards.
35481         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35482         "fcntl--.h", so we can implement openat.
35483         * modules/openat-safer-tests: New test.
35484         * tests/test-openat-safer.c: New file.
35485
35486         dirent-safer: new module
35487         * modules/dirent-safer: New file.
35488         * lib/dirent--.h: Likewise.
35489         * lib/dirent-safer.h: Likewise.
35490         * lib/opendir-safer.c: Likewise.
35491         * m4/dirent-safer.m4: Likewise.
35492         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35493         * modules/dirent-safer-tests: New test.
35494         * tests/test-dirent-safer.c: New file.
35495         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35496
35497         fdopendir: optimize on mingw
35498         * lib/unistd.in.h (_gl_directory_name): New prototype.
35499         * lib/fchdir.c (_gl_directory_name): Implement it.
35500         (fchdir): Use it to simplify implementation.
35501         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35502         fchdir, when available, to avoid calling [f]chdir().
35503
35504         fdopendir: split into its own module
35505         * lib/openat.c (fdopendir): Move...
35506         * lib/fdopendir.c: ...into new file.
35507         * modules/fdopendir: New module.
35508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35509         * modules/openat (Depends-on): Add fdopendir.
35510         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35511         fdopendir here.
35512         * modules/savedir (Depends-on): Only need fdopendir, not full
35513         openat.
35514         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35515         * lib/openat.h (fdopendir): Drop prototype.
35516         * lib/dirent.in.h (fdopendir): Provide prototype.
35517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35518         * modules/dirent (Makefile.am): Substitute them.
35519         * MODULES.html.sh (File system functions): Mention it.
35520         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35521         * modules/fdopendir-tests: New file.
35522         * tests/test-fdopendir.c: Likewise.
35523
35524         fchdir: use more consistent macro convention
35525         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35526         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35527         REPLACE_FCHDIR, rather than relying on config.h macros.
35528         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35529         inside a single make-time REPLACE_FCHDIR block, rather than using
35530         the config.h FCHDIR_REPLACEMENT.
35531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35532         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35533         Manage fstat replacement.
35534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35535         REPLACE_FCHDIR.
35536         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35537         (Makefile.am): Substitute REPLACE_FCHDIR.
35538         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35539         FCHDIR_REPLACEMENT.
35540         * lib/dup-safer.c (dup_safer): Likewise.
35541         * lib/dup2.c (rpl_dup2): Likewise.
35542         * lib/dup3.c (rpl_dup3): Likewise.
35543         * lib/open.c (rpl_open): Likewise.
35544
35545         fchdir: simplify error handling, and support dup3
35546         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35547         stdbool, malloc-posix, realloc-posix.
35548         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35549         (ensure_dirs_slot): Return false on allocation failure.
35550         (rpl_dup2): Delete.
35551         (_gl_register_dup): New function.
35552         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35553         (_gl_register_fd): Close fd on allocation failure.
35554         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35555         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35556         prototype.
35557         (rpl_dup2_fchdir): Delete prototype.
35558         * lib/open.c (open): Update caller.
35559         * lib/dup2.c (dup2): Track fchdir metadata.
35560         * lib/dup3.c (dup3): Likewise.
35561         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35563
35564 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35565
35566         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35567         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35568         don't pass arguments to AC_OUTPUT.
35569
35570 2009-09-02  Bruno Haible  <bruno@clisp.org>
35571
35572         * modules/mkdtemp (License): Relicense under LGPLv2+.
35573         Reported by Paolo Bonzini.
35574
35575 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35576
35577         Replace uses of obsolete autoconf macros in Jim's modules.
35578         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35579         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35580         can evoke a warning from autoconf when run with -Wobsolete
35581         enabled.  They were declared obsolete for good reasons (see
35582         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35583         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35584         should not continue using the deprecated macros.
35585         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35586         obsolete Autoconf macros with modern counterparts.
35587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35588         * m4/dos.m4 (gl_AC_DOS): Likewise.
35589         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35591         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35592         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35593         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35594         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35595         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35596         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35597         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35598         Likewise.
35599         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35600         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35601         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35602         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35603         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35604         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35605
35606 2009-09-01  Eric Blake  <ebb9@byu.net>
35607
35608         fchdir: fix off-by-one bug in previous patch
35609         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35610         (_gl_unregister_fd): Delete useless if.
35611
35612 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35613
35614         maint.mk: sort the list of syntax-check rules
35615         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35616         easier to get a sense of progress when the rules are run sequentially
35617         and take a long time.
35618
35619 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35620
35621         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35622         * modules/netinet_in: Likewise.
35623         * modules/sys_file: Likewise.
35624         * modules/sys_ioctl: Likewise.
35625         * modules/sys_select: Likewise.
35626         * modules/sys_socket: Likewise.
35627         * modules/sys_stat: Likewise.
35628         * modules/sys_time: Likewise.
35629         * modules/sys_times: Likewise.
35630         * modules/sys_utsname: Likewise.
35631         * modules/sys_wait: Likewise.
35632
35633 2009-09-01  Jim Meyering  <meyering@redhat.com>
35634
35635         fts: help ensure that return values are not ignored
35636         * lib/fts_.h (__GNUC_PREREQ): Define.
35637         (__attribute_warn_unused_result__): Define.
35638         (fts_children, fts_close, fts_open, fts_read): Declare with
35639         __attribute_warn_unused_result__.
35640
35641         fts: fts_close now fails also when closing a dir file descriptor fails
35642         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35643         and propagate to caller, along with errno.
35644
35645         announce-gen: correct formatting in --help output
35646         * build-aux/announce-gen (usage): Move the one-line description in
35647         --help output "up", to where it belongs, just after Usage:.
35648
35649 2009-08-31  Eric Blake  <ebb9@byu.net>
35650
35651         fchdir: port to mingw
35652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35653         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35654         opened, then use a substitute.
35655         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35656         replacement.
35657         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35658         (_gl_register_fd): No need to check stat if open already filters
35659         all directories.
35660         (fchdir): Fix error condition to match POSIX.
35661         * modules/fchdir (Depends-on): Add sys_stat.
35662         * doc/posix-functions/open.texi (open): Document the limitation.
35663         * modules/fchdir-tests: New file.
35664         * tests/test-fchdir.c: Likewise.
35665
35666         canonicalize: allow cross-testing from cygwin to mingw
35667         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35668         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35669         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35670         Likewise.
35671         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35672         target does not support symlinks.
35673         * tests/test-canonicalize-lgpl.sh: Likewise.
35674
35675         chown: avoid compilation warning on mingw
35676         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35677         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35678         mingw.
35679         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35680         * modules/chown (Depends-on): Add errno.
35681
35682 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35683
35684         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35685         command.
35686
35687 2009-08-31  Jim Meyering  <meyering@redhat.com>
35688
35689         canonicalize: remove useless initialization
35690         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35691         initialization of local, "end".
35692
35693 2009-08-30  Bruno Haible  <bruno@clisp.org>
35694
35695         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35696         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35697         ENOSYS.
35698
35699 2009-08-30  Bruno Haible  <bruno@clisp.org>
35700
35701         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35702         /usr/xpg4/bin/tr when it exists.
35703         * tests/test-pipe-filter-gi1.sh: Likewise.
35704
35705 2009-08-30  Bruno Haible  <bruno@clisp.org>
35706
35707         Work around deficient /usr/bin/id program on Solaris.
35708         * tests/test-file-has-acl.sh (ID): New variable.
35709         * tests/test-set-mode-acl.sh (ID): Likewise.
35710         * tests/test-copy-acl.sh (ID): Likewise.
35711         * tests/test-copy-file.sh (ID): Likewise.
35712
35713 2009-08-30  Bruno Haible  <bruno@clisp.org>
35714
35715         New module 'xstriconveh'.
35716         * lib/xstriconveh.h: New file.
35717         * lib/xstriconveh.c: New file.
35718         * modules/xstriconveh: New file.
35719
35720 2009-08-30  Bruno Haible  <bruno@clisp.org>
35721
35722         Make it easier to use mem_cd_iconveh.
35723         * lib/striconveh.h (iconveh_t): New type.
35724         (iconveh_open, iconveh_close): New declarations.
35725         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35726         with a single 'const iconveh_t *' argument.
35727         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35728         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35729         with a single 'const iconveh_t *' argument.
35730         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35731         * tests/test-striconveh.c (main): Update.
35732         * NEWS: Mention the change.
35733
35734 2009-08-30  Bruno Haible  <bruno@clisp.org>
35735
35736         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35737         problem.
35738
35739 2009-08-30  Bruno Haible  <bruno@clisp.org>
35740
35741         Work around iconv_open problem on Solaris.
35742         * lib/iconv_open-solaris.gperf: New file.
35743         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35744         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35745         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35746         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35747         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35748         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35749
35750 2009-08-29  Jim Meyering  <meyering@redhat.com>
35751
35752         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35753         * top/maint.mk (cvs-check): Remove target; it was just an alias
35754         to the better-named vc-diff-check.
35755         (maintainer-distcheck): Remove rule.  It was used only from
35756         the (alpha/beta/major) target, and all of its commands but one
35757         were coreutils-specific.
35758         (vc-dist): Remove rule.
35759         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35760         Run vc-diff-check, not vc-dist.
35761         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35762
35763 2009-08-27  Bruno Haible  <bruno@clisp.org>
35764
35765         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35766         of 0.
35767
35768 2009-08-27  Bruno Haible  <bruno@clisp.org>
35769
35770         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35771         compilers.
35772         * doc/func.texi: Document the SunPRO C bug.
35773
35774 2009-08-27  Bruno Haible  <bruno@clisp.org>
35775
35776         Fix link error on Solaris.
35777         * tests/test-parse-duration.c (xstrdup): Remove function.
35778
35779 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35780
35781         ignore-value: handle pointer types, too
35782         * lib/ignore-value.h (__attribute__): Remove definition.
35783         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35784         of a more concise and more-often effective "(void) i" statement.
35785         (ignore_ptr): New function to suppress warnings from functions that
35786         return pointers, and to make it explicit that one function doesn't
35787         handle all cases.
35788
35789 2009-08-25  Bruno Haible  <bruno@clisp.org>
35790
35791         dup2: work around a Linux bug.
35792         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35793         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35794         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35795         Reported by Simon Josefsson.
35796
35797 2009-08-25  Jim Meyering  <meyering@redhat.com>
35798
35799         libguestfs uses gnulib
35800         * users.txt: Add libguestfs.
35801
35802 2009-08-24  Eric Blake  <ebb9@byu.net>
35803
35804         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35805         * lib/pipe2.c (includes): Add binary-io.h.
35806         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35807
35808 2009-08-24  Bruno Haible  <bruno@clisp.org>
35809
35810         Tolerate declared but missing accept4 syscall.
35811         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35812         available.
35813         * lib/sys_socket.in.h (accept4): If the function is already present,
35814         override it.
35815         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35816         * modules/accept4 (Makefile.am): Compile accept4.c always.
35817         Reported by Paolo Bonzini and Eric Blake.
35818
35819 2009-08-23  Bruno Haible  <bruno@clisp.org>
35820
35821         New module 'accept4'.
35822         * lib/sys_socket.in.h (accept4): New declaration.
35823         * lib/accept4.c: New file.
35824         * m4/accept4.m4: New file.
35825         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35826         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35827         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35828         HAVE_ACCEPT4.
35829         * modules/accept4: New file.
35830         * doc/glibc-functions/accept4.texi: Mention the new module.
35831
35832 2009-08-24  Jim Meyering  <meyering@redhat.com>
35833
35834         progname: also set global program_invocation_name, when possible
35835         Before this change, a libtool-enabled program that calls glibc's
35836         error function would report the program name as
35837         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35838         * modules/progname (configure.ac): Check for a declaration of
35839         program_invocation_name.
35840         * lib/progname.c:  Include <errno.h>.
35841         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35842         Set program_invocation_name.
35843
35844 2009-08-23  Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/dup3.c: Include <string.h>.
35847
35848 2009-08-23  Bruno Haible  <bruno@clisp.org>
35849
35850         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35851         * lib/pipe2.c (pipe2): Likewise.
35852         Suggested by Eric Blake.
35853
35854 2009-08-23  Bruno Haible  <bruno@clisp.org>
35855
35856         Tolerate declared but missing dup3 syscall.
35857         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35858         * lib/unistd.in.h (dup3): If the function is already present,
35859         override it.
35860         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35861         * modules/dup3 (Makefile.am): Compile dup3.c always.
35862         Reported by Paolo Bonzini.
35863
35864 2009-08-23  Bruno Haible  <bruno@clisp.org>
35865
35866         Tolerate declared but missing pipe2 syscall.
35867         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35868         available.
35869         * lib/unistd.in.h (pipe2): If the function is already present,
35870         override it.
35871         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35872         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35873         Reported by Paolo Bonzini.
35874
35875 2009-08-23  Bruno Haible  <bruno@clisp.org>
35876
35877         * lib/pipe2.c (pipe2): Move #ifs inside function.
35878
35879 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35880
35881         quotearg: document limitations of quote_these_too
35882         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35883         those limitations are created.
35884         * lib/quotearg.h (set_char_quoting): Document that digits and
35885         letters that are special after backslash are not permitted.
35886         (quotearg_char): Cross-reference set_char_quoting documentation.
35887
35888 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35889
35890         quotearg: implement custom_quoting_style
35891         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35892         right_quote fields.
35893         (set_custom_quoting): New public function.
35894         (quotearg_buffer_restyled): Add left_quote and right_quote
35895         arguments, handle them very much like locale quoting, and update
35896         all uses.
35897         (quotearg_n_custom): New public function.
35898         (quotearg_n_custom_mem): New public function.
35899         (quotearg_custom): New public function.
35900         (quotearg_custom_mem): New public function.
35901         * lib/quotearg.h: Prototype and document new public functions.
35902         (enum quoting_style): For escape_quoting_style and
35903         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35904         ignored even though they're otherwise like c_quoting_style.
35905         Add custom_quoting_style member and document with comparison to
35906         clocale_quoting_style.
35907         * tests/test-quotearg.c (custom_quotes): New array.
35908         (custom_results): New array.
35909         (main): Extend to test custom quoting.
35910
35911 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35912
35913         quotearg: fix right quote escaping when it's in quote_these_too
35914         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35915         quote, be sure to prepend only one backslash.
35916         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35917         (main): Test it.
35918
35919 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35920
35921         quotearg-tests: test escaping of embedded locale quotes
35922         * tests/test-quotearg.c (struct result_strings): Add member for
35923         new input.
35924         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35925         (inputs): Add new input.
35926         (results_g): Add expected results.
35927         (flag_results): Likewise.
35928         (locale_results): Likewise.
35929         (compare_strings): Check those.
35930
35931 2009-08-23  Bruno Haible  <bruno@clisp.org>
35932
35933         Tests for module 'dup3'.
35934         * modules/dup3-tests: New file.
35935         * tests/test-dup3.c: New file.
35936
35937         New module 'dup3'.
35938         * lib/unistd.in.h (dup3): New declaration.
35939         * lib/dup3.c: New file.
35940         * m4/dup3.m4: New file.
35941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35942         HAVE_DUP3.
35943         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35944         * modules/dup3: New file.
35945         * doc/glibc-functions/dup3.texi: Mention the new module.
35946
35947 2009-08-23  Bruno Haible  <bruno@clisp.org>
35948
35949         Tweak the dup2 test.
35950         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35951         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35952         the test file is still empty. Fix argument order of lseek.
35953
35954 2009-08-23  Bruno Haible  <bruno@clisp.org>
35955
35956         Avoid test link errors when the modules getopt-gnu, gettext are used.
35957         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35959
35960 2009-08-23  Bruno Haible  <bruno@clisp.org>
35961
35962         Fix getdtablesize() on mingw.
35963         * lib/getdtablesize.c (getdtablesize): Implement differently.
35964         * lib/unistd.in.h (getdtablesize): Improve comment.
35965
35966 2009-08-23  Bruno Haible  <bruno@clisp.org>
35967
35968         New module 'mkostemp'.
35969         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35970         * lib/stdlib.in.h (mksotemp): New declaration.
35971         * lib/mkostemp.c: New file, from glibc with modifications.
35972         * lib/tempname.h (GT_FILE): Remove outdated comment.
35973         (gen_tempname): Add flags argument.
35974         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35975         (__GT_FILE): Map to 1.
35976         (small_open, large_open): Remove macros.
35977         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35978         * lib/mkstemp.c (mkstemp): Update.
35979         * lib/mkdtemp.c (mkdtemp): Likewise.
35980         * m4/mkostemp.m4: New file.
35981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35982         HAVE_MKOSTEMP.
35983         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35984         HAVE_MKOSTEMP.
35985         * modules/mkostemp: New file, based on modules/mkstemp.
35986         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35987         * NEWS: Mention the change.
35988
35989 2009-08-23  Bruno Haible  <bruno@clisp.org>
35990
35991         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35992         Reported by Eric Blake.
35993
35994 2009-08-23  Bruno Haible  <bruno@clisp.org>
35995
35996         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35997         Reported by Eric Blake.
35998
35999 2009-08-23  Bruno Haible  <bruno@clisp.org>
36000
36001         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36002         * modules/pipe2 (Depends-on): Likewise.
36003
36004 2009-08-23  Eric Blake  <ebb9@byu.net>
36005
36006         fcntl-h: add O_TTY_INIT support
36007         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36008         * tests/test-fcntl-h.c (o): Test it.
36009         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36010
36011         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36012         * modules/fcntl: Move <fcntl.h> header replacement...
36013         * modules/fcntl-h: ...to new name, so as not to collide with
36014         like-named function.
36015         * tests/test-fcntl.c: Rename...
36016         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36017         * modules/fcntl-tests: Rename...
36018         * modules/fcntl-h-tests: ...to this.  Update test file name.
36019         * modules/chdir-long (Depends-on): Update clients.
36020         * modules/chdir-safer (Depends-on): Likewise.
36021         * modules/fcntl-safer (Depends-on): Likewise.
36022         * modules/fts (Depends-on): Likewise.
36023         * modules/mkancesdirs (Depends-on): Likewise.
36024         * modules/mkdir-p (Depends-on): Likewise.
36025         * modules/open (Depends-on): Likewise.
36026         * modules/savewd (Depends-on): Likewise.
36027         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36028         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36029
36030 2009-08-22  Bruno Haible  <bruno@clisp.org>
36031
36032         * modules/binary-io (License): Relicense under LGPL.
36033         * modules/pipe2 (License): Likewise.
36034
36035 2009-08-22  Bruno Haible  <bruno@clisp.org>
36036
36037         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36038         return value.
36039         * lib/pipe-filter-gi.c (filter_init): Likewise.
36040         Reported by Eric Blake.
36041
36042 2009-08-22  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36045         * modules/pipe (Depends-on): Add pipe2.
36046
36047 2009-08-22  Bruno Haible  <bruno@clisp.org>
36048
36049         Tests for module 'pipe2'.
36050         * modules/pipe2-tests: New file.
36051         * tests/test-pipe2.c: New file.
36052
36053         New module 'pipe2'.
36054         * lib/unistd.in.h (pipe2): New declaration.
36055         * lib/pipe2.c: New file.
36056         * m4/pipe2.m4: New file.
36057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36058         HAVE_PIPE2.
36059         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36060         * modules/pipe2: New file.
36061         * doc/glibc-functions/pipe2.texi: Mention the new module.
36062
36063 2009-08-22  Bruno Haible  <bruno@clisp.org>
36064
36065         Reference some new glibc functions.
36066         * doc/glibc-functions/accept4.texi: New file.
36067         * doc/glibc-functions/dup3.texi: New file.
36068         * doc/glibc-functions/mkostemp.texi: New file.
36069         * doc/glibc-functions/pipe2.texi: New file.
36070         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36071         (Glibc sys/socket.h): Refer to accept4.
36072         (Glibc unistd.h): Refer to dup3, pipe2.
36073         Reported by Eric Blake.
36074
36075 2009-08-22  Jim Meyering  <meyering@redhat.com>
36076             Bruno Haible  <bruno@clisp.org>
36077
36078         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36079         This makes it so packages using automake-1.11's silent-rules option
36080         can print e.g., a single "GEN    configmake.h" line, rather than
36081         the 30+ statements that perform the job.  If you want to see the
36082         actual commands, you can still run "make V=1".
36083         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36084         so that make output is abbreviated when those variables are defined
36085         appropriately.
36086         * modules/argz: Likewise.
36087         * modules/arpa_inet: Likewise.
36088         * modules/byteswap: Likewise.
36089         * modules/configmake: Likewise.
36090         * modules/dirent: Likewise.
36091         * modules/errno: Likewise.
36092         * modules/fcntl: Likewise.
36093         * modules/float: Likewise.
36094         * modules/fnmatch: Likewise.
36095         * modules/getopt-posix: Likewise.
36096         * modules/glob: Likewise.
36097         * modules/iconv_open: Likewise.
36098         * modules/inttypes: Likewise.
36099         * modules/localcharset: Likewise.
36100         * modules/locale: Likewise.
36101         * modules/math: Likewise.
36102         * modules/netdb: Likewise.
36103         * modules/netinet_in: Likewise.
36104         * modules/poll: Likewise.
36105         * modules/posix_spawnp-tests: Likewise.
36106         * modules/sched: Likewise.
36107         * modules/search: Likewise.
36108         * modules/selinux-h: Likewise.
36109         * modules/signal: Likewise.
36110         * modules/spawn: Likewise.
36111         * modules/stdarg: Likewise.
36112         * modules/stdbool: Likewise.
36113         * modules/stddef: Likewise.
36114         * modules/stdint: Likewise.
36115         * modules/stdio: Likewise.
36116         * modules/stdlib: Likewise.
36117         * modules/string: Likewise.
36118         * modules/strings: Likewise.
36119         * modules/sys_file: Likewise.
36120         * modules/sys_ioctl: Likewise.
36121         * modules/sys_select: Likewise.
36122         * modules/sys_socket: Likewise.
36123         * modules/sys_stat: Likewise.
36124         * modules/sys_time: Likewise.
36125         * modules/sys_times: Likewise.
36126         * modules/sys_utsname: Likewise.
36127         * modules/sys_wait: Likewise.
36128         * modules/sysexits: Likewise.
36129         * modules/time: Likewise.
36130         * modules/unistd: Likewise.
36131         * modules/wchar: Likewise.
36132         * modules/wctype: Likewise.
36133
36134 2009-08-22  Jim Meyering  <meyering@redhat.com>
36135
36136         announce-gen: detect write failure
36137         * build-aux/announce-gen: Add Coda at end.
36138         Remove equivalent-but-more-verbose block at top.
36139
36140 2009-08-19  Akim Demaille  <demaille@gostai.com>
36141
36142         bootstrap: --help to stdout.
36143         * bootstrap (usage): Don't send --help to stderr.
36144         Use a here doc instead of a long string.
36145
36146 2009-08-21  Eric Blake  <ebb9@byu.net>
36147
36148         test-popen-safer: split from test-popen
36149         * tests/test-popen.c (main): Move...
36150         * tests/test-popen.h: ...into new file.
36151         * tests/test-popen-safer2.c: New file.
36152         * modules/popen-tests (Files): Add test-popen.h.
36153         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36154         Suggested by Bruno Haible.
36155
36156         test-fcntl-safer: split from test-open
36157         * tests/test-open.c (main): Move...
36158         * tests/test-open.h: ...into new file.
36159         * tests/test-fcntl-safer.c: New file.
36160         * modules/open-tests (Files): Add test-open.h.
36161         * modules/fcntl-safer-tests: New file.
36162         Suggested by Bruno Haible.
36163
36164         test-fopen-safer: split from test-fopen
36165         * tests/test-fopen.c (main): Move...
36166         * tests/test-fopen.h: ...into new file.
36167         * tests/test-fopen-safer.c: New file.
36168         * modules/fopen-tests (Files): Add test-fopen.h.
36169         * modules/fopen-safer-tests: New file.
36170         Suggested by Bruno Haible.
36171
36172 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36173
36174         popen-safer: test O_CLOEXEC at run-time.
36175         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36176
36177 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36178
36179         fcntl: move more flags to the header
36180         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36181         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36182         * lib/fcntl.in.h: Do both things here.
36183
36184 2009-08-21  Jim Meyering  <meyering@redhat.com>
36185
36186         consistently remove $@-t before redirecting to it
36187         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36188         * modules/alloca-opt: Likewise.
36189         * modules/byteswap: Likewise.
36190         * modules/fnmatch: Likewise.
36191         * modules/getopt-posix: Likewise.
36192         * modules/glob: Likewise.
36193         * modules/poll: Likewise.
36194         * modules/posix_spawnp-tests: Likewise.
36195         * modules/sys_socket: Likewise.
36196         * modules/sysexits: Likewise.
36197
36198 2009-08-21  Eric Blake  <ebb9@byu.net>
36199
36200         popen: simplify access to original popen
36201         * lib/popen.c (rpl_popen): No need to worry about popen being a
36202         macro.
36203         Reported by Bruno Haible.
36204
36205 2009-08-20  Eric Blake  <ebb9@byu.net>
36206
36207         build: avoid some compiler warnings
36208         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36209         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36210         type.
36211         (new_exclude_segment, excluded_file_pattern_p)
36212         (excluded_file_name_p): Reduce scope.
36213         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36214         old-style declaration.
36215
36216 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36217
36218         * tests/test-exclude1.sh: Handle Windows EOL.
36219         * tests/test-exclude2.sh: Likewise.
36220         * tests/test-exclude3.sh: Likewise.
36221         * tests/test-exclude4.sh: Likewise.
36222         * tests/test-exclude5.sh: Likewise.
36223         * tests/test-exclude6.sh: Likewise.
36224         * tests/test-exclude7.sh: Likewise.
36225
36226 2009-08-19  Akim Demaille  <demaille@gostai.com>
36227
36228         bootstrap: find sha1sum when named gsha1sum.
36229         * bootstrap (find_tool): New.
36230         ($SHA1SUM): New.
36231         Use it.
36232
36233 2009-08-20  Jim Meyering  <meyering@redhat.com>
36234
36235         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36236         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36237         expression that converts "." in a file name to "\." in the resulting
36238         regexp.  Start with a dummy statement, so that prior shell variable
36239         definitions are expanded portably.  Reported by Simon Josefsson.
36240
36241 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36242
36243         Fix polling for writeability of a screen buffer.
36244         * lib/poll.c: Distinguish input and screen buffers for the
36245         Win32 implementation.
36246         * lib/select.c: Likewise.
36247
36248 2009-08-19  Eric Blake  <ebb9@byu.net>
36249
36250         popen-safer: prevent popen from clobbering std descriptors
36251         * modules/popen-safer: New file.
36252         * lib/popen-safer.c: Likewise.
36253         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36254         * lib/stdio--.h (popen): Provide override.
36255         * lib/stdio-safer.h (popen_safer): Provide declaration.
36256         * tests/test-popen.c (includes): Partially test this.
36257         * modules/popen-safer-tests: New file, for more tests.
36258         * tests/test-popen-safer.c: Likewise.
36259         * MODULES.html.sh (file stream based Input/Output): Mention it.
36260
36261         tests: test some of the *-safer modules
36262         * modules/fopen-safer (Depends-on): Add fopen.
36263         * modules/fcntl-safer (Depends-on): Add fcntl.
36264         * modules/stdlib-safer (Depends-on): Add stdlib.
36265         (configure.ac): Set indicator.
36266         * modules/unistd-safer (configure.ac): Likewise.
36267         * modules/tmpfile-safer (configure.ac): Likewise.
36268         (Depends-on): Add tmpfile.
36269         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36270         active.
36271         * tests/test-fopen.c (includes): Test safer versions when they are
36272         in use.
36273         * tests/test-open.c (includes): Likewise.
36274
36275         popen: fix cygwin 1.5 bug when stdin closed
36276         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36277         * modules/popen: New file.
36278         * modules/popen-tests: Likewise.
36279         * tests/test-popen.c: Likewise.
36280         * m4/popen.m4: Likewise.
36281         * lib/popen.c: Likewise.
36282         * lib/stdio.in.h (popen): New declaration.
36283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36284         * modules/stdio (Makefile.am): Likewise.
36285         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36286
36287 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36288
36289         maint.mk: give full control over update-copyright exclusions
36290         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36291         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36292         (update-copyright): Don't force inclusion of top-level
36293         ChangeLog.  Don't force exclusion of all COPYING files, but make
36294         them the default exclusion instead.
36295
36296 2009-08-16  Bruno Haible  <bruno@clisp.org>
36297
36298         Fix test failures on Solaris 10.
36299         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36300         tests when Solaris iconv() is used.
36301         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36302         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36303         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36304         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36305         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36306
36307 2009-08-16  Bruno Haible  <bruno@clisp.org>
36308
36309         Fix test failures on Solaris 10.
36310         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36311         'tr' program and pass it as first argument.
36312         * tests/test-pipe-filter-gi1.sh: Likewise.
36313         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36314         program as first argument.
36315         * tests/test-pipe-filter-gi1.c (main): Likewise.
36316
36317 2009-08-16  Eric Blake  <ebb9@byu.net>
36318
36319         fpurge: fix previous commits
36320         * modules/fpurge (Makefile.am): Make replacement conditional,
36321         partially reverting 2007-04-29 change; missed in previous
36322         attempt.
36323         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36324         is missing.
36325
36326 2009-08-16  Bruno Haible  <bruno@clisp.org>
36327
36328         Clarify fpurge's effect on the file position.
36329         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36330         * tests/test-fpurge.c (main): Make a second pass for checking the file
36331         position.
36332
36333 2009-08-16  Bruno Haible  <bruno@clisp.org>
36334
36335         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36336         declaration of fpurge is missing.
36337         * tests/test-fpurge.c (main): Check that the file has not more contents
36338         than expected. Close the file before removing it.
36339
36340 2009-08-15  Eric Blake  <ebb9@byu.net>
36341
36342         fpurge: don't wrap working cygwin implementation
36343         * lib/fpurge.c (fpurge): Fix comment typo.
36344         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36345         1.7 to avoid replacement.
36346         * tests/test-fpurge.c (main): Enhance test.
36347
36348 2009-08-15  Eric Blake  <ebb9@byu.net>
36349         and Jim Meyering  <meyering@redhat.com>
36350
36351         test-update-copyright: skip if perl is insufficient
36352         * tests/test-update-copyright.sh: Failure to run maintainer tool
36353         should not cause testsuite failure on cygwin 1.5.
36354
36355 2009-08-14  Eric Blake  <ebb9@byu.net>
36356
36357         doc: mention more functions added in cygwin 1.7.0
36358         * doc/posix-headers/limits.texi (limits.h): Update for recent
36359         cygwin additions.
36360         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36361         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36362         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36363         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36364         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36365
36366 2009-08-14  Eric Blake  <ebb9@byu.net>
36367
36368         maint.mk: simplify update-copyright rule
36369         * top/maint.mk (update-copyright-local): Delete, and document how
36370         to do it in cfg.mk instead.
36371         (update-copyright-exclude-regexp): Delete, and document how to do
36372         it in .x-update-copyright instead.
36373         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36374         exclude ChangeLog.
36375
36376 2009-08-14  Bruno Haible  <bruno@clisp.org>
36377
36378         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36379
36380 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36381
36382         maint.mk: support update-copyright-env
36383         * top/maint.mk (update-copyright-env): Define place-holder.
36384         (update-copyright): Expand $(update-copyright-env) before
36385         invoking update-copyright.
36386
36387 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36388
36389         update-copyright: implement forced reformatting
36390         * build-aux/update-copyright: Implement and document
36391         UPDATE_COPYRIGHT_FORCE.
36392         * tests/test-update-copyright.sh: Test it.
36393
36394 2009-08-14  Eric Blake  <ebb9@byu.net>
36395         and Bruno Haible  <bruno@clisp.org>
36396
36397         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36398         * tests/test-locale.c: Revert previous patch related to NULL.
36399         * tests/test-stdio.c: Likewise.
36400         * tests/test-stdlib.c: Likewise.
36401         * tests/test-string.c: Likewise.
36402         * tests/test-unistd.c: Likewise.
36403         * modules/time-tests (Depends-on): Add verify.
36404         * modules/wchar-tests (Depends-on): Likewise.
36405         * tests/test-time.c: Test for NULL compliance.
36406         * tests/test-wchar.c: Likewise.
36407         * modules/locale (Depends-on): Add stddef.
36408         * modules/stdio (Depends-on): Likewise.
36409         * modules/stdlib (Depends-on): Likewise.
36410         * modules/string (Depends-on): Likewise.
36411         * modules/time (Depends-on): Likewise.
36412         * modules/unistd (Depends-on): Likewise.
36413         * modules/wchar (Depends-on): Likewise.
36414         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36415         * lib/stdlib.in.h (includes): Likewise.
36416         * lib/string.in.h (includes): Likewise.
36417         * lib/time.in.h (includes): Likewise.
36418         * lib/unistd.in.h (includes): Likewise.
36419         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36420         replaced.
36421         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36422         * m4/stddef_h.m4: New file.
36423         * modules/stddef: Likewise.
36424         * lib/stddef.in.h: Likewise.
36425         * modules/stddef-tests: Likewise.
36426         * tests/test-stddef.c: Likewise.
36427         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36428         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36429         * doc/posix-headers/locale.texi (locale.h): Likewise.
36430         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36431         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36432         * doc/posix-headers/string.texi (string.h): Likewise.
36433         * doc/posix-headers/time.texi (time.h): Likewise.
36434         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36435         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36436
36437 2009-08-14  Eric Blake  <ebb9@byu.net>
36438
36439         doc: improve git diff of texinfo files
36440         * .gitattributes: Add rule for *.texi files, with hint on how to
36441         use it.
36442         Copied from m4, and based on a report by Bruno Haible.
36443
36444 2009-08-14  Bruno Haible  <bruno@clisp.org>
36445
36446         Disable multithread support by default on Cygwin 1.5.x for real.
36447         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36448
36449 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36450
36451         update-copyright: much ado about intervals
36452         * build-aux/update-copyright: Implement and document
36453         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36454         of copyright year intervals.
36455         Also, document UPDATE_COPYRIGHT_YEAR.
36456         * tests/test-update-copyright.sh: Test it.
36457
36458         update-copyright: convert 2-digit to 4-digit years
36459         * build-aux/update-copyright: Implement and document.
36460         * tests/test-update-copyright.sh: Update.
36461
36462 2009-08-14  Jim Meyering  <meyering@redhat.com>
36463
36464         test-exclude: avoid coreutils "make check" failure
36465         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36466         just as in test-argmatch.c.
36467
36468 2009-08-13  Eric Blake  <ebb9@byu.net>
36469
36470         test-dup2: fix bad assumption
36471         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36472         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36473
36474         test-version-etc: fix CRLF portability issue
36475         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36476         recognize \r.
36477         * tests/test-argp-version-etc-1.sh: Likewise.
36478
36479         getopt: update client modules
36480         * modules/argp (Depends-on): Use getopt-gnu.
36481         * modules/git-merge-changelog (Depends-on): Likewise.
36482         * modules/long-options (Depends-on): Likewise.
36483         * modules/xstrtol (Depends-on): Likewise.
36484
36485 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36486
36487         * tests/test-version-etc.sh: Don't fail on different
36488         project/version.  Don't fail on CRLF differences.  Rewrite to use
36489         multiple -e instead of multiple sed forks, suggested by Eric Blake
36490         <ebb9@byu.net>.
36491         * tests/test-argp-version-etc-1.sh: Likewise.
36492
36493 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36494
36495         * tests/test-version-etc.sh: Don't fail on different
36496         project/version.
36497
36498 2009-08-12  Bruno Haible  <bruno@clisp.org>
36499
36500         Tests for modules 'getopt-posix', 'getopt-gnu'.
36501         * modules/getopt-posix-tests: New file.
36502         * tests/test-getopt.c: New file.
36503         * tests/test-getopt.h: New file.
36504         * tests/test-getopt_long.h: New file.
36505
36506         New modules 'getopt-posix', 'getopt-gnu'.
36507         * modules/getopt-gnu: New file, renamed from modules/getopt.
36508         * modules/getopt-posix: New file.
36509         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36510         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36511         (gl_GETOPT): Remove macro.
36512         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36513         Disable the test against BSD systems that declare optreset. Test
36514         against mingw bug. Test against lack of support of optional arguments
36515         on many platforms.
36516         * doc/glibc-headers/getopt.texi: Update module name and list of
36517         relevant platforms.
36518         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36519         'getopt-gnu' and more portability problems.
36520         * NEWS: Mention the changes.
36521
36522 2009-08-12  Bruno Haible  <bruno@clisp.org>
36523
36524         Ensure that optarg etc. get declared by <unistd.h>.
36525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36526         AC_USE_SYSTEM_EXTENSIONS.
36527         * modules/getopt (Depends-on): Add 'extensions'.
36528
36529 2009-08-12  Bruno Haible  <bruno@clisp.org>
36530
36531         Avoid test link errors.
36532         * modules/pipe-filter-ii-tests (Makefile.am): Define
36533         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36534         * modules/pipe-filter-gi-tests (Makefile.am): Define
36535         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36537
36538 2009-08-12  Bruno Haible  <bruno@clisp.org>
36539
36540         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36541         gl_GETOPT_SUBSTITUTE before.
36542         (gl_GETOPT): Use it.
36543         * m4/argp.m4 (gl_ARGP): Update.
36544         Reported by Sergey Poznyakoff.
36545
36546         * m4/getopt.m4: Reorder macros.
36547         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36548         (gl_GETOPT_SUBSTITUTE): Remove macro.
36549
36550 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36551
36552         Minor improvement in gitlog-to-changelog
36553
36554         * build-aux/gitlog-to-changelog: New option `--format' makes
36555         output format string configurable.
36556
36557 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36558
36559         Optimize exclude: use hash tables for non-wildcard patterns.
36560
36561         * lib/exclude.c: Include hash.h and mbuiter.h
36562         (struct exclude_pattern, exclude_segment): New data types.
36563         (struct exclude): Rewrite.
36564         (fnmatch_pattern_has_wildcards): New function.
36565         (new_exclude_segment, free_exclude_segment): New functions.
36566         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36567         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36568         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36569         * modules/exclude: Depend on hash and mbuiter.
36570
36571         * modules/exclude-tests: New file.
36572         * tests/test-exclude.c: New file.
36573         * tests/test-exclude1.sh: New file.
36574         * tests/test-exclude2.sh: New file.
36575         * tests/test-exclude3.sh: New file.
36576         * tests/test-exclude4.sh: New file.
36577         * tests/test-exclude5.sh: New file.
36578         * tests/test-exclude6.sh: New file.
36579         * tests/test-exclude7.sh: New file.
36580
36581 2009-08-12  Bruno Haible  <bruno@clisp.org>
36582
36583         Ensure that getopt() gets declared by <unistd.h>.
36584         * lib/unistd.in.h: Conditionally include getopt.h.
36585         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36586         Set GNULIB_UNISTD_H_GETOPT.
36587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36588         GNULIB_UNISTD_H_GETOPT.
36589         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36590
36591 2009-08-12  Bruno Haible  <bruno@clisp.org>
36592
36593         Clarify logic.
36594         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36595         gl_replace_getopt instead of GETOPT_H.
36596
36597 2009-08-12  Bruno Haible  <bruno@clisp.org>
36598
36599         * m4/getopt.m4: Add comments.
36600
36601 2009-08-12  Bruno Haible  <bruno@clisp.org>
36602
36603         Disable multithread support by default on Cygwin 1.5.x.
36604         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36605         set gl_use_threads=no if not specified otherwise.
36606
36607 2009-08-11  Bruno Haible  <bruno@clisp.org>
36608
36609         Avoid compilation error on NetBSD 5.0.
36610         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36611         * tests/test-stdio.c: Likewise.
36612         * tests/test-stdlib.c: Likewise.
36613         * tests/test-string.c: Likewise.
36614         * tests/test-unistd.c: Likewise.
36615         Reported by Greg Troxel <gdt@ir.bbn.com>
36616         at <https://savannah.gnu.org/support/?106973>.
36617
36618 2009-08-11  Bruno Haible  <bruno@clisp.org>
36619
36620         * modules/dup2-tests (Depends-on): Remove close.
36621
36622         Undo 2009-07-19 commit.
36623         * modules/acl-tests (Depends-on): Remove close.
36624         * modules/binary-io-tests (Depends-on): Likewise.
36625         * modules/closein-tests (Depends-on): Likewise.
36626         * modules/flock-tests (Depends-on): Likewise.
36627         * modules/fsync-tests (Depends-on): Likewise.
36628         * modules/lseek-tests (Depends-on): Likewise.
36629         * modules/pipe-tests (Depends-on): Likewise.
36630         * modules/posix_spawn-tests (Depends-on): Likewise.
36631         * modules/posix_spawnp-tests (Depends-on): Likewise.
36632         * modules/stat-time-tests (Depends-on): Likewise.
36633         * modules/yesno-tests (Depends-on): Likewise.
36634
36635 2009-08-10  Bruno Haible  <bruno@clisp.org>
36636
36637         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36638
36639 2009-08-10  Bruno Haible  <bruno@clisp.org>
36640
36641         Fix a gcc warning.
36642         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36643
36644 2009-08-10  Bruno Haible  <bruno@clisp.org>
36645
36646         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36647         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36648         not only the first time.
36649         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36650         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36651         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36652         is 1, not only the the first time.
36653
36654 2009-08-10  Bruno Haible  <bruno@clisp.org>
36655
36656         Make it possible to use module 'gethostname' without module 'close'.
36657         * lib/unistd.in.h (close): Evoke a link error only if
36658         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36660         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36661         * modules/unistd (Makefile.am): Substitute
36662         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36663         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36664         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36666         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36667         * modules/sys_ioctl (Makefile.am): Substitute
36668         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36669         * modules/socket (configure.ac): On native Windows, set
36670         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36671         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36672         Reported by Sam Steingold <sds@gnu.org>.
36673
36674 2009-08-10  Bruno Haible  <bruno@clisp.org>
36675
36676         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36677         * modules/ioctl (configure.ac): Likewise.
36678
36679 2009-08-10  Bruno Haible  <bruno@clisp.org>
36680
36681         Avoid collision between gnulib wrapper and libintl wrapper.
36682         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36683         already defined in intl/printf.c.
36684         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36685         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36686
36687 2009-08-09  Bruno Haible  <bruno@clisp.org>
36688
36689         Make <sys/select.h> really self-contained, also on Solaris 10.
36690         * lib/sys_select.in.h: Include <string.h>.
36691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36692         Solaris 10 problem.
36693         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36694         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36695         Reported by Jim Meyering.
36696
36697 2009-08-09  Bruno Haible  <bruno@clisp.org>
36698
36699         Avoid warnings from 'aclocal' that are due to a use of macro name
36700         AM_XGETTEXT_OPTION that is not defined in automake.
36701         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36702         automake.
36703         * modules/error (configure.ac): Likewise.
36704         * modules/propername (configure.ac): Likewise.
36705         * modules/vasprintf (configure.ac): Likewise.
36706         * modules/verror (configure.ac): Likewise.
36707         * modules/xprintf (configure.ac): Likewise.
36708         * modules/xvasprintf (configure.ac): Likewise.
36709
36710 2009-08-08  Bruno Haible  <bruno@clisp.org>
36711
36712         Avoid compilation error in C++ mode.
36713         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36714         Reported by Sam Steingold <sds@gnu.org>.
36715
36716 2009-08-08  Bruno Haible  <bruno@clisp.org>
36717
36718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36719         for the various Unix platforms.
36720         * doc/posix-headers/limits.texi: Update platforms list regarding
36721         HOST_NAME_MAX.
36722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36723
36724 2009-08-07  Jim Meyering  <meyering@redhat.com>
36725
36726         selinux-at: fix typo in a comment
36727         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36728         Spotted by Paolo Bonzini.
36729
36730         selinux-at: remove redundant m4 code, add documentation
36731         * modules/selinux-at (configure.ac): Remove redundant code.
36732         LIB_SELINUX is already set via the dependent module, selinux-h.
36733         (Include): Add quotes around selinux-at.h.
36734         * lib/selinux-at.h: Add documentation.
36735         Reported by Bruno Haible in
36736         http://marc.info/?l=gnulib-bug&m=124958988300749
36737
36738 2009-08-07  Bruno Haible  <bruno@clisp.org>
36739
36740         Avoid link error on MacOS X 10.3 and 10.4.
36741         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36742         on non-ELF systems.
36743         * lib/argp-pv.c (argp_program_version): Likewise.
36744         Reported by Simon Josefsson.
36745
36746 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36747
36748         * tests/test-version-etc.sh: Use $EXEEXT.
36749
36750 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36751
36752         update-copyright: update documentation to point to maint.mk
36753         * build-aux/update-copyright: Here.
36754
36755 2009-08-06  Jim Meyering  <meyering@redhat.com>
36756
36757         maint.mk: support update-copyright-local
36758         * top/maint.mk (update-copyright-local): Define place-holder.
36759         (update-copyright): Depend on $(update-copyright-local).
36760
36761 2009-08-06  Jim Meyering  <meyering@redhat.com>
36762
36763         selinux-at: new module
36764         Initially written for coreutils, this module will soon be
36765         used by findutils, too.
36766         * MODULES.html.sh [Misc]: Add selinux-at.
36767         * lib/selinux-at.h: New file, from coreutils.
36768         * lib/selinux-at.c: Likewise.
36769         * modules/selinux-at: Likewise.
36770         (License): Change from LGPL to GPL, since it depends
36771         on the GPL'd openat module.
36772
36773         doc: update README
36774         * README: Remove references to cogito.
36775         Remove cvs-repo-updating instructions from 2007.
36776         Don't imply that CVS is better if you have limited disk space.
36777
36778 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36779
36780         update-copyright: support C-style comments
36781         * build-aux/update-copyright: Implement and document.
36782         * tests/test-update-copyright.sh: Test.
36783
36784 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36785
36786         update-copyright: support omitted "(C)"
36787         * build-aux/update-copyright: Implement and document.  Also,
36788         allow variable whitespace before "(C)".
36789         * tests/test-update-copyright.sh: Test.
36790
36791 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36792
36793         update-copyright: don't trip on non-FSF copyright statements
36794         * build-aux/update-copyright: Fix so that the first correctly
36795         formatted FSF copyright statement is recognized no matter what
36796         appears before it.  Update documentation.
36797         * tests/test-update-copyright.sh: Test that.
36798
36799 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36800
36801         update-copyright: clean up code a little
36802         * build-aux/update-copyright: Append "_re" to the name of any
36803         variable holding a regular expression.
36804         Replace "old" and "new" with "stmt" in variable names.
36805         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36806         handled correctly.
36807         Format code more consistently.
36808
36809 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36810
36811         update-copyright-tests: improve portability
36812         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36813         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36814
36815 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36816
36817         update-copyright: support @copyright{} and &copy;
36818         * build-aux/update-copyright: Implement and document.
36819         * tests/test-update-copyright.sh: Test.
36820
36821 2009-08-04  Jim Meyering  <meyering@redhat.com>
36822
36823         update-copyright-tests: correctly test EOL=\r\n handling
36824         * tests/test-update-copyright.sh: Put \r at the end of some lines
36825         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36826
36827         maint.mk: make update-copyright exclusion list more configurable
36828         * top/maint.mk (update-copyright): Default to excluding COPYING,
36829         but allow an override, in case someone does want to update that file.
36830
36831         maint.mk: don't update copyright date in COPYING
36832         * top/maint.mk (update-copyright): Exclude COPYING.
36833
36834         maint.mk: add a copyright-updating rule
36835         * top/maint.mk (update-copyright): New rule.
36836         Derived from coreutils/Makefile.am.
36837
36838         update-copyright: rename some variables
36839         * build-aux/update-copyright: Rename a few variables for clarity.
36840         Tweak syntax.  List Joel E. Denny as coauthor.
36841
36842 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36843
36844         update-copyright: fix bug for 2-digit last year and add tests
36845         * build-aux/update-copyright: Fix bug.
36846         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36847         specified.
36848         * modules/update-copyright-tests: New
36849         * tests/test-update-copyright.sh: New.
36850
36851 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36852
36853         update-copyright: handle leading tabs in line prefix
36854         * build-aux/update-copyright: Count leading tabs as 8 spaces
36855         when computing margin.  This helps with the formatting of
36856         ChangeLogs, for example.
36857         Fix documentation a little.
36858
36859 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36860
36861         update-copyright: support EOL=\r\n
36862         * build-aux/update-copyright: Implement that.
36863
36864 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36865
36866         update-copyright: automatically format copyright statements
36867         * build-aux/update-copyright: Implement that.
36868         Also, be a little more predictable and safer by always failing
36869         when the full copyright format is not perfectly recognized as an
36870         unbroken whole.  Discussed at
36871         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36872         Rewrite documentation.
36873
36874 2009-08-03  Bruno Haible  <bruno@clisp.org>
36875
36876         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36877
36878 2009-08-02  Bruno Haible  <bruno@clisp.org>
36879
36880         Tests for module 'uname'.
36881         * modules/uname-tests: New file.
36882         * tests/test-uname.c: New file.
36883
36884         New module 'uname'.
36885         * lib/uname.c: New file.
36886         * m4/uname.m4: New file.
36887         * modules/uname: New file.
36888         * doc/posix-functions/uname.texi: Mention the new module.
36889
36890 2009-08-02  Bruno Haible  <bruno@clisp.org>
36891
36892         Tests for module 'sys_utsname'.
36893         * modules/sys_utsname-tests: New file.
36894         * tests/test-sys_utsname.c: New file.
36895
36896         New module 'sys_utsname'.
36897         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36898         * m4/sys_utsname_h.m4: New file.
36899         * modules/sys_utsname: New file.
36900         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36901
36902 2009-08-02  Bruno Haible  <bruno@clisp.org>
36903
36904         Implicitly initialize the sockets library.
36905         * lib/gethostname.c: Include sockets.h.
36906         (rpl_gethostname): Invoke gl_sockets_startup.
36907         * lib/socket.c: Include sockets.h.
36908         (rpl_socket): Invoke gl_sockets_startup.
36909         * modules/gethostname (Depends-on): Add sockets.
36910         * modules/socket (Depends-on): Likewise.
36911         * tests/test-poll.c: Don't include sockets.h.
36912         (main): Don't invoke gl_sockets_startup.
36913         * tests/test-select.c: Don't include sockets.h.
36914         (main): Don't invoke gl_sockets_startup.
36915
36916 2009-08-02  Bruno Haible  <bruno@clisp.org>
36917
36918         Allow multiple calls to gl_sockets_startup.
36919         * lib/sockets.c (initialized_sockets_version): New variable.
36920         (gl_sockets_startup): Do nothing if already called for this or a higher
36921         version.
36922         (gl_sockets_cleanup): Reset initialized_sockets_version.
36923
36924 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36925
36926         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36927         different project/version.
36928
36929 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36930             Bruno Haible  <bruno@clisp.org>
36931
36932         Tests for module 'pipe-filter-gi'.
36933         * modules/pipe-filter-gi-tests: New file.
36934         * tests/test-pipe-filter-gi1.sh: New file.
36935         * tests/test-pipe-filter-gi1.c: New file.
36936         * tests/test-pipe-filter-gi2.sh: New file.
36937         * tests/test-pipe-filter-gi2-main.c: New file.
36938         * tests/test-pipe-filter-gi2-child.c: New file.
36939
36940         New module 'pipe-filter-gi'.
36941         * lib/pipe-filter-gi.c: New file.
36942         * modules/pipe-filter-gi: New file.
36943
36944 2009-08-02  Bruno Haible  <bruno@clisp.org>
36945             Paolo Bonzini  <bonzini@gnu.org>
36946
36947         Tests for module 'pipe-filter-ii'.
36948         * modules/pipe-filter-ii-tests: New file.
36949         * tests/test-pipe-filter-ii1.sh: New file.
36950         * tests/test-pipe-filter-ii1.c: New file.
36951         * tests/test-pipe-filter-ii2.sh: New file.
36952         * tests/test-pipe-filter-ii2-main.c: New file.
36953         * tests/test-pipe-filter-ii2-child.c: New file.
36954
36955         New module 'pipe-filter-ii'.
36956         * lib/pipe-filter.h: New file.
36957         * lib/pipe-filter-ii.c: New file.
36958         * lib/pipe-filter-aux.h: New file.
36959         * modules/pipe-filter-ii: New file.
36960
36961 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36962
36963         * lib/gc-libgcrypt.c: Change copyright to FSF.
36964         * lib/gc-gnulib.c: Likewise.
36965
36966 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36967
36968         * lib/gethostname.c: Include limits.h.
36969
36970 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36971             Bruno Haible  <bruno@clisp.org>
36972
36973         Ensure HOST_NAME_MAX as part of the gethostname module.
36974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36975         define also HOST_NAME_MAX.
36976         * tests/test-gethostname.c: Include <limits.h>.
36977         (main): Check also HOST_NAME_MAX.
36978         * doc/posix-headers/limits.texi: Document the mingw problem.
36979
36980 2009-08-02  Bruno Haible  <bruno@clisp.org>
36981
36982         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36983         Add comments.
36984
36985 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36986
36987         * lib/gethostname.c: Add Windows wrapper.
36988         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36989         * modules/gethostname: Depend on sys_socket & errno, for also
36990         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36991         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36992
36993 2009-07-31  Jim Meyering  <meyering@redhat.com>
36994
36995         getloadavg: fix symbol name in comment
36996         * lib/getloadavg.c: Correct a typo I introduced when adding
36997         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36998         Matt Kraai spotted the problem.
36999
37000 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37001
37002         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37003         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37004         code also if ! defined N_NAME_POINTER.
37005         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37006         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37007         but the n_name member is a 12-byte array.
37008
37009 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37010
37011         update-copyright: generalize comment handling
37012         * build-aux/update-copyright: Handle copyright statements
37013         within more comment styles.
37014         Document usage.
37015         Report any file with an external copyright holder or parse failure.
37016
37017 2009-07-29  Jim Meyering  <meyering@redhat.com>
37018
37019         mktime: correct setting of REPLACE_MKTIME
37020         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37021
37022         update-copyright: new module
37023         * modules/update-copyright: New file.
37024         * build-aux/update-copyright: New file.
37025         * MODULES.html.sh (maint+release support): Add update-copyright.
37026
37027 2009-07-27  Bruno Haible  <bruno@clisp.org>
37028
37029         Fix compilation error when <ctime> is used and mktime is replaced.
37030         * lib/time.in.h (mktime): New declaration.
37031         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37032         REPLACE_MKTIME instead of defining mktime in config.h.
37033         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37034         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37035         Reported by Ross McFarland <rwmcfa1@neces.com>.
37036
37037 2009-07-27  Bruno Haible  <bruno@clisp.org>
37038
37039         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37040         Reported by Matt Kraai <mkraai@beckman.com>.
37041
37042 2009-07-25  Jim Meyering  <meyering@redhat.com>
37043
37044         maint.mk: avoid warnings about missing files
37045         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37046         diagnostic when .prev-version does not exist.
37047         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37048         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37049         nonexistent cfg.mk.
37050         Suggestions from Simon Josefsson.
37051
37052 2009-07-25  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37055         defined as macros. Needed on QNX 6.4.1.
37056         Reported by Matt Kraai <mkraai@beckman.com>.
37057
37058 2009-07-23  Jim Meyering  <meyering@redhat.com>
37059
37060         maint.mk: invoke "make dist" with a working value of XZ_OPT
37061         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37062
37063 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37064
37065         Make fseeko.c compile on QNX.
37066         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37067
37068 2009-07-22  Peter Simons  <simons@cryp.to>
37069
37070         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37071         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37072         * lib/md4.h: Likewise.
37073         * lib/md5.h: Likewise.
37074         * lib/sha1.h: Likewise.
37075         * lib/sha256.h: Likewise.
37076         * lib/sha512.h: Likewise.
37077
37078         tests-sha1: don't assign literal string to 'char *' variable
37079         * tests/test-sha1.c (main): Declare locals with "const" to match
37080         attributes of the right hand side.
37081
37082 2009-07-21  Eric Blake  <ebb9@byu.net>
37083
37084         dup2: fix more mingw problems
37085         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37086         fd to itself.
37087         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37088         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37089         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37090         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37091         care of mingw bugs.
37092
37093 2009-07-21  Jim Meyering  <meyering@redhat.com>
37094
37095         vc-list-files: avoid failure when /bin/sh is dash
37096         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37097         On some Debian based systems, /bin/sh is a symlink to dash, and running
37098         this command would omit the "/" following each 'tests' prefix:
37099           dash -x build-aux/vc-list-files -C . tests
37100         That is because bash and dash work differently:
37101           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37102           bash ok
37103           dash odd
37104
37105 2009-07-21  Eric Blake  <ebb9@byu.net>
37106
37107         dup2-tests: test previous patch
37108         * modules/dup2-tests: New file.
37109         * tests/test-dup2.c: Likewise.
37110         * tests/test-open.c (main): Avoid unspecified behavior.
37111         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37112         test.
37113
37114         dup2: work around mingw and cygwin 1.5 bug
37115         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37117         * modules/unistd (Makefile.am): Substitute it.
37118         * lib/unistd.in.h (dup2): Declare the replacement.
37119         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37120         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37121         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37122         * modules/execute (Depends-on): Add dup2.
37123         * modules/fseterr (Depends-on): Likewise.
37124         * modules/pipe (Depends-on): Likewise.
37125         * modules/posix_spawn-internal (Depends-on): Likewise.
37126
37127 2009-07-21  Bruno Haible  <bruno@clisp.org>
37128
37129         * modules/.gitattributes: New file.
37130
37131 2009-07-20  Bruno Haible  <bruno@clisp.org>
37132
37133         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37134         (main): Use it.
37135
37136 2009-07-20  Eric Blake  <ebb9@byu.net>
37137
37138         test-pipe: make a bit more robust.
37139         * tests/test-pipe.c (myerr): Allow error messages regardless of
37140         what we do to stderr.
37141         (test_pipe): Rearrange to avoid deadlock.
37142         (child_main): Try a larger read, to ensure we avoided deadlock.
37143         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37144         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37145         if misused.
37146
37147 2009-07-19  Jim Meyering  <meyering@redhat.com>
37148
37149         fts: avoid false-positive cycle-detection
37150         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37151         for each new command line argument.
37152
37153 2009-07-19  Bruno Haible  <bruno@clisp.org>
37154
37155         Fix build error on mingw with the modules sys_select and unistd.
37156         * modules/acl-tests (Depends-on): Add close.
37157         * modules/binary-io-tests (Depends-on): Likewise.
37158         * modules/closein-tests (Depends-on): Likewise.
37159         * modules/flock-tests (Depends-on): Likewise.
37160         * modules/fsync-tests (Depends-on): Likewise.
37161         * modules/lseek-tests (Depends-on): Likewise.
37162         * modules/pipe-tests (Depends-on): Likewise.
37163         * modules/posix_spawn-tests (Depends-on): Likewise.
37164         * modules/posix_spawnp-tests (Depends-on): Likewise.
37165         * modules/stat-time-tests (Depends-on): Likewise.
37166         * modules/yesno-tests (Depends-on): Likewise.
37167
37168 2009-07-19  Bruno Haible  <bruno@clisp.org>
37169
37170         Unify conditionals.
37171         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37172         macros, not at the compiler macros.
37173         * lib/pipe.c: Likewise.
37174         * lib/execute.c: Likewise.
37175         * lib/spawni.c: Likewise.
37176
37177 2009-07-19  Bruno Haible  <bruno@clisp.org>
37178
37179         Fix handling of closed stdin/stdout/stderr on mingw.
37180         * lib/w32spawn.h: Include unistd.h.
37181         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37182         file descriptor with O_NOINHERIT flag.
37183         (fd_safer_noinherit): New function, based on fd-safer.c.
37184         (dup_safer_noinherit): New function, based on dup-safer.c.
37185         (undup_safer_noinherit): New function.
37186         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37187         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37188         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37189         instead of fd_safer.
37190         * tests/test-pipe.c: Include <windows.h>.
37191         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37192         result.
37193
37194         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37195         from main.
37196         (test_pipe): Pass an extra argument for disambiguation.
37197         (main): Invoke parent_main or child_main.
37198
37199         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37200         consistently.
37201
37202 2009-07-18  Eric Blake  <ebb9@byu.net>
37203
37204         test-pipe: fix mingw build
37205         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37206
37207 2009-07-18  Bruno Haible  <bruno@clisp.org>
37208
37209         * modules/pipe-tests (Makefile.am): Fix typo.
37210
37211 2009-07-18  Eric Blake  <ebb9@byu.net>
37212
37213         error: fix mingw build
37214         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37215         Reported by Bruno Haible.
37216
37217         error: avoid undefined use of stdout
37218         * lib/error.c (error, error_at_line): Check that fd 1 is open
37219         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37220         is handling faults and the close_stdout module wants to report the
37221         detection of closed stdout as an error.
37222
37223 2009-07-17  Eric Blake  <ebb9@byu.net>
37224
37225         pipe: be robust in face of closed fds
37226         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37227         should cause child to misbehave.
37228         * modules/pipe-tests: New module.
37229         * tests/test-pipe.c: New file.
37230         * tests/test-pipe.sh: New file.
37231         Reported by Akim Demaille.
37232
37233 2009-07-14  Bruno Haible  <bruno@clisp.org>
37234
37235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37236         Reported by anonymous kc.
37237
37238 2009-07-07  Jim Meyering  <meyering@redhat.com>
37239
37240         maint.mk: don't look for translatable strings in *.m4 or *.mk
37241         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37242         when searching for translatable strings.
37243
37244 2009-07-05  Jim Meyering  <meyering@redhat.com>
37245
37246         remove superfluous parentheses in STREQ definition
37247         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37248         * lib/getugroups.c (STREQ): Likewise.
37249         * lib/fnmatch.c (STREQ): Likewise.
37250         Spotted by Bruno Haible.
37251
37252 2009-07-04  Jim Meyering  <meyering@redhat.com>
37253
37254         argv-iter: new module
37255         * MODULES.html.sh: Add argv-iter.
37256         * lib/argv-iter.c, lib/argv-iter.h: New files.
37257         * modules/argv-iter: New file.
37258         * modules/argv-iter-tests: New file.
37259         * tests/test-argv-iter.c: Test it.
37260
37261 2009-07-04  Bruno Haible  <bruno@clisp.org>
37262
37263         Fix assertion.
37264         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37265         contains more exact copies of a given entry than file2, leave the extra
37266         copies unpaired rather than aborting.
37267         Reported by Eric Blake.
37268
37269 2009-07-02  Bruno Haible  <bruno@clisp.org>
37270
37271         Speedup git-merge-changelog for git cherry-pick.
37272         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37273         (entries_mapping_get): New function, extracted from compute_mapping.
37274         (entries_mapping_reverse_get): New function.
37275         (compute_mapping): Add a 'full' argument. Return the result in a
37276         'struct entries_mapping'.
37277         (main): Update. Access the mappings through entries_mapping_get.
37278         Reported by Eric Blake.
37279
37280 2009-07-02  Bruno Haible  <bruno@clisp.org>
37281
37282         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37283         best_i.
37284
37285 2009-07-02  Bruno Haible  <bruno@clisp.org>
37286
37287         Speed up approximate search for matching ChangeLog entries.
37288         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37289         argument. Call fstrcmp_bounded instead of fstrcmp.
37290         (compute_mapping, try_split_merged_entry, main): Update callers.
37291
37292 2009-07-02  Bruno Haible  <bruno@clisp.org>
37293
37294         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37295
37296 2009-06-30  Bruno Haible  <bruno@clisp.org>
37297
37298         Reduce the number of uc_is_cased calls.
37299         * lib/unicase.h (casing_suffix_context_t): Add
37300         'first_char_except_ignorable' field.
37301         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37302         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37303         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37304         Update initializer.
37305         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37306         case-ignorable characters.
37307         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37308         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37309         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37310         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37311         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37312
37313 2009-06-30  Bruno Haible  <bruno@clisp.org>
37314
37315         Tests for module 'unicase/ignorable'.
37316         * modules/unicase/ignorable-tests: New file.
37317         * tests/unicase/test-ignorable.c: New file, generated by
37318         gen-uni-tables.
37319
37320         Tests for module 'unicase/cased'.
37321         * modules/unicase/cased-tests: New file.
37322         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37323         * tests/unicase/test-predicate-part1.h: New file, derived from
37324         tests/unictype/test-predicate-part1.h.
37325         * tests/unicase/test-predicate-part2.h: New file, same as
37326         tests/unictype/test-predicate-part2.h.
37327
37328         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37329         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37330         (output_casing_properties): New function.
37331         (main): Call it.
37332         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37333         * lib/unicase/cased.c: Include unictype/bitmap.h.
37334         (uc_is_cased): Define through a bitmap lookup.
37335         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37336         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37337         (uc_is_case_ignorable): Define through a bitmap lookup.
37338         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37339         lib/unictype/bitmap.h.
37340         (Depends-on): Add inline. Clean up.
37341         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37342         lib/unictype/bitmap.h.
37343         (Depends-on): Add inline. Clean up.
37344         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37345         recognition.
37346         * tests/unicase/test-u16-tolower.c (main): Likewise.
37347         * tests/unicase/test-u32-tolower.c (main): Likewise.
37348
37349 2009-06-30  Bruno Haible  <bruno@clisp.org>
37350
37351         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37352         * lib/unicase/u16-casemap.c: Likewise.
37353         * lib/unicase/u32-casemap.c: Likewise.
37354
37355 2009-06-29  Bruno Haible  <bruno@clisp.org>
37356
37357         Define u32_casefold as a wrapper around u32_ct_casefold.
37358         * lib/unicase/u32-casefold.c: Update.
37359         * modules/unicase/u32-casefold (Depends-on): Add
37360         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37361         unicase/empty-suffix-context. Clean up.
37362
37363         Define u16_casefold as a wrapper around u16_ct_casefold.
37364         * lib/unicase/u16-casefold.c: Update.
37365         * modules/unicase/u16-casefold (Depends-on): Add
37366         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37367         unicase/empty-suffix-context. Clean up.
37368
37369         Define u8_casefold as a wrapper around u8_ct_casefold.
37370         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37371         * lib/unicase/u8-casefold.c: Update.
37372         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37373         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37374
37375         Define u32_totitle as a wrapper around u32_ct_totitle.
37376         * lib/unicase/u32-totitle.c: Update.
37377         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37378         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37379
37380         Define u16_totitle as a wrapper around u16_ct_totitle.
37381         * lib/unicase/u16-totitle.c: Update.
37382         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37383         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37384
37385         Define u8_totitle as a wrapper around u8_ct_totitle.
37386         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37387         functions.
37388         (FUNC): Delegate to U_CT_TOTITLE.
37389         * lib/unicase/u8-totitle.c: Update.
37390         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37391         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37392
37393         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37394         invocation.
37395         * modules/unicase/u32-tolower (Depends-on): Add
37396         unicase/empty-prefix-context, unicase/empty-suffix-context.
37397
37398         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37399         invocation.
37400         * modules/unicase/u16-tolower (Depends-on): Add
37401         unicase/empty-prefix-context, unicase/empty-suffix-context.
37402
37403         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37404         * modules/unicase/u8-tolower (Depends-on): Add
37405         unicase/empty-prefix-context, unicase/empty-suffix-context.
37406
37407         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37408         invocation.
37409         * modules/unicase/u32-toupper (Depends-on): Add
37410         unicase/empty-prefix-context, unicase/empty-suffix-context.
37411
37412         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37413         invocation.
37414         * modules/unicase/u16-toupper (Depends-on): Add
37415         unicase/empty-prefix-context, unicase/empty-suffix-context.
37416
37417         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37418         * modules/unicase/u8-toupper (Depends-on): Add
37419         unicase/empty-prefix-context, unicase/empty-suffix-context.
37420
37421         New module 'unicase/u32-ct-casefold'.
37422         * lib/unicase/u32-ct-casefold.c: New file.
37423         * modules/unicase/u32-ct-casefold: New file.
37424
37425         New module 'unicase/u16-ct-casefold'.
37426         * lib/unicase/u16-ct-casefold.c: New file.
37427         * modules/unicase/u16-ct-casefold: New file.
37428
37429         New module 'unicase/u8-ct-casefold'.
37430         * lib/unicase/u8-ct-casefold.c: New file.
37431         * lib/unicase/u-ct-casefold.h: New file, derived from
37432         lib/unicase/u-casefold.h.
37433         * modules/unicase/u8-ct-casefold: New file.
37434
37435         New module 'unicase/u32-ct-totitle'.
37436         * lib/unicase/u32-ct-totitle.c: New file.
37437         * modules/unicase/u32-ct-totitle: New file.
37438
37439         New module 'unicase/u16-ct-totitle'.
37440         * lib/unicase/u16-ct-totitle.c: New file.
37441         * modules/unicase/u16-ct-totitle: New file.
37442
37443         New module 'unicase/u8-ct-totitle'.
37444         * lib/unicase/u8-ct-totitle.c: New file.
37445         * lib/unicase/u-ct-totitle.h: New file, derived from
37446         lib/unicase/u-totitle.h.
37447         * modules/unicase/u8-ct-totitle: New file.
37448
37449         New module 'unicase/u32-ct-tolower'.
37450         * lib/unicase/u32-ct-tolower.c: New file.
37451         * modules/unicase/u32-ct-tolower: New file.
37452
37453         New module 'unicase/u16-ct-tolower'.
37454         * lib/unicase/u16-ct-tolower.c: New file.
37455         * modules/unicase/u16-ct-tolower: New file.
37456
37457         New module 'unicase/u8-ct-tolower'.
37458         * lib/unicase/u8-ct-tolower.c: New file.
37459         * modules/unicase/u8-ct-tolower: New file.
37460
37461         New module 'unicase/u32-ct-toupper'.
37462         * lib/unicase/u32-ct-toupper.c: New file.
37463         * modules/unicase/u32-ct-toupper: New file.
37464
37465         New module 'unicase/u16-ct-toupper'.
37466         * lib/unicase/u16-ct-toupper.c: New file.
37467         * modules/unicase/u16-ct-toupper: New file.
37468
37469         New module 'unicase/u8-ct-toupper'.
37470         * lib/unicase/u8-ct-toupper.c: New file.
37471         * modules/unicase/u8-ct-toupper: New file.
37472
37473         Add context arguments to u*_casemap functions.
37474         * lib/unicase/unicasemap.h: Include unicase.h.
37475         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37476         suffix_context arguments.
37477         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37478         functions.
37479         (FUNC): Add prefix_context and suffix_context arguments. Use
37480         uc_is_cased and uc_is_case_ignorable.
37481         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37482         * lib/unicase/u16-casemap.c: Likewise.
37483         * lib/unicase/u32-casemap.c: Likewise.
37484         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37485         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37486         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37487         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37488         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37489         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37490
37491         New module 'unicase/u32-suffix-context'.
37492         * lib/unicase/u32-suffix-context.c: New file.
37493         * modules/unicase/u32-suffix-context: New file.
37494
37495         New module 'unicase/u16-suffix-context'.
37496         * lib/unicase/u16-suffix-context.c: New file.
37497         * modules/unicase/u16-suffix-context: New file.
37498
37499         New module 'unicase/u8-suffix-context'.
37500         * lib/unicase/u8-suffix-context.c: New file.
37501         * lib/unicase/u-suffix-context.h: New file.
37502         * modules/unicase/u8-suffix-context: New file.
37503
37504         New module 'unicase/empty-suffix-context'.
37505         * lib/unicase/empty-suffix-context.c: New file.
37506         * modules/unicase/empty-suffix-context: New file.
37507
37508         New module 'unicase/u32-prefix-context'.
37509         * lib/unicase/u32-prefix-context.c: New file.
37510         * modules/unicase/u32-prefix-context: New file.
37511
37512         New module 'unicase/u16-prefix-context'.
37513         * lib/unicase/u16-prefix-context.c: New file.
37514         * modules/unicase/u16-prefix-context: New file.
37515
37516         New module 'unicase/u8-prefix-context'.
37517         * lib/unicase/u8-prefix-context.c: New file.
37518         * lib/unicase/u-prefix-context.h: New file.
37519         * lib/unicase/context.h: New file.
37520         * modules/unicase/u8-prefix-context: New file.
37521
37522         New module 'unicase/empty-prefix-context'.
37523         * lib/unicase/empty-prefix-context.c: New file.
37524         * modules/unicase/empty-prefix-context: New file.
37525
37526         New module 'unicase/ignorable'.
37527         * lib/unicase/ignorable.c: New file.
37528         * modules/unicase/ignorable: New file.
37529
37530         New module 'unicase/cased'.
37531         * lib/unicase/caseprop.h: New file.
37532         * lib/unicase/cased.c: New file.
37533         * modules/unicase/cased: New file.
37534
37535         New functions for case mapping of substrings.
37536         * lib/unicase.h (casing_prefix_context_t): New type.
37537         (unicase_empty_prefix_context): New variable.
37538         (u8_casing_prefix_context, u16_casing_prefix_context,
37539         u32_casing_prefix_context, u8_casing_prefixes_context,
37540         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37541         declarations.
37542         (casing_suffix_context_t): New type.
37543         (unicase_empty_suffix_context): New variable.
37544         (u8_casing_suffix_context, u16_casing_suffix_context,
37545         u32_casing_suffix_context, u8_casing_suffixes_context,
37546         u16_casing_suffixes_context, u32_casing_suffixes_context,
37547         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37548         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37549         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37550         declarations.
37551
37552 2009-06-28  Jim Meyering  <meyering@redhat.com>
37553
37554         boostrap: indent only with spaces
37555         * build-aux/bootstrap: Indent only with spaces, never TABs.
37556
37557         bootstrap: split long lines
37558         * build-aux/bootstrap: Keep line length < 80.
37559
37560         bootstrap: sync from coreutils
37561         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37562         just as autoreconf does.  Verify a list of prerequisite
37563         package-name,version-number pairs if defined in bootstrap.conf.
37564         Refer to README-prereq, if prerequisites are not satisfied.
37565
37566 2009-06-27  Eric Blake  <ebb9@byu.net>
37567
37568         tests: add test for bogus NULL definition
37569         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37570         * tests/test-stdlib.c: Likewise.
37571         * tests/test-string.c: Likewise.
37572         * tests/test-locale.c: Likewise.
37573         * tests/test-unistd.c: Likewise.
37574         * modules/stdio-tests (Depends-on): Add verify.
37575         * modules/stdlib-tests (Depends-on): Likewise.
37576         * modules/string-tests (Depends-on): Likewise.
37577         * modules/locale-tests (Depends-on): Likewise.
37578         * modules/unistd-tests (Depends-on): Likewise.
37579
37580 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37581
37582         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37583         self-explaining comment.
37584         * m4/selinux-selinux-h: Update serial.
37585         (gl_LIBSELINUX): New macro, adding a warning for missing development
37586         packages to code extracted from...
37587         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37588         Add warning for missing development packages here, too.
37589
37590 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37591
37592         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37593
37594 2009-06-25  Eric Blake  <ebb9@byu.net>
37595
37596         version-etc: fix regression
37597         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37598         gcc.
37599         (version_etc): Use it, to catch bugs with trailing NULL.
37600         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37601         (version_etc_va): Fix logic bug.
37602         * modules/version-etc-tests: Add test.
37603         * tests/test-version-etc.c: New file.
37604         * tests/test-version-etc.sh: Likewise.
37605
37606 2009-06-25  Sam Steingold  <sds@gnu.org>
37607
37608         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37609         mbtowc declaration.
37610
37611 2009-06-25  Eric Blake  <ebb9@byu.net>
37612
37613         fpurge: migrate into <stdio.h>
37614         * lib/fpurge.h: Delete...
37615         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37616         * lib/fpurge.c (fpurge): Change declaring header.
37617         * modules/fpurge (Files): Drop deleted file.
37618         (Depends-on): Add stdio.
37619         (configure.ac): Set witness.
37620         * modules/stdio (Makefile.am): Support fpurge macros.
37621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37622         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37623         * lib/fflush.c: Update client.
37624         * tests/test-fpurge.c: Likewise.
37625         * NEWS: Mention the change.
37626
37627 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37628
37629         * lib/argp-version-etc.c (program_authors): Add const
37630         qualifier.
37631         * lib/version-etc.c: Fix typos in the comments.
37632         * modules/argp-version-etc: Depends on version-etc.
37633
37634 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37635
37636         argp-version-etc: new module.
37637
37638         * lib/argp-version-etc.c: New file.
37639         * lib/argp-version-etc.h: New file.
37640         * modules/argp-version-etc: New file.
37641         * modules/argp-version-etc-tests: New file.
37642         * tests/test-argp-version-etc.c: New test.
37643         * tests/test-argp-version-etc-1.sh: New test.
37644
37645 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37646
37647         Provide additional interfaces and documentation for version-etc
37648         module.
37649
37650         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37651         interfaces.
37652         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37653         prototypes.
37654
37655 2009-06-24  Bruno Haible  <bruno@clisp.org>
37656
37657         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37658         HAVE_LIB${NAME} macro.
37659         Reported by Sam Steingold <sds@gnu.org>.
37660
37661 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37662
37663         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37664         needed.
37665
37666 2009-06-21  Bruno Haible  <bruno@clisp.org>
37667
37668         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37669         work.
37670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37671         together with LIB${NAME}, LTLIB${NAME}.
37672         Reported by Sam Steingold <sds@gnu.org>.
37673
37674 2009-06-20  Jim Meyering  <meyering@redhat.com>
37675
37676         tests: make sc_require_test_exit_idiom more generic
37677         * top/maint.mk (Exit_witness_file): New overridable variable.
37678         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37679         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37680
37681 2009-06-19  Jim Meyering  <meyering@redhat.com>
37682
37683         hash: reverse order of src/dst parameters in an internal interface
37684         * lib/hash.c (transfer_entries): Reverse order of parameters to
37685         put DST before SRC.  Adjust callers.
37686
37687         tests: test-hash: avoid wholesale duplication
37688         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37689         Instead, use a loop and add a single conditional.
37690
37691         tests: test-hash: allow seed selection via a command line argument
37692         * tests/test-hash.c (get_seed): New function.
37693         (main): Use it.
37694
37695 2009-06-19  Eric Blake  <ebb9@byu.net>
37696
37697         hash: avoid memory leak on allocation failure
37698         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37699         failure.  Factor repeated algorithm...
37700         (transfer_entries): ...into new helper routine.
37701         (hash_delete): React to hash_rehash return value.
37702
37703         hash: reduce memory pressure in hash_rehash no-op case
37704         * lib/hash.c (next_prime): Avoid overflow.
37705         (hash_initialize): Factor bucket size computation...
37706         (compute_bucket_size): ...into new helper function.
37707         (hash_rehash): Use new function and open coding to reduce memory
37708         pressure, and avoid a memory leak in USE_OBSTACK code.
37709         Reported by Jim Meyering.
37710
37711 2009-06-18  Eric Blake  <ebb9@byu.net>
37712
37713         hash: make rotation more obvious
37714         * modules/hash (Depends-on): Add bitrotate and stdint.
37715         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37716         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37717         (SIZE_MAX): Rely on headers for definition.
37718         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37719         (raw_hasher): Use rotr_sz.
37720         Suggested by Jim Meyering.
37721
37722         hash: fix memory leak in last patch
37723         * lib/hash.c (hash_rehash): Avoid memory leak.
37724
37725         hash: avoid no-op rehashing
37726         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37727
37728         hash: provide default callback functions
37729         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37730         (hash_initialize): Use them as defaults.
37731         * tests/test-hash.c (main): Test this.
37732
37733         hash: minor optimization
37734         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37735         when possible.
37736         (hash_initialize): Document this promise.
37737         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37738         * tests/test-hash.c (hash_compare_strings): Test this.
37739
37740 2009-06-18  Bruno Haible  <bruno@clisp.org>
37741
37742         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37743         going to be replaced anyway.
37744
37745 2009-06-18  Bruno Haible  <bruno@clisp.org>
37746
37747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37748         in one place.
37749         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37750         be replaced anyway.
37751
37752 2009-06-18  Eric Blake  <ebb9@byu.net>
37753
37754         hash: check for resize before insertion
37755         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37756         threshold before insertion, so that a pathological hash_rehash
37757         that fills every bucket can still trigger another rehash.
37758
37759 2009-06-18  Jim Meyering  <meyering@redhat.com>
37760
37761         hash-tests: add a loop around the small tests
37762         * tests/test-hash.c (main): Repeat small tests with selected
37763         small initial table sizes.
37764
37765 2009-06-17  Eric Blake  <ebb9@byu.net>
37766
37767         hash: minor cleanups
37768         * lib/hash.h (hash_entry): Make opaque, by moving...
37769         * lib/hash.c (hash_entry): ...here.
37770         (hash_insert): Clarify restrictions on what can be inserted.
37771         (hash_get_next): Clarify when it is safe to remove an element
37772         during traversal.
37773         (check_tuning): Skip verification when tuning is known safe.
37774         (hash_initialize): Clarify restrictions on tuning.
37775
37776 2009-06-17  Jim Meyering  <jim@meyering.net>
37777         and Eric Blake  <ebb9@byu.net>
37778
37779         hash-tests: new module
37780         * modules/hash-tests: New file.
37781         * tests/test-hash.c: New file.
37782
37783 2009-06-17  Eric Blake  <ebb9@byu.net>
37784
37785         strstr-simple: document new module
37786         * MODULES.html.sh: Document new module.
37787
37788         strstr, strcasestr: replace on platforms with broken memchr
37789         * modules/strstr: Split into...
37790         * modules/strstr-simple: ...new module that does not care about
37791         performance, but does care about glibc bug.
37792         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37793         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37794         if platform memchr is broken, per Debian bug 521737.
37795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37796         memchr.
37797         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37798         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37799         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37800         * modules/mountlist (Depends-on): Add strstr-simple.
37801         * modules/gen-uni-tables (Depends-on): Likewise.
37802         * modules/argz (Depends-on): Add strstr.
37803
37804 2009-06-17  Bruno Haible  <bruno@clisp.org>
37805
37806         * modules/posix_spawn-internal (Depends-on): Add errno.
37807
37808 2009-06-17  Bruno Haible  <bruno@clisp.org>
37809
37810         Define missing ESTALE on Interix 3.5.
37811         * lib/errno.in.h (ESTALE): Assign a value if missing.
37812         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37813         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37814         missing.
37815         * doc/posix-headers/errno.texi: Mention the Interix bug.
37816         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37817
37818 2009-06-15  Eric Blake  <ebb9@byu.net>
37819
37820         memchr, memchr2: add valgrind exception
37821         * lib/memchr.valgrind: New file.
37822         * lib/memchr2.valgrind: New file.
37823         * modules/memchr (Files): Distribute valgrind file.
37824         * modules/memchr2 (Files): Likewise.
37825
37826         docs: memchr is no longer obsolete
37827         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37828         * lib/string.in.h (memchr): Simplify logic.
37829
37830 2009-06-14  Jim Meyering  <meyering@redhat.com>
37831
37832         link-follow: fix the "checking..." message to not mention trailing slash
37833         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37834         never considered trailing slashes.
37835
37836 2009-06-14  Bruno Haible  <bruno@clisp.org>
37837
37838         * m4/memchr.m4: Mention also the bug on IA-64.
37839         * doc/posix-functions/memchr.texi: Likewise.
37840
37841 2009-06-12  Eric Blake  <ebb9@byu.net>
37842
37843         memchr: detect broken x86_64 and alpha implementations
37844         * modules/memchr-tests (Depends-on): Move mmap detection...
37845         * modules/memchr (Depends-on): ...here.
37846         (configure.ac): Set indicator.
37847         * lib/string.in.h (memchr): Declare replacement.
37848         * modules/string (Makefile.am): Trigger replacement.
37849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37850         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37851         bugs.
37852         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37853         * modules/getpagesize (License): Relax license.
37854
37855 2009-06-11  Bruno Haible  <bruno@clisp.org>
37856
37857         * lib/idpriv.h: Add more references.
37858
37859 2009-06-08  Bruno Haible  <bruno@clisp.org>
37860
37861         Tests for module 'idpriv-droptemp'.
37862         * modules/idpriv-droptemp-tests: New file.
37863         * tests/test-idpriv-droptemp.sh: New file.
37864         * tests/test-idpriv-droptemp.su.sh: New file.
37865         * tests/test-idpriv-droptemp.c: New file.
37866
37867         New module 'idpriv-droptemp'.
37868         * lib/idpriv-droptemp.c: New file.
37869         * modules/idpriv-droptemp: New file.
37870
37871 2009-06-08  Bruno Haible  <bruno@clisp.org>
37872
37873         Tests for module 'idpriv-drop'.
37874         * modules/idpriv-drop-tests: New file.
37875         * tests/test-idpriv-drop.sh: New file.
37876         * tests/test-idpriv-drop.su.sh: New file.
37877         * tests/test-idpriv-drop.c: New file.
37878
37879         New module 'idpriv-drop'.
37880         * lib/idpriv.h: New file.
37881         * lib-idpriv-drop.c: New file.
37882         * m4/idpriv.m4: New file.
37883         * modules/idpriv-drop: New file.
37884
37885 2009-06-08  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37888         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37889         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37890         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37891         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37892         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37893         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37894
37895 2009-06-08  Eric Blake  <ebb9@byu.net>
37896
37897         test-strstr: use memory fence, when possible
37898         * tests/test-strstr.c (main): Use memory fence, in order to be
37899         more likely to trigger Debian bug 521737.
37900         * modules/strstr-tests (Files): Pull in additional files.
37901
37902         memchr: no longer obsolete, for wider field testing
37903         * modules/memchr (Status, Notice): Delete, this module is no
37904         longer obsolete.
37905         * modules/vasnprintf (Depends-on): Add memchr.
37906
37907 2009-06-07  Jim Meyering  <meyering@redhat.com>
37908
37909         hash: declare some functions with the warn_unused_result attribute
37910         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37911
37912 2009-06-07  Bruno Haible  <bruno@clisp.org>
37913
37914         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37915         Reported by Eric Blake.
37916
37917 2009-06-06  Eric Blake  <ebb9@byu.net>
37918
37919         test-alignof: fix typo with long double
37920         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37921         compiler error.
37922
37923 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37924
37925         Escape non-texinfo { and }s.
37926         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37927         markup error.
37928
37929 2009-06-04  Jim Meyering  <meyering@redhat.com>
37930
37931         gitlog-to-changelog: don't infloop on an empty commit log
37932         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37933         Reported by Boris Petersen <transacid@centerim.org>.
37934
37935 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37936
37937         version-etc: extend for packagers
37938         Add three new configure options, intended for packagers:
37939           --with-packager="packager name"
37940           --with-packager-version="packager-specific version"
37941           --with-packager-bug-reports="packager bug reporting"
37942         An example with coreutils:
37943           $ ./configure \
37944             --with-packager=Gentoo \
37945             --with-packager-bug-report=http://bugs.gentoo.org/ \
37946             --with-packager-version="patchset 1.6"
37947           $ ./src/ls --version | head -n2
37948           ls (GNU coreutils) 7.1-dirty
37949           Packaged by Gentoo (patchset 1.6)
37950         Note that the bug reporting info via --help doesn't show up because
37951         coreutils uses its own custom emit_bug_reporting_address() implementation
37952         in src/system.h.  If it didn't, it'd look like:
37953           $ ./src/ls --help | tail -n4
37954           Report bugs to <bug-coreutils@gnu.org>.
37955           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37956           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37957           General help using GNU software: <http://www.gnu.org/gethelp/>.
37958         * lib/version-etc.c: Print new information, if provided.
37959         * m4/version-etc.m4: New file.
37960         * modules/version-etc (Files): Add m4/version-etc.m4.
37961         (configure.ac): Add gl_VERSION_ETC.
37962
37963 2009-05-31  Bruno Haible  <bruno@clisp.org>
37964
37965         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37966         and 'int64_t'.
37967         * modules/alignof-tests (Dependencies): Add stdint.
37968         Reported by Eric Blake.
37969
37970 2009-05-31  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37973         restriction due to compiler bugs.
37974         Reported by Eric Blake.
37975
37976 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37977             Bruno Haible  <bruno@clisp.org>
37978
37979         Fix test-alignof failure.
37980         * lib/alignof.h (alignof_slot): New macro.
37981         (alignof_type): New macro, with the same semantics as the previous
37982         'alignof'.
37983         (alignof): Alias to alignof_slot.
37984         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37985         check that the results are usable as constant expressions.
37986
37987 2009-05-31  Bruno Haible  <bruno@clisp.org>
37988
37989         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37990         * tests/test-memchr.c (main): Check that memchr does not read past the
37991         first occurrence of the byte.
37992         * tests/test-strstr.c (main): Update comment.
37993         Suggested by Eric Blake.
37994
37995 2009-05-30  Bruno Haible  <bruno@clisp.org>
37996
37997         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37998         detail how to use dumpbin.
37999         Reported by David Byron <dbyron@dbyron.com>.
38000
38001 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38002
38003         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38004
38005 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38006
38007         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38008
38009 2009-05-28  Bruno Haible  <bruno@clisp.org>
38010
38011         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38012         build-aux/ files.
38013
38014 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38015
38016         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38017
38018 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38019
38020         * gnulib-tool (sed_transform_main_lib_file)
38021         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38022         regexps.
38023
38024 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38025
38026         * tests/test-strstr.c: Add another self-test.
38027         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38028         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38029
38030 2009-05-23  Bruno Haible  <bruno@clisp.org>
38031
38032         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38033         change.
38034
38035 2009-05-21  Bruno Haible  <bruno@clisp.org>
38036
38037         Simplify use of mode_t varargs.
38038         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38039         uses 'mode_t' or 'int'.
38040         * lib/openat.c (openat): Likewise.
38041         * lib/open-safer.c (open_safer): Likewise.
38042         * m4/mode_t.m4: New file.
38043         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38044         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38045         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38046         * modules/open (Files): Add m4/mode_t.m4.
38047         * modules/openat (Files): Likewise.
38048         * modules/fcntl-safer (Files): Likewise.
38049         Suggested by Eric Blake.
38050
38051 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38052
38053         * doc/glibc-functions/fallocate.texi: New file.
38054         * doc/gnulib.texi: Include it.
38055
38056 2009-05-21  Eric Blake  <ebb9@byu.net>
38057             Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38060         invocations.
38061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38062
38063 2009-05-21  Eric Blake  <ebb9@byu.net>
38064             Bruno Haible  <bruno@clisp.org>
38065
38066         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38067         include_next. Fix of 2008-11-20 commit.
38068         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38069         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38070         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38071         NEXT_MATH_H.
38072         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38073         instead of NEXT_MATH_H.
38074
38075 2009-05-21  Bruno Haible  <bruno@clisp.org>
38076
38077         Avoid redefinition warnings for SIZE_MAX.
38078         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38079         Reported by Simon Josefsson.
38080
38081 2009-05-21  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38084         AC_CACHE_VAL.
38085
38086 2009-05-20  Bruno Haible  <bruno@clisp.org>
38087
38088         Make zeroptr.h work on mingw.
38089         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38090         mprotect.
38091         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38092         * modules/memchr2-tests (configure.ac): Likewise.
38093         * modules/memcmp-tests (configure.ac): Likewise.
38094         * modules/memmem-tests (configure.ac): Likewise.
38095         * modules/memrchr-tests (configure.ac): Likewise.
38096         Reported by Simon Josefsson.
38097
38098 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38099
38100         * tests/test-glob.c: Include string.h for strcmp prototype.
38101
38102 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38103
38104         * modules/getdelim (Depends-on): Add explicit stdint, although it
38105         was implicitly already pulled in via realloc-posix.
38106         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38107
38108 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38109
38110         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38111         G. Christensen" <tgc@jupiterrise.com>.
38112         * m4/sys_socket_h.m4: Check for sa_family_t.
38113         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38114         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38115         * tests/test-sys_socket.c: Check that sa_family_t works.
38116
38117 2009-05-18  Eric Blake  <ebb9@byu.net>
38118
38119         maint.mk: allow gnulib_dir in VPATH build
38120         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38121
38122 2009-05-15  Jim Meyering  <meyering@redhat.com>
38123
38124         maint.mk: Give gnulib_dir a default definition.
38125         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38126         Thus, most packages no longer need to specify this variable in cfg.mk
38127
38128 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38129
38130         rename.m4: fix typos that would make non-mingw cross-configure fail
38131         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38132
38133 2009-05-13  Eric Blake  <ebb9@byu.net>
38134
38135         mmap-anon: avoid out-of-order autoconf expansion
38136         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38137         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38138         * modules/memchr-tests (Depends-on): Add extensions.
38139         * modules/memchr2-tests (Depends-on): Add extensions.
38140         * modules/memcmp-tests (Depends-on): Add extensions.
38141         * modules/memmem-tests (Depends-on): Add extensions.
38142         * modules/memrchr-tests (Depends-on): Add extensions.
38143
38144 2009-05-13  Bruno Haible  <bruno@clisp.org>
38145
38146         Make some tests ISO C 99 compliant.
38147         * tests/zerosize-ptr.h: New file.
38148         * tests/test-memchr.c: Include zerosize-ptr.h.
38149         (main): Use a zero-size object pointer instead of NULL.
38150         * tests/test-memchr2.c: Include zerosize-ptr.h.
38151         (main): Use a zero-size object pointer instead of NULL.
38152         * tests/test-memcmp.c: Include zerosize-ptr.h.
38153         (main): Use a zero-size object pointer instead of NULL.
38154         * tests/test-memmem.c: Include zerosize-ptr.h.
38155         (main): Use a zero-size object pointer instead of NULL.
38156         * tests/test-memrchr.c: Include zerosize-ptr.h.
38157         (main): Use a zero-size object pointer instead of NULL.
38158         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38159         m4/mmap-anon.m4.
38160         (Depends-on): Add getpagesize.
38161         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38162         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38163         m4/mmap-anon.m4.
38164         (Depends-on): Add getpagesize.
38165         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38166         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38167         m4/mmap-anon.m4.
38168         (Depends-on): Add getpagesize.
38169         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38170         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38171         m4/mmap-anon.m4.
38172         (Depends-on): Add getpagesize.
38173         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38174         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38175         m4/mmap-anon.m4.
38176         (Depends-on): Add getpagesize.
38177         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38178
38179 2009-05-12  Bruno Haible  <bruno@clisp.org>
38180
38181         Tests for module 'alignof'.
38182         * modules/alignof-tests: New file.
38183         * tests/test-alignof.c: New file.
38184
38185 2009-05-12  Bruno Haible  <bruno@clisp.org>
38186
38187         Fix alignof macro.
38188         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38189         vendor compilers that are always correct.
38190
38191 2009-05-12  Bruno Haible  <bruno@clisp.org>
38192
38193         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38194         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38195         not whether its fully works.
38196
38197 2009-05-12  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38200
38201 2009-05-12  Jim Meyering  <meyering@redhat.com>
38202
38203         * top/maint.mk: Adjust backslash alignment.
38204
38205 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38206
38207         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38208
38209 2009-05-11  Eric Blake  <ebb9@byu.net>
38210
38211         argp: avoid undefined behavior
38212         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38213         macros.
38214
38215 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38216
38217         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38218         user.name to prevent git commit from complaining.
38219
38220 2009-05-10  Bruno Haible  <bruno@clisp.org>
38221
38222         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38223         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38224         it rewrites every file name only once.
38225         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38226
38227 2009-05-08  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38230         instead of 'max'.
38231
38232 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38233
38234         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38235         sockaddr_storage test.
38236
38237 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38238
38239         * modules/sys_socket (Makefile.am): Substitute
38240         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38241         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38242         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38243         * tests/test-sys_socket.c: Check sockaddr_storage.
38244
38245 2009-05-08  Bruno Haible  <bruno@clisp.org>
38246
38247         New module 'alignof'.
38248         * lib/alignof.h: New file.
38249         * modules/alignof: New file.
38250
38251 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38252             Bruno Haible  <bruno@clisp.org>
38253
38254         Fix test-file-has-acl on FreeBSD.
38255         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38256         mask is implicitly added.
38257         * tests/test-file-has-acl.c: Include <signal.h>.
38258         (main): Terminate the test after 5 seconds.
38259         * modules/acl-tests (configure.ac): Check for alarm function.
38260
38261 2009-05-04  Bruno Haible  <bruno@clisp.org>
38262
38263         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38264         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38265         * modules/errno (configure.ac): Drop AC_REQUIRE.
38266         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38267         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38268
38269 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38270
38271         * modules/glob-tests: New module.
38272         * tests/test-glob.c: Add.
38273
38274 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38275
38276         * modules/fnmatch-tests: New module.
38277         * tests/test-fnmatch.c: Add.
38278
38279 2009-05-04  Eric Blake  <ebb9@byu.net>
38280
38281         maint: make the new no-submodule-changes rule VPATH-safe
38282         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38283
38284 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38285             Bruno Haible  <bruno@clisp.org>
38286
38287         acl: Fix infinite loop on FreeBSD.
38288         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38289         of return value from acl_get_entry.
38290         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38291         Likewise.
38292
38293 2009-05-03  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/acl-internal.h (acl_entries): Clarify return value.
38296         * lib/acl_entries.c (acl_entries): Likewise.
38297
38298 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38299
38300         Bug fix in acl module.
38301         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38302
38303 2009-05-03  Bruno Haible  <bruno@clisp.org>
38304
38305         Create gperf-generated file in the source dir, not in the build dir.
38306         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38307         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38308         * modules/unicase/locale-language (unicase/locale-languages.h):
38309         Likewise.
38310         * modules/unicase/special-casing (unicase/special-casing-table.h):
38311         Likewise.
38312         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38313         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38314         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38315         Reported by Ralf Wildenhues.
38316
38317 2009-05-03  Bruno Haible  <bruno@clisp.org>
38318
38319         * modules/fnmatch (Description, configure.ac): Taken from
38320         fnmatch-posix.
38321         * modules/fnmatch-posix: Turn into a symbolic reference to the
38322         'fnmatch' module, and deprecate.
38323         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38324
38325 2009-05-03  Bruno Haible  <bruno@clisp.org>
38326
38327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38328         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38329         Reported by Ralf Wildenhues.
38330
38331 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38332
38333         * m4/fnmatch.m4: Fix fnmatch re-define.
38334
38335 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38336
38337         priv-set: new module and tests; adapt write-any-file
38338         * lib/priv-set.c: New file.
38339         * lib/priv-set.h: New file.
38340         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38341         * lib/write-any-file.c: Simplify by using priv-set module.
38342         * m4/priv-set.m4: New file.
38343         * modules/priv-set: New file.
38344         * modules/unlinkdir: Add dependency on priv-set module.
38345         * modules/write-any-file: Likewise.
38346
38347         Tests for module 'priv-set'.
38348         * modules/priv-set-tests: New file.
38349         * tests/test-priv-set.c: New file.
38350
38351 2009-05-03  Jim Meyering  <meyering@redhat.com>
38352             Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38355         use the converted UTF-8 variant of the name instead.
38356
38357 2009-05-03  Jim Meyering  <meyering@redhat.com>
38358
38359         tests: tighten some getdate tests
38360         * tests/test-getdate.c (main): Tighten tests: require equality,
38361         not just greater than.  Set TZ envvar to UTC0.
38362
38363 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38364
38365         getdate: correctly interpret "next monday" when run on a Monday
38366         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38367         that e.g., "next tues" (when run on a tuesday) results in a date
38368         that is one week in the future, and not today's date.
38369         I.e., add a week when the wday is the same as the current one.
38370         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38371         and earlier by Martin Bernreuther and Jan Minář.
38372         * tests/test-getdate.c (main): Check that "next DAY" is always in
38373         the future and that "last DAY" is always in the past.
38374
38375 2009-05-02  Jim Meyering  <meyering@redhat.com>
38376
38377         build: ensure that a release build fails when a submodule is unclean
38378         * top/maint.mk (no-submodule-changes): New rule.
38379         (alpha beta major): Depend on it.
38380
38381 2009-05-02  Bruno Haible  <bruno@clisp.org>
38382
38383         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38384         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38385         shell variable gl_fnmatch_required to detect which variant is
38386         requested.
38387         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38388         gl_FUNC_FNMATCH_POSIX.
38389         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38390         exclude fnmatch-posix.
38391
38392 2009-05-02  Bruno Haible  <bruno@clisp.org>
38393
38394         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38395         * modules/mbsrtowcs (License): Change to LGPLv2+.
38396         * modules/strnlen1 (License): Likewise.
38397         Reported by Simon Josefsson.
38398
38399 2009-05-02  Bruno Haible  <bruno@clisp.org>
38400
38401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38402         "cross".
38403         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38404         gnulib-tool was called with option --source-base=lib.
38405
38406 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38407
38408         Use automake *-local hooks without commands, for extensibility.
38409         * modules/localcharset (Makefile.am): Rename install-exec-local
38410         rule to install-exec-localcharset, and make it a prerequisite of
38411         install-exec-local.  Likewise, rename the uninstall-local rule to
38412         uninstall-localcharset, and make it a prerequisite of the former.
38413
38414 2009-05-01  Bruno Haible  <bruno@clisp.org>
38415
38416         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38417         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38418         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38420         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38421         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38422         m4/locale-zh.m4, m4/codeset.m4.
38423
38424         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38425         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38426         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38427         m4/locale-zh.m4.
38428
38429         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38430         REPLACE_WCRTOMB if mbstate_t must be replaced.
38431         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38432         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38433
38434 2009-05-01  Bruno Haible  <bruno@clisp.org>
38435
38436         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38437         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38438         dngettext, dcngettext, textdomain, bindtextdomain,
38439         bind_textdomain_codeset): Undefine before redefining.
38440
38441 2009-04-30  Bruno Haible  <bruno@clisp.org>
38442
38443         Fix bug introduced on 2009-04-25.
38444         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38445         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38446         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38447         is defined.
38448         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38449         is defined.
38450         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38451         is defined.
38452         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38453
38454 2009-04-28  Bruno Haible  <bruno@clisp.org>
38455
38456         Comment tweaks.
38457         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38458         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38459         * lib/unicase.h (u*_casexfrm): Likewise.
38460         Reported by Paolo Bonzini.
38461
38462 2009-04-28  Bruno Haible  <bruno@clisp.org>
38463
38464         Fix a compilation error.
38465         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38466         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38467         Reported by Jim Meyering.
38468
38469 2009-04-27  Bruno Haible  <bruno@clisp.org>
38470
38471         New module 'libunistring'.
38472         * modules/libunistring: New file.
38473         * m4/libunistring.m4: New file.
38474         * MODULES.html.sh (Unicode string functions): Add it.
38475
38476 2009-04-27  Eric Blake  <ebb9@byu.net>
38477
38478         maint.mk: allow package-specific header to provide <config.h>
38479         * top/maint.mk (sc_require_config_h): New variable.
38480         (sc_require_config_h, sc_require_config_h_first): Use it.
38481
38482 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38483
38484         * top/maint.mk (sc_avoid_if_before_free): Except
38485         useless-if-before-free script.
38486
38487 2009-04-27  Eric Blake  <ebb9@byu.net>
38488
38489         maintainer-makefile: depend on all required helper scripts
38490         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38491         useless-if-before-free.
38492         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38493         version, rather than assuming gnulib checkout is available.
38494         Reported by Simen Josefsson.
38495
38496 2009-04-26  Bruno Haible  <bruno@clisp.org>
38497
38498         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38499         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38500         "../" or "..".
38501
38502 2009-04-26  Bruno Haible  <bruno@clisp.org>
38503
38504         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38505         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38506         AC_LIB_HAVE_LINKFLAGS.
38507
38508 2009-04-26  Bruno Haible  <bruno@clisp.org>
38509
38510         Simplify calling convention of u*_conv_from_encoding.
38511         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38512         u32_conv_from_encoding): Expect a resultbuf argument and return the
38513         result directly as a pointer.
38514         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38515         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38516         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38517         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38518         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38519         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38520         Update.
38521         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38522         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38523         * lib/vasnprintf.c (VASNPRINTF): Update.
38524         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38525         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38526         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38527         * NEWS: Mention the change.
38528
38529 2009-04-26  Bruno Haible  <bruno@clisp.org>
38530
38531         Simplify calling convention of u*_conv_to_encoding.
38532         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38533         u32_conv_to_encoding): Expect a resultbuf argument and return the
38534         result directly as a pointer.
38535         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38536         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38537         freeing scaled_offsets if mem_iconveha failed.
38538         * lib/unicase/u-casexfrm.h (FUNC): Update.
38539         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38540         * lib/vasnprintf.c (VASNPRINTF): Update.
38541         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38542         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38543         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38544         * NEWS: Mention the change.
38545
38546 2009-04-26  Bruno Haible  <bruno@clisp.org>
38547
38548         Avoid test failures on AIX and OSF/1.
38549         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38550         malloc(0).
38551         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38552         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38553         Likewise.
38554         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38555         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38556         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38557         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38558         * doc/posix-functions/malloc.texi: Document the portability problem
38559         related to malloc(0).
38560
38561 2009-04-26  Bruno Haible  <bruno@clisp.org>
38562
38563         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38564         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38565         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38566
38567 2009-04-25  Bruno Haible  <bruno@clisp.org>
38568
38569         Avoid link error when creating a namespace clean library.
38570         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38571         as macro with arguments if already defined as an alias.
38572         * lib/signbitf.c (gl_signbitf): Don't undefine.
38573         * lib/signbitd.c (gl_signbitd): Don't undefine.
38574         * lib/signbitl.c (gl_signbitl): Don't undefine.
38575
38576 2009-04-25  Jim Meyering  <meyering@redhat.com>
38577
38578         vc-list-files: fix another quoting bug
38579         * build-aux/vc-list-files: Avoid sed backslash expansion
38580         of pathological directory names.
38581
38582 2009-04-25  Eric Blake  <ebb9@byu.net>
38583
38584         vc-list-files: fix shell quoting error
38585         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38586         timestamp.
38587
38588 2009-04-25  Jim Meyering  <meyering@redhat.com>
38589
38590         vc-list-files: restore lost functionality with subdir argument
38591         * build-aux/vc-list-files: When given a non-"." sub-directory
38592         argument, substitute the $dir/ prefix back onto each resulting name.
38593         Otherwise, coreutils' root_tests check would fail.
38594
38595 2009-04-24  Eric Blake  <ebb9@byu.net>
38596
38597         vc-list-files: ignore git symlinks
38598         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38599         than ls-files, to ignore git symlinks.
38600
38601         maint.mk: import improvements from m4
38602         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38603         (move_if_change): Delete unused macro.
38604         (news-date-check, vc-diff-check): Support VPATH builds.
38605         (announcement): Likewise.  Split --bootstrap-tools list...
38606         (boostrap-tools): ...into separate list, which can be overridden
38607         in cfg.mk.
38608         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38609         requiring dependency on useless-if-before-free module.
38610         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38611         Support VPATH builds.
38612
38613 2009-04-24  Jim Meyering  <meyering@redhat.com>
38614
38615         maint.mk: remove coreutils-specific rules and variables
38616         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38617         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38618         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38619
38620         maint.mk: remove obsolete rule
38621         * top/maint.mk (rel-check): Remove rule.
38622         (WGET, WGETFLAGS): Remove now-unused variables.
38623
38624 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38625
38626         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38627         consistency.
38628
38629         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38630         '$(PATH_SEPARATOR)' instead of ':'.
38631
38632 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38633
38634         * lib/getopt1.c (main): Use 'const' for static array.
38635
38636 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38637
38638         * top/maint.mk: Sync with coreutils.
38639         * NEWS: Explain incompatibilities.
38640
38641 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38642             Bruno Haible  <bruno@clisp.org>
38643
38644         Fix cross-compilation results.
38645         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38646         statement, as third argument of AC_TRY_RUN.
38647         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38648         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38649         Likewise.
38650         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38651         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38652         Likewise.
38653         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38654         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38655         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38656
38657 2009-04-20  Bruno Haible  <bruno@clisp.org>
38658
38659         Avoid test failure on mingw.
38660         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38661
38662 2009-04-20  Bruno Haible  <bruno@clisp.org>
38663
38664         Avoid compilation error on mingw.
38665         * modules/localename-tests (Depends-on): Add locale.
38666
38667 2009-04-19  Bruno Haible  <bruno@clisp.org>
38668
38669         Support for building a shared library on Windows platforms.
38670         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38671         (main): Test the presence of UNINORM_NFC here.
38672         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38673         (main): Test the presence of UNINORM_NFD here.
38674         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38675         (main): Test the presence of UNINORM_NFKC here.
38676         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38677         (main): Test the presence of UNINORM_NFKD here.
38678
38679 2009-04-19  Bruno Haible  <bruno@clisp.org>
38680
38681         Avoid a compiler warning.
38682         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38683         Change type of variable 'sequence'.
38684
38685 2009-04-19  Bruno Haible  <bruno@clisp.org>
38686
38687         * modules/configmake (Makefile.am): When the contents of configmake.h
38688         does not change, arrange to preserve its modification time.
38689
38690 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38691
38692         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38693         gettext domain.
38694
38695 2009-04-16  Jim Meyering  <meyering@redhat.com>
38696
38697         useless-if-before-free: improve conversion code
38698         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38699         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38700
38701 2009-04-14  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/fcntl (Depends-on): Add extensions.
38704         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38705
38706 2009-04-12  Ben Pfaff  <blp@gnu.org>
38707
38708         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38709         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38710
38711 2009-03-20  Ben Pfaff  <blp@gnu.org>
38712
38713         Make rename replace existing destinations on Windows.
38714         * m4/rename.m4: Add test for Mingw.
38715         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38716         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38717         * doc/posix-functions/rename.texi: Document.
38718
38719 2009-04-10  Bruno Haible  <bruno@clisp.org>
38720
38721         New include file "iconveh.h".
38722         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38723         * lib/striconveh.h: Include it.
38724         (enum iconv_ilseq_handler): Remove definition.
38725         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38726         striconveh.h.
38727         * lib/striconveha.c: Include striconveh.h.
38728         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38729         * modules/striconveh (Files): Add lib/iconveh.h.
38730         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38731         lib/striconveh.h.
38732
38733 2009-04-10  Bruno Haible  <bruno@clisp.org>
38734
38735         * lib/uniconv.h: Update comment.
38736
38737 2009-04-10  Bruno Haible  <bruno@clisp.org>
38738
38739         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38740         always.
38741         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38742         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38743         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38744         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38745         "unistring-notinline.h", so that the function gets defined always.
38746         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38747         * lib/unistr/u8-uctomb.c: Likewise.
38748         * lib/unistr/u16-mbtouc.c: Likewise.
38749         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38750         * lib/unistr/u16-uctomb.c: Likewise.
38751         * lib/unistr/u32-mbtouc.c: Likewise.
38752         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38753         * lib/unistr/u32-uctomb.c: Likewise.
38754
38755 2009-04-10  Bruno Haible  <bruno@clisp.org>
38756
38757         Mark 'utime' obsolete.
38758         * modules/utime (Status, Notice): New sections.
38759         Suggested by Jim Meyering.
38760
38761         Fix cross-compile guess for utime test.
38762         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38763         autoconf.
38764         * doc/posix-functions/utime.texi: Give more precisions.
38765         Reported by Jan <ipif@ymail.com>.
38766
38767 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38768
38769         filevercmp: correct today's change
38770         * lib/filevercmp.c: Also handle coreutils' test inputs.
38771         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38772
38773         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38774         for reporting it.
38775         * lib/filevercmp.c: Special handle for "", "." and "..".
38776         * tests/test-filevercmp.c: Enlarge the set suite.
38777
38778 2009-04-07  Jim Meyering  <meyering@redhat.com>
38779
38780         useless-if-before-free: show how to remove braced useless free, too
38781         * build-aux/useless-if-before-free: still only in a comment, though.
38782
38783 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38784
38785         maint.mk: import changes to syntax-check macros from coreutils
38786         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38787         Use them in the relevant macros.
38788
38789 2009-04-06  Bruno Haible  <bruno@clisp.org>
38790
38791         Fix unportable use of bit-fields.
38792         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38793         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38794         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38795
38796 2009-04-06  Bruno Haible  <bruno@clisp.org>
38797
38798         Avoid test failures on AIX and OSF/1.
38799         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38800         that malloc(0) = NULL.
38801         * tests/unicase/test-u8-tolower.c (check): Likewise.
38802         * tests/unicase/test-u8-totitle.c (check): Likewise.
38803         * tests/unicase/test-u8-toupper.c (check): Likewise.
38804         * tests/unicase/test-u16-casefold.c (check): Likewise.
38805         * tests/unicase/test-u16-tolower.c (check): Likewise.
38806         * tests/unicase/test-u16-totitle.c (check): Likewise.
38807         * tests/unicase/test-u16-toupper.c (check): Likewise.
38808         * tests/unicase/test-u32-casefold.c (check): Likewise.
38809         * tests/unicase/test-u32-tolower.c (check): Likewise.
38810         * tests/unicase/test-u32-totitle.c (check): Likewise.
38811         * tests/unicase/test-u32-toupper.c (check): Likewise.
38812         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38813         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38814         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38815         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38816         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38817         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38818         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38819         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38820         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38821         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38822         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38823         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38824
38825 2009-04-05  Bruno Haible  <bruno@clisp.org>
38826
38827         Work around an autoconf limitation.
38828         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38829         comment line if it would be longer than 3 KB.
38830
38831 2009-04-05  Bruno Haible  <bruno@clisp.org>
38832
38833         Avoid test failure with libiconv-1.13.
38834         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38835         of the expected test results.
38836
38837 2009-04-05  Bruno Haible  <bruno@clisp.org>
38838
38839         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38840         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38841         that it should be installed.
38842
38843 2009-04-05  Bruno Haible  <bruno@clisp.org>
38844
38845         * gnulib-tool: New option --copy-file.
38846         (func_usage): Document it.
38847         (func_dest_tmpfilename): Moved out of func_import.
38848         (func_add_file, func_update_file): New functions, extracted from
38849         func_import.
38850         (func_import): Update.
38851
38852 2009-04-05  Karl Berry  <karl@gnu.org>
38853
38854         * README: prominently mention gnulib-tool.
38855         Rearrange sections so getting the code is near the top.
38856
38857 2009-04-05  Bruno Haible  <bruno@clisp.org>
38858
38859         * lib/unicase.h: Mention u*_cmp2.
38860         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38861         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38862         * lib/unicase/ulc-casecmp.c: Likewise.
38863         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38864         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38865         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38866         unistr/u8-cmp.
38867         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38868         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38869         unistr/u16-cmp.
38870         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38871         unistr/u32-cmp.
38872
38873         * lib/uninorm.h: Mention u*_cmp2.
38874         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38875         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38876         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38877         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38878         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38879         unistr/u8-cmp.
38880         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38881         unistr/u16-cmp.
38882         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38883         unistr/u32-cmp.
38884
38885         New module 'unistr/u32-cmp2'.
38886         * lib/unistr/u32-cmp2.c: New file.
38887         * modules/unistr/u32-cmp2: New file.
38888
38889         New module 'unistr/u16-cmp2'.
38890         * lib/unistr/u16-cmp2.c: New file.
38891         * modules/unistr/u16-cmp2: New file.
38892
38893         New module 'unistr/u8-cmp2'.
38894         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38895         * lib/unistr/u8-cmp2.c: New file.
38896         * lib/unistr/u-cmp2.h: New file.
38897         * modules/unistr/u8-cmp2: New file.
38898
38899 2009-04-05  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/unictype.h (uc_property_is_valid): New macro.
38902         * tests/unictype/test-pr_byname.c (main): Use it.
38903
38904         * lib/unistr.h: Doc fixes.
38905         * lib/uniconv.h: Doc fixes.
38906         * lib/unictype.h: Doc fixes.
38907
38908 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38909
38910         Port coreutils 7.2 to Solaris 8.
38911
38912         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38913         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38914         for Solaris 8.  This is a bit of a hack, as it means it's the
38915         caller's responsibility to add -lnsl if needed, but most likely it
38916         won't be needed since only getaddrinfo uses this and getaddrinfo
38917         isn't needed on Solaris 8.
38918
38919         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38920         problem to Solaris 8 encountered with coreutils 7.2, which
38921         resulted in a message "fnmatch.c:292: warning: passing argument 4
38922         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38923         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38924
38925 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38926
38927         * m4/ld-version-script.m4: Add FIXME comment.
38928
38929 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38930
38931         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38932         SOVERSION variable.
38933
38934 2009-04-02  Bruno Haible  <bruno@clisp.org>
38935
38936         * Makefile (info, html, dvi, pdf): Combine the rules.
38937         Suggested by Jim Meyering.
38938
38939 2009-04-01  Bruno Haible  <bruno@clisp.org>
38940
38941         * Makefile (info, html, dvi, pdf): New targets.
38942         Reported by Reuben Thomas <rrt@sc3d.org>.
38943
38944 2009-04-01  Bruno Haible  <bruno@clisp.org>
38945
38946         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38947         can be put into PATH.
38948         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38949
38950 2009-04-01  Bruno Haible  <bruno@clisp.org>
38951
38952         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38953
38954 2009-04-01  Bruno Haible  <bruno@clisp.org>
38955
38956         Rename module 'visibility'.
38957         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38958         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38959         * doc/gnulib.texi: Update.
38960         * MODULES.html.sh (Misc): Update.
38961         * NEWS: Mention the change.
38962
38963 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38964
38965         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38966         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38967         Eric Blake <ebb9@byu.net> for review.
38968         * MODULES.html.sh: Add lib-msvc-compat.
38969         * doc/gnulib.texi: Link to new section.
38970         * m4/ld-output-def.m4: New file.
38971         * doc/ld-output-def.texi: New file.
38972
38973 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38974
38975         Rename ld-version-script to lib-symbol-versions.  Suggested by
38976         Bruno Haible <bruno@clisp.org>.
38977         * modules/ld-version-script: Renamed to lib-symbol-versions.
38978         * doc/ld-version-script.texi: Fix module name.
38979         * MODULES.html.sh: Add lib-symbol-versions.
38980
38981 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38982
38983         * modules/u64-tests: New file.
38984         * tests/test-u64.c: New file.
38985
38986 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38987
38988         * MODULES.html.sh: Mention u64.
38989         * modules/u64: New module.
38990         * modules/crypto/sha512: Depend on u64 module instead of providing
38991         u64.h.
38992
38993 2009-03-27  Eric Blake  <ebb9@byu.net>
38994
38995         test-strerror: make debugging EAI_SYSTEM easier
38996         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38997         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38998         failure was EAI_SYSTEM.
38999
39000 2009-03-25  Bruno Haible  <bruno@clisp.org>
39001
39002         Fix a problem with --enable-relocatable on Solaris 7.
39003         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39004         since 2008-02-24.
39005
39006 2009-03-25  Eric Blake  <ebb9@byu.net>
39007
39008         test-sockets: avoid gcc warning
39009         * tests/test-sockets.c (main): Silence compiler warning.
39010
39011 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39012
39013         New modules nproc, pthread, contributed by Glen Lenker.
39014
39015         * MODULES.html.sh: Add pthread, nproc.
39016         * lib/nproc.c: New file.
39017         * lib/nproc.h: New file.
39018         * lib/pthread.in.h: New file.
39019         * m4/pthread.m4: New file.
39020         * modules/nproc: New file.
39021         * modules/pthread: New file.
39022
39023 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39024
39025         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39026         New variable.
39027
39028 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39029
39030         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39031         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39032         * tests/test-filevercmp.c: Add tests for backup suffixes.
39033
39034 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39035
39036         * modules/stdlib (Depends-on): Add stdint, needed when defining
39037         struct random_data on, for example, HP-UX 10.20.  Reported by
39038         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39039
39040 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39041
39042         * lib/readline.c (readline): Call fflush on stdout after printing
39043         prompt.
39044
39045 2009-03-20  Bruno Haible  <bruno@clisp.org>
39046
39047         Remove dependency from 'close' module to -lws2_32 on native Windows.
39048         * lib/close-hook.h: New file.
39049         * lib/close-hook.c: New file.
39050         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39051         w32sock.h.
39052         (_gl_close_fd_maybe_socket): Remove function.
39053         (rpl_close): Invoke execute_all_close_hooks instead of
39054         _gl_close_fd_maybe_socket.
39055         * lib/sockets.c: Include close-hook.h, w32sock.h.
39056         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39057         (close_sockets_hook): New variable.
39058         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39059         (gl_sockets_cleanup): Unregister it.
39060         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39061         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39062         * modules/close-hook: New file.
39063         * modules/close (Files): Remove lib/w32sock.h.
39064         (Depends-on): Add close-hook.
39065         (Link): Remove section.
39066         * modules/sockets (Files): Add lib/w32sock.h.
39067         (Depends-on): Add close-hook.
39068         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39069         invocation.
39070         * NEWS: Mention that LIB_CLOSE is gone.
39071
39072 2009-03-23  Eric Blake  <ebb9@byu.net>
39073
39074         signal-tests: test previous patch
39075         * tests/test-signal.c: New file.
39076         * modules/signal-tests: Likewise.
39077
39078         signal.h: always support 'volatile sig_atomic_t'
39079         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39080         (gl_SIGNAL_H_DEFAULTS): Add a default.
39081         * modules/signal (Makefile.am): Substitute if needed.
39082         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39083         users can blindly add volatile.
39084         * doc/posix-headers/signal.texi (signal.h): Document it.
39085         Reported by Matthew Woehlke.
39086
39087 2009-03-23  Jim Meyering  <meyering@redhat.com>
39088
39089         pathmax: PATH_MAX: use pathconf only when available
39090         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39091         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39092         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39093         This avoids a link failure in a PSP cross-compilation environment
39094         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39095
39096         * lib/vasnprintf.c (divide): Fix typo in comment.
39097
39098 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39099
39100         * gnulib-tool (func_filter_filelist): Fix comment.
39101
39102 2009-03-20  Bruno Haible  <bruno@clisp.org>
39103
39104         Make sockets.h self-contained.
39105         * lib/sockets.c: Include sockets.h first.
39106         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39107
39108 2009-03-19  Eric Blake  <ebb9@byu.net>
39109
39110         doc: mention more functions added in cygwin 1.7.0
39111         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39112         addition.
39113         * doc/posix-functions/log2f.texi: Likewise.
39114
39115 2009-03-19  Jim Meyering  <meyering@redhat.com>
39116
39117         fsusage: avoid syntax error due to statement-before-declaration
39118         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39119         after all declarations.  Reported by Matthew Woehlke in
39120         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39121
39122 2009-03-18  Eric Blake  <ebb9@byu.net>
39123
39124         build-aux/compile: sync from automake
39125         * build-aux/compile: New file, from automake.
39126         * config/srclist.txt: Mention build-aux/compile.
39127
39128 2009-03-17  Bruno Haible  <bruno@clisp.org>
39129
39130         * lib/git-merge-changelog.c: Fix typo in comment.
39131         Reported by Reuben Thomas <rrt@sc3d.org>.
39132
39133 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39134
39135         * m4/regex.m4: update and improve help for
39136         --without-included-regex.
39137
39138 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39139
39140         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39141         failure on missing include files.
39142
39143 2009-03-17  Eric Blake  <ebb9@byu.net>
39144
39145         doc: mention more functions added in cygwin 1.7.0
39146         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39147         addition.
39148         * doc/posix-functions/fwscanf.texi: Likewise.
39149         * doc/posix-functions/swprintf.texi: Likewise.
39150         * doc/posix-functions/swscanf.texi: Likewise.
39151         * doc/posix-functions/vfwprintf.texi: Likewise.
39152         * doc/posix-functions/vfwscanf.texi: Likewise.
39153         * doc/posix-functions/vswprintf.texi: Likewise.
39154         * doc/posix-functions/vswscanf.texi: Likewise.
39155         * doc/posix-functions/vwprintf.texi: Likewise.
39156         * doc/posix-functions/vwscanf.texi: Likewise.
39157         * doc/posix-functions/wcscasecmp.texi: Likewise.
39158         * doc/posix-functions/wcsdup.texi: Likewise.
39159         * doc/posix-functions/wcsftime.texi: Likewise.
39160         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39161         * doc/posix-functions/wprintf.texi: Likewise.
39162         * doc/posix-functions/wscanf.texi: Likewise.
39163         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39164
39165 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39166
39167         maint.mk: really add $(AM_MAKEFLAGS)
39168         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39169         was inadvertently omitted in the last commit.
39170         Spotted by Bruno Haible.
39171
39172         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39173         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39174         $(AM_MAKEFLAGS)' rather than plain `make'.
39175
39176         gnulib-tool: execute $MAKE not make
39177         * gnulib-tool: Default $MAKE to 'make'.
39178         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39179         than make.  Initialize $MAKE in the do-autobuild script.
39180
39181         gnulib-tool: use $MAKE not make in generated files
39182         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39183         make, in generated files.  Initialize $MAKE in the do-autobuild
39184         script.
39185
39186         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39187
39188         GNUmakefile: disable parallelism only for multiple, recursive targets
39189         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39190         additions in the Makefile.
39191         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39192         by Automake.
39193         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39194         are listed on the command line and at least one of them is
39195         listed in $(ALL_RECURSIVE_TARGETS).
39196
39197 2009-03-14  Bruno Haible  <bruno@clisp.org>
39198
39199         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39200         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39201         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39202         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39203         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39204         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39205         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39206         unistr/u8-uctomb.
39207         * modules/unistr/u8-strchr (Depends-on): Likewise.
39208         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39209         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39210         unistr/u16-uctomb.
39211         * modules/unistr/u16-strchr (Depends-on): Likewise.
39212         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39213
39214 2009-03-12  Bruno Haible  <bruno@clisp.org>
39215
39216         Work around select() bug on Interix 3.5.
39217         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39218         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39219         * m4/select.m4: New file.
39220         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39221         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39222         * modules/select (Files): Add m4/select.m4.
39223         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39224         * modules/nanosleep (Depends-on): Add select.
39225         * modules/poll (Depends-on): Likewise.
39226         * doc/posix-functions/select.texi: Mention the Interix bug.
39227         Reported by Markus Duft <mduft@gentoo.org>.
39228
39229         * lib/select.c: Renamed from lib/winsock-select.c.
39230         * modules/select (Files): Add lib/select.c, remove
39231         lib/winsock-select.c.
39232         (configure.ac): Update.
39233
39234 2009-03-12  Jim Meyering  <meyering@redhat.com>
39235
39236         avoid gcc warnings about unused macro definitions
39237         * lib/readtokens.c (STREQ): Remove unused definition.
39238         * lib/xmalloc.c (SIZE_MAX): Likewise.
39239         * lib/openat-die.c (N_): Likewise.
39240         * lib/mountlist.c (SIZE_MAX): Remove definition.
39241         Instead, include <stdint.h>.
39242         * lib/readutmp.c: Likewise.
39243         * modules/readutmp (Depends-on): Add stdint.
39244         * modules/mountlist (Depends-on): Add stdint.
39245         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39246
39247 2009-03-10  Bruno Haible  <bruno@clisp.org>
39248
39249         Tests for module 'mbmemcasecoll'.
39250         * modules/mbmemcasecoll-tests: New file.
39251         * tests/test-mbmemcasecoll1.sh: New file.
39252         * tests/test-mbmemcasecoll2.sh: New file.
39253         * tests/test-mbmemcasecoll3.sh: New file.
39254         * tests/test-mbmemcasecoll.c: New file.
39255
39256         New module 'mbmemcasecoll'.
39257         * lib/mbmemcasecoll.h: New file.
39258         * lib/mbmemcasecoll.c: New file.
39259         * modules/mbmemcasecoll: New file.
39260
39261         * tests/test-mbmemcasecmp.h: New file, extracted from
39262         tests/test-mbmemcasecmp.c.
39263         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39264         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39265         (main): Update.
39266         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39267
39268 2009-03-09  Bruno Haible  <bruno@clisp.org>
39269
39270         Tests for module 'mbmemcasecmp'.
39271         * modules/mbmemcasecmp-tests: New file.
39272         * tests/test-mbmemcasecmp1.sh: New file.
39273         * tests/test-mbmemcasecmp2.sh: New file.
39274         * tests/test-mbmemcasecmp3.sh: New file.
39275         * tests/test-mbmemcasecmp.c: New file.
39276
39277         New module 'mbmemcasecmp'.
39278         * lib/mbmemcasecmp.h: New file.
39279         * lib/mbmemcasecmp.c: New file.
39280         * modules/mbmemcasecmp: New file.
39281
39282 2009-03-09  Bruno Haible  <bruno@clisp.org>
39283
39284         Tests for module 'unicase/ulc-casecoll'.
39285         * modules/unicase/ulc-casecoll-tests: New file.
39286         * tests/unicase/test-ulc-casecoll1.sh: New file.
39287         * tests/unicase/test-ulc-casecoll2.sh: New file.
39288         * tests/unicase/test-ulc-casecoll.c: New file.
39289
39290         New module 'unicase/ulc-casecoll'.
39291         * lib/unicase.h (ulc_casecoll): New declaration.
39292         * lib/unicase/ulc-casecoll.c: New file.
39293         * modules/unicase/ulc-casecoll: New file.
39294
39295         New module 'unicase/ulc-casexfrm'.
39296         * lib/unicase.h (ulc_casexfrm): New declaration.
39297         * lib/unicase/ulc-casexfrm.c: New file.
39298         * modules/unicase/ulc-casexfrm: New file.
39299
39300 2009-03-09  Bruno Haible  <bruno@clisp.org>
39301
39302         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39303         invocations.
39304
39305         * m4/mbscasecmp.m4: Remove file.
39306         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39307         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39308
39309         * m4/mbscasestr.m4: Remove file.
39310         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39311         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39312
39313         * m4/mbschr.m4: Remove file.
39314         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39315         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39316
39317         * m4/mbscspn.m4: Remove file.
39318         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39319         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39320
39321         * m4/mbslen.m4: Remove file.
39322         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39323         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39324
39325         * m4/mbsncasecmp.m4: Remove file.
39326         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39327         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39328
39329         * m4/mbsnlen.m4: Remove file.
39330         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39331         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39332
39333         * m4/mbspbrk.m4: Remove file.
39334         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39335         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39336
39337         * m4/mbspcasecmp.m4: Remove file.
39338         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39339         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39340
39341         * m4/mbsrchr.m4: Remove file.
39342         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39343         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39344
39345         * m4/mbssep.m4: Remove file.
39346         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39347         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39348
39349         * m4/mbsspn.m4: Remove file.
39350         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39351         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39352
39353         * m4/mbsstr.m4: Remove file.
39354         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39355         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39356
39357         * m4/mbstok_r.m4: Remove file.
39358         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39359         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39360
39361         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39362
39363         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39364         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39365
39366         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39367
39368 2009-03-08  Bruno Haible  <bruno@clisp.org>
39369
39370         Tests for module 'unicase/ulc-casecmp'.
39371         * modules/unicase/ulc-casecmp-tests: New file.
39372         * tests/unicase/test-ulc-casecmp1.sh: New file.
39373         * tests/unicase/test-ulc-casecmp2.sh: New file.
39374         * tests/unicase/test-ulc-casecmp.c: New file.
39375
39376         New module 'unicase/ulc-casecmp'.
39377         * lib/unicase.h (ulc_casecmp): New declaration.
39378         * lib/unicase/ulc-casecmp.c: New file.
39379         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39380         'const SRC_UNIT *'.
39381         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39382         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39383         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39384         * modules/unicase/ulc-casecmp: New file.
39385
39386         Tests for module 'unicase/u32-is-cased'.
39387         * modules/unicase/u32-is-cased-tests: New file.
39388         * tests/unicase/test-u32-is-cased.c: New file.
39389
39390         Tests for module 'unicase/u16-is-cased'.
39391         * modules/unicase/u16-is-cased-tests: New file.
39392         * tests/unicase/test-u16-is-cased.c: New file.
39393
39394         Tests for module 'unicase/u8-is-cased'.
39395         * modules/unicase/u8-is-cased-tests: New file.
39396         * tests/unicase/test-u8-is-cased.c: New file.
39397         * tests/unicase/test-is-cased.h: New file.
39398
39399         New module 'unicase/u32-is-cased'.
39400         * lib/unicase/u32-is-cased.c: New file.
39401         * modules/unicase/u32-is-cased: New file.
39402
39403         New module 'unicase/u16-is-cased'.
39404         * lib/unicase/u16-is-cased.c: New file.
39405         * modules/unicase/u16-is-cased: New file.
39406
39407         New module 'unicase/u8-is-cased'.
39408         * lib/unicase/u8-is-cased.c: New file.
39409         * lib/unicase/u-is-cased.h: New file.
39410         * modules/unicase/u8-is-cased: New file.
39411
39412         Tests for module 'unicase/u32-is-casefolded'.
39413         * modules/unicase/u32-is-casefolded-tests: New file.
39414         * tests/unicase/test-u32-is-casefolded.c: New file.
39415
39416         Tests for module 'unicase/u16-is-casefolded'.
39417         * modules/unicase/u16-is-casefolded-tests: New file.
39418         * tests/unicase/test-u16-is-casefolded.c: New file.
39419
39420         Tests for module 'unicase/u8-is-casefolded'.
39421         * modules/unicase/u8-is-casefolded-tests: New file.
39422         * tests/unicase/test-u8-is-casefolded.c: New file.
39423         * tests/unicase/test-is-casefolded.h: New file.
39424
39425         New module 'unicase/u32-is-casefolded'.
39426         * lib/unicase/u32-is-casefolded.c: New file.
39427         * modules/unicase/u32-is-casefolded: New file.
39428
39429         New module 'unicase/u16-is-casefolded'.
39430         * lib/unicase/u16-is-casefolded.c: New file.
39431         * modules/unicase/u16-is-casefolded: New file.
39432
39433         New module 'unicase/u8-is-casefolded'.
39434         * lib/unicase/u8-is-casefolded.c: New file.
39435         * modules/unicase/u8-is-casefolded: New file.
39436
39437         Tests for module 'unicase/u32-is-titlecase'.
39438         * modules/unicase/u32-is-titlecase-tests: New file.
39439         * tests/unicase/test-u32-is-titlecase.c: New file.
39440
39441         Tests for module 'unicase/u16-is-titlecase'.
39442         * modules/unicase/u16-is-titlecase-tests: New file.
39443         * tests/unicase/test-u16-is-titlecase.c: New file.
39444
39445         Tests for module 'unicase/u8-is-titlecase'.
39446         * modules/unicase/u8-is-titlecase-tests: New file.
39447         * tests/unicase/test-u8-is-titlecase.c: New file.
39448         * tests/unicase/test-is-titlecase.h: New file.
39449
39450         New module 'unicase/u32-is-titlecase'.
39451         * lib/unicase/u32-is-titlecase.c: New file.
39452         * modules/unicase/u32-is-titlecase: New file.
39453
39454         New module 'unicase/u16-is-titlecase'.
39455         * lib/unicase/u16-is-titlecase.c: New file.
39456         * modules/unicase/u16-is-titlecase: New file.
39457
39458         New module 'unicase/u8-is-titlecase'.
39459         * lib/unicase/u8-is-titlecase.c: New file.
39460         * modules/unicase/u8-is-titlecase: New file.
39461
39462         Tests for module 'unicase/u32-is-lowercase'.
39463         * modules/unicase/u32-is-lowercase-tests: New file.
39464         * tests/unicase/test-u32-is-lowercase.c: New file.
39465
39466         Tests for module 'unicase/u16-is-lowercase'.
39467         * modules/unicase/u16-is-lowercase-tests: New file.
39468         * tests/unicase/test-u16-is-lowercase.c: New file.
39469
39470         Tests for module 'unicase/u8-is-lowercase'.
39471         * modules/unicase/u8-is-lowercase-tests: New file.
39472         * tests/unicase/test-u8-is-lowercase.c: New file.
39473         * tests/unicase/test-is-lowercase.h: New file.
39474
39475         New module 'unicase/u32-is-lowercase'.
39476         * lib/unicase/u32-is-lowercase.c: New file.
39477         * modules/unicase/u32-is-lowercase: New file.
39478
39479         New module 'unicase/u16-is-lowercase'.
39480         * lib/unicase/u16-is-lowercase.c: New file.
39481         * modules/unicase/u16-is-lowercase: New file.
39482
39483         New module 'unicase/u8-is-lowercase'.
39484         * lib/unicase/u8-is-lowercase.c: New file.
39485         * modules/unicase/u8-is-lowercase: New file.
39486
39487         Tests for module 'unicase/u32-is-uppercase'.
39488         * modules/unicase/u32-is-uppercase-tests: New file.
39489         * tests/unicase/test-u32-is-uppercase.c: New file.
39490
39491         Tests for module 'unicase/u16-is-uppercase'.
39492         * modules/unicase/u16-is-uppercase-tests: New file.
39493         * tests/unicase/test-u16-is-uppercase.c: New file.
39494
39495         Tests for module 'unicase/u8-is-uppercase'.
39496         * modules/unicase/u8-is-uppercase-tests: New file.
39497         * tests/unicase/test-u8-is-uppercase.c: New file.
39498         * tests/unicase/test-is-uppercase.h: New file.
39499
39500         New module 'unicase/u32-is-uppercase'.
39501         * lib/unicase/u32-is-uppercase.c: New file.
39502         * modules/unicase/u32-is-uppercase: New file.
39503
39504         New module 'unicase/u16-is-uppercase'.
39505         * lib/unicase/u16-is-uppercase.c: New file.
39506         * modules/unicase/u16-is-uppercase: New file.
39507
39508         New module 'unicase/u8-is-uppercase'.
39509         * lib/unicase/u8-is-uppercase.c: New file.
39510         * modules/unicase/u8-is-uppercase: New file.
39511
39512         New module 'unicase/u32-is-invariant'.
39513         * lib/unicase/u32-is-invariant.c: New file.
39514         * modules/unicase/u32-is-invariant: New file.
39515
39516         New module 'unicase/u16-is-invariant'.
39517         * lib/unicase/u16-is-invariant.c: New file.
39518         * modules/unicase/u16-is-invariant: New file.
39519
39520         New module 'unicase/u8-is-invariant'.
39521         * lib/unicase/u8-is-invariant.c: New file.
39522         * lib/unicase/invariant.h: New file.
39523         * lib/unicase/u-is-invariant.h: New file.
39524         * modules/unicase/u8-is-invariant: New file.
39525
39526         Tests for module 'unicase/u32-casecoll'.
39527         * modules/unicase/u32-casecoll-tests: New file.
39528         * tests/unicase/test-u32-casecoll.c: New file.
39529
39530         Tests for module 'unicase/u16-casecoll'.
39531         * modules/unicase/u16-casecoll-tests: New file.
39532         * tests/unicase/test-u16-casecoll.c: New file.
39533
39534         Tests for module 'unicase/u8-casecoll'.
39535         * modules/unicase/u8-casecoll-tests: New file.
39536         * tests/unicase/test-u8-casecoll.c: New file.
39537
39538         New module 'unicase/u32-casecoll'.
39539         * lib/unicase/u32-casecoll.c: New file.
39540         * modules/unicase/u32-casecoll: New file.
39541
39542         New module 'unicase/u16-casecoll'.
39543         * lib/unicase/u16-casecoll.c: New file.
39544         * modules/unicase/u16-casecoll: New file.
39545
39546         New module 'unicase/u8-casecoll'.
39547         * lib/unicase/u8-casecoll.c: New file.
39548         * lib/unicase/u-casecoll.h: New file.
39549         * modules/unicase/u8-casecoll: New file.
39550
39551         New module 'unicase/u32-casexfrm'.
39552         * lib/unicase/u32-casexfrm.c: New file.
39553         * modules/unicase/u32-casexfrm: New file.
39554
39555         New module 'unicase/u16-casexfrm'.
39556         * lib/unicase/u16-casexfrm.c: New file.
39557         * modules/unicase/u16-casexfrm: New file.
39558
39559         New module 'unicase/u8-casexfrm'.
39560         * lib/unicase/u8-casexfrm.c: New file.
39561         * lib/unicase/u-casexfrm.h: New file.
39562         * modules/unicase/u8-casexfrm: New file.
39563
39564         Tests for module 'unicase/u32-casecmp'.
39565         * modules/unicase/u32-casecmp-tests: New file.
39566         * tests/unicase/test-u32-casecmp.c: New file.
39567
39568         Tests for module 'unicase/u16-casecmp'.
39569         * modules/unicase/u16-casecmp-tests: New file.
39570         * tests/unicase/test-u16-casecmp.c: New file.
39571
39572         Tests for module 'unicase/u8-casecmp'.
39573         * modules/unicase/u8-casecmp-tests: New file.
39574         * tests/unicase/test-u8-casecmp.c: New file.
39575         * tests/unicase/test-casecmp.h: New file.
39576
39577         New module 'unicase/u32-casecmp'.
39578         * lib/unicase/u32-casecmp.c: New file.
39579         * modules/unicase/u32-casecmp: New file.
39580
39581         New module 'unicase/u16-casecmp'.
39582         * lib/unicase/u16-casecmp.c: New file.
39583         * modules/unicase/u16-casecmp: New file.
39584
39585         New module 'unicase/u8-casecmp'.
39586         * lib/unicase/u8-casecmp.c: New file.
39587         * lib/unicase/u-casecmp.h: New file.
39588         * modules/unicase/u8-casecmp: New file.
39589
39590         Tests for module 'unicase/u32-casefold'.
39591         * modules/unicase/u32-casefold-tests: New file.
39592         * tests/unicase/test-u32-casefold.c: New file.
39593
39594         Tests for module 'unicase/u16-casefold'.
39595         * modules/unicase/u16-casefold-tests: New file.
39596         * tests/unicase/test-u16-casefold.c: New file.
39597
39598         Tests for module 'unicase/u8-casefold'.
39599         * modules/unicase/u8-casefold-tests: New file.
39600         * tests/unicase/test-u8-casefold.c: New file.
39601
39602         New module 'unicase/u32-casefold'.
39603         * lib/unicase/u32-casefold.c: New file.
39604         * modules/unicase/u32-casefold: New file.
39605
39606         New module 'unicase/u16-casefold'.
39607         * lib/unicase/u16-casefold.c: New file.
39608         * modules/unicase/u16-casefold: New file.
39609
39610         New module 'unicase/u8-casefold'.
39611         * lib/unicase/u8-casefold.c: New file.
39612         * lib/unicase/u-casefold.h: New file.
39613         * modules/unicase/u8-casefold: New file.
39614
39615         New module 'unicase/tocasefold'.
39616         * lib/unicase/casefold.h: New file.
39617         * lib/unicase/tocasefold.c: New file.
39618         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39619         * modules/unicase/tocasefold: New file.
39620
39621         Tests for module 'unicase/u32-totitle'.
39622         * modules/unicase/u32-totitle-tests: New file.
39623         * tests/unicase/test-u32-totitle.c: New file.
39624
39625         Tests for module 'unicase/u16-totitle'.
39626         * modules/unicase/u16-totitle-tests: New file.
39627         * tests/unicase/test-u16-totitle.c: New file.
39628
39629         Tests for module 'unicase/u8-totitle'.
39630         * modules/unicase/u8-totitle-tests: New file.
39631         * tests/unicase/test-u8-totitle.c: New file.
39632
39633         New module 'unicase/u32-totitle'.
39634         * lib/unicase/u32-totitle.c: New file.
39635         * modules/unicase/u32-totitle: New file.
39636
39637         New module 'unicase/u16-totitle'.
39638         * lib/unicase/u16-totitle.c: New file.
39639         * modules/unicase/u16-totitle: New file.
39640
39641         New module 'unicase/u8-totitle'.
39642         * lib/unicase/u8-totitle.c: New file.
39643         * lib/unicase/u-totitle.h: New file.
39644         * modules/unicase/u8-totitle: New file.
39645
39646         Tests for module 'unicase/u32-tolower'.
39647         * modules/unicase/u32-tolower-tests: New file.
39648         * tests/unicase/test-u32-tolower.c: New file.
39649
39650         Tests for module 'unicase/u16-tolower'.
39651         * modules/unicase/u16-tolower-tests: New file.
39652         * tests/unicase/test-u16-tolower.c: New file.
39653
39654         Tests for module 'unicase/u8-tolower'.
39655         * modules/unicase/u8-tolower-tests: New file.
39656         * tests/unicase/test-u8-tolower.c: New file.
39657
39658         New module 'unicase/u32-tolower'.
39659         * lib/unicase/u32-tolower.c: New file.
39660         * modules/unicase/u32-tolower: New file.
39661
39662         New module 'unicase/u16-tolower'.
39663         * lib/unicase/u16-tolower.c: New file.
39664         * modules/unicase/u16-tolower: New file.
39665
39666         New module 'unicase/u8-tolower'.
39667         * lib/unicase/u8-tolower.c: New file.
39668         * modules/unicase/u8-tolower: New file.
39669
39670         Tests for module 'unicase/u32-toupper'.
39671         * modules/unicase/u32-toupper-tests: New file.
39672         * tests/unicase/test-u32-toupper.c: New file.
39673
39674         Tests for module 'unicase/u16-toupper'.
39675         * modules/unicase/u16-toupper-tests: New file.
39676         * tests/unicase/test-u16-toupper.c: New file.
39677
39678         Tests for module 'unicase/u8-toupper'.
39679         * modules/unicase/u8-toupper-tests: New file.
39680         * tests/unicase/test-u8-toupper.c: New file.
39681
39682         New module 'unicase/u32-toupper'.
39683         * lib/unicase/u32-toupper.c: New file.
39684         * modules/unicase/u32-toupper: New file.
39685
39686         New module 'unicase/u16-toupper'.
39687         * lib/unicase/u16-toupper.c: New file.
39688         * modules/unicase/u16-toupper: New file.
39689
39690         New module 'unicase/u8-toupper'.
39691         * lib/unicase/u8-toupper.c: New file.
39692         * modules/unicase/u8-toupper: New file.
39693
39694         New module 'unicase/u32-casemap'.
39695         * lib/unicase/u32-casemap.c: New file.
39696         * modules/unicase/u32-casemap: New file.
39697
39698         New module 'unicase/u16-casemap'.
39699         * lib/unicase/u16-casemap.c: New file.
39700         * modules/unicase/u16-casemap: New file.
39701
39702         New module 'unicase/u8-casemap'.
39703         * lib/unicase/unicasemap.h: New file.
39704         * lib/unicase/u8-casemap.c: New file.
39705         * lib/unicase/u-casemap.h: New file.
39706         * modules/unicase/u8-casemap: New file.
39707
39708         New module 'unicase/special-casing'.
39709         * lib/unicase/special-casing.h: New file.
39710         * lib/unicase/special-casing.c: New file.
39711         * lib/unicase/special-casing-table.gperf: New file, generated by
39712         gen-uni-tables.c.
39713         * modules/unicase/special-casing: New file.
39714
39715         Tests for module 'unicase/locale-language'.
39716         * modules/unicase/locale-language-tests: New file.
39717         * tests/unicase/test-locale-language.sh: New file.
39718         * tests/unicase/test-locale-language.c: New file.
39719
39720         New module 'unicase/locale-language'.
39721         * lib/unicase/locale-language.c: New file.
39722         * lib/unicase/locale-languages.gperf: New file.
39723         * modules/unicase/locale-language: New file.
39724
39725         Generate more tables for case conversion and case folding.
39726         * lib/gen-uni-tables.c (SCC_*): New enum items.
39727         (struct special_casing_rule): New type.
39728         (casing_rules, num_casing_rules, allocated_casing_rules): New
39729         variables.
39730         (add_casing_rule, fill_casing_rules): New functions.
39731         (struct casefold_rule): New type.
39732         (casefolding_rules, num_casefolding_rules,
39733         allocated_casefolding_rules): New variables.
39734         (fill_casefolding_rules): New function.
39735         (unicode_casefold): New variable.
39736         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39737         sort_casing_rules, output_casing_rules): New functions.
39738         (main): Accept to more arguments: SpecialCasing.txt and
39739         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39740         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39741         Output mapping for casefolding.
39742
39743         * lib/unicase.h: Include stdbool.h, uninorm.h.
39744         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39745         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39746         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39747         arguments.
39748         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39749         resultp arguments.
39750         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39751         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39752         resultp arguments.
39753         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39754         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39755         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39756         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39757         declarations.
39758         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39759
39760 2009-03-08  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39763         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39764         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39765         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39766
39767 2009-03-07  Bruno Haible  <bruno@clisp.org>
39768
39769         Adjust u*_normcmp, u*_normcoll API.
39770         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39771         u16_normcoll, u32_normcoll): Change failure conventions.
39772         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39773         errno and return -1.
39774         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39775
39776 2009-03-07  Bruno Haible  <bruno@clisp.org>
39777
39778         Tests for module 'uninorm/u32-normcoll'.
39779         * modules/uninorm/u32-normcoll-tests: New file.
39780         * tests/uninorm/test-u32-normcoll.c: New file.
39781
39782         Tests for module 'uninorm/u16-normcoll'.
39783         * modules/uninorm/u16-normcoll-tests: New file.
39784         * tests/uninorm/test-u16-normcoll.c: New file.
39785
39786         Tests for module 'uninorm/u8-normcoll'.
39787         * modules/uninorm/u8-normcoll-tests: New file.
39788         * tests/uninorm/test-u8-normcoll.c: New file.
39789
39790 2009-03-07  Bruno Haible  <bruno@clisp.org>
39791
39792         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39793         tests/uninorm/test-u32-normcmp.c.
39794         * tests/uninorm/test-u32-normcmp.c: Include it.
39795         (test_nonascii): New function, extracted from main. Add some more
39796         tests.
39797         (main): Invoke test_ascii and test_nonascii.
39798         * modules/uninorm/u32-normcmp-tests (Files): Add
39799         tests/uninorm/test-u32-normcmp.h.
39800         (Depends-on): Remove uninorm/u32-normcmp.
39801
39802         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39803         tests/uninorm/test-u16-normcmp.c.
39804         * tests/uninorm/test-u16-normcmp.c: Include it.
39805         (test_nonascii): New function, extracted from main. Add some more
39806         tests.
39807         (main): Invoke test_ascii and test_nonascii.
39808         * modules/uninorm/u16-normcmp-tests (Files): Add
39809         tests/uninorm/test-u16-normcmp.h.
39810         (Depends-on): Remove uninorm/u16-normcmp.
39811
39812         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39813         tests/uninorm/test-u8-normcmp.c.
39814         * tests/uninorm/test-u8-normcmp.c: Include it.
39815         (test_nonascii): New function, extracted from main. Add some more
39816         tests.
39817         (main): Invoke test_ascii and test_nonascii.
39818         * modules/uninorm/u8-normcmp-tests (Files): Add
39819         tests/uninorm/test-u8-normcmp.h.
39820         (Depends-on): Remove uninorm/u8-normcmp.
39821
39822 2009-03-07  Bruno Haible  <bruno@clisp.org>
39823
39824         New module 'uninorm/u32-normcoll'.
39825         * lib/uninorm/u32-normcoll.c: New file.
39826         * modules/uninorm/u32-normcoll: New file.
39827
39828         New module 'uninorm/u16-normcoll'.
39829         * lib/uninorm/u16-normcoll.c: New file.
39830         * modules/uninorm/u16-normcoll: New file.
39831
39832         New module 'uninorm/u8-normcoll'.
39833         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39834         declarations.
39835         * lib/uninorm/u8-normcoll.c: New file.
39836         * lib/uninorm/u-normcoll.h: New file.
39837         * modules/uninorm/u8-normcoll: New file.
39838
39839         New module 'uninorm/u32-normxfrm'.
39840         * lib/uninorm/u32-normxfrm.c: New file.
39841         * modules/uninorm/u32-normxfrm: New file.
39842
39843         New module 'uninorm/u16-normxfrm'.
39844         * lib/uninorm/u16-normxfrm.c: New file.
39845         * modules/uninorm/u16-normxfrm: New file.
39846
39847         New module 'uninorm/u8-normxfrm'.
39848         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39849         declarations.
39850         * lib/uninorm/u8-normxfrm.c: New file.
39851         * lib/uninorm/u-normxfrm.h: New file.
39852         * modules/uninorm/u8-normxfrm: New file.
39853
39854 2009-03-07  Bruno Haible  <bruno@clisp.org>
39855
39856         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39857         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39858         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39859
39860 2009-03-07  Bruno Haible  <bruno@clisp.org>
39861
39862         New module 'memxfrm'.
39863         * lib/memxfrm.h: New file.
39864         * lib/memxfrm.c: New file.
39865         * modules/memxfrm: New file.
39866
39867 2009-03-07  Bruno Haible  <bruno@clisp.org>
39868
39869         New module 'memcmp2'.
39870         * lib/memcmp2.h: New file.
39871         * lib/memcmp2.c: New file.
39872         * modules/memcmp2: New file.
39873
39874 2009-03-07  Bruno Haible  <bruno@clisp.org>
39875
39876         Tests for module 'uninorm/decomposing-form'.
39877         * modules/uninorm/decomposing-form-tests: New file.
39878         * tests/uninorm/test-decomposing-form.c: New file.
39879
39880         New module 'uninorm/decomposing-form'.
39881         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39882         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39883         Add 'decomposing_variant' field.
39884         * lib/uninorm/decomposing-form.c: New file.
39885         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39886         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39887         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39888         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39889         * modules/uninorm/decomposing-form: New file.
39890         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39891         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39892
39893 2009-03-07  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39896         strings.
39897
39898 2009-03-06  Bruno Haible  <bruno@clisp.org>
39899
39900         Tests for module 'uninorm/u32-normcmp'.
39901         * tests/uninorm/test-u32-normcmp.c: New file.
39902         * modules/uninorm/u32-normcmp-tests: New file.
39903
39904         Tests for module 'uninorm/u16-normcmp'.
39905         * tests/uninorm/test-u16-normcmp.c: New file.
39906         * modules/uninorm/u16-normcmp-tests: New file.
39907
39908         Tests for module 'uninorm/u8-normcmp'.
39909         * tests/uninorm/test-u8-normcmp.c: New file.
39910         * modules/uninorm/u8-normcmp-tests: New file.
39911
39912         New module 'uninorm/u32-normcmp'.
39913         * lib/uninorm/u32-normcmp.c: New file.
39914         * modules/uninorm/u32-normcmp: New file.
39915
39916         New module 'uninorm/u16-normcmp'.
39917         * lib/uninorm/u16-normcmp.c: New file.
39918         * modules/uninorm/u16-normcmp: New file.
39919
39920         New module 'uninorm/u8-normcmp'.
39921         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39922         declarations.
39923         * lib/uninorm/u8-normcmp.c: New file.
39924         * lib/uninorm/u-normcmp.h: New file.
39925         * modules/uninorm/u8-normcmp: New file.
39926
39927 2009-03-06  Bruno Haible  <bruno@clisp.org>
39928
39929         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39930         Reported by Eric Blake.
39931
39932 2009-03-06  Eric Blake  <ebb9@byu.net>
39933             Bruno Haible  <bruno@clisp.org>
39934
39935         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39936         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39937         condition.
39938         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39939         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39940         condition.
39941         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39942
39943 2009-03-06  Eric Blake  <ebb9@byu.net>
39944
39945         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39946         to avoid compiler warnings.
39947         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39948
39949 2009-03-05  Bruno Haible  <bruno@clisp.org>
39950
39951         * tests/test-ftell.c (main): Disable test beyond end of file on
39952         FreeMiNT.
39953         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39954
39955 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39956
39957         * lib/filevercmp.c: Move hidden files up in ordering.
39958         * tests/test-filevercmp.c: Add tests for hidden files.
39959
39960 2009-03-04  Bruno Haible  <bruno@clisp.org>
39961
39962         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39963         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39964         AM_CFLAGS.
39965         Reported by Simon Josefsson.
39966
39967 2009-03-03  Bruno Haible  <bruno@clisp.org>
39968
39969         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39970         Reported by Simon Josefsson.
39971
39972         * doc/ld-version-script.texi: Update node reference.
39973
39974 2009-03-03  Bruno Haible  <bruno@clisp.org>
39975
39976         * modules/visibility (License): Change to 'unlimited'.
39977         Suggested by Simon Josefsson.
39978
39979 2009-03-03  Jim Meyering  <meyering@redhat.com>
39980
39981         unlinkdir: cannot_unlink_dir may modify process state
39982         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39983         it's neither thread-safe nor appropriate for use in a library.
39984
39985 2009-03-03  Eric Blake  <ebb9@byu.net>
39986
39987         test-closein: silence test under Darwin
39988         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39989         care if it dies from EPIPE or EBADF.
39990
39991 2009-03-03  Bruno Haible  <bruno@clisp.org>
39992
39993         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39994         earlier.
39995         * doc/visibility.texi: Fix @node and @section.
39996
39997 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39998
39999         * doc/gnulib.texi: Link to sections for ld version script and
40000         visibility.
40001         * doc/visibility.texi: Add @node and @section.
40002         * modules/ld-version-script: New module.
40003         * m4/ld-version-script.m4: New file.
40004         * doc/ld-version-script.texi: New file.
40005
40006 2009-03-02  David Lutterkort  <lutter@redhat.com>
40007
40008         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40010
40011 2009-03-02  Bruno Haible  <bruno@clisp.org>
40012
40013         * doc/visibility.texi: Mention libtool's -export-symbols option.
40014
40015 2009-03-02  Jim Meyering  <meyering@redhat.com>
40016
40017         announce-gen: new option: --no-print-checksums
40018         * build-aux/announce-gen (usage): Describe it.
40019         (print_checksums): Print a newline here, not in the [*] footnote.
40020         (main): Honor it.
40021
40022 2009-03-01  Bruno Haible  <bruno@clisp.org>
40023
40024         Use socklen_t in the native Windows replacements prototypes.
40025         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40026         instead of 'int'.
40027         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40028         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40029         * modules/getsockopt (Depends-on): Add socklen.
40030         * modules/setsockopt (Depends-on): Add socklen.
40031
40032 2009-03-01  Bruno Haible  <bruno@clisp.org>
40033
40034         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40035         least 4.2.
40036
40037 2009-03-01  Eric Blake  <ebb9@byu.net>
40038             Bruno Haible  <bruno@clisp.org>
40039
40040         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40041         error messages.
40042         * lib/wait-process.c (wait_subprocess): Omit error message about
40043         deadly signal sent to the child of termsigp != NULL.
40044
40045 2009-03-01  Eric Blake  <ebb9@byu.net>
40046
40047         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40048
40049 2009-03-01  Bruno Haible  <bruno@clisp.org>
40050
40051         Avoid a gcc warning.
40052         * tests/test-sched.c (b): Make global.
40053         Reported by Eric Blake.
40054
40055 2009-01-19  Martin Lambers  <marlam@marlam.de>
40056
40057         Provide POSIX semantics for socket timeout options on W32.
40058         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40059         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40060         * modules/setsockopt: Depend on sys_time module for struct timeval.
40061         * modules/getsockopt: Depend on sys_time module for struct timeval.
40062
40063 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40064
40065         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40066         __USE_GNU, for consistency with netdb.in.h.
40067         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40068
40069 2009-03-01  Bruno Haible  <bruno@clisp.org>
40070
40071         More support for FreeMiNT.
40072         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40073         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40074
40075 2009-03-01  Bruno Haible  <bruno@clisp.org>
40076
40077         More support for FreeMiNT.
40078         * lib/fpurge.c (fpurge): Correct last commit.
40079         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40080
40081 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40082
40083         Fix unportable awk script in vc-list-files.
40084         * build-aux/vc-list-files: In the replacement awk script, use
40085         substr with a second argument of 1, not zero.
40086         Report by Simon Josefsson.
40087
40088 2009-02-28  Bruno Haible  <bruno@clisp.org>
40089
40090         More support for FreeMiNT.
40091         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40092         to FreeMiNT today.
40093         * lib/fwriting.c (fwriting): Likewise.
40094         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40095
40096 2009-02-28  Bruno Haible  <bruno@clisp.org>
40097
40098         * tests/test-freadseek.c (main): Disable test beyond end of file on
40099         FreeMiNT.
40100         * tests/test-ftello.c (main): Likewise.
40101         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40102
40103 2009-02-28  Bruno Haible  <bruno@clisp.org>
40104
40105         Add tentative support for FreeMiNT.
40106         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40107         * lib/fpurge.c (fpurge): Likewise.
40108         * lib/freadable.c (freadable): Likewise.
40109         * lib/freading.c (freading): Likewise.
40110         * lib/freadptr.c (freadptr): Likewise.
40111         * lib/freadseek.c (freadptrinc): Likewise.
40112         * lib/fseeko.c (rpl_fseeko): Likewise.
40113         * lib/fseterr.c (fseterr): Likewise.
40114         * lib/fwritable.c (fwritable): Likewise.
40115         * lib/fwriting.c (fwriting): Likewise.
40116         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40117         Hourihane.
40118         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40119
40120 2009-02-28  Bruno Haible  <bruno@clisp.org>
40121
40122         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40123         SIGCHLD.
40124         Reported by Jim Meyering.
40125
40126 2009-02-28  Bruno Haible  <bruno@clisp.org>
40127
40128         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40129         Mention the results of these tests on various platforms.
40130         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40131         order.
40132         * doc/posix-functions/printf.texi: Likewise.
40133         * doc/posix-functions/snprintf.texi: Likewise.
40134         * doc/posix-functions/sprintf.texi: Likewise.
40135         * doc/posix-functions/vfprintf.texi: Likewise.
40136         * doc/posix-functions/vprintf.texi: Likewise.
40137         * doc/posix-functions/vsnprintf.texi: Likewise.
40138         * doc/posix-functions/vsprintf.texi: Likewise.
40139         * doc/glibc-functions/obstack_printf.texi: Likewise.
40140         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40141
40142 2009-02-28  Bruno Haible  <bruno@clisp.org>
40143
40144         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40145         Reported by Loïc Minier <lool@dooz.org>.
40146
40147 2009-02-27  Bruno Haible  <bruno@clisp.org>
40148
40149         * gnulib-tool (func_import): Make the sed expression used to create the
40150         sed script for updating the .gitignore file POSIX compliant.
40151         Reported by Eric Blake.
40152
40153 2009-02-27  Bruno Haible  <bruno@clisp.org>
40154
40155         * gnulib-tool (sed): Don't alias as "sed --posix".
40156         Reported by Eric Blake.
40157
40158 2009-02-27  Bruno Haible  <bruno@clisp.org>
40159
40160         Avoid test link errors.
40161         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40162         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40163         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40164         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40166
40167 2009-02-27  Bruno Haible  <bruno@clisp.org>
40168
40169         Avoid spurious "(cached)" in configure output.
40170         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40171         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40172         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40173         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40174         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40175         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40177         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40178         Reported by Eric Blake.
40179
40180 2009-02-27  Eric Blake  <ebb9@byu.net>
40181
40182         printf: fix regression in previous patch
40183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40184
40185 2009-02-27  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40188         value.
40189         * lib/stdint.in.h: Likewise.
40190         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40191
40192 2009-02-27  Eric Blake  <ebb9@byu.net>
40193
40194         doc: mention more functions added in cygwin 1.7.0
40195         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40196         addition.
40197         * doc/posix-functions/open_wmemstream.texi: Likewise.
40198         * doc/posix-functions/wcsnlen.texi: Likewise.
40199         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40200         * doc/posix-functions/wcstod.texi: Likewise.
40201         * doc/posix-functions/wcstof.texi: Likewise.
40202         * doc/posix-functions/wcstoimax.texi: Likewise.
40203         * doc/posix-functions/wcstok.texi: Likewise.
40204         * doc/posix-functions/wcstoumax.texi: Likewise.
40205
40206         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40208         * doc/posix-functions/fprintf.texi: Update.
40209         * doc/posix-functions/printf.texi: Update.
40210         * doc/posix-functions/snprintf.texi: Update.
40211         * doc/posix-functions/sprintf.texi: Update.
40212         * doc/posix-functions/vfprintf.texi: Update.
40213         * doc/posix-functions/vprintf.texi: Update.
40214         * doc/posix-functions/vsnprintf.texi: Update.
40215         * doc/posix-functions/vsprintf.texi: Update.
40216         * doc/glibc-functions/obstack_printf.texi: Update.
40217         * doc/glibc-functions/obstack_vprintf.texi: Update.
40218
40219 2009-02-26  Eric Blake  <ebb9@byu.net>
40220
40221         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40222         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40223         compilation bug by using runtime conversion.
40224         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40225         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40226         * modules/ceill-tests (Files): Use nan.h.
40227         * modules/floorl-tests (Files): Likewise.
40228         * modules/frexpl-tests (Files): Likewise.
40229         * modules/isnanl-tests (Files): Likewise.
40230         * modules/ldexpl-tests (Files): Likewise.
40231         * modules/roundl-tests (Files): Likewise.
40232         * modules/truncl-tests (Files): Likewise.
40233         * tests/test-ceill.c (main): Use a working NaN.
40234         * tests/test-floorl.c (main): Likewise.
40235         * tests/test-frexpl.c (main): Likewise.
40236         * tests/test-isnan.c (test_long_double): Likewise.
40237         * tests/test-isnanl.h (main): Likewise.
40238         * tests/test-ldexpl.h (main): Likewise.
40239         * tests/test-roundl.h (main): Likewise.
40240         * tests/test-truncl.h (main): Likewise.
40241         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40242
40243 2009-02-26  Eric Blake  <ebb9@byu.net>
40244             Bruno Haible  <bruno@clisp.org>
40245
40246         Work around a *printf bug with %ls on Solaris.
40247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40248         precision is specified, sprintf stops converting the wide string
40249         argument when the number of bytes that have been produced by this
40250         conversion equals or exceeds the precision.
40251         * doc/posix-functions/fprintf.texi: Update.
40252         * doc/posix-functions/printf.texi: Update.
40253         * doc/posix-functions/snprintf.texi: Update.
40254         * doc/posix-functions/sprintf.texi: Update.
40255         * doc/posix-functions/vfprintf.texi: Update.
40256         * doc/posix-functions/vprintf.texi: Update.
40257         * doc/posix-functions/vsnprintf.texi: Update.
40258         * doc/posix-functions/vsprintf.texi: Update.
40259         * doc/glibc-functions/obstack_printf.texi: Update.
40260         * doc/glibc-functions/obstack_vprintf.texi: Update.
40261
40262 2009-02-26  Eric Blake  <ebb9@byu.net>
40263
40264         stdlib: favor compiler check of random.h
40265         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40266         to avoid an ObjC random.h installed by Swarm.
40267
40268 2009-02-26  Bruno Haible  <bruno@clisp.org>
40269
40270         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40271         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40272         Reported by Gary V. Vaughan <gary@gnu.org>.
40273
40274 2009-02-26  Bruno Haible  <bruno@clisp.org>
40275
40276         Fix *printf behaviour regarding the %ls directive.
40277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40278         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40279         NEED_PRINTF_DIRECTIVE_LS.
40280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40281         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40283         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40284         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40285         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40286         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40291         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40295         * doc/posix-functions/fprintf.texi: Update.
40296         * doc/posix-functions/printf.texi: Update.
40297         * doc/posix-functions/snprintf.texi: Update.
40298         * doc/posix-functions/sprintf.texi: Update.
40299         * doc/posix-functions/vfprintf.texi: Update.
40300         * doc/posix-functions/vprintf.texi: Update.
40301         * doc/posix-functions/vsnprintf.texi: Update.
40302         * doc/posix-functions/vsprintf.texi: Update.
40303         * doc/glibc-functions/obstack_printf.texi: Update.
40304         * doc/glibc-functions/obstack_vprintf.texi: Update.
40305         Reported by Eric Blake.
40306
40307 2009-02-25  Bruno Haible  <bruno@clisp.org>
40308
40309         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40310         with known value.
40311         Reported by Gary V. Vaughan <gary@gnu.org>.
40312
40313 2009-02-25  Bruno Haible  <bruno@clisp.org>
40314
40315         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40316         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40317         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40318         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40319         Reported by Gary V. Vaughan <gary@gnu.org>.
40320
40321 2009-02-25  Bruno Haible  <bruno@clisp.org>
40322
40323         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40324         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40325         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40326         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40327         Reported by Gary V. Vaughan <gary@gnu.org>.
40328
40329 2009-02-25  Eric Blake  <ebb9@byu.net>
40330
40331         tests: skip fseek/ftell tests if ungetc is broken
40332         * m4/ungetc.m4: New file.
40333         * modules/fseek-tests: Split test, so ungetc dependency is
40334         separate from rest of test.
40335         * modules/fseeko-tests: Likewise.
40336         * modules/ftell-tests: Likewise.
40337         * modules/ftello-tests: Likewise.
40338         * tests/test-fseek.c (main): Isolate ungetc dependency.
40339         * tests/test-fseeko.c (main): Likewise.
40340         * tests/test-ftell.c (main): Likewise.
40341         * tests/test-ftello.c (main): Likewise.
40342         * tests/test-fseek2.sh: New file.
40343         * tests/test-fseeko2.sh: Likewise.
40344         * tests/test-ftell2.sh: Likewise.
40345         * tests/test-ftello2.sh: Likewise.
40346
40347 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40348
40349         test-getaddrinfo: fix usage of skip return code 77
40350         * tests/test-gettaddrinfo.c: Return skip code 77 only
40351         for first occurance of skip (4x77 is not 77)
40352
40353 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40354
40355         strtod: avoid C99 decl-after-statement
40356         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40357
40358 2009-02-24  Eric Blake  <ebb9@byu.net>
40359
40360         strtod: detect HP-UX 11.31 bug
40361         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40362         Reported by Gary V. Vaughan.
40363
40364 2009-02-23  Bruno Haible  <bruno@clisp.org>
40365
40366         Fix invalid read past end of memory block.
40367         * lib/vasnprintf.c (DCHAR_SET): Define.
40368         (local_wcslen): Define only when needed.
40369         (local_strnlen, local_wcsnlen): New functions.
40370         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40371         directives that involve a conversion ourselves.
40372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40373         wcsnlen, mbrtowc, wcrtomb.
40374         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40375         * tests/test-vasprintf-posix.c (test_function): Likewise.
40376         * tests/test-snprintf-posix.h (test_function): Likewise.
40377         * tests/test-sprintf-posix.h (test_function): Likewise.
40378         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40379
40380 2009-02-22  Bruno Haible  <bruno@clisp.org>
40381
40382         Implement new clarified decomposition of Hangul syllables.
40383         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40384         of type LTV, return only a pairwise decomposition.
40385         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40386         Likewise.
40387         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40388         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40389         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40390
40391 2009-02-22  Bruno Haible  <bruno@clisp.org>
40392
40393         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40394         zero-length results and shrink excess allocated memory.
40395         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40396         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40397         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40398         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40399         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40400         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40401         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40402         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40403         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40404         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40405         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40406         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40407
40408 2009-02-21  Bruno Haible  <bruno@clisp.org>
40409
40410         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40411         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40412         spaces after a period. Put a space between a macro name and its
40413         argument list. Trivial rewordings.
40414         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40415         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40416         (main): Return 0 explicitly.
40417
40418 2009-02-21  Bruno Haible  <bruno@clisp.org>
40419
40420         Tests for module 'uninorm/filter'.
40421         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40422         * modules/uninorm/filter-tests: New file.
40423
40424         New module 'uninorm/filter'.
40425         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40426         uninorm_filter_flush, uninorm_filter_free): New declarations.
40427         * lib/uninorm/uninorm-filter.c: New file.
40428         * modules/uninorm/filter: New file.
40429
40430 2009-02-21  Bruno Haible  <bruno@clisp.org>
40431
40432         Tests for module 'uninorm/nfkc'.
40433         * tests/uninorm/test-nfkc.c: New file.
40434         * tests/uninorm/test-u8-nfkc.c: New file.
40435         * tests/uninorm/test-u16-nfkc.c: New file.
40436         * tests/uninorm/test-u32-nfkc.c: New file.
40437         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40438         * tests/uninorm/test-u32-nfkc-big.c: New file.
40439         * modules/uninorm/nfkc-tests: New file.
40440
40441         New module 'uninorm/nfkc'.
40442         * lib/uninorm/nfkc.c: New file.
40443         * modules/uninorm/nfkc: New file.
40444
40445         Tests for module 'uninorm/nfkd'.
40446         * tests/uninorm/test-nfkd.c: New file.
40447         * tests/uninorm/test-u8-nfkd.c: New file.
40448         * tests/uninorm/test-u16-nfkd.c: New file.
40449         * tests/uninorm/test-u32-nfkd.c: New file.
40450         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40451         * tests/uninorm/test-u32-nfkd-big.c: New file.
40452         * modules/uninorm/nfkd-tests: New file.
40453
40454         New module 'uninorm/nfkd'.
40455         * lib/uninorm/nfkd.c: New file.
40456         * modules/uninorm/nfkd: New file.
40457
40458         Tests for module 'uninorm/nfc'.
40459         * tests/uninorm/test-nfc.c: New file.
40460         * tests/uninorm/test-u8-nfc.c: New file.
40461         * tests/uninorm/test-u16-nfc.c: New file.
40462         * tests/uninorm/test-u32-nfc.c: New file.
40463         * tests/uninorm/test-u32-nfc-big.sh: New file.
40464         * tests/uninorm/test-u32-nfc-big.c: New file.
40465         * modules/uninorm/nfc-tests: New file.
40466
40467         New module 'uninorm/nfc'.
40468         * lib/uninorm/nfc.c: New file.
40469         * modules/uninorm/nfc: New file.
40470
40471         Tests for module 'uninorm/nfd'.
40472         * tests/uninorm/test-nfd.c: New file.
40473         * tests/uninorm/test-u8-nfd.c: New file.
40474         * tests/uninorm/test-u16-nfd.c: New file.
40475         * tests/uninorm/test-u32-nfd.c: New file.
40476         * tests/uninorm/test-u32-nfd-big.sh: New file.
40477         * tests/uninorm/test-u32-nfd-big.c: New file.
40478         * tests/uninorm/test-u32-normalize-big.h: New file.
40479         * tests/uninorm/test-u32-normalize-big.c: New file.
40480         * tests/uninorm/NormalizationTest.txt: New file, created from
40481         Unicode 5.1.0 NormalizationTest.txt.
40482         * modules/uninorm/nfd-tests: New file.
40483
40484         New module 'uninorm/nfd'.
40485         * lib/uninorm/nfd.c: New file.
40486         * modules/uninorm/nfd: New file.
40487
40488         New module 'uninorm/u32-normalize'.
40489         * lib/uninorm/u32-normalize.c: New file.
40490         * modules/uninorm/u32-normalize: New file.
40491
40492         New module 'uninorm/u16-normalize'.
40493         * lib/uninorm/u16-normalize.c: New file.
40494         * modules/uninorm/u16-normalize: New file.
40495
40496         New module 'uninorm/u8-normalize'.
40497         * lib/uninorm/u8-normalize.c: New file.
40498         * lib/uninorm/normalize-internal.h: New file.
40499         * lib/uninorm/u-normalize-internal.h: New file.
40500         * modules/uninorm/u8-normalize: New file.
40501
40502         New module 'uninorm/decompose-internal'.
40503         * lib/uninorm/decompose-internal.c: New file.
40504         * modules/uninorm/decompose-internal: New file.
40505
40506         Tests for module 'uninorm/composition'.
40507         * tests/uninorm/test-composition.c: New file.
40508         * modules/uninorm/composition-tests: New file.
40509
40510         New module 'uninorm/composition'.
40511         * lib/uninorm/composition.c: New file.
40512         * lib/uninorm/composition-table.gperf: New file, generated by
40513         gen-uni-tables.
40514         * modules/uninorm/composition: New file.
40515
40516         Tests for module 'uninorm/compat-decomposition'.
40517         * tests/uninorm/test-compat-decomposition.c: New file.
40518         * modules/uninorm/compat-decomposition-tests: New file.
40519
40520         New module 'uninorm/compat-decomposition'.
40521         * lib/uninorm/decompose-internal.h: New file.
40522         * lib/uninorm/compat-decomposition.c: New file.
40523         * modules/uninorm/compat-decomposition: New file.
40524
40525         Tests for module 'uninorm/canonical-decomposition'.
40526         * tests/uninorm/test-canonical-decomposition.c: New file.
40527         * modules/uninorm/canonical-decomposition-tests: New file.
40528
40529         New module 'uninorm/canonical-decomposition'.
40530         * lib/uninorm/canonical-decomposition.c: New file.
40531         * modules/uninorm/canonical-decomposition: New file.
40532
40533         Tests for module 'uninorm/decomposition'.
40534         * tests/uninorm/test-decomposition.c: New file.
40535         * modules/uninorm/decomposition-tests: New file.
40536
40537         New module 'uninorm/decomposition'.
40538         * lib/uninorm/decomposition.c: New file.
40539         * modules/uninorm/decomposition: New file.
40540
40541         New module 'uninorm/decomposition-table'.
40542         * lib/uninorm/decomposition-table.h: New file.
40543         * lib/uninorm/decomposition-table.c: New file.
40544         * lib/uninorm/decomposition-table1.h: New file, generated by
40545         gen-uni-tables.
40546         * lib/uninorm/decomposition-table2.h: New file, generated by
40547         gen-uni-tables.
40548         * modules/uninorm/decomposition-table: New file.
40549
40550         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40551         (UC_DECOMP_*): New enumeration items.
40552         (get_decomposition): New function.
40553         (struct decomp_table): New type.
40554         (output_decomposition, output_decomposition_tables): New functions.
40555         (unicode_composition_exclusions): New variable.
40556         (fill_composition_exclusions, debug_output_composition_tables): New
40557         functions.
40558         (main): Accept one more argument. Invoke fill_composition_exclusions.
40559         Output decomposition and composition tables.
40560
40561         New module 'uninorm/base'.
40562         * lib/uninorm.h: New file.
40563         * lib/unictype.h: Update comment.
40564         * modules/uninorm/base: New file.
40565
40566 2009-02-21  David Lutterkort  <lutter@redhat.com>
40567
40568         Tests for module 'safe-alloc'.
40569         * tests/test-safe-alloc.c: New file.
40570         * modules/safe-alloc-tests: New file.
40571
40572         New module 'safe-alloc'.
40573         * lib/safe-alloc.h: New file.
40574         * lib/safe-alloc.c: New file.
40575         * m4/safe-alloc.m4: New file.
40576         * modules/safe-alloc: New file.
40577         * doc/safe-alloc.texi: New file.
40578         * doc/gnulib.texi: Include it.
40579         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40580         safe-alloc.
40581
40582 2009-02-18  Bruno Haible  <bruno@clisp.org>
40583
40584         Fix link error on non-glibc systems.
40585         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40586         variable.
40587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40588
40589 2009-02-18  Jim Meyering  <meyering@redhat.com>
40590
40591         fts: avoid used-uninitialized error due to recent change
40592         * lib/fts.c (fts_read): Guard uses of the new member,
40593         parent->fts_n_dirs_remaining, since it's not relevant for
40594         the parent of a directory specified on the command-line.
40595
40596 2009-02-17  James Youngman  <jay@gnu.org>
40597             Bruno Haible  <bruno@clisp.org>
40598
40599         * m4/include_next.m4: Reformulate comment.
40600
40601 2009-02-16  Jim Meyering  <meyering@redhat.com>
40602
40603         fts: add #if guards so that the fts_lgpl module still builds
40604         * lib/fts.c: Guard just-added hash-table-using parts with
40605         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40606         Reported by Simon Josefsson.
40607
40608 2009-02-15  Bruno Haible  <bruno@clisp.org>
40609
40610         * modules/array-mergesort-tests: New file.
40611         * tests/test-array-mergesort.c: New file.
40612
40613         New module 'array-mergesort'.
40614         * modules/array-mergesort: New file.
40615         * lib/array-mergesort.h: New file.
40616
40617 2009-02-15  Bruno Haible  <bruno@clisp.org>
40618
40619         Fix 2009-02-07 commit.
40620         * lib/gen-uni-tables.c (output_predicate, output_category,
40621         output_combclass, output_bidi_category, output_decimal_digit,
40622         output_digit, output_numeric, output_mirror, output_scripts,
40623         output_ident_category, output_simple_mapping): Fix format directives.
40624         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40625
40626 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40627
40628         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40629         fixes are available from IBM.
40630
40631 2009-02-13  Jim Meyering  <meyering@redhat.com>
40632
40633         fts: arrange not to stat non-directories in more cases
40634         This makes GNU find (when it doesn't need to stat each file)
40635         *much* more efficient at traversing reiserfs file systems.
40636         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40637         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40638         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40639         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40640         (leaf_optimization_applies): New function.
40641         (LCO_hash, LCO_compare): New helper functions.
40642         (link_count_optimize_ok): New function.
40643         (fts_stat): Initialize new member (if dir).
40644         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40645         we've just stat'ed a directory.  Skip the stat call when possible.
40646         ---
40647         Note this AFS-related exchange:
40648         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40649         and note find's pioctl call in find/fstype.c.
40650         But that is necessary only if you want to enable the
40651         optimization for AFS, and for now, I don't.
40652
40653         fts: move a function definition "up" (no semantic change)
40654         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40655         "up" to precede upcoming use of a related function.
40656
40657 2009-02-11  Jim Meyering  <meyering@redhat.com>
40658
40659         fts: correct internal computation of nlinks (optimization-related)
40660         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40661         whether the current entry is a directory, so don't test it.
40662
40663 2009-02-10  Bruno Haible  <bruno@clisp.org>
40664
40665         Tests for module 'uniwbrk/ulc-wordbreaks'.
40666         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40667         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40668         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40669
40670         Tests for module 'uniwbrk/u32-wordbreaks'.
40671         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40672         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40673
40674         Tests for module 'uniwbrk/u16-wordbreaks'.
40675         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40676         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40677
40678         Tests for module 'uniwbrk/u8-wordbreaks'.
40679         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40680         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40681
40682 2009-02-10  Bruno Haible  <bruno@clisp.org>
40683
40684         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40685         property.
40686         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40687         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40688         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40689
40690 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40691
40692         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40693         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40694
40695 2009-02-10  Bruno Haible  <bruno@clisp.org>
40696
40697         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40698         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40699         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40700         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40701         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40702         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40703
40704 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40705
40706         * lib/sockets.h (gl_fd_to_handle): New function.
40707
40708         * tests/test-sockets.c: Call gl_fd_to_handle.
40709
40710 2009-02-09  Bruno Haible  <bruno@clisp.org>
40711
40712         * doc/havelib.texi: Document the conventions on bi-arch systems.
40713
40714 2009-02-08  Bruno Haible  <bruno@clisp.org>
40715
40716         Document the AC_LIB_LINKFLAGS macro.
40717         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40718         * doc/gnulib.texi: Include it.
40719
40720 2009-02-08  Bruno Haible  <bruno@clisp.org>
40721
40722         Fix wrong order of sections, compared to TOC.
40723         * doc/gnulib.texi: Include relocatable-maint.texi after the
40724         "Regular expressions" node, not before.
40725
40726 2009-02-08  Bruno Haible  <bruno@clisp.org>
40727
40728         Tests for module 'unicase/totitle'.
40729         * modules/unicase/totitle-tests: New file.
40730
40731         Tests for module 'unicase/tolower'.
40732         * modules/unicase/tolower-tests: New file.
40733
40734         Tests for module 'unicase/toupper'.
40735         * modules/unicase/toupper-tests: New file.
40736         * tests/unicase/test-mapping-part1.h: New file.
40737         * tests/unicase/test-mapping-part2.h: New file.
40738
40739         New module 'unicase/totitle'.
40740         * modules/unicase/totitle: New file.
40741         * lib/unicase/totitle.c: New file.
40742
40743         New module 'unicase/tolower'.
40744         * modules/unicase/tolower: New file.
40745         * lib/unicase/tolower.c: New file.
40746
40747         New module 'unicase/toupper'.
40748         * modules/unicase/toupper: New file.
40749         * lib/unicase/toupper.c: New file.
40750         * lib/unicase/simple-mapping.h: New file.
40751
40752         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40753         (mapping_table): New structure.
40754         (output_simple_mapping): New function.
40755         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40756         * modules/gen-uni-tables (Description): Update.
40757         * lib/unicase/toupper.h: New file, automatically generated by
40758         gen-uni-tables.
40759         * lib/unicase/tolower.h: New file, automatically generated by
40760         gen-uni-tables.
40761         * lib/unicase/totitle.h: New file, automatically generated by
40762         gen-uni-tables.
40763         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40764         gen-uni-tables.
40765         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40766         gen-uni-tables.
40767         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40768         gen-uni-tables.
40769
40770         New module 'unicase/base'.
40771         * modules/unicase/base: New file.
40772         * lib/unicase.h: New file.
40773
40774 2009-02-08  Bruno Haible  <bruno@clisp.org>
40775
40776         New module 'uniwbrk/ulc-wordbreaks'.
40777         * modules/uniwbrk/ulc-wordbreaks: New file.
40778         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40779
40780         New module 'uniwbrk/u32-wordbreaks'.
40781         * modules/uniwbrk/u32-wordbreaks: New file.
40782         * lib/uniwbrk/u32-wordbreaks.c: New file.
40783
40784         New module 'uniwbrk/u16-wordbreaks'.
40785         * modules/uniwbrk/u16-wordbreaks: New file.
40786         * lib/uniwbrk/u16-wordbreaks.c: New file.
40787
40788         New module 'uniwbrk/u8-wordbreaks'.
40789         * modules/uniwbrk/u8-wordbreaks: New file.
40790         * lib/uniwbrk/u8-wordbreaks.c: New file.
40791         * lib/uniwbrk/u-wordbreaks.h: New file.
40792
40793         New module 'uniwbrk/table'.
40794         * modules/uniwbrk/table: New file.
40795         * lib/uniwbrk/wbrktable.h: New file.
40796         * lib/uniwbrk/wbrktable.c: New file.
40797
40798         New module 'uniwbrk/wordbreak-property'.
40799         * modules/uniwbrk/wordbreak-property: New file.
40800         * lib/uniwbrk/wordbreak-property.c: New file.
40801
40802         * lib/gen-uni-tables.c (WBP_*): New enum items.
40803         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40804         (unicode_org_wbp): New variable.
40805         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40806         New functions.
40807         (wbp_table): New structure.
40808         (output_wbp, output_wbrk_tables): New functions.
40809         (main): Accept additional argument. Invoke fill_org_wbp,
40810         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40811         output_wbrk_tables.
40812         * modules/gen-uni-tables (Description): Update.
40813         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40814         gen-uni-tables.
40815
40816         New module 'uniwbrk/base'.
40817         * modules/uniwbrk/base: New file.
40818         * lib/uniwbrk.h: New file.
40819
40820 2009-02-08  Bruno Haible  <bruno@clisp.org>
40821
40822         Update to Unicode 5.1.0.
40823         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40824         U+2185..U+2188.
40825         (is_property_default_ignorable_code_point): Don't include characters
40826         of category Cc or Cs and not-a-characters.
40827         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40828         U+0D79, U+109E, U+109F, U+A60C.
40829         * lib/unictype/bidi_of.h: Regenerated.
40830         * lib/unictype/blocks.h: Regenerated.
40831         * lib/unictype/categ_C.h: Regenerated.
40832         * lib/unictype/categ_Cf.h: Regenerated.
40833         * lib/unictype/categ_Cn.h: Regenerated.
40834         * lib/unictype/categ_L.h: Regenerated.
40835         * lib/unictype/categ_Ll.h: Regenerated.
40836         * lib/unictype/categ_Lm.h: Regenerated.
40837         * lib/unictype/categ_Lo.h: Regenerated.
40838         * lib/unictype/categ_Lu.h: Regenerated.
40839         * lib/unictype/categ_M.h: Regenerated.
40840         * lib/unictype/categ_Mc.h: Regenerated.
40841         * lib/unictype/categ_Me.h: Regenerated.
40842         * lib/unictype/categ_Mn.h: Regenerated.
40843         * lib/unictype/categ_N.h: Regenerated.
40844         * lib/unictype/categ_Nd.h: Regenerated.
40845         * lib/unictype/categ_Nl.h: Regenerated.
40846         * lib/unictype/categ_No.h: Regenerated.
40847         * lib/unictype/categ_P.h: Regenerated.
40848         * lib/unictype/categ_Pd.h: Regenerated.
40849         * lib/unictype/categ_Pe.h: Regenerated.
40850         * lib/unictype/categ_Pf.h: Regenerated.
40851         * lib/unictype/categ_Pi.h: Regenerated.
40852         * lib/unictype/categ_Po.h: Regenerated.
40853         * lib/unictype/categ_Ps.h: Regenerated.
40854         * lib/unictype/categ_S.h: Regenerated.
40855         * lib/unictype/categ_Sk.h: Regenerated.
40856         * lib/unictype/categ_Sm.h: Regenerated.
40857         * lib/unictype/categ_So.h: Regenerated.
40858         * lib/unictype/categ_of.h: Regenerated.
40859         * lib/unictype/combining.h: Regenerated.
40860         * lib/unictype/ctype_alnum.h: Regenerated.
40861         * lib/unictype/ctype_alpha.h: Regenerated.
40862         * lib/unictype/ctype_graph.h: Regenerated.
40863         * lib/unictype/ctype_lower.h: Regenerated.
40864         * lib/unictype/ctype_print.h: Regenerated.
40865         * lib/unictype/ctype_punct.h: Regenerated.
40866         * lib/unictype/ctype_upper.h: Regenerated.
40867         * lib/unictype/decdigit.h: Regenerated.
40868         * lib/unictype/digit.h: Regenerated.
40869         * lib/unictype/mirror.h: Regenerated.
40870         * lib/unictype/numeric.h: Regenerated.
40871         * lib/unictype/pr_alphabetic.h: Regenerated.
40872         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40873         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40874         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40875         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40876         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40877         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40878         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40879         * lib/unictype/pr_combining.h: Regenerated.
40880         * lib/unictype/pr_dash.h: Regenerated.
40881         * lib/unictype/pr_decimal_digit.h: Regenerated.
40882         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40883         * lib/unictype/pr_deprecated.h: Regenerated.
40884         * lib/unictype/pr_diacritic.h: Regenerated.
40885         * lib/unictype/pr_extender.h: Regenerated.
40886         * lib/unictype/pr_format_control.h: Regenerated.
40887         * lib/unictype/pr_grapheme_base.h: Regenerated.
40888         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40889         * lib/unictype/pr_grapheme_link.h: Regenerated.
40890         * lib/unictype/pr_id_continue.h: Regenerated.
40891         * lib/unictype/pr_id_start.h: Regenerated.
40892         * lib/unictype/pr_ideographic.h: Regenerated.
40893         * lib/unictype/pr_ignorable_control.h: Regenerated.
40894         * lib/unictype/pr_lowercase.h: Regenerated.
40895         * lib/unictype/pr_math.h: Regenerated.
40896         * lib/unictype/pr_numeric.h: Regenerated.
40897         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40898         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40899         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40900         * lib/unictype/pr_other_id_continue.h: Regenerated.
40901         * lib/unictype/pr_other_lowercase.h: Regenerated.
40902         * lib/unictype/pr_other_math.h: Regenerated.
40903         * lib/unictype/pr_punctuation.h: Regenerated.
40904         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40905         * lib/unictype/pr_soft_dotted.h: Regenerated.
40906         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40907         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40908         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40909         * lib/unictype/pr_uppercase.h: Regenerated.
40910         * lib/unictype/pr_xid_continue.h: Regenerated.
40911         * lib/unictype/pr_xid_start.h: Regenerated.
40912         * lib/unictype/pr_zero_width.h: Regenerated.
40913         * lib/unictype/scripts.h: Regenerated.
40914         * lib/unictype/scripts_byname.gperf: Regenerated.
40915         * lib/unictype/sy_java_ident.h: Regenerated.
40916         * lib/unilbrk/lbrkprop1.h: Regenerated.
40917         * lib/unilbrk/lbrkprop2.h: Regenerated.
40918         * tests/unictype/test-categ_C.c: Regenerated.
40919         * tests/unictype/test-categ_Cf.c: Regenerated.
40920         * tests/unictype/test-categ_Cn.c: Regenerated.
40921         * tests/unictype/test-categ_L.c: Regenerated.
40922         * tests/unictype/test-categ_Ll.c: Regenerated.
40923         * tests/unictype/test-categ_Lm.c: Regenerated.
40924         * tests/unictype/test-categ_Lo.c: Regenerated.
40925         * tests/unictype/test-categ_Lu.c: Regenerated.
40926         * tests/unictype/test-categ_M.c: Regenerated.
40927         * tests/unictype/test-categ_Mc.c: Regenerated.
40928         * tests/unictype/test-categ_Me.c: Regenerated.
40929         * tests/unictype/test-categ_Mn.c: Regenerated.
40930         * tests/unictype/test-categ_N.c: Regenerated.
40931         * tests/unictype/test-categ_Nd.c: Regenerated.
40932         * tests/unictype/test-categ_Nl.c: Regenerated.
40933         * tests/unictype/test-categ_No.c: Regenerated.
40934         * tests/unictype/test-categ_P.c: Regenerated.
40935         * tests/unictype/test-categ_Pd.c: Regenerated.
40936         * tests/unictype/test-categ_Pe.c: Regenerated.
40937         * tests/unictype/test-categ_Pf.c: Regenerated.
40938         * tests/unictype/test-categ_Pi.c: Regenerated.
40939         * tests/unictype/test-categ_Po.c: Regenerated.
40940         * tests/unictype/test-categ_Ps.c: Regenerated.
40941         * tests/unictype/test-categ_S.c: Regenerated.
40942         * tests/unictype/test-categ_Sk.c: Regenerated.
40943         * tests/unictype/test-categ_Sm.c: Regenerated.
40944         * tests/unictype/test-categ_So.c: Regenerated.
40945         * tests/unictype/test-ctype_alnum.c: Regenerated.
40946         * tests/unictype/test-ctype_alpha.c: Regenerated.
40947         * tests/unictype/test-ctype_graph.c: Regenerated.
40948         * tests/unictype/test-ctype_lower.c: Regenerated.
40949         * tests/unictype/test-ctype_print.c: Regenerated.
40950         * tests/unictype/test-ctype_punct.c: Regenerated.
40951         * tests/unictype/test-ctype_upper.c: Regenerated.
40952         * tests/unictype/test-decdigit.h: Regenerated.
40953         * tests/unictype/test-digit.h: Regenerated.
40954         * tests/unictype/test-numeric.h: Regenerated.
40955         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40956         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40957         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40958         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40959         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40960         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40961         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40962         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40963         * tests/unictype/test-pr_combining.c: Regenerated.
40964         * tests/unictype/test-pr_dash.c: Regenerated.
40965         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40966         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40967         * tests/unictype/test-pr_deprecated.c: Regenerated.
40968         * tests/unictype/test-pr_diacritic.c: Regenerated.
40969         * tests/unictype/test-pr_extender.c: Regenerated.
40970         * tests/unictype/test-pr_format_control.c: Regenerated.
40971         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40972         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40973         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40974         * tests/unictype/test-pr_id_continue.c: Regenerated.
40975         * tests/unictype/test-pr_id_start.c: Regenerated.
40976         * tests/unictype/test-pr_ideographic.c: Regenerated.
40977         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40978         * tests/unictype/test-pr_lowercase.c: Regenerated.
40979         * tests/unictype/test-pr_math.c: Regenerated.
40980         * tests/unictype/test-pr_numeric.c: Regenerated.
40981         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40982         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40983         Regenerated.
40984         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40985         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40986         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40987         * tests/unictype/test-pr_other_math.c: Regenerated.
40988         * tests/unictype/test-pr_punctuation.c: Regenerated.
40989         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40990         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40991         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40992         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40993         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40994         * tests/unictype/test-pr_uppercase.c: Regenerated.
40995         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40996         * tests/unictype/test-pr_xid_start.c: Regenerated.
40997         * tests/unictype/test-pr_zero_width.c: Regenerated.
40998
40999         Update to Unicode 5.1.0.
41000         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41001         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41002         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41003         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41004         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41005         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41006         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41007         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41008         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41009         (nonspacing_table_ind): Update.
41010         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41011
41012         Update to Unicode 5.1.0.
41013         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41014         code transform.
41015         * lib/uniname/uniname.c (unicode_character_name,
41016         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41017         * lib/uniname/uninames.h: Regenerated.
41018         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41019
41020 2009-02-07  Bruno Haible  <bruno@clisp.org>
41021
41022         Merge gen-ctype and gen-lbrk into a single program.
41023         * lib/gen-uni-tables.c: New file, incorporating
41024         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41025         Add directory prefixes to the names of the generated files.
41026         * lib/unictype/gen-ctype.c: Remove file.
41027         * lib/unilbrk/gen-lbrk.c: Remove file.
41028         * modules/gen-uni-tables: New file.
41029         * modules/unictype/gen-ctype: Remove file.
41030         * modules/unilbrk/gen-lbrk: Remove file.
41031
41032 2009-02-07  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41035
41036         New module 'unistr/u32-strcoll'.
41037         * modules/unistr/u32-strcoll: New file.
41038         * lib/unistr/u32-strcoll.c: New file.
41039
41040         New module 'unistr/u16-strcoll'.
41041         * modules/unistr/u16-strcoll: New file.
41042         * lib/unistr/u16-strcoll.c: New file.
41043
41044         New module 'unistr/u8-strcoll'.
41045         * modules/unistr/u8-strcoll: New file.
41046         * lib/unistr/u8-strcoll.c: New file.
41047         * lib/unistr/u-strcoll.h: New file.
41048
41049 2009-02-07  Bruno Haible  <bruno@clisp.org>
41050
41051         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41052         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41053         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41054         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41055         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41056         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41057
41058 2009-02-07  Bruno Haible  <bruno@clisp.org>
41059
41060         Make 64-bit clean.
41061         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41062         output_combclass, output_bidi_category, output_decimal_digit,
41063         output_digit, output_numeric, output_mirror, output_scripts,
41064         output_ident_category): Use proper width specifier in format strings.
41065
41066 2009-02-07  Bruno Haible  <bruno@clisp.org>
41067
41068         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41069         failure behaviour.
41070
41071 2009-02-07  Jim Meyering  <meyering@redhat.com>
41072
41073         regex: avoid compilation failure with upcoming gcc-4.4
41074         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41075         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41076         "... error: integer overflow in preprocessor expression".
41077
41078 2009-02-05  Ben Pfaff  <blp@gnu.org>
41079
41080         Fix link errors on Windows when close module is used.
41081         * modules/close: Add $(LIB_CLOSE) to Link section.
41082         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41083         $(LIB_CLOSE) on Windows.
41084
41085 2009-02-05  Jim Meyering  <meyering@redhat.com>
41086
41087         still avoid unused-parameter warnings, but do it cleanly
41088         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41089         (get_fs_usage): Cast to void instead.
41090         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41091         (dev_from_mount_options, read_file_system_list): Cast to void.
41092         Prompted by Bruno Haible.
41093
41094 2009-02-04  Jim Meyering  <meyering@redhat.com>
41095
41096         fsusage.c: correct copyright year
41097         * lib/fsusage.c: Reflect year in which the change is pushed into
41098
41099         avoid misc. warnings
41100         * lib/fsusage.c (UNUSED_PARAM): Define.
41101         (get_fs_usage): Mark parameter "disk" as unused.
41102         * lib/getugroups.c (getgrent): Use "void" in prototype.
41103         * lib/mountlist.c: Mark unused parameters.
41104         (read_file_system_list): Declare a local with "const".
41105         * lib/nanosleep.c (getnow): Declare static.
41106         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41107
41108         dirfd: set errno upon failure
41109         * lib/dirfd.c: Include <errno.h>.
41110         Set errno to ENOTSUP when returning -1.
41111         * modules/dirfd (Depends-on): Add errno.
41112         Suggested by John Kodis <kodis@comcast.net>.
41113
41114 2009-02-01  Bruno Haible  <bruno@clisp.org>
41115
41116         Don't assume sizeof (long) >= sizeof (void *).
41117         * lib/memcmp.c: Include stdint.h.
41118         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41119         srcp2 to 'const byte *'.
41120         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41121         types to uintptr_t.
41122         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41123         * modules/memcmp (Depends-on): Add stdint.
41124         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41125
41126 2009-01-30  Eric Blake  <ebb9@byu.net>
41127
41128         fix more require-before-expand issues
41129         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41130         expand, AC_PROG_AWK.
41131         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41132
41133 2009-01-28  Eric Blake  <ebb9@byu.net>
41134
41135         version-etc: use consistent URL formatting
41136         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41137         Improve formatting.  Use fputs for string without %.
41138
41139 2009-01-28  Jim Meyering  <meyering@redhat.com>
41140
41141         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41142         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41143         "underquoted definition of NAME" from autoconf-2.59.
41144
41145 2009-01-28  Bruno Haible  <bruno@clisp.org>
41146
41147         * doc/gnulib.texi: Add "Obsolete modules" to index.
41148
41149 2009-01-28  Jim Meyering  <meyering@redhat.com>
41150
41151         useless-if-before-free: recognize more variants
41152         * build-aux/useless-if-before-free: Also recognize e.g.,
41153         if (NULL != p) free (p);
41154
41155 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41156
41157         test-getaddrinfo: skip (don't fail) this test when there's no network
41158         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41159         on the presumption that it means you lack network access.
41160
41161 2009-01-26  Jim Meyering  <meyering@redhat.com>
41162
41163         fflush: avoid warnings on modern systems
41164         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41165         pos and result, into scopes where they're used.
41166
41167 2009-01-26  Eric Blake  <ebb9@byu.net>
41168
41169         Silence warning reintroduced by recent extensions patch.
41170         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41171         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41172         autoconf.
41173
41174         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41175         * m4/00gnulib.m4: New file.
41176         * gnulib-tool (func_get_filelist): Always use it.
41177         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41178         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41179
41180 2009-01-25  Bruno Haible  <bruno@clisp.org>
41181
41182         Make test-quotearg work on MacOS X and AIX.
41183         * tests/test-quotearg.sh: New file.
41184         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41185         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41186         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41187         include <libintl.h>.
41188         (fake_locale): Remove variable.
41189         (gettext, dgettext, dcgettext): Remove functions.
41190         (main): Instead of setting a fake locale, set a real locale. Call
41191         textdomain and bindtextdomain.
41192         * modules/quotearg-tests (Files): Add the new files.
41193         (Depends-on): Add gettext, setenv, unsetenv.
41194         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41195         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41196         Augment TESTS_ENVIRONMENT.
41197
41198 2009-01-25  Bruno Haible  <bruno@clisp.org>
41199
41200         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41201         fr_FR.ISO8859-1 locale on MacOS X.
41202         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41203         ja_JP.eucJP locale on MacOS X.
41204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41205         zh_CN.GB18030 locale on MacOS X.
41206
41207 2009-01-25  Bruno Haible  <bruno@clisp.org>
41208
41209         Avoid link errors on MacOS X 10.3.
41210         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41211         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41212
41213 2009-01-25  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41216         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41217         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41218         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41219         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41220         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41221         posix_spawnattr_init, posix_spawnattr_setsigmask,
41222         posix_spawnattr_setflags, posix_spawnattr_destroy.
41223
41224         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41225         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41226         * modules/execute (Files): Remove m4/posix_spawn.m4.
41227         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41228         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41229         posix_spawnattr_init, posix_spawnattr_setsigmask,
41230         posix_spawnattr_setflags, posix_spawnattr_destroy.
41231
41232 2009-01-25  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/glthread/threadlib.c: Include <stdlib.h>.
41235
41236 2009-01-25  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/glthread/threadlib.c (dummy): New declaration.
41239
41240 2009-01-25  Bruno Haible  <bruno@clisp.org>
41241
41242         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41243         multibyte characters also for the GB18030 encoding. Don't crash when
41244         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41245
41246 2009-01-25  Bruno Haible  <bruno@clisp.org>
41247
41248         Avoid redefining 'struct random_data' on OSF/1 5.1.
41249         * lib/stdlib.in.h: Include <random.h> if it exists.
41250         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41251         HAVE_RANDOM_H. Include <random.h> when testing whether
41252         'struct random_data' exists.
41253         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41254
41255 2009-01-25  Bruno Haible  <bruno@clisp.org>
41256
41257         Don't install charset.alias on MacOS X >= 10.3.
41258         * lib/localcharset.c (DARWIN7): New macro.
41259         (get_charset_aliases): Hardcode the result for Darwin7.
41260         * modules/localcharset (install-exec-local): Don't install
41261         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41262
41263 2009-01-25  Bruno Haible  <bruno@clisp.org>
41264
41265         Don't install charset.alias on mingw and Cygwin.
41266         * modules/localcharset (install-exec-local): Don't install
41267         charset.alias on mingw and Cygwin, if the file does not yet exist.
41268         The result for these platforms is hardcoded in localcharset.c.
41269
41270 2009-01-25  Bruno Haible  <bruno@clisp.org>
41271
41272         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41274         before requiring AC_USE_SYSTEM_EXTENSIONS.
41275
41276 2009-01-25  Jim Meyering  <meyering@redhat.com>
41277
41278         c-strtod: avoid warnings
41279         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41280         "assignment discards qualifiers from pointer target type" warnings.
41281
41282 2009-01-24  Bruno Haible  <bruno@clisp.org>
41283
41284         Add support for non-UTF-8 locales on MacOS X.
41285         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41286         canonical encodings. For Darwin 7 and newer, don't map traditional
41287         encodings to UTF-8.
41288         Reported by Vincent Lefevre <vincent@vinc17.org>
41289         at <http://savannah.gnu.org/bugs/?25235>.
41290
41291 2009-01-24  Bruno Haible  <bruno@clisp.org>
41292
41293         * doc/gnulib.texi (Obsolete modules): New section.
41294         Reported by Mike Frysinger <vapier@gentoo.org>.
41295
41296 2009-01-24  Bruno Haible  <bruno@clisp.org>
41297
41298         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41299         (%.dvi): New rule.
41300
41301 2009-01-24  Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41304         Reported by Eric Blake.
41305
41306 2009-01-24  Bruno Haible  <bruno@clisp.org>
41307
41308         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41309         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41310         Reported by Gary V. Vaughan <gary@gnu.org>.
41311
41312 2009-01-24  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41315
41316 2009-01-23  Bruno Haible  <bruno@clisp.org>
41317
41318         Make c-strtod, c-strtold usable in libraries.
41319         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41320         (C_STRTOD): Call strdup instead of xstrdup.
41321         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41322         * modules/c-strtold (Depends-on): Likewise.
41323         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41324         * NEWS: Mention the change.
41325         Reported by Michael Gold <mgold@ncf.ca>.
41326
41327 2009-01-23  Jim Meyering  <meyering@redhat.com>
41328
41329         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41330         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41331         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41332
41333 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41334
41335         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41336         GNU CoreUtils.
41337         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41338         * modules/version-etc (Description): Update.
41339
41340 2009-01-22  Bruno Haible  <bruno@clisp.org>
41341
41342         Cache the C locale object.
41343         * lib/c-strtod.c (c_locale_cache): New variable.
41344         (c_locale): New function.
41345         (C_STRTOD): Use it, and don't call freelocale.
41346         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41347         Suggested by Paolo Bonzini.
41348
41349 2009-01-21  Bruno Haible  <bruno@clisp.org>
41350
41351         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41352         conditions other than overflow.
41353
41354 2009-01-21  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/c-strtod.c: Include errno.h.
41357         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41358         value from STRTOD_L and STRTOD.
41359
41360 2009-01-21  Bruno Haible  <bruno@clisp.org>
41361         and Jim Meyering  <meyering@redhat.com>
41362
41363         nanosleep: skip configure test (fail it) for apple universal builds
41364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41365         universal builds, assume that nanosleep does not work.
41366         * modules/nanosleep (Depends-on): Add multiarch.
41367
41368         mktime: skip configure test (fail it) for apple universal builds
41369         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41370         universal builds, assume that mktime does not work.
41371         * modules/mktime (Depends-on): Add multiarch.
41372
41373 2009-01-21  Eric Blake  <ebb9@byu.net>
41374
41375         multiarch: avoid expand-before-require warning
41376         * modules/multiarch (configure.ac): Require, rather than expand,
41377         gl_MULTIARCH.
41378         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41379         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41380         enforce that all clients require it.  Partial reversion of
41381         2008-12-29 patch.
41382
41383         error: avoid expand-before-require warning
41384         * modules/errno (configure.ac): Require, rather than expand,
41385         gl_HEADER_ERRNO_H.
41386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41387         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41388         enforce that all clients require it.
41389
41390         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41391         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41392         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41393         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41394
41395 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41396
41397         Revert:
41398         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41399
41400         regex: do not depend on obsolete modules.
41401         * modules/regex: Remove memcmp and memmove.
41402
41403 2009-01-20  Bruno Haible  <bruno@clisp.org>
41404
41405         Make the 'link' module link on Windows NT 4.
41406         * lib/link.c (_WIN32_WINNT): Don't define.
41407         (CreateHardLinkFuncType): New type.
41408         (CreateHardLinkFunc, initialized): New variables.
41409         (initialize): New function.
41410         (link): Invoke CreateHardLink indirectly through the function pointer.
41411
41412 2009-01-20  Bruno Haible  <bruno@clisp.org>
41413
41414         Fix compilation failure on mingw.
41415         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41416
41417 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41418
41419         * doc/c-strtod.texi: Mention a couple of restrictions.
41420
41421 2009-01-20  Jim Meyering  <meyering@redhat.com>
41422
41423         gettimeofday: move more declarations out of functions
41424         * lib/gettimeofday.c: Move extern declarations of tzset and
41425         gmtime out of containing functions.  Prompted by Bruno Haible.
41426
41427 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41428
41429         regex: do not depend on obsolete modules.
41430         * modules/regex: Remove memcmp and memmove.
41431
41432 2009-01-19  Bruno Haible  <bruno@clisp.org>
41433
41434         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41435         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41436         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41437         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41438         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41439
41440 2009-01-19  Bruno Haible  <bruno@clisp.org>
41441
41442         * tests/test-link.c: Include <errno.h>.
41443         (main): Exit with code 77 when a hard link cannot be created due to
41444         the file system.
41445         * tests/test-link.sh: Skip test when a hard link cannot be created due
41446         to the file system.
41447         Suggested by Eric Blake.
41448
41449 2009-01-19  Martin Lambers  <marlam@marlam.de>
41450
41451         * modules/link-tests: New file.
41452         * tests/test-link.sh: New file.
41453         * tests/test-link.c: New file.
41454
41455 2009-01-19  Eric Blake  <ebb9@byu.net>
41456
41457         doc: mention another function added in cygwin 1.7.0
41458         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41459         Another new function in cygwin 1.7.
41460
41461 2009-01-19  Bruno Haible  <bruno@clisp.org>
41462
41463         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41464         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41465         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41466         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41467         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41468         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41469         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41470         * m4/md4.m4 (gl_MD4): Likewise.
41471         * m4/md5.m4 (gl_MD5): Likewise.
41472         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41473         * m4/sha1.m4 (gl_SHA1): Likewise.
41474         * m4/sha256.m4 (gl_SHA256): Likewise.
41475         * m4/sha512.m4 (gl_SHA512): Likewise.
41476
41477 2009-01-19  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/uniname/uniname-tests (Depends-on): Add progname.
41480         * tests/uniname/test-uninames.c: Include progname.h.
41481         (main): Call set_program_name.
41482
41483         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41484         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41485         (main): Call set_program_name.
41486
41487         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41488         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41489         (main): Call set_program_name.
41490
41491         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41492         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41493         (main): Call set_program_name.
41494
41495         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41496         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41497         (main): Call set_program_name.
41498
41499         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41500         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41501         (main): Call set_program_name.
41502
41503         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41504         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41505         (main): Call set_program_name.
41506
41507         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41508         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41509         (main): Call set_program_name.
41510
41511         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41512         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41513         (main): Call set_program_name.
41514
41515 2009-01-19  Eric Blake  <ebb9@byu.net>
41516
41517         test-unistd: test previous patch
41518         * tests/test-unistd.c: Test *_FILENO macros.
41519
41520         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41521         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41522         Guarantee a definition.
41523         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41524         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41525         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41526         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41527         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41528         Likewise.
41529         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41530         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41531         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41532         Likewise.
41533         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41534         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41535         (STDERR_FILENO): Likewise.
41536         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41537         (STDERR_FILENO): Likewise.
41538         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41539         (STDERR_FILENO): Likewise.
41540         Reported by Elbert Pol.
41541
41542 2009-01-19  Eric Blake  <ebb9@byu.net>
41543
41544         doc: mention more functions added in cygwin 1.7.0
41545         * doc/posix-functions/abort.texi (abort): Update wording related
41546         to cygwin.
41547         * doc/posix-functions/daylight.texi (daylight): Likewise.
41548         * doc/posix-functions/optarg.texi (optarg): Likewise.
41549         * doc/posix-functions/optarg.texi (opterr): Likewise.
41550         * doc/posix-functions/optarg.texi (optind): Likewise.
41551         * doc/posix-functions/optarg.texi (optopt): Likewise.
41552         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41553         worked in 1.5.x, and was withdrawn in 1.7.
41554         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41555         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41556         cygwin versions.
41557         * doc/posix-functions/perror.texi (perror): Likewise.
41558         * doc/posix-functions/printf.texi (printf): Likewise.
41559         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41560         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41561         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41562         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41563         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41564         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41565         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41566         Likewise.
41567         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41568         Likewise.
41569         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41570         this function.
41571         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41572         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41573         Likewise.
41574         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41575         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41576         * doc/posix-functions/confstr.texi (confstr): Likewise.
41577         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41578         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41579         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41580         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41581         * doc/posix-functions/fputws.texi (fputws): Likewise.
41582         * doc/posix-functions/fwide.texi (fwide): Likewise.
41583         * doc/posix-functions/getwc.texi (getwc): Likewise.
41584         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41585         * doc/posix-functions/putwc.texi (putwc): Likewise.
41586         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41587         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41588         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41589         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41590         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41591         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41592         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41593         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41594         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41595         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41596         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41597
41598 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41599
41600         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41601         * lib/ioctl.c: Include <sys/ioctl.h>.
41602
41603 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41604
41605         * modules/getdate-tests (Depends-on): Add progname.
41606         * tests/test-getdate.c: Use progname module, to avoid link errors
41607         on non-glibc systems.
41608
41609 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41610
41611         * modules/filenamecat-tests (Depends-on): Add progname.
41612         * modules/fstrcmp-tests (Depends-on): Likewise.
41613
41614         * tests/test-filenamecat.c: Use progname module, to avoid link
41615         errors on non-glibc systems.
41616         * tests/test-fstrcmp.c: Likewise.
41617
41618 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41619
41620         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41621         * lib/gettimeofday.c: Move extern declaration out of function.
41622
41623 2009-01-18  Bruno Haible  <bruno@clisp.org>
41624
41625         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41626         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41627         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41628
41629 2009-01-18  Bruno Haible  <bruno@clisp.org>
41630
41631         * lib/strftime.c (MEMPCPY): Remove unused macro.
41632         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41633
41634 2009-01-18  Martin Lambers  <marlam@marlam.de>
41635
41636         New module 'link'.
41637         * lib/unistd.in.h (link): New declaration.
41638         * lib/link.c: New file.
41639         * m4/link.m4: New file.
41640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41641         HAVE_LINK.
41642         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41643         * modules/link: New file.
41644         * doc/posix-functions/link.texi: Mention the new module.
41645
41646 2009-01-18  Bruno Haible  <bruno@clisp.org>
41647
41648         * tests/test-avltree_list.c (main): Call set_program_name.
41649         * tests/test-avltree_oset.c (main): Likewise.
41650         * tests/test-obstack-printf.c: Include progname.h.
41651         (main): Call set_program_name.
41652         * tests/test-quotearg.c: Include progname.h.
41653         (main): Call set_program_name.
41654         * tests/test-xmemdup0.c: Include progname.h.
41655         (main): Call set_program_name.
41656
41657 2009-01-18  Bruno Haible  <bruno@clisp.org>
41658
41659         New module 'alphasort'.
41660         * lib/dirent.in.h (alphasort): New declaration.
41661         * lib/alphasort.c: New file, from glibc with modifications.
41662         * m4/alphasort.m4: New file.
41663         * modules/alphasort: New file.
41664         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41665         HAVE_ALPHASORT.
41666         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41667         HAVE_ALPHASORT.
41668         * doc/posix-functions/alphasort.texi: Mention the new module and the
41669         portability problems.
41670
41671 2009-01-18  Bruno Haible  <bruno@clisp.org>
41672
41673         New module 'scandir'.
41674         * lib/dirent.in.h (scandir): New declaration.
41675         * lib/scandir.c: New file, from glibc with modifications.
41676         * m4/scandir.m4: New file.
41677         * modules/scandir: New file.
41678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41679         HAVE_SCANDIR.
41680         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41681         HAVE_SCANDIR.
41682         * doc/posix-functions/scandir.texi: Mention the new module and the
41683         portability problems.
41684
41685 2009-01-17  Bruno Haible  <bruno@clisp.org>
41686
41687         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41688         Update documentation.
41689         (func_remove_suffix): Escape all dots in the suffix. Update
41690         documentation.
41691         (func_filter_filelist): Update documentation.
41692         Reported by Ralf Wildenhues.
41693
41694 2009-01-17  Bruno Haible  <bruno@clisp.org>
41695
41696         * modules/dprintf-posix-tests: New file.
41697         * tests/test-dprintf-posix.sh: New file.
41698         * tests/test-dprintf-posix.c: New file.
41699
41700         New modules 'dprintf', 'dprintf-posix'.
41701         * lib/stdio.in.h (dprintf): New declaration.
41702         * lib/dprintf.c: New file.
41703         * m4/dprintf.m4: New file.
41704         * m4/dprintf-posix.m4: New file.
41705         * modules/dprintf: New file.
41706         * modules/dprintf-posix: New file.
41707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41708         HAVE_DPRINTF, REPLACE_DPRINTF.
41709         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41710         HAVE_DPRINTF, REPLACE_DPRINTF.
41711         * doc/posix-functions/dprintf.texi: Mention the new modules.
41712
41713 2009-01-17  Bruno Haible  <bruno@clisp.org>
41714
41715         * modules/vdprintf-posix-tests: New file.
41716         * tests/test-vdprintf-posix.sh: New file.
41717         * tests/test-vdprintf-posix.c: New file.
41718
41719         New modules 'vdprintf', 'vdprintf-posix'.
41720         * lib/stdio.in.h (vdprintf): New declaration.
41721         * lib/vdprintf.c: New file.
41722         * m4/vdprintf.m4: New file.
41723         * m4/vdprintf-posix.m4: New file.
41724         * modules/vdprintf: New file.
41725         * modules/vdprintf-posix: New file.
41726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41727         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41728         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41729         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41730         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41731
41732 2009-01-17  Bruno Haible  <bruno@clisp.org>
41733
41734         Fix replacement of fopen on mingw.
41735         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41736         mingw.
41737
41738 2009-01-17  Bruno Haible  <bruno@clisp.org>
41739
41740         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41741         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41742
41743 2009-01-17  Bruno Haible  <bruno@clisp.org>
41744
41745         Avoid test-fflush2.sh failure on mingw.
41746         * tests/test-fflush2.c: Include binary-io.h.
41747         (main): Put standard input into binary mode.
41748         * modules/fflush-tests (Depends-on): Add binary-io.
41749
41750 2009-01-17  Bruno Haible  <bruno@clisp.org>
41751
41752         * lib/wchar.in.h: In another particular situation, include only the
41753         system's <wchar.h> file.
41754         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41755         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41756         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41757
41758 2009-01-17  Bruno Haible  <bruno@clisp.org>
41759
41760         Support for stripping executables in --enable-relocatable.
41761         * build-aux/install-reloc: Expect one more argument, or an environment
41762         variable RELOC_STRIP_PROG. If set, strip the destination program and
41763         its wrapper.
41764         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41765         RELOC_STRIP_PROG.
41766         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41767         to set RELOCATABLE_STRIP.
41768         * NEWS: Mention the new Makefile requirement.
41769
41770 2009-01-17  Bruno Haible  <bruno@clisp.org>
41771
41772         * build-aux/install-reloc: Remove debugging information left over by
41773         C compiler on MacOS X.
41774
41775 2009-01-17  Bruno Haible  <bruno@clisp.org>
41776
41777         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41778         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41779         _NSGetExecutablePath.
41780
41781 2009-01-16  Jim Meyering  <meyering@redhat.com>
41782
41783         strerror: avoid warnings about discarding "const"
41784         * lib/strerror.c (rpl_strerror): Instead of returning a const
41785         string from each and every "case", use a variable, and add a single
41786         cast after the switch.
41787
41788 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41789
41790         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41791
41792 2009-01-16  Bruno Haible  <bruno@clisp.org>
41793
41794         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41795         array initializer syntax that also works in C++ mode.
41796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41797
41798 2009-01-16  Jim Meyering  <meyering@redhat.com>
41799
41800         poll: suppress a warning
41801         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41802         to ignore "...unsigned expression < 0 is always false" warnings.
41803
41804 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41805
41806         poll: remove declarations of unused variables
41807         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41808         sockbuf and optlen.
41809
41810 2009-01-15  Bruno Haible  <bruno@clisp.org>
41811
41812         Make fflush-after-ungetc POSIX compliant on BSD systems.
41813         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41814         (clear_ungetc_buffer): Implement also for other systems.
41815         (rpl_fflush): On glibc systems, invoke
41816         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41817         clear_ungetc_buffer after fetching the stream's position, not before.
41818
41819 2009-01-15  Bruno Haible  <bruno@clisp.org>
41820
41821         Make fflush-after-ungetc POSIX compliant on glibc systems.
41822         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41823         after ungetc.
41824         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41825         (rpl_fflush): On glibc systems, simply call the system's fflush
41826         function after clearing the ungetc buffer.
41827         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41828         Instead, lseek only to the end of file, then use the system's fseeko
41829         for the rest. On glibc systems, reset the EOF indicator bit.
41830
41831 2009-01-15  Jim Meyering  <meyering@redhat.com>
41832
41833         openmp.m4: revert quote-adding change, for portability to older autoconf
41834         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41835         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41836         Simon Josefsson noticed the problem when using autoconf-2.61.
41837
41838 2009-01-15  Bruno Haible  <bruno@clisp.org>
41839
41840         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41841         * tests/test-fflush2.c (ASSERT): Always fail.
41842         (main): Add two tests for fflush() after ungetc(), taking into account
41843         the Austin Group's clarification.
41844         Suggested by Eric Blake.
41845
41846 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41847
41848         mktime.m4: remove K&R-style function prototypes
41849         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41850         for the Sun C++ compiler.
41851
41852 2009-01-14  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41855         while including <wchar.h>.
41856         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41857         the system's <wchar.h> file.
41858         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41859
41860 2009-01-14  Bruno Haible  <bruno@clisp.org>
41861
41862         * m4/csharp.m4: Don't mention gettext on the serial number line.
41863         * m4/csharpexec.m4: Likewise.
41864         * m4/eaccess.m4: Likewise.
41865         * m4/javaexec.m4: Likewise.
41866         * m4/sig_atomic_t.m4: Likewise.
41867         * m4/tmpdir.m4: Likewise.
41868         * m4/intldir.m4: Bump gettext version.
41869         * m4/lib-ld.m4: Likewise.
41870
41871 2009-01-14  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/progname.c (set_program_name): Add more comments.
41874         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41875
41876 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41877
41878         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41879         were sys/stat.h does not define it.
41880
41881 2009-01-14  Jim Meyering  <meyering@redhat.com>
41882
41883         many *.m4 files: improve m4 quoting
41884         99% of this change was performed by running the following commands:
41885         git ls-files | grep '\.m4$' | xargs perl -pi \
41886           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41887           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41888           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41889           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41890         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41891         The remainder were to add Copyright dates, increment serial numbers,
41892         undo some changes in comments, exclude m4/intl.m4, and add quotes
41893         around the "1" in ",1" where the unusual spacing prohibited the
41894         above regexps from doing the job.  For more details, see
41895         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41896         * m4/acl.m4: Modified.
41897         * m4/afs.m4: Likewise.
41898         * m4/alloca.m4: Likewise.
41899         * m4/argp.m4: Likewise.
41900         * m4/argz.m4: Likewise.
41901         * m4/atexit.m4: Likewise.
41902         * m4/bison-i18n.m4: Likewise.
41903         * m4/bison.m4: Likewise.
41904         * m4/byteswap.m4: Likewise.
41905         * m4/c-stack.m4: Likewise.
41906         * m4/c-strtod.m4: Likewise.
41907         * m4/calloc.m4: Likewise.
41908         * m4/canonicalize-lgpl.m4: Likewise.
41909         * m4/chown.m4: Likewise.
41910         * m4/clock_time.m4: Likewise.
41911         * m4/codeset.m4: Likewise.
41912         * m4/copy-file.m4: Likewise.
41913         * m4/csharp.m4: Likewise.
41914         * m4/csharpcomp.m4: Likewise.
41915         * m4/csharpexec.m4: Likewise.
41916         * m4/d-ino.m4: Likewise.
41917         * m4/d-type.m4: Likewise.
41918         * m4/dirfd.m4: Likewise.
41919         * m4/double-slash-root.m4: Likewise.
41920         * m4/eaccess.m4: Likewise.
41921         * m4/eealloc.m4: Likewise.
41922         * m4/environ.m4: Likewise.
41923         * m4/errno_h.m4: Likewise.
41924         * m4/euidaccess.m4: Likewise.
41925         * m4/execute.m4: Likewise.
41926         * m4/fatal-signal.m4: Likewise.
41927         * m4/fchdir.m4: Likewise.
41928         * m4/fcntl_h.m4: Likewise.
41929         * m4/fileblocks.m4: Likewise.
41930         * m4/filenamecat.m4: Likewise.
41931         * m4/findprog.m4: Likewise.
41932         * m4/flexmember.m4: Likewise.
41933         * m4/fnmatch.m4: Likewise.
41934         * m4/fopen.m4: Likewise.
41935         * m4/fpending.m4: Likewise.
41936         * m4/fprintf-posix.m4: Likewise.
41937         * m4/free.m4: Likewise.
41938         * m4/frexp.m4: Likewise.
41939         * m4/frexpl.m4: Likewise.
41940         * m4/fsusage.m4: Likewise.
41941         * m4/ftruncate.m4: Likewise.
41942         * m4/gc-camellia.m4: Likewise.
41943         * m4/gc-random.m4: Likewise.
41944         * m4/gc.m4: Likewise.
41945         * m4/getaddrinfo.m4: Likewise.
41946         * m4/getcwd-abort-bug.m4: Likewise.
41947         * m4/getcwd-path-max.m4: Likewise.
41948         * m4/getdate.m4: Likewise.
41949         * m4/getdomainname.m4: Likewise.
41950         * m4/getgroups.m4: Likewise.
41951         * m4/gethostname.m4: Likewise.
41952         * m4/gethrxtime.m4: Likewise.
41953         * m4/getline.m4: Likewise.
41954         * m4/getloadavg.m4: Likewise.
41955         * m4/getndelim2.m4: Likewise.
41956         * m4/getpass.m4: Likewise.
41957         * m4/gettext.m4: Likewise.
41958         * m4/gettime.m4: Likewise.
41959         * m4/gettimeofday.m4: Likewise.
41960         * m4/gnulib-common.m4: Likewise.
41961         * m4/group-member.m4: Likewise.
41962         * m4/host-os.m4: Likewise.
41963         * m4/iconv.m4: Likewise.
41964         * m4/iconv_open.m4: Likewise.
41965         * m4/inet_ntop.m4: Likewise.
41966         * m4/inet_pton.m4: Likewise.
41967         * m4/inline.m4: Likewise.
41968         * m4/intldir.m4: Likewise.
41969         * m4/intlmacosx.m4: Likewise.
41970         * m4/intmax.m4: Likewise.
41971         * m4/intmax_t.m4: Likewise.
41972         * m4/inttypes.m4: Likewise.
41973         * m4/inttypes_h.m4: Likewise.
41974         * m4/inttypes-pri.m4: Likewise.
41975         * m4/isapipe.m4: Likewise.
41976         * m4/isnand.m4: Likewise.
41977         * m4/isnanf.m4: Likewise.
41978         * m4/isnanl.m4: Likewise.
41979         * m4/javacomp.m4: Likewise.
41980         * m4/javaexec.m4: Likewise.
41981         * m4/jm-winsz1.m4: Likewise.
41982         * m4/jm-winsz2.m4: Likewise.
41983         * m4/lchown.m4: Likewise.
41984         * m4/lcmessage.m4: Likewise.
41985         * m4/ldexpl.m4: Likewise.
41986         * m4/lib-ld.m4: Likewise.
41987         * m4/lib-link.m4: Likewise.
41988         * m4/libsigsegv.m4: Likewise.
41989         * m4/link-follow.m4: Likewise.
41990         * m4/localcharset.m4: Likewise.
41991         * m4/locale-fr.m4: Likewise.
41992         * m4/locale-ja.m4: Likewise.
41993         * m4/locale-tr.m4: Likewise.
41994         * m4/locale-zh.m4: Likewise.
41995         * m4/lock.m4: Likewise.
41996         * m4/longlong.m4: Likewise.
41997         * m4/ls-mntd-fs.m4: Likewise.
41998         * m4/lstat.m4: Likewise.
41999         * m4/malloc.m4: Likewise.
42000         * m4/mathl.m4: Likewise.
42001         * m4/mbrtowc.m4: Likewise.
42002         * m4/mbstate_t.m4: Likewise.
42003         * m4/mbswidth.m4: Likewise.
42004         * m4/memchr.m4: Likewise.
42005         * m4/memcmp.m4: Likewise.
42006         * m4/memcpy.m4: Likewise.
42007         * m4/memmem.m4: Likewise.
42008         * m4/memmove.m4: Likewise.
42009         * m4/mempcpy.m4: Likewise.
42010         * m4/memrchr.m4: Likewise.
42011         * m4/memset.m4: Likewise.
42012         * m4/minmax.m4: Likewise.
42013         * m4/mkdir-slash.m4: Likewise.
42014         * m4/mkdtemp.m4: Likewise.
42015         * m4/mktime.m4: Likewise.
42016         * m4/mmap-anon.m4: Likewise.
42017         * m4/mountlist.m4: Likewise.
42018         * m4/nanosleep.m4: Likewise.
42019         * m4/nls.m4: Likewise.
42020         * m4/nocrash.m4: Likewise.
42021         * m4/open.m4: Likewise.
42022         * m4/openat.m4: Likewise.
42023         * m4/openmp.m4: Likewise.
42024         * m4/pathmax.m4: Likewise.
42025         * m4/perl.m4: Likewise.
42026         * m4/physmem.m4: Likewise.
42027         * m4/pipe.m4: Likewise.
42028         * m4/po.m4: Likewise.
42029         * m4/poll.m4: Likewise.
42030         * m4/posixtm.m4: Likewise.
42031         * m4/posixver.m4: Likewise.
42032         * m4/printf-frexp.m4: Likewise.
42033         * m4/printf-frexpl.m4: Likewise.
42034         * m4/printf-posix.m4: Likewise.
42035         * m4/printf-posix-rpl.m4: Likewise.
42036         * m4/printf.m4: Likewise.
42037         * m4/progtest.m4: Likewise.
42038         * m4/putenv.m4: Likewise.
42039         * m4/readline.m4: Likewise.
42040         * m4/readlink.m4: Likewise.
42041         * m4/readutmp.m4: Likewise.
42042         * m4/realloc.m4: Likewise.
42043         * m4/regex.m4: Likewise.
42044         * m4/relocatable.m4: Likewise.
42045         * m4/relocatable-lib.m4: Likewise.
42046         * m4/rename-dest-slash.m4: Likewise.
42047         * m4/rename.m4: Likewise.
42048         * m4/rmdir-errno.m4: Likewise.
42049         * m4/rmdir.m4: Likewise.
42050         * m4/roundf.m4: Likewise.
42051         * m4/roundl.m4: Likewise.
42052         * m4/rpmatch.m4: Likewise.
42053         * m4/save-cwd.m4: Likewise.
42054         * m4/selinux-selinux-h.m4: Likewise.
42055         * m4/setenv.m4: Likewise.
42056         * m4/settime.m4: Likewise.
42057         * m4/sig2str.m4: Likewise.
42058         * m4/sig_atomic_t.m4: Likewise.
42059         * m4/signalblocking.m4: Likewise.
42060         * m4/signbit.m4: Likewise.
42061         * m4/sigpipe.m4: Likewise.
42062         * m4/sockets.m4: Likewise.
42063         * m4/sockpfaf.m4: Likewise.
42064         * m4/st_dm_mode.m4: Likewise.
42065         * m4/stat-time.m4: Likewise.
42066         * m4/stdbool.m4: Likewise.
42067         * m4/stdint.m4: Likewise.
42068         * m4/stdint_h.m4: Likewise.
42069         * m4/stpcpy.m4: Likewise.
42070         * m4/stpncpy.m4: Likewise.
42071         * m4/strcase.m4: Likewise.
42072         * m4/strchrnul.m4: Likewise.
42073         * m4/strcspn.m4: Likewise.
42074         * m4/strdup.m4: Likewise.
42075         * m4/strftime.m4: Likewise.
42076         * m4/strndup.m4: Likewise.
42077         * m4/strnlen.m4: Likewise.
42078         * m4/strpbrk.m4: Likewise.
42079         * m4/strptime.m4: Likewise.
42080         * m4/strsep.m4: Likewise.
42081         * m4/strtod.m4: Likewise.
42082         * m4/strtoimax.m4: Likewise.
42083         * m4/strtok_r.m4: Likewise.
42084         * m4/strtol.m4: Likewise.
42085         * m4/strtoll.m4: Likewise.
42086         * m4/strtoul.m4: Likewise.
42087         * m4/strtoull.m4: Likewise.
42088         * m4/strtoumax.m4: Likewise.
42089         * m4/strverscmp.m4: Likewise.
42090         * m4/threadlib.m4: Likewise.
42091         * m4/timegm.m4: Likewise.
42092         * m4/tm_gmtoff.m4: Likewise.
42093         * m4/tmpdir.m4: Likewise.
42094         * m4/tmpfile.m4: Likewise.
42095         * m4/tzset.m4: Likewise.
42096         * m4/uintmax_t.m4: Likewise.
42097         * m4/unlinkdir.m4: Likewise.
42098         * m4/unlocked-io.m4: Likewise.
42099         * m4/uptime.m4: Likewise.
42100         * m4/userspec.m4: Likewise.
42101         * m4/utimbuf.m4: Likewise.
42102         * m4/utime.m4: Likewise.
42103         * m4/utimes-null.m4: Likewise.
42104         * m4/utimes.m4: Likewise.
42105         * m4/vararrays.m4: Likewise.
42106         * m4/vasnprintf.m4: Likewise.
42107         * m4/vfprintf-posix.m4: Likewise.
42108         * m4/vprintf-posix.m4: Likewise.
42109         * m4/wait-process.m4: Likewise.
42110         * m4/wchar_t.m4: Likewise.
42111         * m4/wint_t.m4: Likewise.
42112         * m4/write-any-file.m4: Likewise.
42113         * m4/yield.m4: Likewise.
42114
42115 2009-01-13  Bruno Haible  <bruno@clisp.org>
42116
42117         Avoid test-copy-file.sh failures when ACL support insufficient.
42118         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42119         TESTS_ENVIRONMENT.
42120         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42121         Reported by Jim Meyering.
42122
42123 2009-01-13  Bruno Haible  <bruno@clisp.org>
42124
42125         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42126         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42127         * modules/unistdio/u8-printf-parse (Files): Likewise.
42128         * modules/unistdio/u32-printf-parse (Files): Likewise.
42129         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42130
42131 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42132
42133         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42134         and m4/inttypes_h.m4 too.
42135
42136 2009-01-12  Eric Blake  <ebb9@byu.net>
42137
42138         tests: IRIX 6.2 cc can't compile -0.0 into .data
42139         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42140         rather than at compile-time.
42141         * tests/test-floorl.c (minus_zero): Likewise.
42142         * tests/test-frexpl.c (minus_zero): Likewise.
42143         * tests/test-isnan.c (minus_zerol): Likewise.
42144         * tests/test-isnanl.h (minus_zero): Likewise.
42145         * tests/test-ldexpl.c (minus_zero): Likewise.
42146         * tests/test-roundl.c (minus_zero): Likewise.
42147         * tests/test-signbit.c (minus_zerol): Likewise.
42148         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42149         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42150         * tests/test-truncl.c (minus_zero): Likewise.
42151         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42152         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42153         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42154
42155 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42156
42157         regex: fix glibc bug 9697
42158         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42159         handling.
42160
42161 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42162
42163         regex: fix glibc bug 697
42164         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42165         being NULL also if there are no backreferences.
42166
42167 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42168
42169         regex: merge glibc changes
42170         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42171         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42172         re_string_skip_chars, re_string_reconstruct): Likewise.
42173         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42174
42175 2009-01-07  Jim Meyering  <meyering@redhat.com>
42176
42177         poll: filter through cppi
42178         * lib/poll.c: Indent cpp directives to reflect nesting.
42179
42180 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42181
42182         poll: don't return uninitialized
42183         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42184
42185 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42186
42187         avoid compile failure on AIX 6.1
42188         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42189         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42190
42191 2009-01-04  Jim Meyering  <meyering@redhat.com>
42192
42193         remove duplicate inclusion of <stdio.h>
42194         * tests/test-fprintf-posix.c: Likewise.
42195         * tests/test-printf-posix.c: Likewise.
42196         * tests/test-snprintf-posix.c: Likewise.
42197         * tests/test-sprintf-posix.c: Likewise.
42198         * tests/test-vasprintf-posix.c: Likewise.
42199         * tests/test-vfprintf-posix.c: Likewise.
42200         * tests/test-vprintf-posix.c: Likewise.
42201         * tests/test-vsnprintf-posix.c: Likewise.
42202         * tests/test-vsprintf-posix.c: Likewise.
42203
42204 2009-01-03  Jim Meyering  <meyering@redhat.com>
42205
42206         gnulib-tool: fix sed-based filtering
42207         * gnulib-tool (func_filter_filelist): Remove extra backslash
42208         in sed_fff_filter definition.
42209
42210 2009-01-02  Jim Meyering  <meyering@redhat.com>
42211
42212         strftime: avoid compilation failure on Solaris 2.6
42213         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42214         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42215         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42216         be available.  Reported by Tom G. Christensen.  Details in
42217         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42218
42219 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42220             Bruno Haible  <bruno@clisp.org>
42221
42222         Speed up gnulib-tool by doing more string processing through shell
42223         built-ins.
42224         * gnulib-tool (fast_func_append): New variable.
42225         (func_remove_prefix, func_remove_suffix): New functions.
42226         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42227         (func_filter_filelist): New function.
42228         (func_get_dependencies): Use func_remove_suffix instead of sed.
42229         (func_get_automake_snippet): Use func_filter_filelist instead of a
42230         subshell and sed invocation.
42231
42232 2009-01-01  Bruno Haible  <bruno@clisp.org>
42233
42234         Fix a security bug.
42235         * gnulib-tool (func_import, import, update): Don't allow the characters
42236         '"', '$', '`', '\' in macro arguments that become part of commands that
42237         are evaluated.
42238
42239 2009-01-01  Bruno Haible  <bruno@clisp.org>
42240
42241         * gnulib-tool (func_reset_sigpipe): Add more comments.
42242
42243 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42244
42245         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42246         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42247         already know the answer.
42248
42249 2009-01-01  Jim Meyering  <meyering@redhat.com>
42250
42251         * lib/version-etc.c (version_etc_va): Update copyright year.
42252
42253 2008-12-30  Bruno Haible  <bruno@clisp.org>
42254
42255         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42256         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42257         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42258
42259 2008-12-29  Eric Blake  <ebb9@byu.net>
42260
42261         multiarch: avoid autoconf AC_REQUIRE bug
42262         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42263         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42264         2.63 and older.
42265         Reported by Bruno Haible, and analyzed in
42266         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42267
42268 2008-12-29  Bruno Haible  <bruno@clisp.org>
42269
42270         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42271         files in subdirectories correctly.
42272         Reported by Ralf Wildenhues.
42273
42274 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42275
42276         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42277         rather than 'join FILE -', for Solaris join.
42278
42279 2008-12-29  Bruno Haible  <bruno@clisp.org>
42280
42281         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42282         quoting.
42283         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42284         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42285         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42286         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42287         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42288         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42289         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42290         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42291         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42292         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42293         * m4/nls.m4 (AM_NLS): Likewise.
42294         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42295         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42296         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42297         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42298         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42299         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42300         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42301         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42302         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42303         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42304         * m4/xsize.m4 (gl_XSIZE): Likewise.
42305         Suggested by Jim Meyering.
42306
42307 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42308
42309         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42310         * lib/parse-duration.c: use a switch instead of cascading if's.
42311
42312 2008-12-29  Eric Blake  <ebb9@byu.net>
42313
42314         wchar.h: supply WEOF on Irix 5.3
42315         * lib/wchar.in.h (wint_t): Also supply WEOF.
42316         * lib/wctype.in.h (wint_t): Likewise.
42317         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42318         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42319         Reported by Tom G. Christensen.
42320
42321 2008-12-26  Bruno Haible  <bruno@clisp.org>
42322
42323         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42324         i486, i586, i686.
42325
42326 2008-12-26  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42329
42330 2008-12-26  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42333         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42334         not __STDC_CONSTANT_MACROS.
42335         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42336
42337 2008-12-25  Bruno Haible  <bruno@clisp.org>
42338
42339         Add support for universal builds to vasnprintf.
42340         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42341         universal builds, guess no.
42342         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42343         * modules/vasprintf-posix (Depends-on): Likewise.
42344         * modules/fprintf-posix (Depends-on): Likewise.
42345         * modules/vfprintf-posix (Depends-on): Likewise.
42346         * modules/snprintf-posix (Depends-on): Likewise.
42347         * modules/vsnprintf-posix (Depends-on): Likewise.
42348         * modules/sprintf-posix (Depends-on): Likewise.
42349         * modules/vsprintf-posix (Depends-on): Likewise.
42350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42357
42358         Add support for universal builds to <inttypes.h>.
42359         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42360         _SCNu64_PREFIX): In Apple
42361         universal builds, define directly, using _LP64.
42362         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42363         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42364         * modules/inttypes (Depends-on): Add multiarch.
42365         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42366
42367         Add support for universal builds to <stdint.h>.
42368         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42369         universal builds, define directly, using _LP64.
42370         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42371         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42372         and size_t.
42373         * modules/stdint (Depends-on): Add multiarch.
42374         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42375
42376         New module 'multiarch'.
42377         * modules/multiarch: New file.
42378         * m4/multiarch.m4: New file.
42379
42380 2008-12-25  Bruno Haible  <bruno@clisp.org>
42381
42382         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42383
42384 2008-12-25  Bruno Haible  <bruno@clisp.org>
42385
42386         * modules/btowc (License): Relicense under LGPLv2+.
42387         * modules/mbsinit (License): Likewise.
42388         * modules/mbrtowc (License): Likewise.
42389         * modules/wcrtomb (License): Likewise.
42390         * modules/streq (License): Likewise.
42391         Reported by David Lutterkort <lutter@redhat.com>.
42392
42393 2008-12-23  Bruno Haible  <bruno@clisp.org>
42394
42395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42396
42397 2008-12-23  Bruno Haible  <bruno@clisp.org>
42398
42399         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42400         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42401         GETADDRINFO_LIB, not in LIBS.
42402         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42403         * modules/canon-host (Link): Likewise.
42404         * NEWS: Mention the change.
42405         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42406         GETADDRINFO_LIB.
42407
42408 2008-12-22  Bruno Haible  <bruno@clisp.org>
42409
42410         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42411         * doc/posix-functions/iswalpha_l.texi: Likewise.
42412         * doc/posix-functions/iswblank_l.texi: Likewise.
42413         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42414         * doc/posix-functions/iswctype_l.texi: Likewise.
42415         * doc/posix-functions/iswdigit_l.texi: Likewise.
42416         * doc/posix-functions/iswgraph_l.texi: Likewise.
42417         * doc/posix-functions/iswlower_l.texi: Likewise.
42418         * doc/posix-functions/iswprint_l.texi: Likewise.
42419         * doc/posix-functions/iswpunct_l.texi: Likewise.
42420         * doc/posix-functions/iswspace_l.texi: Likewise.
42421         * doc/posix-functions/iswupper_l.texi: Likewise.
42422         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42423         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42424         * doc/posix-functions/open_wmemstream.texi: Likewise.
42425         * doc/posix-functions/swscanf.texi: Likewise.
42426         * doc/posix-functions/towctrans_l.texi: Likewise.
42427         * doc/posix-functions/towlower.texi: Likewise.
42428         * doc/posix-functions/towlower_l.texi: Likewise.
42429         * doc/posix-functions/towupper.texi: Likewise.
42430         * doc/posix-functions/towupper_l.texi: Likewise.
42431         * doc/posix-functions/vfwprintf.texi: Likewise.
42432         * doc/posix-functions/vfwscanf.texi: Likewise.
42433         * doc/posix-functions/vswscanf.texi: Likewise.
42434         * doc/posix-functions/vwprintf.texi: Likewise.
42435         * doc/posix-functions/vwscanf.texi: Likewise.
42436         * doc/posix-functions/wcpcpy.texi: Likewise.
42437         * doc/posix-functions/wcpncpy.texi: Likewise.
42438         * doc/posix-functions/wcscasecmp.texi: Likewise.
42439         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42440         * doc/posix-functions/wcscoll_l.texi: Likewise.
42441         * doc/posix-functions/wcsdup.texi: Likewise.
42442         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42443         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42444         * doc/posix-functions/wcsnlen.texi: Likewise.
42445         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42446         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42447         * doc/posix-functions/wctrans_l.texi: Likewise.
42448         * doc/posix-functions/wctype_l.texi: Likewise.
42449         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42450         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42451         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42452         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42453         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42454         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42455         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42456         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42457         * doc/glibc-functions/wcschrnul.texi: Likewise.
42458         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42459         * doc/glibc-functions/wcstod_l.texi: Likewise.
42460         * doc/glibc-functions/wcstof_l.texi: Likewise.
42461         * doc/glibc-functions/wcstol_l.texi: Likewise.
42462         * doc/glibc-functions/wcstold_l.texi: Likewise.
42463         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42464         * doc/glibc-functions/wcstoq.texi: Likewise.
42465         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42466         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42467         * doc/glibc-functions/wcstouq.texi: Likewise.
42468         * doc/glibc-functions/wmempcpy.texi: Likewise.
42469
42470 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42471             Eric Blake  <ebb9@byu.net>
42472             Paolo Bonzini  <bonzini@gnu.org>
42473             Bruno Haible  <bruno@clisp.org>
42474
42475         Make c-stack work on Haiku.
42476         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42477         (c_stack_action): Use SA_ONSTACK flag.
42478
42479 2008-12-22  Bruno Haible  <bruno@clisp.org>
42480
42481         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42482
42483 2008-12-22  Bruno Haible  <bruno@clisp.org>
42484
42485         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42486         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42487         being overridden.
42488         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42489         New macros.
42490         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42492         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42493         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42494
42495 2008-12-22  Bruno Haible  <bruno@clisp.org>
42496
42497         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42498         from test code.
42499
42500 2008-12-22  Eric Blake  <ebb9@byu.net>
42501
42502         Avoid gcc warnings on cygwin.
42503         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42504         Avoid unused variable.
42505         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42506         Likewise.
42507
42508 2008-12-22  Bruno Haible  <bruno@clisp.org>
42509
42510         Remove HAVE_MBRTOWC conditionals.
42511         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42512         (mbscasecmp): Assume mbrtowc function.
42513         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42514         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42515         * lib/mbschr.c: Include mbuiter.h unconditionally.
42516         (mbschr): Assume mbrtowc function.
42517         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42518         (mbscspn): Assume mbrtowc function.
42519         * lib/mbslen.c: Include mbuiter.h unconditionally.
42520         (mbslen): Assume mbrtowc function.
42521         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42522         (mbsncasecmp): Assume mbrtowc function.
42523         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42524         (mbsnlen): Assume mbrtowc function.
42525         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42526         (mbspbrk): Assume mbrtowc function.
42527         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42528         (mbspcasecmp): Assume mbrtowc function.
42529         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42530         (mbsrchr): Assume mbrtowc function.
42531         * lib/mbssep.c: Include mbuiter.h unconditionally.
42532         (mbssep): Assume mbrtowc function.
42533         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42534         (mbsspn): Assume mbrtowc function.
42535         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42536         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42537         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42538         (mbstok_r): Assume mbrtowc function.
42539         * lib/propername.c: Include mbuiter.h unconditionally.
42540         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42541         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42542         (trim2): Assume mbrtowc function.
42543         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42544         (mbsnwidth): Assume mbrtowc function.
42545         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42546         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42547         fallback definitions.
42548         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42549
42550 2008-12-22  Bruno Haible  <bruno@clisp.org>
42551
42552         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42553
42554 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42555
42556         * modules/regex: Request emulations for the mb*/wc* functions we need.
42557         * m4/regex.m4: Don't look for those functions here.
42558         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42559
42560 2008-12-22  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42563
42564 2008-12-21  Bruno Haible  <bruno@clisp.org>
42565
42566         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42567         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42568         (Include): Remove conditionalization.
42569         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42570         (Include): Remove conditionalization.
42571         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42572         (Include): Remove conditionalization.
42573         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42574         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42575         * NEWS: Mention the change.
42576         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42577         via Sergey Poznyakoff <gray@gnu.org.ua>.
42578
42579 2008-12-21  Bruno Haible  <bruno@clisp.org>
42580
42581         * MODULES.html.sh (Extended multibyte and wide character utilities
42582         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42583         wcrtomb, wcsrtombs.
42584         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42585         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42586         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42587         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42588
42589 2008-12-21  Bruno Haible  <bruno@clisp.org>
42590
42591         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42592
42593 2008-12-21  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/wcsnrtombs-tests: New file.
42596         * tests/test-wcsnrtombs1.sh: New file.
42597         * tests/test-wcsnrtombs2.sh: New file.
42598         * tests/test-wcsnrtombs3.sh: New file.
42599         * tests/test-wcsnrtombs4.sh: New file.
42600         * tests/test-wcsnrtombs.c: New file.
42601
42602         New module 'wcsnrtombs'.
42603         * lib/wchar.in.h (wcsnrtombs): New declaration.
42604         * lib/wcsnrtombs.c: New file.
42605         * lib/wcsrtombs-state.c: New file.
42606         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42607         (internal_state): Remove variable.
42608         * m4/wcsnrtombs.m4: New file.
42609         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42610         compilation units.
42611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42612         HAVE_WCSNRTOMBS.
42613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42614         HAVE_WCSNRTOMBS.
42615         * modules/wcsnrtombs: New file.
42616         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42617         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42618
42619 2008-12-21  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/wcsrtombs-tests: New file.
42622         * tests/test-wcsrtombs1.sh: New file.
42623         * tests/test-wcsrtombs2.sh: New file.
42624         * tests/test-wcsrtombs3.sh: New file.
42625         * tests/test-wcsrtombs4.sh: New file.
42626         * tests/test-wcsrtombs.c: New file.
42627
42628         New module 'wcsrtombs'.
42629         * lib/wchar.in.h (wcsrtombs): New declaration.
42630         * lib/wcsrtombs.c: New file.
42631         * m4/wcsrtombs.m4: New file.
42632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42633         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42635         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42636         * modules/wcsrtombs: New file.
42637         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42638         bugs.
42639
42640 2008-12-21  Bruno Haible  <bruno@clisp.org>
42641
42642         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42643         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42644         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42645         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42646         if not correct.
42647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42648         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42649         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42650         m4/locale-zh.m4, m4/codeset.m4.
42651         * doc/posix-functions/wcrtomb.texi: Document the bug.
42652
42653 2008-12-21  Bruno Haible  <bruno@clisp.org>
42654
42655         Work around a btowc() bug on IRIX 6.5.
42656         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42657         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42658         REPLACE_WTOBC if not.
42659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42660         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42661         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42662
42663 2008-12-21  Bruno Haible  <bruno@clisp.org>
42664
42665         * modules/wcrtomb-tests: New file.
42666         * tests/test-wcrtomb.sh: New file.
42667         * tests/test-wcrtomb.c: New file.
42668
42669         New module 'wcrtomb'.
42670         * lib/wchar.in.h (wcrtomb): New declaration.
42671         * lib/wcrtomb.c: New file.
42672         * m4/wcrtomb.m4: New file.
42673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42674         HAVE_WCRTOMB.
42675         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42676         HAVE_WCRTOMB.
42677         * modules/wcrtomb: New file.
42678         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42679
42680 2008-12-21  Bruno Haible  <bruno@clisp.org>
42681
42682         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42683         * modules/mbsrtowcs (Files): Likewise.
42684         * modules/wctob (Files): Likewise.
42685         * modules/c-strcase-tests (Files): Likewise.
42686         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42687         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42688         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42689         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42690         * modules/vasnprintf-posix-tests (Files): Likewise.
42691
42692 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42693
42694         gitlog-to-changelog: pass all command-line arguments to git-log
42695         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42696         it is sometimes convenient to filter the commits in various ways.
42697         gitlog-to-changelog only allows --since to specify a start date,
42698         but git-log itself supports many other filtering mechanisms.
42699         At the moment, I want to filter by branch name.  Rather than
42700         adding a --branch option to gitlog-to-changelog, it seems more
42701         flexible to simply pass all options directly to git-log and let
42702         git do the work.  Notice that this effectively makes --since a
42703         redundant option for gitlog-to-changelog, but removing it would
42704         require current usage to change since calls would then require
42705         an additional '--'.
42706
42707 2008-12-21  Bruno Haible  <bruno@clisp.org>
42708
42709         * modules/mbsnrtowcs-tests: New file.
42710         * tests/test-mbsnrtowcs1.sh: New file.
42711         * tests/test-mbsnrtowcs2.sh: New file.
42712         * tests/test-mbsnrtowcs3.sh: New file.
42713         * tests/test-mbsnrtowcs4.sh: New file.
42714         * tests/test-mbsnrtowcs.c: New file.
42715
42716         New module 'mbsnrtowcs'.
42717         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42718         * lib/mbsnrtowcs.c: New file.
42719         * lib/mbsrtowcs-state.c: New file.
42720         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42721         (internal_state): Remove variable.
42722         * m4/mbsnrtowcs.m4: New file.
42723         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42724         compilation units.
42725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42726         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42727         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42728         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42729         * modules/mbsnrtowcs: New file.
42730         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42731         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42732         portability problem.
42733
42734 2008-12-21  Bruno Haible  <bruno@clisp.org>
42735
42736         Work around mbsrtowcs bug.
42737         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42738         (gl_FUNC_MBSRTOWCS): Invoke it.
42739         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42740         m4/locale-zh.m4.
42741         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42742
42743 2008-12-21  Bruno Haible  <bruno@clisp.org>
42744
42745         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42746
42747 2008-12-21  Bruno Haible  <bruno@clisp.org>
42748
42749         Update doc for AIX.
42750         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42751         16-bit wchar_t type.
42752         * doc/posix-functions/btowc.texi: Likewise.
42753         * doc/posix-functions/fgetwc.texi: Likewise.
42754         * doc/posix-functions/fgetws.texi: Likewise.
42755         * doc/posix-functions/fputwc.texi: Likewise.
42756         * doc/posix-functions/fputws.texi: Likewise.
42757         * doc/posix-functions/fwide.texi: Likewise.
42758         * doc/posix-functions/fwprintf.texi: Likewise.
42759         * doc/posix-functions/fwscanf.texi: Likewise.
42760         * doc/posix-functions/getwchar.texi: Likewise.
42761         * doc/posix-functions/getwc.texi: Likewise.
42762         * doc/posix-functions/iswalnum.texi: Likewise.
42763         * doc/posix-functions/iswalpha.texi: Likewise.
42764         * doc/posix-functions/iswblank.texi: Likewise.
42765         * doc/posix-functions/iswcntrl.texi: Likewise.
42766         * doc/posix-functions/iswctype.texi: Likewise.
42767         * doc/posix-functions/iswdigit.texi: Likewise.
42768         * doc/posix-functions/iswgraph.texi: Likewise.
42769         * doc/posix-functions/iswlower.texi: Likewise.
42770         * doc/posix-functions/iswprint.texi: Likewise.
42771         * doc/posix-functions/iswpunct.texi: Likewise.
42772         * doc/posix-functions/iswspace.texi: Likewise.
42773         * doc/posix-functions/iswupper.texi: Likewise.
42774         * doc/posix-functions/iswxdigit.texi: Likewise.
42775         * doc/posix-functions/mbrtowc.texi: Likewise.
42776         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42777         * doc/posix-functions/mbstowcs.texi: Likewise.
42778         * doc/posix-functions/mbtowc.texi: Likewise.
42779         * doc/posix-functions/putwchar.texi: Likewise.
42780         * doc/posix-functions/putwc.texi: Likewise.
42781         * doc/posix-functions/swprintf.texi: Likewise.
42782         * doc/posix-functions/tolower.texi: Likewise.
42783         * doc/posix-functions/toupper.texi: Likewise.
42784         * doc/posix-functions/towctrans.texi: Likewise.
42785         * doc/posix-functions/ungetwc.texi: Likewise.
42786         * doc/posix-functions/vswprintf.texi: Likewise.
42787         * doc/posix-functions/wcrtomb.texi: Likewise.
42788         * doc/posix-functions/wcscat.texi: Likewise.
42789         * doc/posix-functions/wcschr.texi: Likewise.
42790         * doc/posix-functions/wcscmp.texi: Likewise.
42791         * doc/posix-functions/wcscoll.texi: Likewise.
42792         * doc/posix-functions/wcscpy.texi: Likewise.
42793         * doc/posix-functions/wcscspn.texi: Likewise.
42794         * doc/posix-functions/wcsftime.texi: Likewise.
42795         * doc/posix-functions/wcslen.texi: Likewise.
42796         * doc/posix-functions/wcsncat.texi: Likewise.
42797         * doc/posix-functions/wcsncmp.texi: Likewise.
42798         * doc/posix-functions/wcsncpy.texi: Likewise.
42799         * doc/posix-functions/wcspbrk.texi: Likewise.
42800         * doc/posix-functions/wcsrchr.texi: Likewise.
42801         * doc/posix-functions/wcsrtombs.texi: Likewise.
42802         * doc/posix-functions/wcsspn.texi: Likewise.
42803         * doc/posix-functions/wcsstr.texi: Likewise.
42804         * doc/posix-functions/wcstod.texi: Likewise.
42805         * doc/posix-functions/wcstof.texi: Likewise.
42806         * doc/posix-functions/wcstoimax.texi: Likewise.
42807         * doc/posix-functions/wcstok.texi: Likewise.
42808         * doc/posix-functions/wcstold.texi: Likewise.
42809         * doc/posix-functions/wcstoll.texi: Likewise.
42810         * doc/posix-functions/wcstol.texi: Likewise.
42811         * doc/posix-functions/wcstombs.texi: Likewise.
42812         * doc/posix-functions/wcstoull.texi: Likewise.
42813         * doc/posix-functions/wcstoul.texi: Likewise.
42814         * doc/posix-functions/wcstoumax.texi: Likewise.
42815         * doc/posix-functions/wcswidth.texi: Likewise.
42816         * doc/posix-functions/wcsxfrm.texi: Likewise.
42817         * doc/posix-functions/wctob.texi: Likewise.
42818         * doc/posix-functions/wctomb.texi: Likewise.
42819         * doc/posix-functions/wctrans.texi: Likewise.
42820         * doc/posix-functions/wctype.texi: Likewise.
42821         * doc/posix-functions/wcwidth.texi: Likewise.
42822         * doc/posix-functions/wmemchr.texi: Likewise.
42823         * doc/posix-functions/wmemcmp.texi: Likewise.
42824         * doc/posix-functions/wmemcpy.texi: Likewise.
42825         * doc/posix-functions/wmemmove.texi: Likewise.
42826         * doc/posix-functions/wmemset.texi: Likewise.
42827         * doc/posix-functions/wprintf.texi: Likewise.
42828         * doc/posix-functions/wscanf.texi: Likewise.
42829
42830 2008-12-21  Bruno Haible  <bruno@clisp.org>
42831
42832         Update doc for HP-UX 11.11.
42833         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42834         in HP-UX version 11.00, not in all versions of HP-UX 11.
42835         * doc/posix-functions/fwide.texi: Likewise.
42836         * doc/posix-functions/fwprintf.texi: Likewise.
42837         * doc/posix-functions/fwscanf.texi: Likewise.
42838         * doc/posix-functions/inet_ntop.texi: Likewise.
42839         * doc/posix-functions/inet_pton.texi: Likewise.
42840         * doc/posix-functions/mbrlen.texi: Likewise.
42841         * doc/posix-functions/mbrtowc.texi: Likewise.
42842         * doc/posix-functions/mbsinit.texi: Likewise.
42843         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42844         * doc/posix-functions/swprintf.texi: Likewise.
42845         * doc/posix-functions/swscanf.texi: Likewise.
42846         * doc/posix-functions/towctrans.texi: Likewise.
42847         * doc/posix-functions/vfwprintf.texi: Likewise.
42848         * doc/posix-functions/vswprintf.texi: Likewise.
42849         * doc/posix-functions/vwprintf.texi: Likewise.
42850         * doc/posix-functions/wcrtomb.texi: Likewise.
42851         * doc/posix-functions/wcsrtombs.texi: Likewise.
42852         * doc/posix-functions/wcsstr.texi: Likewise.
42853         * doc/posix-functions/wctob.texi: Likewise.
42854         * doc/posix-functions/wctrans.texi: Likewise.
42855         * doc/posix-functions/wmemchr.texi: Likewise.
42856         * doc/posix-functions/wmemcmp.texi: Likewise.
42857         * doc/posix-functions/wmemcpy.texi: Likewise.
42858         * doc/posix-functions/wmemmove.texi: Likewise.
42859         * doc/posix-functions/wmemset.texi: Likewise.
42860         * doc/posix-functions/wprintf.texi: Likewise.
42861         * doc/posix-functions/wscanf.texi: Likewise.
42862
42863 2008-12-21  Bruno Haible  <bruno@clisp.org>
42864
42865         Work around a portability problem.
42866         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42867         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42868
42869 2008-12-20  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42872         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42873         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42875         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42876
42877         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42878         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42879         set.
42880         (GNULIB_defined_mbstate_t): New macro.
42881         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42882         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42883         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42884         reuses the system's mbrtowc function but works around the bugs.
42885         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42886         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42887         macros.
42888         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42889         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42890         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42891         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42892         REPLACE_MBSINIT if mbsinit needs to be overridden.
42893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42894         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42895         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42896         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42897         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42898         m4/locale-zh.m4.
42899         (Depends): Add mbsinit.
42900         * modules/mbsinit (Depends): Add mbrtowc.
42901         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42902
42903 2008-12-20  Bruno Haible  <bruno@clisp.org>
42904
42905         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42906         so that there are no conversion errors on AIX.
42907         * tests/test-mbsrtowcs.c (main): LIkewise.
42908
42909 2008-12-20  Bruno Haible  <bruno@clisp.org>
42910
42911         Work around wctob bug on Solaris <= 9.
42912         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42913         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42915         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42916         * modules/wctob (Files): Add m4/locale-fr.m4.
42917         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42918
42919 2008-12-20  Bruno Haible  <bruno@clisp.org>
42920
42921         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42922         /dev/null.
42923         * tests/test-select-in.sh: Likewise.
42924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42925
42926 2008-12-20  Bruno Haible  <bruno@clisp.org>
42927
42928         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42929         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42930         Cygwin 1.5.x.
42931
42932 2008-12-20  Bruno Haible  <bruno@clisp.org>
42933
42934         Ensure mbstate_t is defined on HP-UX 11.11.
42935         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42936         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42937         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42938         AC_USE_SYSTEM_EXTENSIONS.
42939         * modules/fnmatch (Depends-on): Add extensions.
42940         * modules/mbrlen (Depends-on): Likewise.
42941         * modules/mbrtowc (Depends-on): Likewise.
42942         * modules/mbsinit (Depends-on): Likewise.
42943         * modules/mbsrtowcs (Depends-on): Likewise.
42944         * modules/mbswidth (Depends-on): Likewise.
42945         * modules/quotearg (Depends-on): Likewise.
42946         * modules/strftime (Depends-on): Likewise.
42947
42948 2008-12-20  Bruno Haible  <bruno@clisp.org>
42949
42950         Ensure wctob is declared on IRIX 6.5.
42951         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42952         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42953         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42955         of HAVE_WCTOB.
42956         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42957         HAVE_WCTOB.
42958         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42959
42960 2008-12-19  Bruno Haible  <bruno@clisp.org>
42961
42962         * modules/mbsrtowcs-tests: New file.
42963         * tests/test-mbsrtowcs1.sh: New file.
42964         * tests/test-mbsrtowcs2.sh: New file.
42965         * tests/test-mbsrtowcs3.sh: New file.
42966         * tests/test-mbsrtowcs4.sh: New file.
42967         * tests/test-mbsrtowcs.c: New file.
42968
42969         New module 'mbsrtowcs'.
42970         * lib/wchar.in.h (mbsrtowcs): New declaration.
42971         * lib/mbsrtowcs.c: New file.
42972         * m4/mbsrtowcs.m4: New file.
42973         * modules/mbsrtowcs: New file.
42974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42975         HAVE_MBSRTOWCS.
42976         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42977         HAVE_MBSRTOWCS.
42978         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42979
42980 2008-12-19  Bruno Haible  <bruno@clisp.org>
42981
42982         New module 'mbrlen'.
42983         * lib/wchar.in.h (mbrlen): New declaration.
42984         * lib/mbrlen.c: New file.
42985         * m4/mbrlen.m4: New file.
42986         * modules/mbrlen: New file.
42987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42988         HAVE_MBRLEN.
42989         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42990         HAVE_MBRLEN.
42991         * doc/posix-functions/mbrlen.texi: Document the new module.
42992
42993 2008-12-19  Bruno Haible  <bruno@clisp.org>
42994
42995         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42996         * modules/mbrtowc (Depends-on): Add verify.
42997         Suggested by Paul Eggert.
42998
42999 2008-12-18  Bruno Haible  <bruno@clisp.org>
43000
43001         * modules/mbsinit-tests: New file.
43002         * tests/test-mbsinit.sh: New file.
43003         * tests/test-mbsinit.c: New file.
43004
43005 2008-12-18  Bruno Haible  <bruno@clisp.org>
43006
43007         * modules/mbrtowc-tests: New file.
43008         * tests/test-mbrtowc1.sh: New file.
43009         * tests/test-mbrtowc2.sh: New file.
43010         * tests/test-mbrtowc3.sh: New file.
43011         * tests/test-mbrtowc4.sh: New file.
43012         * tests/test-mbrtowc.c: New file.
43013
43014         New module 'mbrtowc'.
43015         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43016         mbsinit and mbrtowc.
43017         (mbrtowc): New declaration.
43018         * lib/mbrtowc.c: New file.
43019         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43020         * modules/mbrtowc: New file.
43021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43022         HAVE_MBRTOWC.
43023         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43024         HAVE_MBRTOWC.
43025         * doc/posix-functions/mbrtowc.texi: Document the new module.
43026
43027 2008-12-18  Bruno Haible  <bruno@clisp.org>
43028
43029         New module 'wctob'.
43030         * lib/wchar.in.h (wctob): New declaration.
43031         * lib/wctob.c: New file.
43032         * m4/wctob.m4: New file.
43033         * modules/wctob: New file.
43034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43035         HAVE_WCTOB.
43036         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43037         * doc/posix-functions/wctob.texi: Document the new module.
43038
43039 2008-12-18  Bruno Haible  <bruno@clisp.org>
43040
43041         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43042         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43043
43044 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43045
43046         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43047         G. Christensen" <tgc@jupiterrise.com>.
43048
43049         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43050         G. Christensen" <tgc@jupiterrise.com>.
43051
43052         * lib/flock.c: Need to include string.h.  Reported by "Tom
43053         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43054         <ebb9@byu.net>.
43055
43056 2008-12-18  Bruno Haible  <bruno@clisp.org>
43057
43058         * m4/locale-ja.m4: New file, from GNU gettext.
43059
43060 2008-12-17  Bruno Haible  <bruno@clisp.org>
43061
43062         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43063         Suggested by Eric Blake.
43064
43065 2008-12-17  Bruno Haible  <bruno@clisp.org>
43066
43067         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43068
43069 2008-12-17  Bruno Haible  <bruno@clisp.org>
43070
43071         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43072         * modules/mbsinit (Depends-on): Add verify.
43073         Suggested by Paul Eggert.
43074
43075 2008-12-17  Bruno Haible  <bruno@clisp.org>
43076
43077         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43078         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43079         gl_FUNC_MBRTOWC.
43080         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43081         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43082         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43083         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43084         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43085         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43086         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43087         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43088         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43089         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43090         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43091         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43092         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43093         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43094         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43095         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43096         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43097         * modules/trim (configure.ac): Likewise.
43098
43099 2008-12-17  Bruno Haible  <bruno@clisp.org>
43100
43101         * modules/btowc-tests: New file.
43102         * tests/test-btowc1.sh: New file.
43103         * tests/test-btowc2.sh: New file.
43104         * tests/test-btowc.c: New file.
43105
43106         New module 'btowc'.
43107         * lib/wchar.in.h (btowc): New declaration.
43108         * lib/btowc.c: New file.
43109         * m4/btowc.m4: New file.
43110         * modules/btowc: New file.
43111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43112         HAVE_BTOWC.
43113         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43114         * doc/posix-functions/btowc.texi: Document the new module.
43115
43116 2008-12-17  Bruno Haible  <bruno@clisp.org>
43117
43118         New module 'mbsinit'.
43119         * lib/wchar.in.h (mbsinit): New declaration.
43120         * lib/mbsinit.c: New file.
43121         * m4/mbsinit.m4: New file.
43122         * modules/mbsinit: New file.
43123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43124         HAVE_MBSINIT.
43125         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43126         HAVE_MBSINIT.
43127         * doc/posix-functions/mbsinit.texi: Document the new module.
43128
43129 2008-12-16  Bruno Haible  <bruno@clisp.org>
43130
43131         * lib/unistd.in.h: Add comment.
43132         * tests/test-environ.c: Don't include <stdlib.h>.
43133
43134 2008-12-16  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/parse-duration.h (parse_duration): Document return value
43137         convention.
43138         * lib/parse-duration.c: Include specification header first. Add
43139         comments.
43140         (_): Remove macro.
43141         (parse_year_month_day, parse_hour_minute_second): Move side effects
43142         outside of strchr call.
43143         (parse_non_iso8601): Move side effects outside of isspace call.
43144         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43145         call.
43146
43147 2008-12-16  Bruno Haible  <bruno@clisp.org>
43148
43149         * tests/test-parse-duration.sh: Produce no output when the test
43150         succeeds.
43151
43152 2008-12-16  Bruno Haible  <bruno@clisp.org>
43153
43154         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43155         expressions.
43156
43157 2008-12-15  Bruno Haible  <bruno@clisp.org>
43158
43159         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43160         * doc/glibc-functions/flistxattr.texi: Likewise.
43161         * doc/glibc-functions/fopencookie.texi: Likewise.
43162         * doc/glibc-functions/fremovexattr.texi: Likewise.
43163         * doc/glibc-functions/fsetxattr.texi: Likewise.
43164         * doc/glibc-functions/getxattr.texi: Likewise.
43165         * doc/glibc-functions/lgetxattr.texi: Likewise.
43166         * doc/glibc-functions/listxattr.texi: Likewise.
43167         * doc/glibc-functions/llistxattr.texi: Likewise.
43168         * doc/glibc-functions/lremovexattr.texi: Likewise.
43169         * doc/glibc-functions/lsetxattr.texi: Likewise.
43170         * doc/glibc-functions/removexattr.texi: Likewise.
43171         * doc/glibc-functions/setxattr.texi: Likewise.
43172         * doc/posix-functions/open_memstream.texi: Likewise.
43173
43174 2008-12-15  Eric Blake  <ebb9@byu.net>
43175
43176         Update doc for cygwin 1.7.
43177         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43178         functions.
43179         * doc/posix-functions/fchmodat.texi: Likewise.
43180         * doc/posix-functions/fchownat.texi: Likewise.
43181         * doc/posix-functions/fdopendir.texi: Likewise.
43182         * doc/posix-functions/fmemopen.texi: Likewise.
43183         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43184         * doc/posix-functions/fstatat.texi: Likewise.
43185         * doc/posix-functions/futimens.texi: Likewise.
43186         * doc/posix-functions/gai_strerror.texi: Likewise.
43187         * doc/posix-functions/getaddrinfo.texi: Likewise.
43188         * doc/posix-functions/getnameinfo.texi: Likewise.
43189         * doc/posix-functions/if_freenameindex.texi: Likewise.
43190         * doc/posix-functions/if_indextoname.texi: Likewise.
43191         * doc/posix-functions/if_nameindex.texi: Likewise.
43192         * doc/posix-functions/if_nametoindex.texi: Likewise.
43193         * doc/posix-functions/insque.texi: Likewise.
43194         * doc/posix-functions/linkat.texi: Likewise.
43195         * doc/posix-functions/llrint.texi: Likewise.
43196         * doc/posix-functions/llrintf.texi: Likewise.
43197         * doc/posix-functions/llrintl.texi: Likewise.
43198         * doc/posix-functions/lockf.texi: Likewise.
43199         * doc/posix-functions/lrintl.texi: Likewise.
43200         * doc/posix-functions/mkdirat.texi: Likewise.
43201         * doc/posix-functions/mkfifoat.texi: Likewise.
43202         * doc/posix-functions/mknodat.texi: Likewise.
43203         * doc/posix-functions/mq_close.texi: Likewise.
43204         * doc/posix-functions/mq_getattr.texi: Likewise.
43205         * doc/posix-functions/mq_notify.texi: Likewise.
43206         * doc/posix-functions/mq_open.texi: Likewise.
43207         * doc/posix-functions/mq_receive.texi: Likewise.
43208         * doc/posix-functions/mq_send.texi: Likewise.
43209         * doc/posix-functions/mq_setattr.texi: Likewise.
43210         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43211         * doc/posix-functions/mq_timedsend.texi: Likewise.
43212         * doc/posix-functions/mq_unlink.texi: Likewise.
43213         * doc/posix-functions/open_memstream.texi: Likewise.
43214         * doc/posix-functions/openat.texi: Likewise.
43215         * doc/posix-functions/posix_fadvise.texi: Likewise.
43216         * doc/posix-functions/posix_fallocate.texi: Likewise.
43217         * doc/posix-functions/posix_madvise.texi: Likewise.
43218         * doc/posix-functions/posix_memalign.texi: Likewise.
43219         * doc/posix-functions/posix_openpt.texi: Likewise.
43220         * doc/posix-functions/readlinkat.texi: Likewise.
43221         * doc/posix-functions/remque.texi: Likewise.
43222         * doc/posix-functions/renameat.texi: Likewise.
43223         * doc/posix-functions/rintl.texi: Likewise.
43224         * doc/posix-functions/sem_unlink.texi: Likewise.
43225         * doc/posix-functions/shm_open.texi: Likewise.
43226         * doc/posix-functions/shm_unlink.texi: Likewise.
43227         * doc/posix-functions/signgam.texi: Likewise.
43228         * doc/posix-functions/sigset.texi: Likewise.
43229         * doc/posix-functions/stpcpy.texi: Likewise.
43230         * doc/posix-functions/stpncpy.texi: Likewise.
43231         * doc/posix-functions/strerror.texi: Likewise.
43232         * doc/posix-functions/strtod.texi: Likewise.
43233         * doc/posix-functions/symlinkat.texi: Likewise.
43234         * doc/posix-functions/unlinkat.texi: Likewise.
43235         * doc/posix-functions/utimensat.texi: Likewise.
43236         * doc/glibc-functions/bindresvport.texi: Likewise.
43237         * doc/glibc-functions/dn_expand.texi: Likewise.
43238         * doc/glibc-functions/exp10.texi: Likewise.
43239         * doc/glibc-functions/exp10f.texi: Likewise.
43240         * doc/glibc-functions/fgetxattr.texi: Likewise.
43241         * doc/glibc-functions/flistxattr.texi: Likewise.
43242         * doc/glibc-functions/fopencookie.texi: Likewise.
43243         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43244         * doc/glibc-functions/fremovexattr.texi: Likewise.
43245         * doc/glibc-functions/fsetxattr.texi: Likewise.
43246         * doc/glibc-functions/getifaddrs.texi: Likewise.
43247         * doc/glibc-functions/getxattr.texi: Likewise.
43248         * doc/glibc-functions/lgetxattr.texi: Likewise.
43249         * doc/glibc-functions/listxattr.texi: Likewise.
43250         * doc/glibc-functions/llistxattr.texi: Likewise.
43251         * doc/glibc-functions/lremovexattr.texi: Likewise.
43252         * doc/glibc-functions/lsetxattr.texi: Likewise.
43253         * doc/glibc-functions/pow10.texi: Likewise.
43254         * doc/glibc-functions/pow10f.texi: Likewise.
43255         * doc/glibc-functions/rcmd_af.texi: Likewise.
43256         * doc/glibc-functions/removexattr.texi: Likewise.
43257         * doc/glibc-functions/res_init.texi: Likewise.
43258         * doc/glibc-functions/res_mkquery.texi: Likewise.
43259         * doc/glibc-functions/res_query.texi: Likewise.
43260         * doc/glibc-functions/res_querydomain.texi: Likewise.
43261         * doc/glibc-functions/res_send.texi: Likewise.
43262         * doc/glibc-functions/rresvport_af.texi: Likewise.
43263         * doc/glibc-functions/setxattr.texi: Likewise.
43264         * doc/glibc-functions/strcasestr.texi: Likewise.
43265
43266 2008-12-15  Bruno Haible  <bruno@clisp.org>
43267
43268         Fix compilation error on OSF/1 4.0.
43269         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43270         <sys/time.h>, simply delegate to the system header.
43271         Reported by Daniel Richard G. <oss@teragram.com>.
43272
43273 2008-12-15  Bruno Haible  <bruno@clisp.org>
43274
43275         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43276         * doc/posix-functions/fchmodat.texi: Likewise.
43277         * doc/posix-functions/fchownat.texi: Likewise.
43278         * doc/posix-functions/fdopendir.texi: Likewise.
43279         * doc/posix-functions/fstatat.texi: Likewise.
43280         * doc/posix-functions/mkdirat.texi: Likewise.
43281         * doc/posix-functions/unlinkat.texi: Likewise.
43282
43283 2008-12-14  Bruno Haible  <bruno@clisp.org>
43284
43285         Update doc for POSIX:2008.
43286         * doc/posix-functions/faccessat.texi: New file.
43287         * doc/posix-functions/fchmodat.texi: New file.
43288         * doc/posix-functions/fchownat.texi: New file.
43289         * doc/posix-functions/fdopendir.texi: New file.
43290         * doc/posix-functions/fstatat.texi: New file.
43291         * doc/posix-functions/futimens.texi: New file.
43292         * doc/posix-functions/linkat.texi: New file.
43293         * doc/posix-functions/mkdirat.texi: New file.
43294         * doc/posix-functions/mkfifoat.texi: New file.
43295         * doc/posix-functions/mknodat.texi: New file.
43296         * doc/posix-functions/open_wmemstream.texi: New file.
43297         * doc/posix-functions/openat.texi: New file.
43298         * doc/posix-functions/psiginfo.texi: New file.
43299         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43300         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43301         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43302         * doc/posix-functions/readlinkat.texi: New file.
43303         * doc/posix-functions/renameat.texi: New file.
43304         * doc/posix-functions/strerror_l.texi: New file.
43305         * doc/posix-functions/symlinkat.texi: New file.
43306         * doc/posix-functions/unlinkat.texi: New file.
43307         * doc/posix-functions/utimensat.texi: New file.
43308         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43309
43310 2008-12-14  Bruno Haible  <bruno@clisp.org>
43311
43312         Update doc for POSIX:2008.
43313         * doc/posix-functions/alphasort.texi: Renamed from
43314         doc/glibc-functions/alphasort.texi.
43315         * doc/posix-functions/dirfd.texi: Renamed from
43316         doc/glibc-functions/dirfd.texi.
43317         * doc/posix-functions/dprintf.texi: Renamed from
43318         doc/glibc-functions/dprintf.texi.
43319         * doc/posix-functions/duplocale.texi: Renamed from
43320         doc/glibc-functions/duplocale.texi.
43321         * doc/posix-functions/fexecve.texi: Renamed from
43322         doc/glibc-functions/fexecve.texi.
43323         * doc/posix-functions/fmemopen.texi: Renamed from
43324         doc/glibc-functions/fmemopen.texi.
43325         * doc/posix-functions/freelocale.texi: Renamed from
43326         doc/glibc-functions/freelocale.texi.
43327         * doc/posix-functions/getdate_err.texi: Renamed from
43328         doc/glibc-functions/getdate_err.texi.
43329         * doc/posix-functions/isalnum_l.texi: Renamed from
43330         doc/glibc-functions/isalnum_l.texi.
43331         * doc/posix-functions/isalpha_l.texi: Renamed from
43332         doc/glibc-functions/isalpha_l.texi.
43333         * doc/posix-functions/isblank_l.texi: Renamed from
43334         doc/glibc-functions/isblank_l.texi.
43335         * doc/posix-functions/iscntrl_l.texi: Renamed from
43336         doc/glibc-functions/iscntrl_l.texi.
43337         * doc/posix-functions/isdigit_l.texi: Renamed from
43338         doc/glibc-functions/isdigit_l.texi.
43339         * doc/posix-functions/isgraph_l.texi: Renamed from
43340         doc/glibc-functions/isgraph_l.texi.
43341         * doc/posix-functions/islower_l.texi: Renamed from
43342         doc/glibc-functions/islower_l.texi.
43343         * doc/posix-functions/isprint_l.texi: Renamed from
43344         doc/glibc-functions/isprint_l.texi.
43345         * doc/posix-functions/ispunct_l.texi: Renamed from
43346         doc/glibc-functions/ispunct_l.texi.
43347         * doc/posix-functions/isspace_l.texi: Renamed from
43348         doc/glibc-functions/isspace_l.texi.
43349         * doc/posix-functions/isupper_l.texi: Renamed from
43350         doc/glibc-functions/isupper_l.texi.
43351         * doc/posix-functions/iswalnum_l.texi: Renamed from
43352         doc/glibc-functions/iswalnum_l.texi.
43353         * doc/posix-functions/iswalpha_l.texi: Renamed from
43354         doc/glibc-functions/iswalpha_l.texi.
43355         * doc/posix-functions/iswblank_l.texi: Renamed from
43356         doc/glibc-functions/iswblank_l.texi.
43357         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43358         doc/glibc-functions/iswcntrl_l.texi.
43359         * doc/posix-functions/iswctype_l.texi: Renamed from
43360         doc/glibc-functions/iswctype_l.texi.
43361         * doc/posix-functions/iswdigit_l.texi: Renamed from
43362         doc/glibc-functions/iswdigit_l.texi.
43363         * doc/posix-functions/iswgraph_l.texi: Renamed from
43364         doc/glibc-functions/iswgraph_l.texi.
43365         * doc/posix-functions/iswlower_l.texi: Renamed from
43366         doc/glibc-functions/iswlower_l.texi.
43367         * doc/posix-functions/iswprint_l.texi: Renamed from
43368         doc/glibc-functions/iswprint_l.texi.
43369         * doc/posix-functions/iswpunct_l.texi: Renamed from
43370         doc/glibc-functions/iswpunct_l.texi.
43371         * doc/posix-functions/iswspace_l.texi: Renamed from
43372         doc/glibc-functions/iswspace_l.texi.
43373         * doc/posix-functions/iswupper_l.texi: Renamed from
43374         doc/glibc-functions/iswupper_l.texi.
43375         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43376         doc/glibc-functions/iswxdigit_l.texi.
43377         * doc/posix-functions/isxdigit_l.texi: Renamed from
43378         doc/glibc-functions/isxdigit_l.texi.
43379         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43380         doc/glibc-functions/mbsnrtowcs.texi.
43381         * doc/posix-functions/mkdtemp.texi: Renamed from
43382         doc/glibc-functions/mkdtemp.texi.
43383         * doc/posix-functions/newlocale.texi: Renamed from
43384         doc/glibc-functions/newlocale.texi.
43385         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43386         doc/glibc-functions/nl_langinfo_l.texi.
43387         * doc/posix-functions/open_memstream.texi: Renamed from
43388         doc/glibc-functions/open_memstream.texi.
43389         * doc/posix-functions/opterr.texi: Renamed from
43390         doc/glibc-functions/opterr.texi.
43391         * doc/posix-functions/optind.texi: Renamed from
43392         doc/glibc-functions/optind.texi.
43393         * doc/posix-functions/optopt.texi: Renamed from
43394         doc/glibc-functions/optopt.texi.
43395         * doc/posix-functions/psignal.texi: Renamed from
43396         doc/glibc-functions/psignal.texi.
43397         * doc/posix-functions/scandir.texi: Renamed from
43398         doc/glibc-functions/scandir.texi.
43399         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43400         doc/glibc-functions/sched_get_priority_min.texi.
43401         * doc/posix-functions/signgam.texi: Renamed from
43402         doc/glibc-functions/signgam.texi.
43403         * doc/posix-functions/stpcpy.texi: Renamed from
43404         doc/glibc-functions/stpcpy.texi.
43405         * doc/posix-functions/stpncpy.texi: Renamed from
43406         doc/glibc-functions/stpncpy.texi.
43407         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43408         doc/glibc-functions/strcasecmp_l.texi.
43409         * doc/posix-functions/strcoll_l.texi: Renamed from
43410         doc/glibc-functions/strcoll_l.texi.
43411         * doc/posix-functions/strfmon_l.texi: Renamed from
43412         doc/glibc-functions/strfmon_l.texi.
43413         * doc/posix-functions/strftime_l.texi: Renamed from
43414         doc/glibc-functions/strftime_l.texi.
43415         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43416         doc/glibc-functions/strncasecmp_l.texi.
43417         * doc/posix-functions/strndup.texi: Renamed from
43418         doc/glibc-functions/strndup.texi.
43419         * doc/posix-functions/strnlen.texi: Renamed from
43420         doc/glibc-functions/strnlen.texi.
43421         * doc/posix-functions/strsignal.texi: Renamed from
43422         doc/glibc-functions/strsignal.texi.
43423         * doc/posix-functions/strxfrm_l.texi: Renamed from
43424         doc/glibc-functions/strxfrm_l.texi.
43425         * doc/posix-functions/timer_gettime.texi: Renamed from
43426         doc/glibc-functions/timer_gettime.texi.
43427         * doc/posix-functions/tolower_l.texi: Renamed from
43428         doc/glibc-functions/tolower_l.texi.
43429         * doc/posix-functions/toupper_l.texi: Renamed from
43430         doc/glibc-functions/toupper_l.texi.
43431         * doc/posix-functions/towctrans_l.texi: Renamed from
43432         doc/glibc-functions/towctrans_l.texi.
43433         * doc/posix-functions/towlower_l.texi: Renamed from
43434         doc/glibc-functions/towlower_l.texi.
43435         * doc/posix-functions/towupper_l.texi: Renamed from
43436         doc/glibc-functions/towupper_l.texi.
43437         * doc/posix-functions/uselocale.texi: Renamed from
43438         doc/glibc-functions/uselocale.texi.
43439         * doc/posix-functions/vdprintf.texi: Renamed from
43440         doc/glibc-functions/vdprintf.texi.
43441         * doc/posix-functions/wcpcpy.texi:
43442         Renamed from doc/glibc-functions/wcpcpy.texi.
43443         * doc/posix-functions/wcpncpy.texi: Renamed from
43444         doc/glibc-functions/wcpncpy.texi.
43445         * doc/posix-functions/wcscasecmp.texi: Renamed from
43446         doc/glibc-functions/wcscasecmp.texi.
43447         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43448         doc/glibc-functions/wcscasecmp_l.texi.
43449         * doc/posix-functions/wcscoll_l.texi: Renamed from
43450         doc/glibc-functions/wcscoll_l.texi.
43451         * doc/posix-functions/wcsdup.texi: Renamed from
43452         doc/glibc-functions/wcsdup.texi.
43453         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43454         doc/glibc-functions/wcsncasecmp.texi.
43455         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43456         doc/glibc-functions/wcsncasecmp_l.texi.
43457         * doc/posix-functions/wcsnlen.texi: Renamed from
43458         doc/glibc-functions/wcsnlen.texi.
43459         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43460         doc/glibc-functions/wcsnrtombs.texi.
43461         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43462         doc/glibc-functions/wcsxfrm_l.texi.
43463         * doc/posix-functions/wctrans_l.texi: Renamed from
43464         doc/glibc-functions/wctrans_l.texi.
43465         * doc/posix-functions/wctype_l.texi: Renamed from
43466         doc/glibc-functions/wctype_l.texi.
43467         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43468         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43469         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43470         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43471         these subsections.
43472         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43473         Remove sections.
43474
43475 2008-12-14  Bruno Haible  <bruno@clisp.org>
43476
43477         Update doc for POSIX:2008.
43478         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43479
43480 2008-12-14  Bruno Haible  <bruno@clisp.org>
43481
43482         Update doc for POSIX:2008.
43483         * doc/pastposix-functions/bcmp.texi: Renamed from
43484         doc/posix-functions/bcmp.texi.
43485         * doc/pastposix-functions/bcopy.texi: Renamed from
43486         doc/posix-functions/bcopy.texi.
43487         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43488         doc/posix-functions/bsd_signal.texi.
43489         * doc/pastposix-functions/bzero.texi: Renamed from
43490         doc/posix-functions/bzero.texi.
43491         * doc/pastposix-functions/ecvt.texi: Renamed from
43492         doc/posix-functions/ecvt.texi.
43493         * doc/pastposix-functions/fcvt.texi: Renamed from
43494         doc/posix-functions/fcvt.texi.
43495         * doc/pastposix-functions/ftime.texi: Renamed from
43496         doc/posix-functions/ftime.texi.
43497         * doc/pastposix-functions/gcvt.texi: Renamed from
43498         doc/posix-functions/gcvt.texi.
43499         * doc/pastposix-functions/getcontext.texi: Renamed from
43500         doc/posix-functions/getcontext.texi.
43501         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43502         doc/posix-functions/gethostbyaddr.texi.
43503         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43504         doc/posix-functions/gethostbyname.texi.
43505         * doc/pastposix-functions/getwd.texi: Renamed from
43506         doc/posix-functions/getwd.texi.
43507         * doc/pastposix-functions/h_errno.texi: Renamed from
43508         doc/posix-functions/h_errno.texi.
43509         * doc/pastposix-functions/index.texi: Renamed from
43510         doc/posix-functions/index.texi.
43511         * doc/pastposix-functions/makecontext.texi: Renamed from
43512         doc/posix-functions/makecontext.texi.
43513         * doc/pastposix-functions/mktemp.texi: Renamed from
43514         doc/posix-functions/mktemp.texi.
43515         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43516         doc/posix-functions/pthread_attr_getstackaddr.texi.
43517         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43518         doc/posix-functions/pthread_attr_setstackaddr.texi.
43519         * doc/pastposix-functions/rindex.texi: Renamed from
43520         doc/posix-functions/rindex.texi.
43521         * doc/pastposix-functions/scalb.texi: Renamed from
43522         doc/posix-functions/scalb.texi.
43523         * doc/pastposix-functions/setcontext.texi: Renamed from
43524         doc/posix-functions/setcontext.texi.
43525         * doc/pastposix-functions/swapcontext.texi: Renamed from
43526         doc/posix-functions/swapcontext.texi.
43527         * doc/pastposix-functions/ualarm.texi: Renamed from
43528         doc/posix-functions/ualarm.texi.
43529         * doc/pastposix-functions/usleep.texi: Renamed from
43530         doc/posix-functions/usleep.texi.
43531         * doc/pastposix-functions/vfork.texi: Renamed from
43532         doc/posix-functions/vfork.texi.
43533         * doc/pastposix-functions/wcswcs.texi: Renamed from
43534         doc/posix-functions/wcswcs.texi.
43535         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43536         (Function Substitutes): Update.
43537
43538 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43539
43540         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43541         m4/strerror.m4.
43542
43543 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43544             Bruno Haible  <bruno@clisp.org>
43545
43546         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43547
43548 2008-12-13  Bruno Haible  <bruno@clisp.org>
43549
43550         * modules/strtoull (Depends-on): Remove unistd.
43551
43552 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43553
43554         * modules/strtoull (Depends-on): Add stdlib.
43555
43556 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43557
43558         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43559
43560 2008-12-10  Jim Meyering  <meyering@redhat.com>
43561
43562         gl_ASSERT: don't say assertions are disabled when they're not
43563         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43564         "checking whether to enable assertions... no", when they are in
43565         fact enabled.  This is solely a bug in the output of configure.
43566         In spite of saying "no", NDEBUG was not defined in that case.
43567         Also, as noted by Eric Blake, leave assertions enabled upon
43568         --enable-assert=INVALID.
43569
43570 2008-12-10  Bruno Haible  <bruno@clisp.org>
43571
43572         Change MODULES.html to refer to POSIX:2008 where possible.
43573         * MODULES.html.sh (POSIX2008_URL): New variable.
43574         (posix_headers): Remove sys/timeb, ucontext.
43575         (posix2001_headers): New variable.
43576         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43577         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43578         index, makecontext, mktemp, pthread_attr_getstackaddr,
43579         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43580         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43581         (posix2001_functions): New variable.
43582         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43583         otherwise.
43584
43585 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43586
43587         add missing include to parse-duration.c
43588         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43589         * modules/parse-duration (Depends-on): Add xalloc.
43590
43591         fix sed script reading maint.mk
43592         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43593         (syntax-check-rules): Use it.
43594
43595 2008-12-09  Bruno Haible  <bruno@clisp.org>
43596
43597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43598         MacOS X 10.4/PowerPC.
43599         Reported by Simon Josefsson.
43600
43601 2008-12-08  Jim Meyering  <meyering@redhat.com>
43602
43603         work around mingw's lack of some S_IF definitions
43604         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43605         Reported by Simon Josefsson.
43606
43607 2008-12-08  Bruno Haible  <bruno@clisp.org>
43608
43609         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43610         applied to variables. Needed on MacOS X 10.4/PowerPC.
43611         Reported by Simon Josefsson.
43612
43613 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43614         and Eric Blake  <ebb9@byu.net>
43615
43616         assert: honor --enable-assert
43617         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43618         order to honor --enable-assert, rather than treating it as a
43619         synonym for --disable-assert.
43620
43621 2008-12-08  Jim Meyering  <meyering@redhat.com>
43622
43623         * lib/posixtm.c: Remove now-useless declaration of mktime.
43624
43625         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43626
43627 2008-12-07  Bruno Haible  <bruno@clisp.org>
43628
43629         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43630         test_once): Mark functions as static.
43631         * tests/test-tls.c (test_tls): Likewise.
43632
43633 2008-12-07  Bruno Haible  <bruno@clisp.org>
43634
43635         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43636         iconv_register_autodetect.
43637
43638 2008-12-07  Jim Meyering  <meyering@redhat.com>
43639
43640         posixtm.c: avoid a warning
43641         * lib/posixtm.c (posixtime): Don't initialize tm0.
43642         It's no longer needed to placate gcc4's -Wuninitialized,
43643         and the attempt to placate would elicit a new warning.
43644
43645         unicodeio.c: mark unused parameters
43646         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43647         (fallback_failure_callback): Likewise.
43648
43649 2008-12-07  Bruno Haible  <bruno@clisp.org>
43650
43651         * gnulib-tool (func_create_testdir): When building the tests
43652         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43653         Reported by Simon Josefsson.
43654
43655 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43656
43657         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43658
43659 2008-12-06  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43662         Suggested by Eric Blake.
43663
43664 2008-12-06  Bruno Haible  <bruno@clisp.org>
43665
43666         Fix a c-stack test failure on MacOS X.
43667         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43668         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43669         handler for SIGBUS as well.
43670         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43671         install a signal handler for SIGBUS as well.
43672         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43673
43674 2008-12-06  Bruno Haible  <bruno@clisp.org>
43675
43676         Advocacy documentation.
43677         * doc/gnulib-intro.texi (Benefits): New section.
43678         * doc/gnulib.texi: Update.
43679
43680 2008-12-06  Bruno Haible  <bruno@clisp.org>
43681
43682         Document the 'manywarnings' module.
43683         * doc/manywarnings.texi: New file.
43684         * doc/gnulib.texi: Include it.
43685
43686 2008-12-05  Eric Blake  <ebb9@byu.net>
43687
43688         tests: silence some gcc warnings
43689         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43690         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43691         type mismatches.
43692
43693 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43694             Bruno Haible  <bruno@clisp.org>
43695
43696         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43697
43698 2008-11-29  Jim Meyering  <meyering@redhat.com>
43699
43700         unicodeio.c: mark unused parameters
43701         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43702         (fallback_failure_callback): Likewise.
43703
43704         fts: fix a thinko
43705         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43706         (set_stat_type): Return S_IF*-valued "type" directly.
43707         Prompted by James Youngman's spotting a related bug.
43708         Confirmed by further testing through find.
43709
43710         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43711         * lib/fts.c (D_TYPE): Define.
43712         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43713         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43714         (s_ifmt_shift_bits): New function.
43715         (set_stat_type): New function.
43716         (fts_build): When not calling fts_stat, call set_stat_type
43717         to propagate dirent.d_type info to fts_read caller.
43718         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43719         fts_statp->st_mode type information may be valid.
43720
43721 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43722
43723         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43724         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43725         <sds@gnu.org>.
43726
43727 2008-11-20  Bruno Haible  <bruno@clisp.org>
43728
43729         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43730         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43731         INCLUDE_NEXT.
43732         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43733         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43734         * modules/math (Makefile.am): Substitute
43735         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43736         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43737
43738 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43739             Bruno Haible  <bruno@clisp.org>
43740
43741         * lib/stdint.in.h: Define all type macros so that their expansion is
43742         a single typedef'ed token. Fixes a compilation failure in Boost which
43743         does "using ::int8_t;".
43744
43745 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43746
43747         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43748         gl_MANYWARN_ALL_GCC.
43749         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43750         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43751         * modules/manywarnings: New file.
43752         * MODULES.html.sh: Mention manywarnings module.
43753
43754 2008-11-18  Bruno Haible  <bruno@clisp.org>
43755
43756         * doc/gnulib-tool.texi (Unit tests): New section.
43757
43758 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43759
43760         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43761         paths like 'lib/po/foo.po'.
43762
43763 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43764
43765         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43766         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43767
43768 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43769
43770         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43771         parameter works.
43772
43773 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43774
43775         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43776
43777 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43778
43779         * modules/parse-duration-tests: New file.
43780         * tests/test-parse-duration.sh: New file.
43781         * tests/test-parse-duration.c: New file.
43782
43783         New module 'parse-duration'.
43784         * lib/parse-duration.h: New file.
43785         * lib/parse-duration.c: New file.
43786         * modules/parse-duration: New file.
43787
43788 2008-11-17  Bruno Haible  <bruno@clisp.org>
43789
43790         * tests/test-select-out.sh: Comment out the first pipe test.
43791         Reported by Simon Josefsson.
43792
43793 2008-11-17  Bruno Haible  <bruno@clisp.org>
43794
43795         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43797         gl_HOSTENT.
43798
43799 2008-11-17  Bruno Haible  <bruno@clisp.org>
43800
43801         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43802         -lnetwork and -lnet. Needed for Haiku and BeOS.
43803
43804 2008-11-16  Bruno Haible  <bruno@clisp.org>
43805
43806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43807
43808 2008-11-16  Bruno Haible  <bruno@clisp.org>
43809
43810         Avoid test failure on Haiku.
43811         * tests/test-fsync.c: Include <errno.h>.
43812         (main): Don't require that fsync (0) fails.
43813
43814 2008-11-15  Bruno Haible  <bruno@clisp.org>
43815
43816         New module 'hostent'.
43817         * modules/hostent: New file.
43818         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43819
43820 2008-11-15  Bruno Haible  <bruno@clisp.org>
43821
43822         New module 'servent'.
43823         * modules/servent: New file.
43824         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43825
43826 2008-11-15  Bruno Haible  <bruno@clisp.org>
43827
43828         Avoid generating same test program with two different rules.
43829         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43830         test-frexp to test-frexp-nolibm.
43831         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43832         test-frexpl to test-frexpl-nolibm.
43833
43834 2008-11-15  Bruno Haible  <bruno@clisp.org>
43835
43836         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43837         $(FREXPL_LIBM).
43838
43839 2008-11-15  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/netdb.in.h: Activate the definitions also when the system's
43842         <netdb.h> has 'struct addrinfo'.
43843         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43844         EAI_OVERFLOW or AI_NUMERICSERV.
43845         * doc/posix-headers/netdb.texi: Document the problem.
43846
43847 2008-11-15  Bruno Haible  <bruno@clisp.org>
43848
43849         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43850
43851         Make the 'sched' module work on platforms where <sched.h> exists but
43852         is incomplete (such as Haiku).
43853         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43854         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43855         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43856         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43857         HAVE_STRUCT_SCHED_PARAM.
43858         * modules/sched (Depends-on): Add include_next.
43859         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43860         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43861         * doc/posix-headers/sched.texi: Document the issue.
43862
43863 2008-11-13  Jim Meyering  <meyering@redhat.com>
43864
43865         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43866         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43867         test would fail due to the difference in the Report bugs to ...
43868         line.  The expected address is empty, "<>", while the actual
43869         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43870
43871 2008-11-12  Bruno Haible  <bruno@clisp.org>
43872
43873         lstat: don't compile lstat.c on systems lacking lstat
43874         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43875         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43876         Reported by Daniel P. Berrange via Jim Meyering.
43877
43878 2008-11-12  Jim Meyering  <meyering@redhat.com>
43879
43880         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43881
43882 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43883
43884         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43885         instead.
43886
43887 2008-11-12  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/unicodeio.c: Include unistr.h.
43890         (utf8_wctomb): Remove function.
43891         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43892
43893 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43894
43895         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43896         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43897         <bruno@clisp.org>.
43898         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43899
43900 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43901
43902         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43903         * doc/gnulib.texi: Add section for warnings.
43904
43905 2008-11-11  Bruno Haible  <bruno@clisp.org>
43906
43907         * lib/sockets.h: Add a comment.
43908
43909 2008-11-11  Karl Berry  <karl@gnu.org>
43910
43911         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43912
43913 2008-11-11  Eric Blake  <ebb9@byu.net>
43914
43915         fdl.texi: avoid git symlinks
43916         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43917
43918 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43919
43920         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43921
43922 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43923
43924         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43925         (gl_WARN_ADD): Substitute $2 if literal.
43926
43927 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43928
43929         * m4/warning.m4: Remove.
43930
43931 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43932
43933         * m4/warnings.m4: Almost complete rewrite. :-)
43934
43935 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43936
43937         * modules/warnings: New module.
43938         * m4/warnings.m4: New file.
43939         * MODULES.html.sh: Mention warnings module.
43940         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43941         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43942
43943 2008-11-10  Eric Blake  <ebb9@byu.net>
43944
43945         fdl.texi: make a symlink to the latest version
43946         * doc/standards.texi: Revert today's earlier change.
43947         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43948         * doc/fdl.texi: ...and replace this with a symlink to the newer
43949         fdl-1.3.texi.
43950
43951 2008-11-10  Bruno Haible  <bruno@clisp.org>
43952
43953         * tests/test-select-fd.c (main): Accept the result file name as fourth
43954         argument.
43955         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43956         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43957
43958 2008-11-10  Bruno Haible  <bruno@clisp.org>
43959
43960         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43961         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43962         as autoconf-substituted macros.
43963         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43965         gl_NETDB_H_DEFAULTS. Set these variables.
43966         * modules/netdb (Makefile.am): Substitute these variables.
43967
43968 2008-11-10  Eric Blake  <ebb9@byu.net>
43969
43970         standards.texi: include correct file for FDL 1.3
43971         * doc/standards.texi (GNU Free Documentation License): Change
43972         include file to pull in FDL 1.3, not 1.2.
43973
43974         fdl.texi: revert accidental change to license
43975         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43976
43977 2008-11-10  Bruno Haible  <bruno@clisp.org>
43978
43979         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43980         cross-compiling guesses also when the native compile gives no result.
43981
43982 2008-11-10  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/spawni.c (__spawni): Force variable into the stack.
43985
43986 2008-11-10  Bruno Haible  <bruno@clisp.org>
43987
43988         Add support for Haiku.
43989         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43990         glibc and BeOS, but also on Haiku.
43991         * lib/fpurge.c (fpurge): Likewise.
43992         * lib/freadable.c (freadable): Likewise.
43993         * lib/freadahead.c (freadahead): Likewise.
43994         * lib/freading.c (freading): Likewise.
43995         * lib/freadptr.c (freadptr): Likewise.
43996         * lib/freadseek.c (freadptrinc): Likewise.
43997         * lib/fseeko.c (rpl_fseeko): Likewise.
43998         * lib/fseterr.c (fseterr): Likewise.
43999         * lib/fwritable.c (fwritable): Likewise.
44000         * lib/fwriting.c (fwriting): Likewise.
44001         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44002
44003 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44004
44005         * lib/config.charset: Treat Haiku like BeOS.
44006
44007 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44008
44009         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44010         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44011
44012 2008-11-08  Bruno Haible  <bruno@clisp.org>
44013
44014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44015         AC_CACHE_CHECK.
44016
44017 2008-11-08  Bruno Haible  <bruno@clisp.org>
44018
44019         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44020
44021 2008-11-08  Bruno Haible  <bruno@clisp.org>
44022
44023         * tests/test-select-fd.c: New file.
44024         * tests/test-select-in.sh: New file.
44025         * tests/test-select-out.sh: New file.
44026         * tests/test-select-stdin.c: New file.
44027         * modules/select-tests (Files): Add the new files.
44028         (Depends-on): Add gettimeofday.
44029         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44030         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44031         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44032
44033 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44034             Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44037
44038 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44039
44040         * build-aux/pmccabe2html: Added support for C++ source files.
44041
44042 2008-11-05  Ben Pfaff  <blp@gnu.org>
44043
44044         Fix lib/close.c build on Windows.
44045         * modules/close (Files): Add lib/w32sock.h.
44046
44047 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44048
44049         Accept Bison's NEWS format.
44050         * build-aux/announce-gen (print_news_deltas): Tweak
44051         $re_prefix.
44052
44053 2008-11-04  Bruno Haible  <bruno@clisp.org>
44054
44055         * modules/random_r (Maintainer): Add glibc.
44056
44057 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44058
44059         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44060         by karl@freefriends.org (Karl Berry).
44061         * doc/alloca.texi: Likewise.
44062         * doc/c-ctype.texi: Likewise.
44063         * doc/c-strcase.texi: Likewise.
44064         * doc/c-strcaseeq.texi: Likewise.
44065         * doc/c-strcasestr.texi: Likewise.
44066         * doc/c-strstr.texi: Likewise.
44067         * doc/c-strtod.texi: Likewise.
44068         * doc/c-strtold.texi: Likewise.
44069         * doc/ctime.texi: Likewise.
44070         * doc/error.texi: Likewise.
44071         * doc/fdl.texi: Likewise.
44072         * doc/gcd.texi: Likewise.
44073         * doc/getdate.texi: Likewise.
44074         * doc/gnulib-intro.texi: Likewise.
44075         * doc/gnulib-tool.texi: Likewise.
44076         * doc/gnulib.texi: Likewise.
44077         * doc/inet_ntoa.texi: Likewise.
44078         * doc/maintain.texi: Likewise.
44079         * doc/make-stds.texi: Likewise.
44080         * doc/quote.texi: Likewise.
44081         * doc/regexprops-generic.texi: Likewise.
44082         * doc/standards.texi: Likewise.
44083         * doc/verify.texi: Likewise.
44084         * doc/visibility.texi: Likewise.
44085         * doc/gnulib.texi (GNU Free Documentation License): Include
44086         fdl-1.3.texi instead of fdl.texi.
44087
44088 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44089
44090         * doc/fdl-1.3.texi: New file, from
44091         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44092         * modules/fdl-1.3: Add.
44093         * MODULES.html.sh: Add fdl-1.3.
44094
44095 2008-11-03  Bruno Haible  <bruno@clisp.org>
44096
44097         Make determination of absolute name of header file work with AIX xlc.
44098         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44099         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44100         preprocessing.
44101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44102         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44103
44104 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44105
44106         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44107         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44108         <ludo@gnu.org>.
44109
44110 2008-11-02  Bruno Haible  <bruno@clisp.org>
44111
44112         Mark 'strpbrk' obsolete.
44113         * modules/strpbrk (Status, Notice): New sections.
44114         * modules/strtok_r (Depends-on): Add strpbrk.
44115
44116 2008-11-02  Bruno Haible  <bruno@clisp.org>
44117
44118         Mark 'strdup' obsolete.
44119         * modules/strdup (Status, Notice): New sections.
44120         * modules/findprog (Depends-on): Add strdup.
44121         * modules/getaddrinfo (Depends-on): Likewise.
44122         * modules/localename (Depends-on): Likewise.
44123         * modules/relocatable-lib (Depends-on): Likewise.
44124         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44125         * modules/relocatable-prog (Depends-on): Likewise.
44126         * modules/trim (Depends-on): Likewise.
44127         * modules/unictype/gen-ctype (Depends-on): Likewise.
44128         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44129
44130 2008-11-02  Bruno Haible  <bruno@clisp.org>
44131
44132         Mark 'strcspn' obsolete.
44133         * modules/strcspn (Status, Notice): New sections.
44134
44135 2008-11-02  Bruno Haible  <bruno@clisp.org>
44136
44137         Mark 'rmdir' obsolete.
44138         * modules/rmdir (Status, Notice): New sections.
44139         * modules/clean-temp (Depends-on): Add rmdir.
44140         * modules/openat (Depends-on): Likewise.
44141
44142 2008-11-02  Bruno Haible  <bruno@clisp.org>
44143
44144         Mark 'raise' obsolete.
44145         * modules/raise (Status, Notice): New sections.
44146         (Include): Specify <signal.h>.
44147         * modules/stdio (Depends-on): Add raise.
44148         * modules/write (Depends-on): Likewise.
44149
44150 2008-11-02  Bruno Haible  <bruno@clisp.org>
44151
44152         Mark 'memset' obsolete.
44153         * modules/memset (Status, Notice): New sections.
44154
44155 2008-11-02  Bruno Haible  <bruno@clisp.org>
44156
44157         Mark 'memmove' obsolete.
44158         * modules/memmove (Status, Notice): New sections.
44159         * modules/argp (Depends-on): Add memmove.
44160         * modules/argz (Depends-on): Likewise.
44161         * modules/canonicalize (Depends-on): Likewise.
44162         * modules/canonicalize-lgpl (Depends-on): Likewise.
44163         * modules/fts (Depends-on): Likewise.
44164         * modules/getcwd (Depends-on): Likewise.
44165         * modules/human (Depends-on): Likewise.
44166         * modules/regex (Depends-on): Likewise.
44167         * modules/striconveh (Depends-on): Likewise.
44168         * modules/trim (Depends-on): Likewise.
44169         * modules/unistr/u8-move (Depends-on): Likewise.
44170         * modules/unistr/u16-move (Depends-on): Likewise.
44171         * modules/unistr/u32-move (Depends-on): Likewise.
44172
44173 2008-11-02  Bruno Haible  <bruno@clisp.org>
44174
44175         Mark 'memcpy' obsolete.
44176         * modules/memcpy (Status, Notice): New sections.
44177
44178 2008-11-02  Bruno Haible  <bruno@clisp.org>
44179
44180         Mark 'memcmp' obsolete.
44181         * modules/memcmp (Status, Notice): New sections.
44182         * modules/argmatch (Depends-on): Add memchr.
44183         * modules/backupfile (Depends-on): Likewise.
44184         * modules/c-strcasestr (Depends-on): Likewise.
44185         * modules/crypto/des (Depends-on): Likewise.
44186         * modules/csharpcomp (Depends-on): Likewise.
44187         * modules/fnmatch (Depends-on): Likewise.
44188         * modules/git-merge-changelog (Depends-on): Likewise.
44189         * modules/isnand (Depends-on): Likewise.
44190         * modules/isnand-nolibm (Depends-on): Likewise.
44191         * modules/isnanf (Depends-on): Likewise.
44192         * modules/isnanf-nolibm (Depends-on): Likewise.
44193         * modules/isnanl (Depends-on): Likewise.
44194         * modules/isnanl-nolibm (Depends-on): Likewise.
44195         * modules/mbchar (Depends-on): Likewise.
44196         * modules/memcoll (Depends-on): Likewise.
44197         * modules/quotearg (Depends-on): Likewise.
44198         * modules/regex (Depends-on): Likewise.
44199         * modules/relocatable-prog (Depends-on): Likewise.
44200         * modules/same (Depends-on): Likewise.
44201         * modules/signbit (Depends-on): Likewise.
44202         * modules/strcasestr-simple (Depends-on): Likewise.
44203         * modules/unictype/gen-ctype (Depends-on): Likewise.
44204         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44205         * modules/uniname/uniname (Depends-on): Likewise.
44206         * modules/unistr/u8-cmp (Depends-on): Likewise.
44207
44208 2008-11-02  Bruno Haible  <bruno@clisp.org>
44209
44210         Mark 'memchr' obsolete.
44211         * modules/memchr (Status, Notice): New sections.
44212         * modules/argp (Depends-on): Add memchr.
44213         * modules/base64 (Depends-on): Likewise.
44214         * modules/c-strcasestr (Depends-on): Likewise.
44215         * modules/chdir-long (Depends-on): Likewise.
44216         * modules/fnmatch (Depends-on): Likewise.
44217         * modules/getsubopt (Depends-on): Likewise.
44218         * modules/git-merge-changelog (Depends-on): Likewise.
44219         * modules/glob (Depends-on): Likewise.
44220         * modules/strcasestr-simple (Depends-on): Likewise.
44221         * modules/strnlen (Depends-on): Likewise.
44222
44223 2008-11-02  Bruno Haible  <bruno@clisp.org>
44224
44225         Mark 'atexit' obsolete.
44226         * modules/atexit (Status, Notice): New sections.
44227         * modules/chdir-long (Depends-on): Add atexit.
44228         * modules/wait-process (Depends-on): Likewise.
44229
44230 2008-11-02  Bruno Haible  <bruno@clisp.org>
44231
44232         * gnulib-tool: New option --with-obsolete.
44233         (func_usage): Document it.
44234         (func_modules_transitive_closure): Drop obsolete dependencies if
44235         incobsolete is not true.
44236         (func_import): Read and save the incobsolete variable to the cache.
44237
44238 2008-11-02  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44241         * gnulib-tool: New option --extract-status.
44242         (func_usage): Document it.
44243         (sed_extract_prog): Recognize it.
44244         (func_get_status): New function.
44245
44246 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44247
44248         * modules/sockets (License): Change from LGPL to LGPLv2+.
44249
44250 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44251
44252         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44253
44254 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44255
44256         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44257         Mention times and sys_times.
44258         * modules/sys_times, modules/sys_times-tests: New modules.
44259         * modules/times, modules/times-tests: Likewise
44260         * m4/sys_times_h.m4: New file.
44261         * lib/sys_times.in.h: Likewise
44262         * lib/times.c: Likewise.
44263         * tests/test-sys_times.c: Likewise.
44264         * tests/test-times.c: Likewise.
44265         * doc/posix-headers/sys_times.texi: Update.
44266         * doc/posix-functions/times.texi: Update.
44267
44268 2008-10-28  Jim Meyering  <meyering@redhat.com>
44269
44270         * modules/tempname (Depends-on): Add lstat.
44271
44272         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44273
44274 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44275
44276         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44277         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44278         using idiom used elsewhere in gnulib.
44279
44280 2008-10-27  Jim Meyering  <meyering@redhat.com>
44281
44282         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44283
44284 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44285
44286         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44287         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44288         programs.
44289         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44290
44291 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44292
44293         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44294
44295 2008-10-27  Bruno Haible  <bruno@clisp.org>
44296
44297         * tests/test-lstat.c: Include <stdio.h>.
44298
44299 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44300
44301         * modules/lstat-tests: New module.
44302         * tests/test-lstat.c: New file.
44303
44304 2008-10-26  Jim Meyering  <meyering@redhat.com>
44305
44306         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44307
44308 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44309             Bruno Haible  <bruno@clisp.org>
44310
44311         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44312         * modules/configmake (Include): Add a note that the include must come
44313         after all system headers.
44314         * lib/javaversion.c: Include configmake.h after all other includes.
44315
44316 2008-10-26  Bruno Haible  <bruno@clisp.org>
44317
44318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44319         HAVE_STRUCT_RANDOM_DATA to 1.
44320         (gl_STDLIB_H): Simplify.
44321
44322 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44323
44324         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44325         substitute HAVE_STRUCT_RANDOM_DATA.
44326         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44327         random_data.
44328         * modules/stdlib (Makefile.am): Substitute
44329         HAVE_STRUCT_RANDOM_DATA.
44330
44331 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44332
44333         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44334         * doc/gnulib-intro.texi (Copyright): Likewise.
44335
44336 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44337
44338         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44339         findings.
44340
44341 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44342             Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/unistd.in.h: Include <winsock2.h>.
44345         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44346         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44347         Provide dummy declarations.
44348         (gethostname): Override.
44349         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44350         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44351         gl_PREREQ_SYS_H_WINSOCK2.
44352         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44353         * doc/posix-functions/gethostname.texi: More details.
44354
44355 2008-10-25  Bruno Haible  <bruno@clisp.org>
44356
44357         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44358         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44359         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44360
44361         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44362         here ...
44363         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44364         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44365         gl_UNISTD_H_DEFAULTS.
44366
44367 2008-10-25  Eric Blake  <ebb9@byu.net>
44368
44369         signbit: avoid spurious compiler failure
44370         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44371         declarations inside function.
44372
44373 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44374             Bruno Haible  <bruno@clisp.org>
44375
44376         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44377         * modules/random_r (Depends-on): Add stdint.
44378
44379 2008-10-24  Bruno Haible  <bruno@clisp.org>
44380
44381         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44382         Eggert.
44383         * modules/strerror (License): Likewise.
44384
44385 2008-10-24  Jim Meyering  <meyering@redhat.com>
44386
44387         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44388         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44389
44390 2008-10-24  Eric Blake  <ebb9@byu.net>
44391
44392         getgroups: fix compilation when getgroups is available
44393         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44394         but with <config.h> override of getgroups disabled.
44395
44396 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44397
44398         * doc/gnulib.texi (Header files): Add note about C++ problems.
44399         Explained by Bruno Haible <bruno@clisp.org>.
44400
44401 2008-10-23  Bruno Haible  <bruno@clisp.org>
44402
44403         Define a dummy SA_NODEFER macro on Interix.
44404         * lib/signal.in.h (SA_NODEFER): Define fallback.
44405         Reported by Aleksey Cheusov <cheusov@tut.by> via
44406         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44407
44408 2008-10-23  Bruno Haible  <bruno@clisp.org>
44409
44410         * modules/freadahead (License): Change to LGPLv2+.
44411         Suggested by Simon Josefsson.
44412
44413 2008-10-23  Jim Meyering  <meyering@redhat.com>
44414
44415         random_r: new module
44416         * modules/random_r: New file.
44417         * m4/random_r.m4: New file.
44418         * lib/random_r.c: New file, from glibc.
44419         * modules/random_r-tests: New file.
44420         * tests/test-random_r.c: New file.
44421         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44422          Declare.
44423         (RAND_MAX): Define.
44424         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44425         * modules/stdlib: Substitute them, too.
44426         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44427         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44428         * doc/glibc-functions/random_r.texi: Likewise.
44429         * doc/glibc-functions/setstate_r.texi: Likewise.
44430         * doc/glibc-functions/srandom_r.texi: Likewise.
44431         * config/srclist.txt: Mention it.
44432
44433 2008-10-23  David Lutterkort  <lutter@redhat.com>
44434
44435         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44436         link requirement
44437
44438 2008-10-23  Jim Meyering  <meyering@redhat.com>
44439
44440         selinux-h: mark parameters of stub functions as intentionally unused
44441         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44442         * lib/se-context.in.h: Likewise.
44443
44444 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44445
44446         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44447
44448 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44449
44450         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44451
44452 2008-10-22  Eric Blake  <ebb9@byu.net>
44453
44454         glthread/thread: avoid compiler warning
44455         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44456         Add unreachable abort to silence compiler.
44457
44458 2008-10-22  Eric Blake  <ebb9@byu.net>
44459
44460         netdb: also supply struct addrinfo for cygwin 1.5.x
44461         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44462         older cygwin.
44463         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44464         cygwin.
44465         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44466
44467 2008-10-22  Bruno Haible  <bruno@clisp.org>
44468
44469         * users.txt: Update entry about pspp.
44470
44471 2008-10-21  Bruno Haible  <bruno@clisp.org>
44472
44473         Simplification.
44474         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44475         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44476
44477         Simplification.
44478         * lib/ioctl.c (ioctl): Don't undefine.
44479         * lib/socket.c (socket): Don't undefine.
44480
44481         Remove unused module indicator macros.
44482         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44483         GNULIB_$1 as a C macro.
44484
44485         * doc/posix-functions/close.texi: Undo last change.
44486         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44487         Windows platforms.
44488
44489 2008-10-21  Bruno Haible  <bruno@clisp.org>
44490
44491         Add gethostname() declaration to <unistd.h>.
44492         * lib/unistd.in.h (gethostname): New declaration.
44493         * lib/gethostname.c: Include <unistd.h>.
44494         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44495         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44497         and HAVE_GETHOSTNAME.
44498         * modules/gethostname (Depends-on): Add unistd.
44499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44500         (Include): Specify <unistd.h>.
44501         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44502         HAVE_GETHOSTNAME.
44503         * tests/test-gethostname.c: Include <unistd.h> first.
44504
44505 2008-10-21  Bruno Haible  <bruno@clisp.org>
44506
44507         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44508         * modules/select-tests (Depends-on): Likewise.
44509         Reported by Simon Josefsson.
44510
44511 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44512
44513         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44514         * lib/accept.c: New file, based on winsock.c.
44515         * lib/bind.c: New file, based on winsock.c.
44516         * lib/connect.c: New file, based on winsock.c.
44517         * lib/getpeername.c: New file, based on winsock.c.
44518         * lib/getsockname.c: New file, based on winsock.c.
44519         * lib/getsockopt.c: New file, based on winsock.c.
44520         * lib/ioctl.c: New file, based on winsock.c.
44521         * lib/listen.c: New file, based on winsock.c.
44522         * lib/recv.c: New file, based on winsock.c.
44523         * lib/recvfrom.c: New file, based on winsock.c.
44524         * lib/send.c: New file, based on winsock.c.
44525         * lib/sendto.c: New file, based on winsock.c.
44526         * lib/setsockopt.c: New file, based on winsock.c.
44527         * lib/shutdown.c: New file, based on winsock.c.
44528         * lib/socket.c: New file, based on winsock.c.
44529         * lib/w32sock.h: New file, based on winsock.c.
44530         * lib/winsock.c: Remove file.
44531         * modules/accept: Likewise.
44532         * modules/bind: Likewise.
44533         * modules/connect: Likewise.
44534         * modules/getpeername: Likewise.
44535         * modules/getsockname: Likewise.
44536         * modules/getsockopt: Likewise.
44537         * modules/ioctl: Likewise.
44538         * modules/listen: Likewise.
44539         * modules/recv: Likewise.
44540         * modules/recvfrom: Likewise.
44541         * modules/send: Likewise.
44542         * modules/sendto: Likewise.
44543         * modules/setsockopt: Likewise.
44544         * modules/shutdown: Likewise.
44545         * modules/socket: Use socket.c instead of winsock.c.
44546         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44547         * doc/posix-functions/accept.texi: Doc fix.
44548         * doc/posix-functions/bind.texi: Doc fix.
44549         * doc/posix-functions/close.texi: Doc fix.
44550         * doc/posix-functions/connect.texi: Doc fix.
44551         * doc/posix-functions/getpeername.texi: Doc fix.
44552         * doc/posix-functions/getsockname.texi: Doc fix.
44553         * doc/posix-functions/getsockopt.texi: Doc fix.
44554         * doc/posix-functions/ioctl.texi: Doc fix.
44555         * doc/posix-functions/listen.texi: Doc fix.
44556         * doc/posix-functions/recv.texi: Doc fix.
44557         * doc/posix-functions/recvfrom.texi: Doc fix.
44558         * doc/posix-functions/send.texi: Doc fix.
44559         * doc/posix-functions/sendto.texi: Doc fix.
44560         * doc/posix-functions/setsockopt.texi: Doc fix.
44561         * doc/posix-functions/shutdown.texi: Doc fix.
44562         * doc/posix-functions/socket.texi: Doc fix.
44563
44564 2008-10-20  Bruno Haible  <bruno@clisp.org>
44565
44566         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44567         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44568         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44569         as an alias for SIGABRT.
44570         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44571         (sigaction): Map it to SIGABRT.
44572         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44573
44574 2008-10-20  Bruno Haible  <bruno@clisp.org>
44575
44576         * lib/fts.c: Don't include lstat.h.
44577         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44578
44579         Move the lstat() declaration to <sys/stat.h>.
44580         * lib/lstat.h: Remove file.
44581         * lib/sys_stat.in.h: Add special invocation convention.
44582         (lstat): New declaration.
44583         * lib/lstat.c (orig_lstat): New function.
44584         (rpl_lstat): Use orig_lstat instead of lstat.
44585         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44586         AC_C_INLINE. Set REPLACE_LSTAT.
44587         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44588         and REPLACE_LSTAT.
44589         * modules/lstat (Files): Remove lib/lstat.h.
44590         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44591         (Include): Specify <sys/stat.h> instead of lstat.h.
44592         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44593         REPLACE_LSTAT.
44594         * NEWS: Mention the change.
44595
44596 2008-10-20  Bruno Haible  <bruno@clisp.org>
44597
44598         * modules/posix_spawn-tests: New file.
44599         * tests/test-posix_spawn3.c: New file.
44600
44601 2008-10-20  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44604         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44605         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44606         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44607         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44608
44609 2008-10-20  Bruno Haible  <bruno@clisp.org>
44610
44611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44612         of posix_spawn on AIX 5.3.
44613
44614 2008-10-20  Bruno Haible  <bruno@clisp.org>
44615
44616         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44617
44618 2008-10-20  Bruno Haible  <bruno@clisp.org>
44619
44620         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44621         of AC_LANG_PROGRAM.
44622
44623 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44624
44625         * lib/netdb.in.h: Don't define GNU specific constants until they
44626         are supported or needed.  Reported by Bruno Haible
44627         <bruno@clisp.org>.
44628
44629 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44630
44631         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44632
44633 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44634
44635         * lib/getaddrinfo.h: Remove file.
44636         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44637         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44638         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44639         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44640         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44641         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44642         * tests/test-getaddrinfo.c: Likewise.
44643         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44644         * NEWS: Mention change.
44645
44646 2008-10-19  Bruno Haible  <bruno@clisp.org>
44647
44648         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44649
44650 2008-10-19  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/wait-process.c: Include simply <sys/wait.h>.
44653         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44654         WIFSTOPPED): Remove fallback definitions.
44655         * modules/wait-process (Depends-on): Add sys_wait.
44656
44657         New module 'sys_wait'.
44658         * modules/sys_wait: New file.
44659         * lib/sys_wait.in.h: New file, partially copied from
44660         lib/wait-process.c.
44661         * m4/sys_wait_h.m4: New file.
44662         * doc/posix-headers/sys_wait.texi: Mention the new module.
44663
44664 2008-10-19  Bruno Haible  <bruno@clisp.org>
44665
44666         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44667
44668 2008-10-19  Bruno Haible  <bruno@clisp.org>
44669
44670         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44671         * lib/wait-process.c (WAIT_T): Remove type.
44672         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44673         (wait_subprocess): Update.
44674
44675 2008-10-19  Bruno Haible  <bruno@clisp.org>
44676
44677         New module 'atoll'.
44678         * modules/atoll: New file.
44679         * lib/stdlib.in.h (atoll): New declaration.
44680         * lib/atoll.c: New file, from glibc with modifications.
44681         * m4/atoll.m4: New file.
44682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44683         HAVE_ATOLL.
44684         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44685         * doc/posix-functions/atoll.texi: Mention the new module.
44686
44687 2008-10-19  Bruno Haible  <bruno@clisp.org>
44688
44689         Add strtoull() declaration to <stdlib.h>.
44690         * lib/stdlib.in.h (strtoull): New declaration.
44691         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44692         Set HAVE_STRTOULL.
44693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44694         HAVE_STRTOULL.
44695         * modules/strtoull (Depends-on): Add stdlib.
44696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44697         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44698         HAVE_STRTOULL.
44699
44700 2008-10-19  Bruno Haible  <bruno@clisp.org>
44701
44702         Add strtoll() declaration to <stdlib.h>.
44703         * lib/stdlib.in.h (strtoll): New declaration.
44704         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44705         Set HAVE_STRTOLL.
44706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44707         HAVE_STRTOLL.
44708         * modules/strtoll (Depends-on): Add stdlib.
44709         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44710         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44711
44712 2008-10-19  Bruno Haible  <bruno@clisp.org>
44713
44714         * modules/bcopy (Depends-on): Add strings.
44715         (Include): Specify <strings.h>.
44716
44717 2008-10-19  Bruno Haible  <bruno@clisp.org>
44718
44719         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44720
44721 2008-10-19  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44724         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44725         mingw.
44726
44727 2008-10-19  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/atanl.c: Don't include isnanl.h.
44730         * lib/cosl.c: Likewise.
44731         * lib/ldexpl.c: Likewise.
44732         * lib/logl.c: Likewise.
44733         * lib/sinl.c: Likewise.
44734         * lib/sqrtl.c: Likewise.
44735         * lib/tanl.c: Likewise.
44736
44737         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44738         * lib/isnanf.h: Remove file.
44739         * lib/isnand.h: Remove file.
44740         * lib/isnanl.h: Remove file.
44741         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44742         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44743         macros.
44744         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44745         HAVE_ISNANF, don't define it as a C macro.
44746         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44747         HAVE_ISNAND, don't define it as a C macro.
44748         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44749         HAVE_ISNANL, don't define it as a C macro.
44750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44751         HAVE_ISNAN[FDL].
44752         * modules/isnanf (Files): Remove lib/isnanf.h.
44753         (Depends-on): Add math.
44754         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44755         (Include): Specify <math.h> instead of isnanf.h.
44756         * modules/isnand (Files): Remove lib/isnand.h.
44757         (Depends-on): Add math.
44758         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44759         (Include): Specify <math.h> instead of isnand.h.
44760         * modules/isnanl (Files): Remove lib/isnanl.h.
44761         (Depends-on): Add math.
44762         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44763         (Include): Specify <math.h> instead of isnanl.h.
44764         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44765         HAVE_ISNAN[FDL].
44766         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44767         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44768         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44769         * NEWS: Mention the change.
44770
44771 2008-10-18  Bruno Haible  <bruno@clisp.org>
44772
44773         Add getusershell(), setusershell(), endusershell() declarations to
44774         <unistd.h>.
44775         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44776         declarations.
44777         * lib/getusershell.c: Include unistd.h.
44778         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44779         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44780         HAVE_GETUSERSHELL.
44781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44782         and HAVE_GETUSERSHELL.
44783         * modules/getusershell (Depends-on): Add unistd, extensions.
44784         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44785         (Include): Specify <unistd.h>.
44786         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44787         HAVE_GETUSERSHELL.
44788
44789 2008-10-18  Bruno Haible  <bruno@clisp.org>
44790
44791         Add a getloadavg() declaration to <stdlib.h>.
44792         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44793         getloadavg declaration.
44794         (getloadavg): New declaration.
44795         * lib/getloadavg.c: Include <stdlib.h> first.
44796         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44797         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44798         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44800         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44801         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44803         (Include): Specify <stdlib.h>.
44804         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44805         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44806
44807 2008-10-18  Bruno Haible  <bruno@clisp.org>
44808
44809         * lib/dirchownmod.c: Don't include lchmod.h.
44810
44811         Move the lchmod() declaration to <sys/stat.h>.
44812         * lib/lchmod.h: Remove file.
44813         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44814         (lchmod): New declaration, moved here from lib/lchown.h.
44815         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44816         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44818         and HAVE_LCHMOD.
44819         * modules/lchmod (Files): Remove lib/lchmod.h.
44820         (Depends-on): Add sys_stat, extensions.
44821         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44822         (Include): Specify <sys/stat.h> instead of lchmod.h.
44823         * modules/sys_stat (Depends-on): Add link-warning.
44824         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44825         definition of GL_LINK_WARNING.
44826         * NEWS: Mention the change.
44827
44828 2008-10-18  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/fchdir.c: Don't include dirfd.h.
44831         * lib/fts.c: Likewise.
44832         * lib/getcwd.c: Likewise.
44833         * lib/glob.c: Likewise.
44834
44835         Move the dirfd() declaration to <dirent.h>.
44836         * lib/dirfd.h: Remove file.
44837         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44838         (dirfd): New declaration.
44839         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44840         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44841         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44842         HAVE_DECL_DIRFD.
44843         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44844         HAVE_DECL_DIRFD.
44845         * modules/dirfd (Files): Remove lib/dirfd.h.
44846         (Depends-on): Add dirent, extensions.
44847         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44848         (Include): Specify <dirent.h> instead of dirfd.h.
44849         * modules/dirent (Depends-on): Add link-warning.
44850         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44851         definition of GL_LINK_WARNING.
44852         * NEWS: Mention the change.
44853
44854 2008-10-18  Bruno Haible  <bruno@clisp.org>
44855
44856         Move the euidaccess() declaration to <unistd.h>.
44857         * lib/euidaccess.h: Remove file.
44858         * lib/unistd.in.h (euidaccess): New declaration.
44859         * lib/euidaccess.c: Don't include euidaccess.h.
44860         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44861         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44863         and HAVE_EUIDACCESS.
44864         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44865         (Depends-on): Add unistd.
44866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44867         (Include): Specify <unistd.h> instead of euidaccess.h.
44868         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44869         HAVE_EUIDACCESS.
44870         * NEWS: Mention the change.
44871
44872 2008-10-18  Bruno Haible  <bruno@clisp.org>
44873
44874         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44875
44876         Move the getdomainname() declaration to <unistd.h>.
44877         * lib/getdomainname.h: Remove file.
44878         * lib/unistd.in.h (getdomainname): New declaration.
44879         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44880         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44881         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44882         HAVE_GETDOMAINNAME.
44883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44884         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44885         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44886         (Depends-on): Add unistd, extensions.
44887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44888         (Includes): Specify <unistd.h> instead of getdomainname.h.
44889         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44890         HAVE_GETDOMAINNAME.
44891         * NEWS: Mention the change.
44892
44893 2008-10-18  Bruno Haible  <bruno@clisp.org>
44894
44895         * modules/dirent: New file.
44896         * m4/dirent_h.m4: New file.
44897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44898         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44899         * modules/fchdir (Files): Remove lib/dirent.in.h.
44900         (Depends-on): Add dirent.
44901         (Makefile.am): Move rules to modules/dirent.
44902         * doc/posix-headers/dirent.texi: Mention the new module.
44903
44904 2008-10-18  Bruno Haible  <bruno@clisp.org>
44905
44906         Avoid -Wunused-parameter warnings in public gnulib header files.
44907         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44908         macro.
44909         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44910
44911 2008-10-18  Bruno Haible  <bruno@clisp.org>
44912
44913         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44914         * doc/glibc-functions/error.texi: Mention the module 'error'.
44915         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44916         * doc/glibc-functions/getdomainname.texi: Mention the module
44917         'getdomainname'.
44918         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44919         * doc/glibc-functions/getpagesize.texi: Mention the module
44920         'getpagesize'.
44921         * doc/glibc-functions/getusershell.texi: Mention the module
44922         'getusershell'.
44923         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44924         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44925         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44926         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44927         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44928         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44929         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44930         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44931         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44932         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44933         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44934         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44935         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44936         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44937
44938 2008-10-17  Bruno Haible  <bruno@clisp.org>
44939
44940         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44941         HP-UX and IRIX, use -0.0L.
44942         * tests/test-ceill.c (minus_zero): Likewise.
44943         * tests/test-floorl.c (minus_zero): Likewise.
44944         * tests/test-frexpl.c (minus_zero): Likewise.
44945         * tests/test-isnan.c (minus_zerol): Likewise.
44946         * tests/test-isnanl.h (minus_zero): Likewise.
44947         * tests/test-ldexpl.c (minus_zero): Likewise.
44948         * tests/test-roundl.c (minus_zero): Likewise.
44949         * tests/test-signbit.c (minus_zerol): Likewise.
44950         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44951         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44952         * tests/test-truncl.c (minus_zero): Likewise.
44953         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44954         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44955         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44956         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44957
44958 2008-10-17  Bruno Haible  <bruno@clisp.org>
44959
44960         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44961         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44962         that it gets activated only for gcc >= 3.0.
44963         * lib/dirent.in.h: Likewise.
44964         * lib/errno.in.h: Likewise.
44965         * lib/fcntl.in.h: Likewise.
44966         * lib/float.in.h: Likewise.
44967         * lib/iconv.in.h: Likewise.
44968         * lib/inttypes.in.h: Likewise.
44969         * lib/locale.in.h: Likewise.
44970         * lib/math.in.h: Likewise.
44971         * lib/netdb.in.h: Likewise.
44972         * lib/netinet_in.in.h: Likewise.
44973         * lib/search.in.h: Likewise.
44974         * lib/signal.in.h: Likewise.
44975         * lib/spawn.in.h: Likewise.
44976         * lib/stdarg.in.h: Likewise.
44977         * lib/stdint.in.h: Likewise.
44978         * lib/stdio.in.h: Likewise.
44979         * lib/stdlib.in.h: Likewise.
44980         * lib/string.in.h: Likewise.
44981         * lib/strings.in.h: Likewise.
44982         * lib/sys_file.in.h: Likewise.
44983         * lib/sys_ioctl.in.h: Likewise.
44984         * lib/sys_select.in.h: Likewise.
44985         * lib/sys_socket.in.h: Likewise.
44986         * lib/sys_stat.in.h: Likewise.
44987         * lib/sys_time.in.h: Likewise.
44988         * lib/sysexits.in.h: Likewise.
44989         * lib/time.in.h: Likewise.
44990         * lib/unistd.in.h: Likewise.
44991         * lib/wchar.in.h: Likewise.
44992         * lib/wctype.in.h: Likewise.
44993         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44994
44995 2008-10-17  Jim Meyering  <meyering@redhat.com>
44996
44997         ignore-value: don't depend on inline module
44998         * modules/ignore-value (Depends-on): Remove 'inline'.
44999         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45000         Suggestion from Bruno Haible.
45001
45002 2008-10-17  Bruno Haible  <bruno@clisp.org>
45003
45004         New implementation of condition variables for Win32.
45005         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45006         (gl_linked_waitqueue_t): New type.
45007         (gl_cond_t): Use it.
45008         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45009         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45010         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45011         (glthread_cond_init_func, glthread_cond_wait_func,
45012         glthread_cond_timedwait_func, glthread_cond_signal_func,
45013         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45014         Reimplemented on the basis of gl_linked_waitqueue_t.
45015         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45016         gl_waitqueue_t.
45017         (gl_rwlock_t): Update.
45018         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45019
45020 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45021
45022         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45023         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45024
45025 2008-10-17  Jim Meyering  <meyering@redhat.com>
45026
45027         ignore-value: new module
45028         * modules/ignore-value: New file.
45029         * lib/ignore-value.h: New file.
45030         * MODULES.html.sh (Compiler warning management): New section,
45031         just for this module.  More to come.
45032
45033 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45034
45035         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45036         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45037         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45038
45039 2008-10-16  Jim Meyering  <meyering@redhat.com>
45040
45041         openat-die.c: avoid 'no previous prototype' warning
45042         * lib/openat-die.c: Include "openat.h".
45043         Reported by Reuben Thomas <rrt@sc3d.org>.
45044
45045 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45046
45047         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45048         * lib/netdb.in.h: Fix typo.
45049         Reported by Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/netdb.in.h: Include sys/socket.h for platforms without
45052         netdb.h, to get structures like hostent on MinGW.
45053         * modules/netdb (Depends-on): Add sys_socket.
45054
45055 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45056
45057         * modules/netdb, modules/netdb-tests: New file.
45058         * m4/netdb_h.m4: New file.
45059         * lib/netdb.in.h: Add, currently just an empty file pending
45060         definitions.
45061         * tests/test-netdb.c: New file.
45062         * doc/posix-headers/netdb.texi: Mention that we replace it if
45063         needed.
45064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45065         netdb.
45066
45067 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45068
45069         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45070         with code.
45071
45072 2008-10-13  Bruno Haible  <bruno@clisp.org>
45073
45074         * lib/glthread/cond.c (glthread_cond_wait_func,
45075         glthread_cond_timedwait_func): Add a comment.
45076
45077 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45078
45079         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45080         * tests/test-select.c: Likewise,
45081
45082 2008-10-13  Bruno Haible  <bruno@clisp.org>
45083
45084         * lib/glthread/cond.c (glthread_cond_wait_func,
45085         glthread_cond_timedwait_func): Fix variable name.
45086         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45087
45088 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45089
45090         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45092         struct sockaddr.sa_len.
45093         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45094
45095 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45096
45097         * build-aux/pmccabe2html: Add css and css_url parameters.
45098
45099 2008-10-12  Bruno Haible  <bruno@clisp.org>
45100
45101         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45102         calling aclx_get.
45103         Reported by Rainer Tammer <tammer@tammer.net>.
45104
45105 2008-10-12  Bruno Haible  <bruno@clisp.org>
45106
45107         Use msvcrt aware primitives for creation/termination of Win32 threads.
45108         * lib/glthread/thread.c: Include <process.h>.
45109         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45110         (wrapper_func): Update signature.
45111         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45112
45113 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45114             Bruno Haible  <bruno@clisp.org>
45115
45116         Provide a Win32 implementation of the 'cond' module.
45117         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45118         * lib/glthread/cond.c (glthread_cond_init_func,
45119         glthread_cond_wait_func, glthread_cond_timedwait_func,
45120         glthread_cond_signal_func, glthread_cond_broadcast_func,
45121         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45122         * modules/cond (Dependencies): Add gettimeofday.
45123
45124 2008-10-11  Bruno Haible  <bruno@clisp.org>
45125
45126         Make sleep work on older versions of mingw.
45127         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45128         only whether it exists.
45129         * doc/posix-functions/sleep.texi: Mention the problem with older
45130         versions of mingw.
45131
45132 2008-10-11  Bruno Haible  <bruno@clisp.org>
45133
45134         New module 'shutdown'.
45135         * modules/shutdown: New file.
45136         * lib/sys_socket.in.h (shutdown): New declaration.
45137         * lib/winsock.c (shutdown): New function.
45138         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45139         GNULIB_SHUTDOWN.
45140         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45141         * doc/posix-functions/shutdown.texi: Document the new module.
45142
45143 2008-10-11  Jim Meyering  <meyering@redhat.com>
45144
45145         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45146
45147 2008-10-11  Bruno Haible  <bruno@clisp.org>
45148
45149         New module 'fclose'.
45150         * modules/fclose: New file.
45151         * lib/stdio.in.h (fclose): New declaration.
45152         * lib/fclose.c: New file.
45153         * m4/fclose.m4: New file.
45154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45155         REPLACE_FCLOSE.
45156         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45157         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45158         REPLACE_FCLOSE.
45159         * modules/close (Depends-on): fclose.
45160         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45161
45162 2008-10-11  Bruno Haible  <bruno@clisp.org>
45163
45164         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45165         set errno and don't call _close.
45166
45167 2008-10-10  Bruno Haible  <bruno@clisp.org>
45168
45169         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45170         ACL, not afterwards. Fixes test failure on Cygwin.
45171
45172 2008-10-09  Ben Pfaff  <blp@gnu.org>
45173
45174         * build-aux/announce-gen: Fix gnulib version related part of usage
45175         message.  Die with a useful error message if no tarballs are
45176         found.
45177
45178 2008-10-10  Jim Meyering  <meyering@redhat.com>
45179
45180         bootstrap: use git's --depth=N option only if it's supported
45181         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45182         recognize the --depth option.  Reported by Pádraig Brady.
45183
45184 2008-10-09  Bruno Haible  <bruno@clisp.org>
45185
45186         New module 'ioctl'.
45187         * modules/ioctl: New file.
45188         * lib/sys_socket.in.h (ioctl): Remove declaration.
45189         * lib/winsock.c: Include <sys/ioctl.h>.
45190         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45191         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45192         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45193         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45194         * doc/posix-functions/ioctl.texi: Mention the new module.
45195
45196 2008-10-09  Bruno Haible  <bruno@clisp.org>
45197
45198         New module 'sys_ioctl'.
45199         * lib/sys_ioctl.in.h: New file.
45200         * m4/sys_ioctl_h.m4: New file.
45201         * modules/sys_ioctl: New file.
45202         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45203
45204 2008-10-09  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45207         * lib/winsock.c: Include <stdarg.h>.
45208         (rpl_ioctl): Change to second argument 'int' and then varargs.
45209
45210 2008-10-09  Bruno Haible  <bruno@clisp.org>
45211
45212         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45213         when the sys_socket module is present and the system has <winsock2.h>.
45214
45215 2008-10-09  Bruno Haible  <bruno@clisp.org>
45216
45217         * doc/posix-functions/close.texi: Mention module 'close' instead of
45218         module 'sys_socket'.
45219
45220 2008-10-09  Bruno Haible  <bruno@clisp.org>
45221
45222         * doc/glibc-headers/sys_ioctl.texi: New file.
45223         * doc/gnulib.texi: Include it.
45224
45225 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45226             Bruno Haible  <bruno@clisp.org>
45227
45228         Combine the two replacements of 'close'.
45229         * lib/sys_socket.in.h (close): Define to a reminder to include
45230         <unistd.h>.
45231         (_gl_close_fd_maybe_socket): New declaration.
45232         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45233         * lib/winsock.c (close): Remove undefinition.
45234         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45235         needed for the gnulib module 'close'.
45236         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45237         define to an error symbol or to a warning, if suitable.
45238         * lib/close.c: Include <sys/socket.h>.
45239         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45240         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45241         UNISTD_H_HAVE_WINSOCK2_H.
45242         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45244         UNISTD_H_HAVE_WINSOCK2_H.
45245         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45246         (configure.ac): Set a module indicator.
45247         (Makefile.am): Substitute GNULIB_CLOSE.
45248         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45249         * modules/poll-tests (Depends-on): Add close.
45250         * modules/select-tests (Depends-on): Likewise.
45251
45252 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45253             Bruno Haible  <bruno@clisp.org>
45254
45255         New module 'close'.
45256         * modules/close: New file.
45257         * lib/unistd.in.h (close): Move declaration out of the
45258         FCHDIR_REPLACEMENT scope.
45259         (_gl_unregister_fd): New declaration.
45260         * lib/close.c: New file.
45261         * lib/fchdir.c (rpl_close): Remove function.
45262         * m4/close.m4: New file.
45263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45264         close.
45265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45266         REPLACE_CLOSE.
45267         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45268         REPLACE_CLOSE.
45269         * modules/fchdir (Depends-on): Add close.
45270
45271 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45272             Bruno Haible  <bruno@clisp.org>
45273
45274         * lib/fcntl.in.h (open): Simplify conditionals.
45275         (_gl_register_fd): New declaration.
45276         * lib/fchdir.c (rpl_open): Remove function.
45277         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45278         also.
45279         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45281         open.
45282
45283 2008-10-09  Jim Meyering  <meyering@redhat.com>
45284
45285         GNUmakefile: use the more name-space-friendly "_version"
45286         * top/GNUmakefile (_dummy): Update.
45287         (_version): Rename from "version".
45288
45289 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45290             Bruno Haible  <bruno@clisp.org>
45291
45292         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45293         rpl_close.
45294         (_gl_register_fd): New function, extracted from rpl_open.
45295         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45296         (rpl_open, rpl_opendir): Use _gl_register_fd.
45297
45298 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45299
45300         Fix organization of 'open' replacement.
45301         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45302         (gl_FUNC_OPEN): Use it.
45303         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45304
45305 2008-10-08  Bruno Haible  <bruno@clisp.org>
45306
45307         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45308
45309 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45310
45311         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45312         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45313         listen).
45314
45315 2008-10-08  Eric Blake  <ebb9@byu.net>
45316
45317         GNUmakefile: add 'make version' target
45318         * top/GNUmakefile (_curr-ver): Split version update rules...
45319         (version): ...into a target.
45320
45321 2008-10-07  Bruno Haible  <bruno@clisp.org>
45322
45323         Use a more portable replacement expression for -0.0L.
45324         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45325         instead of -0.0L. Fix m4 quotation.
45326
45327         * tests/test-signbit.c: Include <float.h>.
45328         (minus_zero): New variable.
45329         (test_signbitl): Use minus_zero instead of -zero.
45330         * modules/signbit-tests (Depends-on): Add float.
45331
45332         * tests/test-ceill.c: Include <float.h>.
45333         (zero): Remove variable.
45334         (minus_zero): New variable.
45335         (main): Use minus_zero instead of -zero.
45336         * modules/ceill-tests (Depends-on): Add float.
45337
45338         * tests/test-floorl.c: Include <float.h>.
45339         (zero): Remove variable.
45340         (minus_zero): New variable.
45341         (main): Use minus_zero instead of -zero.
45342         * modules/floorl-tests (Depends-on): Add float.
45343
45344         * tests/test-roundl.c: Include <float.h>.
45345         (zero): Remove variable.
45346         (minus_zero): New variable.
45347         (main): Use minus_zero instead of -zero.
45348         * modules/roundl-tests (Depends-on): Add float.
45349
45350         * tests/test-truncl.c: Include <float.h>.
45351         (zero): Remove variable.
45352         (minus_zero): New variable.
45353         (main): Use minus_zero instead of -zero.
45354         * modules/truncl-tests (Depends-on): Add float.
45355
45356         * tests/test-frexpl.c (zero): Remove variable.
45357         (minus_zero): New variable.
45358         (main): Use minus_zero instead of -zero.
45359         * modules/frexpl-tests (Depends-on): Add float.
45360
45361         * tests/test-isnan.c (zerol): Remove variable.
45362         (minus_zerol): New variable.
45363         (test_long_double): Use minus_zerol instead of -zerol.
45364         * modules/isnan-tests (Depends-on): Add float.
45365
45366         * tests/test-isnanl.h (zero): Remove variable.
45367         (minus_zero): New variable.
45368         (main): Use minus_zero instead of -zero.
45369         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45370         * modules/isnanl-tests (Depends-on): Add float.
45371
45372         * tests/test-ldexpl.c (zero): Remove variable.
45373         (minus_zero): New variable.
45374         (main): Use minus_zero instead of -zero.
45375         * modules/ldexpl-tests (Depends-on): Add float.
45376
45377         * tests/test-snprintf-posix.h (zerol): Remove variable.
45378         (minus_zerol): New variable.
45379         (test_function): Use minus_zerol instead of -zerol.
45380         * modules/snprintf-posix-tests (Depends-on): Add float.
45381         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45382
45383         * tests/test-sprintf-posix.h (zerol): Remove variable.
45384         (minus_zerol): New variable.
45385         (test_function): Use minus_zerol instead of -zerol.
45386         * modules/sprintf-posix-tests (Depends-on): Add float.
45387         * modules/vsprintf-posix-tests (Depends-on): Add float.
45388
45389         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45390         (minus_zerol): New variable.
45391         (test_function): Use minus_zerol instead of -zerol.
45392         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45393
45394         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45395         (minus_zerol): New variable.
45396         (test_function): Use minus_zerol instead of -zerol.
45397         * modules/vasprintf-posix-tests (Depends-on): Add float.
45398
45399 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45400
45401         * MODULES.html.sh (Support for building documentation): Mention
45402         pmccabe2html.  Sort entries.
45403
45404         Add pmccabe2html module, from gnupdf.
45405         * build-aux/pmccabe.css: New file.
45406         * build-aux/pmccabe2html: New file.
45407         * m4/pmccabe2html.m4: New file.
45408         * modules/pmccabe2html: New file.
45409
45410 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45411
45412         flock: new module
45413         * MODULES.html.sh: Add to list of modules.
45414         * lib/flock.c: flock implementation for Windows and Unix systems
45415         which have fcntl.
45416         * doc/glibc-functions/flock.texi: Update documentation.
45417         * lib/sys_file.in.h: <sys/file.h> header file.
45418         * m4/flock.m4: M4 macros.
45419         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45420         * modules/flock: flock module.
45421         * modules/flock-tests: flock tests module.
45422         * modules/sys_file: sys/file.h module.
45423         * tests/test-flock.c: test suite for flock.
45424
45425 2008-10-06  Jim Meyering  <meyering@redhat.com>
45426
45427         bootstrap: check for LT_INIT more portably still ;-)
45428         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45429         Spotted by Bruno Haible.
45430
45431 2008-10-06  Eric Blake  <ebb9@byu.net>
45432
45433         test-signbit: avoid tripping Irix cc bug on -0.0L
45434         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45435         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45436         entire testsuite consistent and avoids an Irix 6.2 bug.
45437
45438 2008-10-05  Bruno Haible  <bruno@clisp.org>
45439             Jim Meyering  <jim@meyering.net>
45440
45441         Add an option for ignoring EPIPE during close_stdout.
45442         * lib/closeout.h: Include <stdbool.h>.
45443         (close_stdout_set_ignore_EPIPE): New declaration.
45444         * lib/closeout.c: Include <stdbool.h>.
45445         (ignore_EPIPE): New variable.
45446         (close_stdout_set_ignore_EPIPE): New function.
45447         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45448         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45449         failure.
45450         * modules/closeout (Depends-on): Add stdbool.
45451
45452 2008-10-05  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/accept: New file.
45455         * modules/bind: New file.
45456         * modules/connect: New file.
45457         * modules/getpeername: New file.
45458         * modules/getsockname: New file.
45459         * modules/getsockopt: New file.
45460         * modules/listen: New file.
45461         * modules/recv: New file.
45462         * modules/recvfrom: New file.
45463         * modules/send: New file.
45464         * modules/sendto: New file.
45465         * modules/setsockopt: New file.
45466         * modules/socket: New file.
45467         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45468         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45469         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45470         the particular module is requested. Add a link warning when the
45471         particular module is not requested.
45472         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45473         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45474         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45475         the particular module is requested.
45476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45477         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45478         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45479         * modules/sys_socket (Depends-on): Add link-warning.
45480         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45481         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45482         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45483         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45484         GL_LINK_WARNING.
45485         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45486         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45487         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45488         * doc/posix-functions/getpeername.texi: Mention the new module
45489         'getpeername'.
45490         * doc/posix-functions/getsockname.texi: Mention the new module
45491         'getsockname'.
45492         * doc/posix-functions/getsockopt.texi: Mention the new module
45493         'getsockopt'.
45494         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45495         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45496         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45497         * doc/posix-functions/send.texi: Mention the new module 'send'.
45498         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45499         * doc/posix-functions/setsockopt.texi: Mention the new module
45500         'setsockopt'.
45501         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45502         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45503         listen, connect, accept.
45504         * modules/select-tests (Depends-on): Likewise.
45505
45506 2008-10-05  Bruno Haible  <bruno@clisp.org>
45507
45508         * lib/winsock.c (strerror): Remove unused #undef.
45509         (rpl_close): Remove unused local variable.
45510
45511         * modules/sys_socket (Depends-on); Add errno.
45512
45513 2008-10-05  Bruno Haible  <bruno@clisp.org>
45514
45515         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45516         (select): Add a link warning when the 'select' module is not used.
45517         * modules/sys_select (Depends-on): Add link-warning.
45518         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45519         Suggested by Paolo Bonzini.
45520
45521 2008-10-05  Jim Meyering  <meyering@redhat.com>
45522
45523         bootstrap: check for LT_INIT more portably
45524         * build-aux/bootstrap: Avoid using grep -E, since it's not
45525         portable enough.  Suggestion from Bruno Haible.
45526
45527 2008-10-05  Bruno Haible  <bruno@clisp.org>
45528
45529         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45530         as being fixed by gnulib.
45531
45532 2008-10-05  Bruno Haible  <bruno@clisp.org>
45533
45534         * modules/select-tests: New file, mostly copied from
45535         modules/sys_select-tests.
45536         * tests/test-select.c: New file, mostly copied from
45537         tests/test-sys_select.c.
45538         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45539         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45540         (Makefile.am): Remove test_sys_select_LDADD.
45541
45542         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45543         to an undefined symbol, for an error message.
45544         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45545         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45546         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45547         winsock-select.c here.
45548         * modules/sys_select (Files): Remove lib/winsock-select.c.
45549         (Depends-on): Remove alloca.
45550         (Makefile.am): Substitute GNULIB_SELECT.
45551         * modules/select: New file.
45552         * doc/posix-functions/select.texi: Update.
45553
45554 2008-10-05  Bruno Haible  <bruno@clisp.org>
45555
45556         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45557         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45558         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45559         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45560         getdtablesize.
45561         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45562         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45563
45564 2008-10-05  Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/getdtablesize-tests: New file.
45567         * tests/test-getdtablesize.c: New file.
45568
45569         New module 'getdtablesize'.
45570         * lib/unistd.in.h (getdtablesize): New declaration.
45571         * lib/getdtablesize.c: New file.
45572         * m4/getdtablesize.m4: New file.
45573         * modules/getdtablesize: New file.
45574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45575         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45576         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45577         HAVE_GETDTABLESIZE.
45578         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45579
45580 2008-10-05  Bruno Haible  <bruno@clisp.org>
45581
45582         * modules/sched (Makefile.am): Fix typo.
45583         Reported by Simon Josefsson.
45584
45585 2008-10-05  Jim Meyering  <meyering@redhat.com>
45586
45587         bootstrap: check for LT_INIT, too
45588         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45589         are deprecated.  Suggestion from Ralf Wildenhues.
45590
45591 2008-10-05  Bruno Haible  <bruno@clisp.org>
45592
45593         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45594         overriding them by ours.
45595         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45596
45597 2008-10-05  Jim Meyering  <meyering@redhat.com>
45598
45599         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45600         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45601         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45602
45603 2008-10-04  Bruno Haible  <bruno@clisp.org>
45604
45605         * modules/dup2 (License): Change to LGPLv2+.
45606         * modules/sleep (License): Likewise.
45607         * modules/perror (License): Likewise.
45608         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45609         Blake.
45610         * modules/signal (License): Likewise.
45611         * modules/sigprocmask (License): Likewise.
45612         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45613         Meyering.
45614
45615 2008-10-04  Bruno Haible  <bruno@clisp.org>
45616
45617         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45618         Reported by Rainer Tammer <tammer@tammer.net>.
45619
45620 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45621             Bruno Haible  <bruno@clisp.org>
45622
45623         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45624         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45625         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45626
45627 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45628
45629         filevercmp: new module
45630         * lib/filevercmp.h: New function filevercmp comparing version strings.
45631         * lib/filevercmp.c: Implementation of filevercmp function.
45632         * modules/filevercmp: Module metadata.
45633         * tests/test-filevercmp.c: Unit test for new module.
45634         * modules/filevercmp-tests: Unit test metadata.
45635         * MODULES.html.sh: Add filevercmp module.
45636
45637 2008-10-03  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/c-ctype.h: Add comment.
45640         Reported by Jim Meyering.
45641
45642 2008-10-02  Bruno Haible  <bruno@clisp.org>
45643
45644         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45645
45646 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45647
45648         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45649         name of bootstrap.conf accordingly.
45650
45651 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45652
45653         * build-aux/bootstrap: Install git-merge-changelog configuration
45654         items into .gitconfig if needed.
45655
45656 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45657
45658         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45659         git repository, and initialize/update it accordingly.
45660
45661 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45662
45663         * modules/fsync-tests: New file.
45664         * tests/test-fsync.c: New file.
45665
45666         New module 'fsync'.
45667         * lib/fsync.c: New file.
45668         * m4/fsync.m4: New file.
45669         * modules/fsync: New file.
45670         * lib/unistd.in.h (fsync): New declaration.
45671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45672         GNULIB_FSYNC and HAVE_FSYNC.
45673         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45674         * MODULES.html.sh (posix_functions): Add fsync.
45675         * doc/posix-functions/fsync.texi: Mention the new module.
45676
45677 2008-10-02  Jim Meyering  <meyering@redhat.com>
45678
45679         fts.c: sync with similar code from coreutils' remove.c
45680         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45681         Guard also with "#if defined __linux__", since for now at least,
45682         this code is Linux-kernel-specific.
45683
45684 2008-10-02  Jim Meyering  <meyering@redhat.com>
45685
45686         fts: bug fixes
45687         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45688         Include <sys/vfs.h>, not <sys/statfs.h>.
45689
45690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45691         Include <sys/vfs.h>, not <sys/statfs.h>.
45692
45693 2008-10-01  Bruno Haible  <bruno@clisp.org>
45694
45695         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45697         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45698         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45699         * doc/posix-functions/posix_spawnp.texi: Likewise.
45700         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45701         whether posix_spawn actually works.
45702         * m4/pipe.m4 (gl_PIPE): Likewise.
45703         * modules/execute (Files): Add m4/posix_spawn.m4.
45704         * modules/pipe (Files): Add m4/posix_spawn.m4.
45705         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45706
45707 2008-10-01  Jim Meyering  <meyering@redhat.com>
45708
45709         remove trailing spaces
45710         * NEWS: Likewise.
45711         * lib/poll.c (poll): Likewise.
45712         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45713         * lib/winsock.c (rpl_close): Likewise.
45714         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45715         * modules/yield: Likewise.
45716         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45717         * tests/test-sys_select.c (connect_to_socket): Likewise.
45718
45719         fts.c: adjust a new interface to be more generally useful
45720         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45721         (fts_build): Adjust caller.
45722
45723 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45724
45725         * modules/cond-tests: New file.
45726         * tests/test-cond.c: New file.
45727
45728 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45729             Bruno Haible  <bruno@clisp.org>
45730
45731         * modules/cond (Dependencies): Add errno, time.
45732         * lib/glthread/cond.h: Include <time.h>.
45733         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45734         across platforms.
45735
45736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45737             Bruno Haible  <bruno@clisp.org>
45738
45739         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45740
45741 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45742             Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/tls-tests (Depends-on): Add thread, yield.
45745         (configure.ac): Remove all checks.
45746         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45747         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45748         gl_thread_self): Remove definitions. Include glthread/thread.h and
45749         glthread/yield.h instead.
45750         (test_tls): Pass an additional NULL argument to gl_thread_join.
45751
45752 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45753             Bruno Haible  <bruno@clisp.org>
45754
45755         * modules/lock-tests (Depends-on): Add thread, yield.
45756         (configure.ac): Remove all checks.
45757         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45758         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45759         gl_thread_self): Remove definitions. Include glthread/thread.h and
45760         glthread/yield.h instead.
45761         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45762         additional NULL argument to gl_thread_join.
45763
45764 2008-09-30  Bruno Haible  <bruno@clisp.org>
45765
45766         Fix the Win32 implementation of the 'thread' module.
45767         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45768         pointer type.
45769         (gl_thread_self): Invoke gl_thread_self_func.
45770         (gl_thread_self_func): New declaration.
45771         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45772         (do_init_self_key, init_self_key): New functions.
45773         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45774         Remove some fields.
45775         (running_threads, running_lock): Remove variables.
45776         (get_current_thread_handle): New function.
45777         (gl_thread_self_func, wrapper_func, glthread_create_func,
45778         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45779         simplified.
45780
45781 2008-09-30  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45784         files.
45785
45786 2008-09-30  Jim Meyering  <meyering@redhat.com>
45787
45788         fts.m4: correct the test for statfs.f_type
45789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45790         when checking for statfs.f_type.
45791
45792 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45793
45794         tests: avoid some compiler warnings
45795         * tests/test-memchr.c (main): Pass NULL indirectly.
45796         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45797
45798 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45799
45800         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45801         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45802         exactly specified dayshifts.
45803         (dayshift): New rule.
45804         (rel): Add dayshift.
45805         (relative_time_table) [tomorrow, yesterday, today, now]:
45806         Use tDAY_SHIFT in place of tDAY_UNIT.
45807         * tests/test-getdate.c: Add tests for now-disallowed countable
45808         dayshifts, e.g., "4 yesterday ago".
45809
45810 2008-09-29  Bruno Haible  <bruno@clisp.org>
45811
45812         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45813         * tests/test-posix_spawn1.in.sh: Renamed from
45814         tests/test-posix_spawn.in.sh.
45815         * tests/test-posix_spawn2.c: New file.
45816         * tests/test-posix_spawn2.in.sh: New file.
45817         * modules/posix_spawnp-tests (Files): Update.
45818         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45819
45820 2008-09-29  Bruno Haible  <bruno@clisp.org>
45821
45822         Propagate effects of putenv/setenv/unsetenv to child processes.
45823         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45824         * lib/pipe.c (create_pipe): Likewise.
45825
45826 2008-09-29  Bruno Haible  <bruno@clisp.org>
45827
45828         Enable use of shell scripts as executables in mingw.
45829         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45830         run the program as a shell script.
45831         * lib/pipe.c (create_pipe): Likewise.
45832         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45833         resulting array.
45834
45835 2008-09-29  Eric Blake  <ebb9@byu.net>
45836
45837         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45838
45839 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45840
45841         * doc/posix-functions/accept.texi: Update mingw problems.
45842         * doc/posix-functions/bind.texi: Update mingw problems.
45843         * doc/posix-functions/close.texi: Update mingw problems.
45844         * doc/posix-functions/connect.texi: Update mingw problems.
45845         * doc/posix-functions/getpeername.texi: Update mingw problems.
45846         * doc/posix-functions/getsockname.texi: Update mingw problems.
45847         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45848         * doc/posix-functions/ioctl.texi: Update mingw problems.
45849         * doc/posix-functions/listen.texi: Update mingw problems.
45850         * doc/posix-functions/recv.texi: Update mingw problems.
45851         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45852         * doc/posix-functions/select.texi: Update mingw problems.
45853         * doc/posix-functions/send.texi: Update mingw problems.
45854         * doc/posix-functions/sendto.texi: Update mingw problems.
45855         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45856         * doc/posix-functions/socket.texi: Update mingw problems.
45857
45858 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45859             Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/sys_select.in.h: Include sys/time.h.
45862         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45863         * modules/sys_select: Depend on sys_time.
45864         * tests/test-sys_select.c: Test that sys/select.h defines struct
45865         timeval fully.
45866
45867 2008-09-29  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45870         * lib/sys_select.in.h: Likewise.
45871
45872 2008-09-29  Bruno Haible  <bruno@clisp.org>
45873
45874         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45875
45876 2008-09-29  Bruno Haible  <bruno@clisp.org>
45877
45878         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45879         Set LIBSOCKET instead of augmenting LIBS.
45880         * modules/sockets (Link): New section.
45881         * modules/sockets-tests (test_sockets_LDADD): New variable.
45882         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45883         * modules/poll-tests (test_poll_LDADD): New variable.
45884         * NEWS: Document the change.
45885
45886 2008-09-29  Bruno Haible  <bruno@clisp.org>
45887
45888         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45889         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45890         ARPA_INET_H directly.
45891         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45892
45893 2008-09-28  Bruno Haible  <bruno@clisp.org>
45894
45895         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45896         from gl_HEADER_SYS_SOCKET.
45897         (gl_HEADER_SYS_SOCKET): Invoke it.
45898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45899
45900 2008-09-28  Bruno Haible  <bruno@clisp.org>
45901
45902         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45903         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45904         Needed on OSF/1 4.0.
45905
45906 2008-09-28  Bruno Haible  <bruno@clisp.org>
45907
45908         Override open more carefully.
45909         * lib/open.c (orig_open): New function.
45910         (rpl_open): Use orig_open instead of open.
45911         * lib/fcntl.in.h: Add special invocation convention.
45912         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45913         (gl_FUNC_OPEN): Invoke it.
45914
45915         Override freopen more carefully.
45916         * lib/freopen.c (orig_freopen): New function.
45917         (rpl_freopen): Use orig_freopen instead of freopen.
45918         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45919         (gl_FUNC_FREOPEN): Invoke it.
45920
45921         Override fopen more carefully.
45922         * lib/fopen.c (orig_fopen): New function.
45923         (rpl_fopen): Use orig_fopen instead of fopen.
45924         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45925         (gl_FUNC_FOPEN): Invoke it.
45926         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45927
45928 2008-09-28  Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45931         SIGPIPE.
45932
45933 2008-09-28  Bruno Haible  <bruno@clisp.org>
45934
45935         * tests/test-sigaction.c (handler, main): Disable the check whether
45936         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45937         glibc systems with LinuxThreads.
45938
45939 2008-09-28  Bruno Haible  <bruno@clisp.org>
45940
45941         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45942
45943         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45944         with AIX xlc.
45945         * lib/fcntl.in.h (open): Likewise.
45946         Reported by Rainer Tammer <tammer@tammer.net>.
45947
45948 2008-09-28  Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/posix_spawnp-tests: New file.
45951         * tests/test-posix_spawn.c: New file.
45952         * tests/test-posix_spawn.in.sh: New file.
45953
45954         New module 'posix_spawnp'.
45955         * modules/posix_spawnp: New file.
45956         * lib/spawnp.c: New file, from GNU libc with modifications.
45957         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45958
45959         New module 'posix_spawn'.
45960         * modules/posix_spawn: New file.
45961         * lib/spawn.c: New file, from GNU libc with modifications.
45962         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45963
45964         New module 'posix_spawnattr_destroy'.
45965         * modules/posix_spawnattr_destroy: New file.
45966         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45967         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45968         module.
45969
45970         New module 'posix_spawnattr_setsigmask'.
45971         * modules/posix_spawnattr_setsigmask: New file.
45972         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45973         modifications.
45974         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45975         new module.
45976
45977         New module 'posix_spawnattr_getsigmask'.
45978         * modules/posix_spawnattr_getsigmask: New file.
45979         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45980         modifications.
45981         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45982         new module.
45983
45984         New module 'posix_spawnattr_setsigdefault'.
45985         * modules/posix_spawnattr_setsigdefault: New file.
45986         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45987         modifications.
45988         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45989         new module.
45990
45991         New module 'posix_spawnattr_getsigdefault'.
45992         * modules/posix_spawnattr_getsigdefault: New file.
45993         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45994         modifications.
45995         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45996         new module.
45997
45998         New module 'posix_spawnattr_setschedpolicy'.
45999         * modules/posix_spawnattr_setschedpolicy: New file.
46000         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46001         modifications.
46002         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46003         new module.
46004
46005         New module 'posix_spawnattr_getschedpolicy'.
46006         * modules/posix_spawnattr_getschedpolicy: New file.
46007         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46008         modifications.
46009         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46010         new module.
46011
46012         New module 'posix_spawnattr_setschedparam'.
46013         * modules/posix_spawnattr_setschedparam: New file.
46014         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46015         modifications.
46016         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46017         new module.
46018
46019         New module 'posix_spawnattr_getschedparam'.
46020         * modules/posix_spawnattr_getschedparam: New file.
46021         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46022         modifications.
46023         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46024         new module.
46025
46026         New module 'posix_spawnattr_setpgroup'.
46027         * modules/posix_spawnattr_setpgroup: New file.
46028         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46029         modifications.
46030         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46031         module.
46032
46033         New module 'posix_spawnattr_getpgroup'.
46034         * modules/posix_spawnattr_getpgroup: New file.
46035         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46036         modifications.
46037         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46038         module.
46039
46040         New module 'posix_spawnattr_setflags'.
46041         * modules/posix_spawnattr_setflags: New file.
46042         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46043         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46044         module.
46045
46046         New module 'posix_spawnattr_getflags'.
46047         * modules/posix_spawnattr_getflags: New file.
46048         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46049         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46050         module.
46051
46052         New module 'posix_spawnattr_init'.
46053         * modules/posix_spawnattr_init: New file.
46054         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46055         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46056         module.
46057
46058         New module 'posix_spawn_file_actions_destroy'.
46059         * modules/posix_spawn_file_actions_destroy: New file.
46060         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46061         modifications.
46062         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46063         the new module.
46064
46065         New module 'posix_spawn_file_actions_addopen'.
46066         * modules/posix_spawn_file_actions_addopen: New file.
46067         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46068         modifications.
46069         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46070         the new module.
46071
46072         New module 'posix_spawn_file_actions_adddup2'.
46073         * modules/posix_spawn_file_actions_adddup2: New file.
46074         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46075         modifications.
46076         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46077         the new module.
46078
46079         New module 'posix_spawn_file_actions_addclose'.
46080         * modules/posix_spawn_file_actions_addclose: New file.
46081         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46082         modifications.
46083         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46084         the new module.
46085
46086         New module 'posix_spawn_file_actions_init'.
46087         * modules/posix_spawn_file_actions_init: New file.
46088         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46089         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46090         new module.
46091
46092         New module 'posix_spawn-internal'.
46093         * modules/posix_spawn-internal: New file.
46094         * lib/spawn_int.h: New file, from GNU libc with modifications.
46095         * lib/spawni.c: New file, from GNU libc with modifications.
46096         * m4/posix_spawn.m4: New file.
46097
46098         New module 'spawn'.
46099         * modules/spawn: New file.
46100         * lib/spawn.in.h: New file, from GNU libc with modifications.
46101         * m4/spawn_h.m4: New file.
46102         * doc/posix-headers/spawn.texi: Mention the new module.
46103
46104 2008-09-28  Bruno Haible  <bruno@clisp.org>
46105
46106         * modules/sched-tests: New file.
46107         * tests/test-sched.c: New file.
46108
46109         New module 'sched'.
46110         * modules/sched: New file.
46111         * lib/sched.in.h: New file.
46112         * m4/sched_h.m4: New file.
46113         * doc/posix-headers/sched.texi: Mention the new module.
46114
46115 2008-09-27  Eric Blake  <ebb9@byu.net>
46116
46117         Fix previous patch, and tweak references to $0.
46118         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46119         (func_version, func_gnulib_dir): Don't call this program
46120         gnulib-tool.
46121         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46122         with using $0 in function.
46123         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46124         (func_fatal_error): Reuse the name the user invoked us with.
46125
46126 2008-09-27  Bruno Haible  <bruno@clisp.org>
46127
46128         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46129         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46130         (gl_ICONV_H): Not here.
46131         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46132         instead of assigning ICONV_H directly.
46133
46134         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46136         WCHAR_H directly.
46137
46138 2008-09-27  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46141         * modules/arpa_inet (Depends-on): Add link-warning.
46142         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46143         * modules/unistd (Makefile.am): Likewise.
46144
46145 2008-09-26  Bruno Haible  <bruno@clisp.org>
46146
46147         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46148         variables.
46149         (func_version): Essentially copied from gnulib-tool.
46150         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46151         func_readlink): Copied from gnulib-tool.
46152
46153 2008-09-26  Bruno Haible  <bruno@clisp.org>
46154
46155         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46156         invoking git-version-gen.
46157
46158 2008-09-26  Bruno Haible  <bruno@clisp.org>
46159
46160         * posix-modules: Update to directory names changed on 2008-01-19.
46161         Remove commas in output before splitting into words. No more need to
46162         avoid 'ftruncate' since 2007-02-19.
46163
46164 2008-09-26  Bruno Haible  <bruno@clisp.org>
46165
46166         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46167
46168 2008-09-26  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46171         * modules/fwriteerror (Depends-on): Add errno.
46172
46173 2008-09-26  Bruno Haible  <bruno@clisp.org>
46174
46175         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46176         * tests/test-vc-list-files-cvs.sh: Likewise.
46177
46178 2008-09-26  Bruno Haible  <bruno@clisp.org>
46179
46180         * doc/posix-headers/sys_resource.texi: Reorder items.
46181
46182 2008-09-26  Jim Meyering  <meyering@redhat.com>
46183
46184         fts: tweak inode comparison function
46185         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46186         inode numbers, as documented.
46187
46188         fts: sort dirent entries on inode number before traversing
46189         This avoids a quadratic, seek-related performance penalty when
46190         operating on a directory containing many entries (measurable at 10k;
46191         3.5 hours at 2 million entries with a cold cache) on certain types
46192         of file systems, including ext3 and ext4, but not tmpfs.
46193         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46194         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46195         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46196         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46197         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46198         (fts_build): Set the stat.st_ino member from D_INO.
46199         If it is likely to be useful, sort dirent entries on inode number.
46200
46201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46202         and the struct statfs.f_type member.
46203         * modules/fts (Depends-on): Add d-ino.
46204
46205 2008-09-26  Bruno Haible  <bruno@clisp.org>
46206
46207         * modules/sigpipe-die (Depends-on): Add sigpipe.
46208
46209         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46210         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46211         and GNULIB_STDIO_H_SIGPIPE are set.
46212         * lib/stdio-write.c: New file.
46213         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46214         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46215         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46216         REPLACE_STDIO_WRITE_FUNCS.
46217         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46218         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46219         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46220         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46221         * modules/stdio (Files): Add lib/stdio-write.c.
46222         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46223         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46224         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46225         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46226         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46227         REPLACE_FPRINTF_POSIX.
46228         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46229         REPLACE_PRINTF_POSIX.
46230         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46231         REPLACE_VFPRINTF_POSIX.
46232         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46233         REPLACE_VPRINTF_POSIX.
46234         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46235         SIGPIPE issue.
46236         * doc/posix-functions/fputc.texi: Likewise.
46237         * doc/posix-functions/fputs.texi: Likewise.
46238         * doc/posix-functions/fwrite.texi: Likewise.
46239         * doc/posix-functions/printf.texi: Likewise.
46240         * doc/posix-functions/putc.texi: Likewise.
46241         * doc/posix-functions/putchar.texi: Likewise.
46242         * doc/posix-functions/puts.texi: Likewise.
46243         * doc/posix-functions/vfprintf.texi: Likewise.
46244         * doc/posix-functions/vprintf.texi: Likewise.
46245
46246         * modules/safe-write (Depends-on): Add write.
46247
46248         * modules/sigpipe-tests: New file.
46249         * tests/test-sigpipe.c: New file.
46250         * tests/test-sigpipe.sh: New file.
46251
46252         * modules/write: New file.
46253         * lib/unistd.in.h: Include <sys/types.h>.
46254         (write): New declaration.
46255         * lib/write.c: New file.
46256         * m4/write.m4: New file.
46257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46258         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46259         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46260         GNULIB_WRITE, REPLACE_WRITE.
46261         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46262         and the SIGPIPE issue.
46263
46264         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46265         (raise): New declaration.
46266         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46267         (ext_signal): New function.
46268         (rpl_raise): New function.
46269         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46270         GNULIB_SIGNAL_H_SIGPIPE.
46271         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46272         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46273
46274         * modules/sigpipe: New file.
46275         * m4/sigpipe.m4: New file.
46276
46277 2008-09-25  Derek Price  <derek@ximbiot.com>
46278             Bruno Haible  <bruno@clisp.org>
46279
46280         * gnulib-tool (func_import): Report all license incompatibilities, not
46281         just the first one.
46282
46283 2008-09-25  Bruno Haible  <bruno@clisp.org>
46284
46285         * gnulib-tool (func_import): When computing the edits, consider not
46286         only the Makefile.ams that exist but also those that will be generated.
46287
46288 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46289
46290         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46291         fixes gnulib-tool --test warning about duplicate dependency.
46292
46293 2008-09-25  Bruno Haible  <bruno@clisp.org>
46294
46295         * gnulib-tool: Don't ask the user to perform edits in the generated
46296         Makefile.ams.
46297         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46298         apply to the Makefile.am being generated.
46299         (func_emit_tests_Makefile_am): Execute edits that apply to the
46300         Makefile.am being generated.
46301         (func_import): Setup list of Makefile.am edits before emitting the
46302         Makefile.ams, not at the end.
46303         (func_create_testdir): Update.
46304         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46305
46306 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46307
46308         * gnulib-tool (func_import): Store the --tests-base option in the
46309         comment in gnulib-cache.m4.
46310
46311 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46312
46313         * NEWS: Document increased portability that sys_select now provides.
46314
46315         * lib/sys_select.in.h: Install select wrapper.
46316         * lib/sys_socket.in.h: Use more descriptive name when there is no
46317         select wrapper.
46318         * lib/winsock-select.c: New.
46319         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46320         Require gl_HEADER_SYS_SOCKET.
46321         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46322         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46323         * tests/test-sys_select.c: Add functional tests.
46324
46325 2008-09-24  Eric Blake  <ebb9@byu.net>
46326
46327         open, fopen: close fd leak in last patch
46328         * lib/open.c (rpl_open): Close fd before returning error.
46329         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46330         * doc/posix-functions/open.texi (open): Document that Irix also
46331         has the bug.
46332         * doc/posix-functions/fopen.texi (fopen): Likewise.
46333         Reported by Paolo Bonzini.
46334
46335 2008-09-24  Bruno Haible  <bruno@clisp.org>
46336
46337         Ensure that a filename ending in a slash cannot be used to access a
46338         non-directory.
46339         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46340         to check whether it's really a directory.
46341         * lib/fopen.c: Include fcntl.h, unistd.h.
46342         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46343         and fdopen().
46344         * modules/fopen (Depends-on): Add unistd.
46345         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46346         * tests/test-fopen.c (main): Likewise.
46347         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46348         * doc/posix-functions/fopen.texi: Likewise.
46349         Reported by Eric Blake.
46350
46351 2008-09-23  Eric Blake  <ebb9@byu.net>
46352
46353         c-stack: avoid compiler optimizations when provoking overflow
46354         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46355         recursion harder to optimize, to ensure a stack overflow occurs.
46356         * tests/test-c-stack.c (recurse): Likewise.
46357         Borrowed from libsigsegv.
46358
46359         c-stack: work around Irix sigaltstack bug
46360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46361         whether sigaltstack uses wrong end of stack_t (copied in part from
46362         libsigsegv).
46363         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46364         Irix bug, without requiring an over-allocation.
46365         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46366         bug.
46367
46368         fopen: document mingw bug on directories
46369         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46370         not allowing a stream visiting a directory, even though reading
46371         from such a stream is not portable.
46372
46373 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46374
46375         * lib/poll.c: Rewrite.
46376         * modules/poll: Depend on alloca.
46377
46378 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46379
46380         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46381         instead define prototypes for a full set of wrappers.  Ensure
46382         that Cygwin does not use the compatibility code, which is only
46383         for MinGW.
46384         * lib/winsock.c: New.
46385         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46386         * modules/sys_socket: Add lib/winsock.c.
46387
46388         * modules/poll-tests: Add errno and perror.
46389         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46390
46391 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46392
46393         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46394
46395 2008-09-23  Bruno Haible  <bruno@clisp.org>
46396
46397         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46398         * doc/glibc-functions/*: Likewise.
46399
46400 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46401
46402         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46403         success.
46404
46405 2008-09-22  Eric Blake  <ebb9@byu.net>
46406             Bruno Haible  <bruno@clisp.org>
46407
46408         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46409         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46410         supply %A but mishandle pseudo-NaN.
46411         Reported by Simon Josefsson.
46412
46413 2008-09-21  Bruno Haible  <bruno@clisp.org>
46414
46415         * tests/test-lock.c (main): Tweak skip message.
46416         * tests/test-tls.c (main): Likewise.
46417
46418 2008-09-21  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46421         whether 'struct sigaction' has sa_sigaction here...
46422         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46423         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46424
46425 2008-09-21  Bruno Haible  <bruno@clisp.org>
46426
46427         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46428         section.
46429         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46430         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46431         the new section.
46432         (Support for obsolete systems lacking POSIX:2001): New section.
46433         (String handling <string.h>): Move strdup to the new section.
46434         Suggested by Simon Josefsson and Paolo Bonzini.
46435
46436 2008-09-21  Bruno Haible  <bruno@clisp.org>
46437
46438         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46439         exponents in %e and %g results on 'long double'. Needed for mingw's
46440         improved *printf functions.
46441         * tests/test-vasprintf-posix.c (test_function): Likewise.
46442         * tests/test-snprintf-posix.h (test_function): Likewise.
46443         * tests/test-sprintf-posix.h (test_function): Likewise.
46444         Reported by Eric Blake.
46445
46446 2008-09-21  Bruno Haible  <bruno@clisp.org>
46447
46448         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46449         * tests/test-sprintf-posix.h (test_function): Likewise.
46450
46451 2008-09-21  Bruno Haible  <bruno@clisp.org>
46452
46453         * modules/getpass (Depends-on): Add strdup-posix.
46454
46455         New module 'strdup-posix'.
46456         * modules/strdup-posix: New file.
46457         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46458         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46460         REPLACE_STRDUP.
46461         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46462         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46464         strdup-posix.
46465
46466         * modules/strdup (Depends-on): Remove malloc-posix.
46467
46468 2008-09-20  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46471         Wildenhues.
46472
46473 2008-09-20  Bruno Haible  <bruno@clisp.org>
46474
46475         Ensure that wint_t gets defined on IRIX 5.3.
46476         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46477         * lib/wctype.in.h (wint_t): Likewise.
46478         (__wctype_wint_t): Remove type.
46479         (isw*): Use wint_t instead of __wctype_wint_t.
46480         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46481         * modules/wchar (Files): Add m4/wint_t.m4.
46482         (Makefile.am): Substitute HAVE_WINT_T.
46483         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46484         * tests/test-wctype.c: Check that wint_t is defined.
46485         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46486         * doc/posix-headers/wctype.texi: Likewise.
46487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46488
46489 2008-09-18  Bruno Haible  <bruno@clisp.org>
46490
46491         * gnulib-tool (func_exit): Update comment.
46492
46493 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46494
46495         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46496         assumes strdup exists and does not depend on strdup to return
46497         ENOMEM on out of memory conditions.
46498
46499 2008-09-18  Bruno Haible  <bruno@clisp.org>
46500
46501         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46502         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46503         digits for the exponent.
46504
46505 2008-09-18  Jim Meyering  <meyering@redhat.com>
46506             Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/vasnprintf.c (decimal_point_char): Define also if
46509         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46510
46511 2008-09-16  Bruno Haible  <bruno@clisp.org>
46512         and Eric Blake  <ebb9@byu.net>
46513
46514         vasnprintf: support Irix 5.3
46515         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46516         that mishandle long double infinity.
46517         Reported by Tom G. Christensen.
46518
46519 2008-09-16  Bruno Haible  <bruno@clisp.org>
46520
46521         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46522         Solaris 9.
46523         * doc/glibc-functions/alphasort.texi: Likewise.
46524         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46525
46526 2008-09-16  Jim Meyering  <meyering@redhat.com>
46527
46528         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46529         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46530         a umask modification leak out of a subshell.  Otherwise, the
46531         opensolaris /bin/sh would be accepted and thus cause unwarranted
46532         failures in the coreutils test suite.
46533
46534 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46535
46536         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46537         to succeed.
46538
46539 2008-09-16  Jim Meyering  <meyering@redhat.com>
46540
46541         avoid spurious test failure when library is built without ACL support
46542         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46543         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46544         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46545         * tests/test-copy-acl.sh: Likewise.
46546
46547 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46548
46549         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46550         based on character occurrence counts.
46551
46552 2008-09-15  Eric Blake  <ebb9@byu.net>
46553
46554         tests: avoid some compiler warnings
46555         * tests/test-memchr.c (main): Pass NULL indirectly.
46556         * tests/test-closein.c (main): Avoid unused variable.
46557
46558 2008-09-15  Bruno Haible  <bruno@clisp.org>
46559
46560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46561         are missing on OpenBSD 4.0 individually.
46562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46563
46564 2008-09-15  Bruno Haible  <bruno@clisp.org>
46565
46566         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46567         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46568         * doc/posix-functions/perror.texi: Likewise.
46569         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46570         is missing.
46571         Reported by Eric Blake.
46572
46573         * lib/errno.in.h: Use replacement values >= 2000.
46574         Reported by Eric Blake.
46575
46576 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46577
46578         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46579         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46580         limit.
46581         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46582         compareseq was aborted.
46583
46584 2008-09-14  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46587         yvec_edit_count.
46588         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46589         (fstrcmp_bounded): Simplify result computation accordingly.
46590
46591 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46592
46593         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46594         (fstrcmp): Define in terms of fstrcmp_bounded.
46595         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46596         lower_bound argument.
46597         Return quickly if the result is certainly < lower_bound.
46598         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46599
46600 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46601
46602         * lib/diffseq.h (EARLY_ABORT): New macro.
46603         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46604         evaluates to true.
46605
46606 2008-09-14  Bruno Haible  <bruno@clisp.org>
46607
46608         * modules/perror-tests: New file.
46609         * tests/test-perror.sh: New file.
46610         * tests/test-perror.c: New file.
46611
46612         New module 'perror'.
46613         * lib/stdio.in.h (perror): New declaration.
46614         * lib/perror.c: New file.
46615         * m4/perror.m4: New file.
46616         * modules/perror: New file.
46617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46618         * doc/posix-functions/perror.texi: Mention the perror module.
46619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46620         REPLACE_PERROR.
46621         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46622         REPLACE_PERROR.
46623
46624 2008-09-14  Bruno Haible  <bruno@clisp.org>
46625
46626         * modules/stdio (Makefile.am): Reorder to match the order in
46627         lib/stdio.in.h.
46628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46629
46630 2008-09-13  Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46633
46634 2008-09-13  Bruno Haible  <bruno@clisp.org>
46635
46636         Extend strerror to cover the added errno values.
46637         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46638         (rpl_strerror): Provide error messages for the added errno values and
46639         for the WSA* values.
46640         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46641         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46642         strerror.
46643         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46644         * modules/strerror (Depends-on): Add errno.
46645         * doc/posix-functions/strerror.texi: Document the change.
46646         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46647         and EOVERFLOW.
46648
46649 2008-09-13  Bruno Haible  <bruno@clisp.org>
46650
46651         * modules/EOVERFLOW: Remove file.
46652         * m4/eoverflow.m4: Remove file.
46653         * modules/EOVERFLOW-tests: Remove file.
46654         * tests/test-EOVERFLOW.c: Remove file.
46655         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46656         * modules/ftell (Depends-on): Likewise.
46657         * modules/getdelim (Depends-on): Likewise.
46658         * modules/getugroups (Depends-on): Likewise.
46659         * modules/poll (Depends-on): Likewise.
46660         * modules/snprintf (Depends-on): Likewise.
46661         * modules/sprintf-posix (Depends-on): Likewise.
46662         * modules/vasnprintf (Depends-on): Likewise.
46663         * modules/vasprintf (Depends-on): Likewise.
46664         * modules/vfprintf-posix (Depends-on): Likewise.
46665         * modules/vsnprintf (Depends-on): Likewise.
46666         * modules/vsprintf-posix (Depends-on): Likewise.
46667         * modules/xvasprintf (Depends-on): Likewise.
46668         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46669         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46670         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46671         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46672         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46673         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46674         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46675         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46676         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46677         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46678         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46679         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46680         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46681         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46682         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46683         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46684         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46685         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46686         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46687         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46688         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46689         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46690         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46691         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46692         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46694         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46695         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46696         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46697         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46698         * MODULES.html.sh: Remove EOVERFLOW.
46699         * NEWS: Mention the change.
46700
46701 2008-09-13  Bruno Haible  <bruno@clisp.org>
46702
46703         * modules/errno-tests: New file.
46704         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46705
46706         * lib/errno.in.h: New file.
46707         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46708         * modules/errno: New file.
46709         * doc/posix-headers/errno.texi: Update documentation.
46710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46711
46712 2008-09-13  Bruno Haible  <bruno@clisp.org>
46713
46714         * tests/test-poll.c: Use #if for native Windows, rather than testing
46715         __MSVCRT__.
46716
46717 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46718             Bruno Haible  <bruno@clisp.org>
46719
46720         * lib/glob.c: Don't include <pwd.h> on native Windows.
46721         (WINDOWS32): New macro.
46722         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46723
46724 2008-09-13  Bruno Haible  <bruno@clisp.org>
46725
46726         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46727         (ETIMEDOUT): Remove macro.
46728         (glthread_cond_timedwait_multithreaded): New declaration.
46729         (glthread_cond_timedwait): Use it.
46730         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46731         (glthread_cond_timedwait_multithreaded): New function.
46732
46733 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46734
46735         * modules/poll-tests: Do not check for io.h.
46736         * tests/test-poll.c: Check for __MSVCRT__ instead.
46737
46738 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46739
46740         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46741         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46742         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46743
46744 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46745
46746         * modules/poll-tests: New.
46747         * tests/test-poll.c: New.
46748
46749 2008-09-12  Eric Blake  <ebb9@byu.net>
46750
46751         frexp: test for NetBSD failure on -0.0
46752         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46753         not all, bugs from NetBSD 3.0 have been fixed.
46754         * doc/posix-functions/frexp.texi (frexp): Document bug.
46755         Reported by Thomas Klausner.
46756
46757         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46758         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46759         literal -0.0.
46760         Reported by Jonathan C. Patschke <jp@centtech.com>.
46761
46762 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46763
46764         * lib/glthread/cond.h: Use dummy implementation also if
46765         USE_WIN32_THREADS.
46766
46767 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46768
46769         * modules/fnmatch-posix (License): Change to LGPLv2+.
46770         * modules/fnmatch-gnu (License): Likewise.
46771
46772 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46773
46774         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46775
46776 2008-09-11  Jim Meyering  <meyering@redhat.com>
46777
46778         * users.txt: Add gtk-vnc.
46779
46780 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46781
46782         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46783         rotate amounts.
46784
46785         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46786         required for 16-bit and 8-bit rotates.
46787         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46788         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46789         UINT8_MAX instead of hard-coded constants.
46790         Suggested by Paul Eggert.
46791
46792 2008-09-07  Bruno Haible  <bruno@clisp.org>
46793
46794         * tests/test-striconveh.c (main): Check behaviour when converting from
46795         UTF-7.
46796
46797         Make striconveh work better with stateful encodings.
46798         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46799         that iconv does not increment the inptr when returning -1/EINVAL.
46800
46801 2008-09-07  Bruno Haible  <bruno@clisp.org>
46802
46803         * build-aux/config.rpath: Update according to libtool-2.2.6.
46804         * build-aux/config.libpath: Likewise.
46805
46806 2008-09-06  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46809         * lib/freadptr.c (freadptr): Likewise.
46810         * lib/freadseek.c (freadptrinc): Likewise.
46811         Reported by Simon Josefsson.
46812
46813 2008-09-06  Bruno Haible  <bruno@clisp.org>
46814
46815         * modules/freadptr (License): Change to LGPLv2+.
46816         * modules/freadseek (License): Likewise.
46817         Suggested by Eric Blake.
46818
46819         * modules/memchr2 (License): Change to LGPLv2+.
46820         Approved by Eric Blake.
46821
46822 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46823             Bruno Haible  <bruno@clisp.org>
46824
46825         Make gnulib-tool work with native 'sed' on AIX.
46826         * gnulib-tool (sed_noop): New variable.
46827         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46828         func_add_or_update, func_create_testdir): Use it to initialize sed
46829         script variables.
46830         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46831
46832 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46833             Bruno Haible  <bruno@clisp.org>
46834
46835         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46836         also works after #include directives.
46837
46838 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46839
46840         getdate.y: reject an out-of-range timezone value
46841         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46842         the range [-24...+24].  When specified with only one or two digits,
46843         * tests/test-getdate.c: Tests for the fix.
46844         * doc/getdate.texi: Document this change.
46845
46846 2008-09-03  Bruno Haible  <bruno@clisp.org>
46847
46848         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46849
46850 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46851
46852         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46853         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46854         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46855         Blake <ebb9@byu.net>.
46856
46857         * tests/test-bitrotate.c: Add more test vectors.
46858
46859 2008-09-02  Eric Blake  <ebb9@byu.net>
46860
46861         vasnprintf-posix: handle large precision via %.*d
46862         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46863         when handling it ourselves.
46864         * tests/test-vasnprintf-posix.c (test_function): Add test.
46865         * tests/test-snprintf-posix.h (test_function): Likewise.
46866         * tests/test-sprintf-posix.h (test_function): Likewise.
46867         * tests/test-vasprintf-posix.c (test_function): Likewise.
46868         Reported by Alain Guibert.
46869
46870 2008-09-01  Eric Blake  <ebb9@byu.net>
46871
46872         c-stack: make configure-time check more robust
46873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46874         successful sigaction call.
46875         Reported by Tom G. Christensen.
46876
46877 2008-09-01  Bruno Haible  <bruno@clisp.org>
46878
46879         New module 'findprog-lgpl'.
46880         * modules/findprog-lgpl: New file.
46881         * lib/findprog-lgpl.c: New file.
46882         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46883         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46884         to decide whether to use strdup or xstrdup, concatenated_filename or
46885         xconcatenated_filename.
46886
46887 2008-09-01  Bruno Haible  <bruno@clisp.org>
46888
46889         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46890         'xconcat-filename' (GPL).
46891         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46892         (License): Change to LGPLv2+.
46893         * modules/xconcat-filename: New file.
46894         * lib/concat-filename.h (concatenated_filename): Change specification.
46895         (xconcatenated_filename): New declaration.
46896         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46897         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46898         memory situations.
46899         * lib/xconcat-filename.c: New file.
46900         * NEWS: Mention the change.
46901         * lib/findprog.c: Include concat-filename.h, not filename.h.
46902         (find_in_path): Use xconcatenated_filename instead of
46903         concatenated_filename.
46904         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46905         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46906         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46907         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46908         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46909         instead of concatenated_filename.
46910         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46911         (execute_java_class): Use xconcatenated_filename instead of
46912         concatenated_filename.
46913         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46914         * modules/javacomp (Depends-on): Likewise.
46915         * modules/javaexec (Depends-on): Likewise.
46916
46917 2008-09-01  Bruno Haible  <bruno@clisp.org>
46918
46919         Split module 'filename' into 'filename' and 'concat-filename'.
46920         * modules/filename: Keep only lib/filename.h.
46921         (License): Change to LGPLv2+.
46922         * modules/concat-filename: New file, extracted from modules/filename.
46923         * lib/filename.h (concatenated_filename): Remove declaration.
46924         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46925         * lib/concat-filename.c: Include concat-filename.h.
46926         * NEWS: Mention the change.
46927
46928 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46929
46930         * lib/bitrotate.h (rotl8, rotr8): Add.
46931
46932         * modules/bitrotate (configure.ac): Need
46933         AC_REQUIRE([AC_C_INLINE]).
46934         (Description): Mention stdint.h.  Reported by Bruno Haible
46935         <bruno@clisp.org>.
46936
46937         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46938         Paolo Bonzini <bonzini@gnu.org>.
46939
46940 2008-08-31  Bruno Haible  <bruno@clisp.org>
46941
46942         Assume Solaris specific bi-arch conventions on Solaris systems.
46943         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46944         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46946         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46947         like acl_libdirstem.
46948         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46949         acl_libdirstem.
46950         * NEWS: Mention the change.
46951         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46952
46953 2008-08-31  Jim Meyering  <meyering@redhat.com>
46954
46955         * lib/strftime.h: Add comments describing the two added arguments.
46956
46957         remove duplicate #include directives
46958         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46959         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46960
46961 2008-08-31  Bruno Haible  <bruno@clisp.org>
46962
46963         New module 'sigpipe-die'.
46964         * modules/sigpipe-die: New file.
46965         * lib/sigpipe-die.h: New file.
46966         * lib/sigpipe-die.c: New file.
46967         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46968
46969 2008-08-31  Bruno Haible  <bruno@clisp.org>
46970
46971         Don't override previously installed signal handlers.
46972         * lib/fatal-signal.c (saved_sigactions): New variable.
46973         (uninstall_handlers): Reset the signal to the saved handler, not
46974         to SIG_DFL (except when ignored).
46975         (install_handlers): Save the previous handlers.
46976
46977 2008-08-30  Bruno Haible  <bruno@clisp.org>
46978
46979         * gnulib-tool (func_reset_sigpipe): New function.
46980         (func_get_automake_snippet, func_modules_transitive_closure,
46981         func_import): Invoke it before a join command that reads from stdin,
46982         to avoid "echo: write error: Broken pipe" error messages on stderr.
46983         Reported by Sam Steingold <sds@gnu.org>.
46984
46985 2008-08-30  Bruno Haible  <bruno@clisp.org>
46986
46987         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46988         Code copied from m4/open.m4.
46989         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46990         access and the filename ends in a slash. Code copied from lib/open.c.
46991         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46992         * tests/test-fopen.c (main): Check against bug with trailing slash.
46993
46994 2008-08-29  Bruno Haible  <bruno@clisp.org>
46995
46996         Avoid some "gcc -pedantic" warnings.
46997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46998         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46999         * lib/dirent.in.h: Likewise.
47000         * lib/fcntl.in.h: Likewise.
47001         * lib/float.in.h: Likewise.
47002         * lib/iconv.in.h: Likewise.
47003         * lib/inttypes.in.h: Likewise.
47004         * lib/locale.in.h: Likewise.
47005         * lib/math.in.h: Likewise.
47006         * lib/netinet_in.in.h: Likewise.
47007         * lib/search.in.h: Likewise.
47008         * lib/signal.in.h: Likewise.
47009         * lib/stdarg.in.h: Likewise.
47010         * lib/stdint.in.h: Likewise.
47011         * lib/stdio.in.h: Likewise.
47012         * lib/stdlib.in.h: Likewise.
47013         * lib/string.in.h: Likewise.
47014         * lib/strings.in.h: Likewise.
47015         * lib/sys_select.in.h: Likewise.
47016         * lib/sys_socket.in.h: Likewise.
47017         * lib/sys_stat.in.h: Likewise.
47018         * lib/sys_time.in.h: Likewise.
47019         * lib/sysexits.in.h: Likewise.
47020         * lib/time.in.h: Likewise.
47021         * lib/unistd.in.h: Likewise.
47022         * lib/wchar.in.h: Likewise.
47023         * lib/wctype.in.h: Likewise.
47024         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47025         * modules/fchdir (Makefile.am): Likewise.
47026         * modules/fcntl (Makefile.am): Likewise.
47027         * modules/float (Makefile.am): Likewise.
47028         * modules/iconv_open (Makefile.am): Likewise.
47029         * modules/inttypes (Makefile.am): Likewise.
47030         * modules/locale (Makefile.am): Likewise.
47031         * modules/math (Makefile.am): Likewise.
47032         * modules/netinet_in (Makefile.am): Likewise.
47033         * modules/search (Makefile.am): Likewise.
47034         * modules/signal (Makefile.am): Likewise.
47035         * modules/stdarg (Makefile.am): Likewise.
47036         * modules/stdint (Makefile.am): Likewise.
47037         * modules/stdio (Makefile.am): Likewise.
47038         * modules/stdlib (Makefile.am): Likewise.
47039         * modules/string (Makefile.am): Likewise.
47040         * modules/strings (Makefile.am): Likewise.
47041         * modules/sys_select (Makefile.am): Likewise.
47042         * modules/sys_socket (Makefile.am): Likewise.
47043         * modules/sys_stat (Makefile.am): Likewise.
47044         * modules/sys_time (Makefile.am): Likewise.
47045         * modules/sysexits (Makefile.am): Likewise.
47046         * modules/time (Makefile.am): Likewise.
47047         * modules/unistd (Makefile.am): Likewise.
47048         * modules/wchar (Makefile.am): Likewise.
47049         * modules/wctype (Makefile.am): Likewise.
47050         Reported by Reuben Thomas <rrt@sc3d.org>.
47051
47052 2008-08-29  Bruno Haible  <bruno@clisp.org>
47053
47054         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47055         any more.
47056
47057 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47058
47059         * MODULES.html.sh (Misc): Add bitrotate.
47060
47061         * modules/bitrotate: New file.
47062
47063         * lib/bitrotate.h: New file.
47064
47065         * modules/bitrotate-tests: New file.
47066
47067         * tests/test-bitrotate.c: New file.
47068
47069         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47070         on the bitrotate module.
47071
47072         * lib/arctwo.c: Use new bitrotate module.
47073
47074 2008-08-29  Jim Meyering  <meyering@redhat.com>
47075
47076         bootstrap: merge changes from coreutils
47077         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47078         of copied files.  Remove a kludge, now that this is fixed.
47079         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47080         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47081         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47082
47083 2008-08-29  Bruno Haible  <bruno@clisp.org>
47084
47085         * MODULES.html.sh: Remove --cvs-urls option.
47086
47087 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47088
47089         maint.mk: adjust to file name change
47090         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47091
47092 2008-08-28  Jim Meyering  <meyering@redhat.com>
47093
47094         * modules/getndelim2 (License): Relicense to LGPLv2+.
47095         Approved by Richard Stallman for the version of 1995, and by
47096         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47097
47098 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47099
47100         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47101         dummy if one is not available.  Do not touch them if
47102         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47103         (getc_maybe_unlocked): New.
47104         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47105
47106 2008-08-26  Eric Blake  <ebb9@byu.net>
47107
47108         doc/INSTALL: resync from autoconf
47109         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47110         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47111         moving...
47112         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47113         * INSTALL: Regenerate.
47114         * INSTALL.ISO: New file.
47115         * INSTALL.UTF-8: Likewise.
47116
47117 2008-08-26  Jim Meyering  <meyering@redhat.com>
47118
47119         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47120         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47121         these definitions conditional, so that they may be overridden, too.
47122
47123 2008-08-26  Bruno Haible  <bruno@clisp.org>
47124
47125         Generate INSTALL file variants with prettier quotes.
47126         * doc/Makefile (INSTALL_PRELUDE): New macro.
47127         (INSTALL): Use it.
47128         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47129
47130 2008-08-26  Bruno Haible  <bruno@clisp.org>
47131
47132         Run makeinfo in an English locale.
47133         * doc/Makefile (MAKEINFO): New variable.
47134
47135 2008-08-26  Bruno Haible  <bruno@clisp.org>
47136
47137         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47138         Suggested by Eric Blake.
47139
47140 2008-08-25  Bruno Haible  <bruno@clisp.org>
47141
47142         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47143
47144 2008-08-25  Eric Blake  <ebb9@byu.net>
47145
47146         c-stack: test that stack overflow can be caught
47147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47148         that platform allows handling stack overflow; at least OS/2 EMX
47149         has sigaltstack, but crashes before transferring control to
47150         handler on stack overflow.
47151         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47152         check for HAVE_STACK_OVERFLOW_HANDLING.
47153         Reported by Elbert Pol.
47154
47155 2008-08-25  Bruno Haible  <bruno@clisp.org>
47156
47157         * doc/posix-functions/strftime.texi: Fix description of strftime
47158         module.
47159
47160 2008-08-24  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/uniwidth/test-uc_width2.c: New file.
47163         * tests/uniwidth/test-uc_width2.sh: New file.
47164         * modules/uniwidth/width-tests (Files): Add the new files.
47165         (TESTS): Add uniwidth/test-uc_width2.sh.
47166         (TESTS_ENVIRONMENT): New variable.
47167         (check_PROGRAMS): Add test-uc_width2.
47168         (test_uc_width2_SOURCES): New variable.
47169
47170         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47171         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47172         not 0x00AB.
47173         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47174
47175 2008-08-22  Eric Blake  <ebb9@byu.net>
47176
47177         test-lock, test-tls: mention why a test is skipped
47178         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47179         skipped.
47180         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47181
47182         count-one-bits: relax license
47183         * modules/count-one-bits (License): Relicense to LGPLv2+.
47184         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47185
47186 2008-08-22  Andreas Schwab  <schwab@suse.de>
47187
47188         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47189         Remove spurious space in assignment.
47190
47191 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47192
47193         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47194         Paul Eggert <eggert@CS.UCLA.EDU>.
47195
47196 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47197
47198         * modules/gettext: Add m4/threadlib.m4.
47199
47200 2008-08-19  Eric Blake  <ebb9@byu.net>
47201
47202         test-c-stack: fix compilation failure on FreeBSD 5.0
47203         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47204         headers before <sys/resource.h>.
47205         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47206         the bug.
47207         Reported by Nelson H. F. Beebe.
47208
47209         strverscmp: migrate from "strverscmp.h" to <string.h>
47210         * modules/string (Makefile.am): Add new hooks.
47211         * modules/strverscmp (Files): Remove strverscmp.h.
47212         (Depends-on): Add string.
47213         (configure.ac): Add indicator.
47214         (Include): Mention new header.
47215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47216         defaults.
47217         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47218         results.
47219         * lib/strverscmp.h: Delete.
47220         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47221         * tests/test-strverscmp.c (includes): Adjust client.
47222         * lib/check-version.c (includes): Likewise.
47223         * NEWS: Document the change.
47224
47225         strverscmp: add unit test
47226         * modules/strverscmp-tests: New file.
47227         * tests/test-strverscmp.c: Likewise.
47228
47229 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47230
47231         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47232         regarding Windows crypto stuff, from Mono.
47233
47234 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47235
47236         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47237         if present, for intel RND.  Return error on failures.
47238
47239 2008-08-18  Ben Pfaff  <blp@gnu.org>
47240
47241         gitlog-to-changelog: give better diagnostic for failed pipe-open
47242         * build-aux/gitlog-to-changelog: Improve error message: suggest
47243         that the version of Git may be too old.
47244
47245 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47246
47247         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47248         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47249
47250 2008-08-18  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47253         pthread_in_use().
47254
47255 2008-08-18  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/glthread/threadlib.c: Include <pthread.h>.
47258
47259 2008-08-18  Bruno Haible  <bruno@clisp.org>
47260
47261         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47262         glthread_recursive_lock_* macros.
47263         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47264         Fix syntax error.
47265
47266 2008-08-18  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/glthread/thread.c: Avoid forcing a context switch right after
47269         thread creation.
47270
47271 2008-08-17  Bruno Haible  <bruno@clisp.org>
47272
47273         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47274         * lib/glthread/thread.h: Provide Win32 specific implementation.
47275         * modules/thread (Files): Add lib/glthread/thread.c.
47276         (Depends-on): Add lock.
47277         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47278
47279 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47280
47281         New module 'yield'.
47282         * modules/yield: New file.
47283         * lib/glthread/yield.h: New file.
47284         * m4/yield.m4: New file.
47285         * MODULES.html.sh (Multithreading): Add yield.
47286
47287 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47288
47289         New module 'thread'.
47290         * modules/thread: New file.
47291         * lib/glthread/thread.h: New file.
47292         * m4/thread.m4: New file.
47293         * MODULES.html.sh (Multithreading): Add thread.
47294
47295 2008-08-17  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/glthread/lock.h: Include <stdlib.h> always.
47298         * lib/glthread/tls.h: Likewise.
47299         * lib/glthread/cond.h: Likewise.
47300
47301 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47302
47303         New module 'cond'.
47304         * modules/cond: New file.
47305         * lib/glthread/cond.h: New file.
47306         * lib/glthread/cond.c: New file.
47307         * m4/cond.m4: New file.
47308         * MODULES.html.sh (Multithreading): Add cond.
47309
47310 2008-08-16  Eric Blake  <ebb9@byu.net>
47311
47312         c-stack: fix regression on Irix 5.3 from 2008-06-21
47313         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47314         sa_sigaction...
47315         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47316         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47317         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47318         * modules/signal (Makefile.am): Use the value.
47319         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47320         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47321         * doc/posix-headers/signal.texi (signal.h): Document this
47322         portability issue.
47323         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47324         Reported by Tom G. Christensen.
47325
47326 2008-08-17  Bruno Haible  <bruno@clisp.org>
47327
47328         New module 'threadlib'.
47329         * modules/threadlib: New file.
47330         * lib/glthread/threadlib.c: New file, extracted from
47331         lib/glthread/lock.c.
47332         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47333         functions.
47334         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47335         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47336         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47337         macros.
47338         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47339         (gl_DISABLE_THREADS): Remove macro.
47340         * modules/lock (Files): Remove build-aux/config.rpath.
47341         (Depends-on): Remove havelib. Add threadlib.
47342         (configure.ac-early): Remove section.
47343         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47344         * modules/tls (Depends-on): Remove lock. Add threadlib.
47345         (Link): New section, copied from threadlib.
47346         * MODULES.html.sh (Multithreading): Add threadlib.
47347
47348 2008-08-14  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47351         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47352         glthread_rwlock_unlock, glthread_rwlock_destroy,
47353         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47354         glthread_recursive_lock_destroy): Define as macros always.
47355         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47356         glthread_lock_lock.
47357         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47358         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47359         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47360         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47361         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47362         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47363         (glthread_recursive_lock_lock_func): Renamed from
47364         glthread_recursive_lock_lock.
47365         (glthread_recursive_lock_unlock_func): Renamed from
47366         glthread_recursive_lock_unlock.
47367         (glthread_recursive_lock_destroy_func): Renamed from
47368         glthread_recursive_lock_destroy.
47369
47370 2008-08-14  Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/glthread/lock.h: Renamed from lib/lock.h.
47373         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47374         * lib/glthread/tls.h: Renamed from lib/tls.h.
47375         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47376         * lib/fstrcmp.c: Update includes.
47377         * lib/strsignal.c: Update includes.
47378         * modules/lock (Files, Makefile.am): Update.
47379         (Include): Change to "glthread/lock.h".
47380         * modules/tls (Files, Makefile.am): Update.
47381         (Include): Change to "glthread/tls.h".
47382         * tests/test-lock.c: Update includes.
47383         * tests/test-tls.c: Update includes.
47384         * NEWS: Mention the renamed header files.
47385
47386 2008-08-11  Jim Meyering  <meyering@redhat.com>
47387
47388         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47389
47390 2008-08-11  Eric Blake  <ebb9@byu.net>
47391
47392         test-c-stack: avoid C99-ism
47393         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47394         before statement.
47395         Reported by Alain Guibert.
47396
47397 2008-08-10  Jim Meyering  <meyering@redhat.com>
47398
47399         ensure that return value of uinttostr et al are not ignored
47400         * lib/inttostr.h (__GNUC_PREREQ): Define.
47401         (__attribute_warn_unused_result__): Define.
47402         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47403
47404 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47405
47406         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47407         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47408
47409 2008-08-07  Jim Meyering  <meyering@redhat.com>
47410
47411         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47412
47413         * modules/mkstemp (License): Relicense under LGPLv2+.
47414         * modules/tempname (License): Likewise.
47415
47416 2008-08-06  Bruno Haible  <bruno@clisp.org>
47417
47418         * lib/poll.c (poll): Further micro-optimization.
47419
47420 2008-08-06  Jim Meyering  <meyering@redhat.com>
47421
47422         inet_pton.c: use locale-independent tolower
47423         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47424         (inet_pton6): Use c_tolower rather than tolower.
47425         * modules/inet_pton (Depends-on): Add c-ctype.
47426
47427 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47428
47429         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47430         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47431
47432 2008-08-06  Jim Meyering  <meyering@redhat.com>
47433
47434         * modules/inet_pton (License): Relicense under LGPLv2+.
47435
47436 2008-08-03  Bruno Haible  <bruno@clisp.org>
47437
47438         Additional non-aborting API for lock and tls.
47439         * lib/lock.h: Include <errno.h>.
47440         (glthread_lock_init): New macro/function.
47441         (gl_lock_init): Define as wrapper around glthread_lock_init.
47442         (glthread_lock_lock): New macro/function.
47443         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47444         (glthread_lock_unlock): New macro/function.
47445         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47446         (glthread_lock_destroy): New macro/function.
47447         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47448         (glthread_rwlock_init): New macro/function.
47449         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47450         (glthread_rwlock_rdlock): New macro/function.
47451         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47452         (glthread_rwlock_wrlock): New macro/function.
47453         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47454         (glthread_rwlock_unlock): New macro/function.
47455         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47456         (glthread_rwlock_destroy): New macro/function.
47457         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47458         (glthread_recursive_lock_init): New macro/function.
47459         (gl_recursive_lock_init): Define as wrapper around
47460         glthread_recursive_lock_init.
47461         (glthread_recursive_lock_lock): New macro/function.
47462         (gl_recursive_lock_lock): Define as wrapper around
47463         glthread_recursive_lock_lock.
47464         (glthread_recursive_lock_unlock): New macro/function.
47465         (gl_recursive_lock_unlock): Define as wrapper around
47466         glthread_recursive_lock_unlock.
47467         (glthread_recursive_lock_destroy): New macro/function.
47468         (gl_recursive_lock_destroy): Define as wrapper around
47469         glthread_recursive_lock_destroy.
47470         (glthread_once): New macro/function.
47471         (gl_once): Define as wrapper around glthread_once.
47472         Update function declarations.
47473         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47474         glthread_rwlock_init. Return error code.
47475         (glthread_rwlock_rdlock_multithreaded): Renamed from
47476         glthread_rwlock_rdlock. Return error code.
47477         (glthread_rwlock_wrlock_multithreaded): Renamed from
47478         glthread_rwlock_wrlock. Return error code.
47479         (glthread_rwlock_unlock_multithreaded): Renamed from
47480         glthread_rwlock_unlock. Return error code.
47481         (glthread_rwlock_destroy_multithreaded): Renamed from
47482         glthread_rwlock_destroy. Return error code.
47483         (glthread_recursive_lock_init_multithreaded): Renamed from
47484         glthread_recursive_lock_init. Return error code.
47485         (glthread_recursive_lock_lock_multithreaded): Renamed from
47486         glthread_recursive_lock_lock. Return error code.
47487         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47488         glthread_recursive_lock_unlock. Return error code.
47489         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47490         glthread_recursive_lock_destroy. Return error code.
47491         (glthread_once_call): Make static.
47492         (glthread_once_multithreaded): Renamed from glthread_once.
47493         * lib/tls.h: Include <errno.h>.
47494         (glthread_tls_key_init): New macro/function.
47495         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47496         (glthread_tls_set): New macro/function.
47497         (gl_tls_set): Define as wrapper around glthread_tls_set.
47498         (glthread_tls_key_destroy): New macro/function.
47499         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47500         Update function declarations.
47501         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47502         glthread_tls_get.
47503         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47504
47505 2008-08-04  Eric Blake  <ebb9@byu.net>
47506
47507         gnumakefile: use space, not TAB, outside of targets
47508         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47509
47510 2008-08-02  Jim Meyering  <meyering@redhat.com>
47511
47512         getdate.y: avoid locale-dependent date parsing failure
47513         In Turkish locales, getdate would fail to recognize keywords
47514         containing a lowercase "i".  The solution is not to rely on
47515         locale-sensitive case-conversion.
47516         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47517         (lookup_word): Use c_toupper in place of toupper.
47518         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47519         Reported by Vefa Bicakci <bicave@superonline.com> in
47520         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47521         * modules/getdate (Depends-on): Add c-ctype.
47522
47523 2008-08-02  Bruno Haible  <bruno@clisp.org>
47524
47525         * gnulib-tool (func_import): When updating or creating a .gitignore
47526         file, prepend each added line with a slash, and ignore leading slashes
47527         from the existing lines.
47528         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47529
47530 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47531
47532         Portability fix for GNU make 3.79.1.
47533         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47534         versions do not understand.
47535
47536 2008-08-01  Bruno Haible  <bruno@clisp.org>
47537
47538         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47539         * tests/test-isnanf.h (zero): New variable.
47540         (main): Avoid literal -0.0f.
47541         * tests/test-isnand.h (zero): New variable.
47542         (main): Avoid literal -0.0.
47543         * tests/test-isnanl.h (zero): New variable.
47544         (main): Avoid literal -0.0L.
47545         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47546         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47547         -0.0, -0.0L.
47548         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47549         (test_signbitd): Avoid literal -0.0.
47550         (test_signbitl): Avoid literal -0.0L.
47551         * tests/test-ceilf1.c (zero): New variable.
47552         (main): Avoid literal -0.0f.
47553         * tests/test-ceill.c (zero): New variable.
47554         (main): Avoid literal -0.0L.
47555         * tests/test-floorf1.c (zero): New variable.
47556         (main): Avoid literal -0.0f.
47557         * tests/test-floorl.c (zero): New variable.
47558         (main): Avoid literal -0.0L.
47559         * tests/test-roundf1.c (zero): New variable.
47560         (main): Avoid literal -0.0f.
47561         * tests/test-round1.c (zero): New variable.
47562         (main): Avoid literal -0.0.
47563         * tests/test-roundl.c (zero): New variable.
47564         (main): Avoid literal -0.0L.
47565         * tests/test-truncf1.c (zero): New variable.
47566         (main): Avoid literal -0.0f.
47567         * tests/test-trunc1.c (zero): New variable.
47568         (main): Avoid literal -0.0.
47569         * tests/test-truncl.c (zero): New variable.
47570         (main): Avoid literal -0.0L.
47571         * tests/test-frexp.c (zero): New variable.
47572         (main): Avoid literal -0.0.
47573         * tests/test-frexpl.c (zero): New variable.
47574         (main): Avoid literal -0.0L.
47575         * tests/test-ldexpl.c (zero): New variable.
47576         (main): Avoid literal -0.0L.
47577         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47578         (zerod, zerol): New variables.
47579         (test_function): Avoid literals -0.0, -0.0L.
47580         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47581         (zerod, zerol): New variables.
47582         (test_function): Avoid literals -0.0, -0.0L.
47583         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47584         (zerod, zerol): New variables.
47585         (test_function): Avoid literals -0.0, -0.0L.
47586         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47587         (zerod, zerol): New variables.
47588         (test_function): Avoid literals -0.0, -0.0L.
47589         * tests/test-strtod.c (zero): New variable.
47590         (main): Avoid literal -0.0.
47591         Reported by Jonathan C. Patschke <jp@centtech.com>.
47592
47593 2008-07-31  Jim Meyering  <meyering@redhat.com>
47594
47595         sha256.h: correct definition of SHA224_DIGEST_SIZE
47596         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47597         Reported by Paulie Pena IV <paulie4@gmail.com>.
47598         Define as 224 / 8, rather than as a literal.
47599         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47600         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47601         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47602
47603 2008-07-31  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47606         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47607         Reported by Jonathan Patschke <jp@centtech.com>.
47608
47609 2008-07-31  Bruno Haible  <bruno@clisp.org>
47610
47611         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47612         Reported by Paolo Bonzini <bonzini@gnu.org>.
47613
47614 2008-07-30  Eric Blake  <ebb9@byu.net>
47615
47616         test-strtod: allow compilation without -lm
47617         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47618         Reported by Dennis Clarke <blastwave@gmail.com>.
47619
47620 2008-07-28  Jim Meyering  <meyering@redhat.com>
47621
47622         bootstrap: work also when there are no .po files in po/
47623         * build-aux/bootstrap (update_po_files): Complete the change
47624         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47625
47626 2008-07-27  Jim Meyering  <meyering@redhat.com>
47627
47628         * users.txt: Add zile.
47629
47630 2008-07-26  Ben Pfaff  <blp@gnu.org>
47631
47632         Add missing dependencies on new m4/exponent[fdl].m4 files.
47633         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47634         * modules/isnand-nolibm: Add m4/exponentd.m4.
47635         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47636         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47637         m4/isnan[fdl].m4, because the macros actually used moved.
47638         Reported by Jim Meyering.
47639
47640 2008-07-14  Ben Pfaff  <blp@gnu.org>
47641
47642         Add isinf module.
47643         * lib/isinf.c: New file.
47644         * lib/math.in.h: Define isinf macro if we have decided to replace
47645         it.
47646         * m4/isinf.m4: New file.
47647         * m4/math_h.m4: Initialize and substitute variables for isinf
47648         module.
47649         * modules/isinf: New file.
47650         * modules/isinf-tests: New file.
47651         * modules/math: Add substitutions for new module.
47652         * tests/test-isinf.c: New file.
47653         * doc/posix-functions/isinf.texi: Mention new module.
47654         * MODULES.html.sh: Mention new module.
47655
47656 2008-07-14  Ben Pfaff  <blp@gnu.org>
47657
47658         Factor out some macros for use by additional modules.
47659         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47660         exponentf.m4.
47661         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47662         exponentd.m4.
47663         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47664         file exponentl.m4.
47665         * m4/exponentf.m4: New file.
47666         * m4/exponentd.m4: New file.
47667         * m4/exponentl.m4: New file.
47668         * modules/isnanf: Use new file m4/exponentf.m4.
47669         * modules/isnand: Use new file m4/exponentd.m4.
47670         * modules/isnanl: Use new file m4/exponentl.m4.
47671
47672 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47673
47674         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47675         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47676         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47677         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47678
47679         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47680         readlink on platforms without PATH_MAX.
47681
47682 2008-07-21  Eric Blake  <ebb9@byu.net>
47683
47684         Warn, not fail, on stale version.
47685         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47686
47687         Don't allow installation with stale devel version number.
47688         * top/GNUmakefile (_is-install-target): New macro.
47689         (_curr-ver): Forbid installation with stale version number.
47690
47691 2008-07-20  Bruno Haible  <bruno@clisp.org>
47692
47693         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47694         TESTS_ENVIRONMENT.
47695         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47696
47697 2008-07-20  Bruno Haible  <bruno@clisp.org>
47698
47699         * lib/c-stack.h (c_stack_action): Add documentation.
47700         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47701
47702 2008-07-20  Bruno Haible  <bruno@clisp.org>
47703
47704         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47705         * modules/readlink (License): Likewise.
47706
47707 2008-07-17  Eric Blake  <ebb9@byu.net>
47708
47709         * modules/c-stack (Link): Fix typo.
47710
47711         Make c-stack use libsigsegv, when available.
47712         * modules/c-stack (Depends-on): Add libsigsegv.
47713         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47714         needed.
47715         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47716         (segv_handler, overflow_handler, c_stack_action)
47717         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47718         implementation when libsigsegv is available, but only when using
47719         the library is necessary.
47720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47721         comment, explaining why XSI check fails on Linux.
47722         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47723         * tests/test-c-stack2.sh: Tweak skip message.
47724         * NEWS: Document new link-time requirements.
47725
47726 2008-07-16  Eric Blake  <ebb9@byu.net>
47727
47728         c-stack: Expose false positives when not using libsigsegv.
47729         * modules/c-stack-tests (Files): Expand test.
47730         * tests/test-c-stack.c (main): Add means to conditionally trigger
47731         non-overflow SIGSEGV.
47732         * tests/test-c-stack2.sh: New file.
47733
47734 2008-07-14  Bruno Haible  <bruno@clisp.org>
47735
47736         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47737         Reported by Eric Blake.
47738
47739 2008-07-14  Sam Steingold  <sds@gnu.org>
47740             Bruno Haible  <bruno@clisp.org>
47741
47742         New module libsigsegv.
47743         * modules/libsigsegv: New file.
47744         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47745         modifications.
47746         * MODULES.html.sh (Signal handling): New section.
47747
47748 2008-07-14  Bruno Haible  <bruno@clisp.org>
47749
47750         * modules/unictype/ctype-* (Description): Add the word "function".
47751         Improves the resulting doc in MODULES.html.
47752
47753 2008-07-12  Ben Pfaff  <blp@gnu.org>
47754
47755         Add longlong module.
47756         * modules/longlong: New file.
47757
47758 2008-07-12  Bruno Haible  <bruno@clisp.org>
47759
47760         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47761         to empty.
47762
47763 2008-07-10  Ben Pfaff  <blp@gnu.org>
47764
47765         Add isnan module.
47766         * doc/posix-functions/isnan.texi: Mention new module.
47767         * lib/math.in.h: Define isnan macro if we have decided to replace
47768         it.
47769         * m4/isnan.m4: New file.
47770         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47771         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47772         also.
47773         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47774         redundancy.
47775         * m4/math_h.m4: Initialize and substitute variables for isnan
47776         module.
47777         * modules/isnan: New file.
47778         * modules/isnan-tests: New file.
47779         * modules/math: Add substitutions for new module.
47780         * tests/test-isnan.c: New file.
47781         * MODULES.html.sh: Mention new module.
47782
47783 2008-07-10  Ben Pfaff  <blp@gnu.org>
47784
47785         Add isnanf module.
47786         * lib/isnanf.m4: New file.
47787         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47788         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47789         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47790         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47791         * modules/isnanf: New file.
47792         * modules/isnanf-tests: New file.
47793         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47794         files.
47795         * tests/test-isnanf-nolibm.c: factored most of its contents into
47796         new file tests/test-isnanf.h.
47797         * tests/test-isnanf.h: New file.
47798         * tests/test-isnanf.c: New file.
47799         * MODULES.html.sh: Mention new module.
47800         * doc/glibc-functions/isnanf.texi: Mention new module.
47801
47802 2008-07-10  Ben Pfaff  <blp@gnu.org>
47803
47804         Add isnand module.
47805         * lib/isnand.h: New file.
47806         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47807         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47808         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47809         functionality also.
47810         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47811         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47812         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47813         * modules/isnand: New file.
47814         * modules/isnand-tests: New file.
47815         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47816         files.
47817         * tests/test-isnand-nolibm.c: factored most of its contents into
47818         new file tests/test-isnand.h.
47819         * tests/test-isnand.h: New file.
47820         * tests/test-isnand.c: New file.
47821         * MODULES.html.sh: Mention new module.
47822
47823 2008-07-10  Ben Pfaff  <blp@gnu.org>
47824
47825         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47826         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47827         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47828         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47829         * modules/isnanf-nolibm: Update references to renamed files.
47830         * modules/isnand-nolibm: Likewise.
47831         * modules/isnanf-nolibm-tests: Likewise.
47832         * modules/isnand-nolibm-tests: Likewise.
47833         * lib/frexp.c: Likewise.
47834         * lib/isfinite.c: Likewise.
47835         * lib/signbitd.c: Likewise.
47836         * lib/signbitf.c: Likewise.
47837         * lib/vasnprintf.c: Likewise.
47838         * tests/test-ceilf1.c: Likewise.
47839         * tests/test-ceilf2.c: Likewise.
47840         * tests/test-floorf1.c: Likewise.
47841         * tests/test-floorf2.c: Likewise.
47842         * tests/test-frexp.c: Likewise.
47843         * tests/test-round1.c: Likewise.
47844         * tests/test-round2.c: Likewise.
47845         * tests/test-roundf1.c: Likewise.
47846         * tests/test-strtod.c: Likewise.
47847         * tests/test-trunc1.c: Likewise.
47848         * tests/test-trunc2.c: Likewise.
47849         * tests/test-truncf1.c: Likewise.
47850         * tests/test-truncf2.c: Likewise.
47851         * NEWS: Mention the renamed header files.
47852
47853 2008-07-11  Jim Meyering  <meyering@redhat.com>
47854
47855         vc-list-files: make the last-resort awk code more portable
47856         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47857         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47858         does not support it.
47859
47860 2008-07-10  Eric Blake  <ebb9@byu.net>
47861
47862         Work with tar's bootstrap.
47863         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47864         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47865         an m4 comment.
47866
47867 2008-07-09  Jim Meyering  <meyering@redhat.com>
47868
47869         posix-shell.m4: fix typo that made this test malfunction
47870         * m4/posix-shell.m4: Remove capitalization in variable name.
47871
47872 2008-07-08  Bruno Haible  <bruno@clisp.org>
47873
47874         * m4/onceonly.m4: Update comments.
47875         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47876
47877 2008-07-04  Jim Meyering  <meyering@redhat.com>
47878
47879         * users.txt: Add vc-dwim.
47880         (bison, coreutils): Use the gitweb URL.
47881
47882 2008-07-03  Jim Meyering  <meyering@redhat.com>
47883
47884         * users.txt: Add libffcall.  From Sam Steingold.
47885
47886 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47887
47888         getdate.y: do not ignore TZ with relative day, month or year offset
47889         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47890         relative-date-handling, since otherwise, the latter would clobber the
47891         sole output (an updated Start value) of the tz-handling block.
47892         * tests/test-getdate.c: Tests for the fix
47893
47894 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47895
47896         Recognize 'foo_LIBRARIES += libgnu.a'.
47897         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47898         makefile snippet has already specified an installation location,
47899         also using '+='.
47900
47901 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47902
47903         getdate.y: factor out common actions
47904         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47905         Use them in place of open-coded actions.
47906
47907 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47908
47909         Add self-test for getdate module.
47910         * modules/getdate-tests: New file.
47911         * tests/test-getdate.c: New file.
47912
47913 2008-06-29  Bruno Haible  <bruno@clisp.org>
47914
47915         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47916         .gitignore.
47917         Reported by Sylvain Beucler <beuc@beuc.net>.
47918
47919 2008-06-29  Bruno Haible  <bruno@clisp.org>
47920
47921         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47922         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47923
47924 2008-06-29  Bruno Haible  <bruno@clisp.org>
47925
47926         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47927         EXTRA_DIST.
47928         Reported by Sylvain Beucler <beuc@beuc.net>.
47929
47930 2008-06-26  Jim Meyering  <meyering@redhat.com>
47931
47932         make several modules depend on the "open" module
47933         This provides slightly increased consistency when opening-for-write
47934         the name of a non-directory spelled with a trailing slash.
47935         * modules/chdir-safer: Likewise.
47936         * modules/chown: Likewise.
47937         * modules/clean-temp: Likewise.
47938         * modules/copy-file: Likewise.
47939         * modules/fchdir: Likewise.
47940         * modules/fcntl-safer: Likewise.
47941         * modules/pipe: Likewise.
47942         * modules/utime: Likewise.
47943         Prompted by Eric Blake and Bruno Haible.
47944
47945 2008-06-24  Andreas Schwab  <schwab@suse.de>
47946
47947         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47948         literals can be used as initializers for global variables.
47949
47950 2008-06-23  Eric Blake  <ebb9@byu.net>
47951
47952         Make gnulib-cache.m4 easier to diff.
47953         * gnulib-tool (func_import): Allow newlines when reading cached
47954         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47955
47956 2008-06-23  Bruno Haible  <bruno@clisp.org>
47957
47958         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47959         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47960         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47961         m4/signalblocking.m4.
47962         (gl_PREREQ_SIGACTION): Don't invoke it.
47963         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47964         gl_PREREQ_SIG_HANDLER_H.
47965         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47966         Don't check for sigaction here.
47967
47968 2008-06-23  Bruno Haible  <bruno@clisp.org>
47969
47970         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47971         (install_handlers): Don't set the SA_RESETHAND flag.
47972
47973 2008-06-23  Bruno Haible  <bruno@clisp.org>
47974
47975         * m4/sigaction.m4: Comment fixes.
47976         * lib/signal.in.h: Likewise.
47977
47978 2008-06-23  Eric Blake  <ebb9@byu.net>
47979
47980         Fix typo.
47981         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47982
47983         Avoid SA_ namespace.
47984         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47985         Reported by Ralf Wildenhues.
47986
47987         Avoid test failure due to SA_RESTORER.
47988         * tests/test-sigaction.c (SA_MASK): New macro.
47989         (main): Avoid failing due to extension flags being set.
47990         Reported by Jim Meyering.
47991
47992         Revert use of sig-handler.h in sigprocmask.c.
47993         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47994         it requires the existence of struct sigaction.
47995         * lib/sigprocmask.c (handler_t): Restore typedef.
47996         (rpl_signal, old_handlers): Use local type.
47997
47998 2008-06-22  Bruno Haible  <bruno@clisp.org>
47999
48000         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48001         conditionally.
48002         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48003
48004 2008-06-22  Bruno Haible  <bruno@clisp.org>
48005
48006         * doc/posix-functions/siginterrupt.texi: Move note.
48007
48008         * lib/signal.in.h (SA_RESTART): New macro.
48009         * lib/sigaction.c: Update comment.
48010
48011         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48012
48013         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48014         (gl_PREREQ_SIGPROCMASK): Invoke it.
48015         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48016
48017         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48018
48019         * lib/sigprocmask.c: Update a comment.
48020
48021 2008-06-21  Eric Blake  <ebb9@byu.net>
48022
48023         Use sigaction module rather than signal().
48024         * modules/c-stack (Depends-on): Add sigaction.
48025         * modules/fatal-signal (Depends-on): Likewise.
48026         * modules/nanosleep (Depends-on): Likewise.
48027         * modules/sigprocmask (Files): Add sig-handler.h.
48028         * modules/sigaction (Files): Likewise.
48029         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48030         Eggert.
48031         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48032         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48033         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48034         (init_fatal_signals): Likewise.
48035         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48036         (siginterrupt): Delete fallback.
48037         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48038         instead.
48039         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48040         siginterrupt.
48041
48042         New module sigaction, for mingw.
48043         * modules/sigaction: New module...
48044         * modules/sigaction-tests: ...and its test.
48045         * m4/sigaction.m4: New file.
48046         * lib/sigaction.c: Likewise.
48047         * tests/test-sigaction.c: Likewise.
48048         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48049         * modules/signal (Makefile.am): Likewise.
48050         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48051         needed.
48052         * doc/posix-headers/signal.texi (signal.h): Mention provided
48053         types.
48054         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48055         that sigaction is preferable.
48056         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48057         module.
48058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48059         sigaction.
48060
48061         Improve robustness of sigprocmask by overriding signal.
48062         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48063         is in use.
48064         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48065         (SIGKILL, SIGSTOP): Provide fallbacks.
48066         (rpl_signal): Implement.
48067         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48068         signal can be called inside handlers.
48069
48070         Fix nanosleep module on mingw.
48071         * modules/nanosleep (Depends-on): Add sys_select.
48072         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48073
48074         Fix licensing of sigprocmask.
48075         * modules/raise (License): Relicense as LGPL.
48076
48077 2008-06-21  Bruno Haible  <bruno@clisp.org>
48078
48079         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48080         result if it contains question marks.
48081         Reported by Michael Geng <linux@michaelgeng.de>.
48082
48083 2008-06-19  Bruno Haible  <bruno@clisp.org>
48084
48085         Fix CVS-ism.
48086         * doc/gnulib.texi: Include updated-stamp.texi.
48087         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48088         (updated-stamp.texi): New rule.
48089         (gnulib.info): Depend on it.
48090         * doc/.gitignore: Add updated-stamp.texi.
48091         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48092
48093 2008-06-19  Bruno Haible  <bruno@clisp.org>
48094
48095         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48096         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48097
48098 2008-06-19  Eric Blake  <ebb9@byu.net>
48099
48100         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48101         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48102         Reported by Stepan Kasal.
48103
48104 2008-06-18  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48107         Reported by Eric Blake.
48108
48109 2008-06-18  Eric Blake  <ebb9@byu.net>
48110
48111         Work around cygwin 1.5.25 strsignal bug.
48112         * tests/test-strsignal.c: Allow for const char *.
48113         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48114
48115 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48116
48117         * users.txt: Update URL to article and add author/date
48118         information.
48119
48120 2008-06-17  Bruno Haible  <bruno@clisp.org>
48121
48122         New macro gl_DISABLE_THREADS.
48123         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48124         if the user did not pass --enable-threads or --disable-threads option.
48125         (gl_DISABLE_THREADS): New macro.
48126         Reported by Eric Blake <ebb9@byu.net>.
48127
48128 2008-06-17  Bruno Haible  <bruno@clisp.org>
48129
48130         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48131         when the macro ignores it.
48132         Based on a patch by Eric Blake <ebb9@byu.net>.
48133
48134 2008-06-17  Bruno Haible  <bruno@clisp.org>
48135
48136         * modules/tls (License): Change to LGPLv2+.
48137         Reported by Eric Blake.
48138
48139 2008-06-17  Eric Blake  <ebb9@byu.net>
48140
48141         Simplify c-stack prerequisites.
48142         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48143         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48144         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48145         check.
48146         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48147         <sys/resource.h>.
48148
48149         Move c-stack test into testsuite.
48150         * modules/c-stack-tests: New file.
48151         * lib/c-stack.c [DEBUG]: Move test program...
48152         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48153         fail test if sigaltstack is lacking.
48154         * tests/test-c-stack.sh: New driver file.
48155
48156 2008-06-16  Eric Blake  <ebb9@byu.net>
48157
48158         Use raise module consistently.
48159         * modules/fatal-signal (Depends-on): Add raise.
48160         * modules/sigprocmask (Depends-on): Likewise.
48161         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48162         * lib/sigprocmask.c (sigprocmask): Likewise.
48163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48164         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48165
48166         Fix compliance bug in sigpending.
48167         * lib/sigprocmask.c (sigpending): Return pending array via
48168         parameter, not return value.
48169
48170 2008-06-14  Eric Blake  <ebb9@byu.net>
48171
48172         Improve obstack-printf test code.
48173         * tests/test-obstack-printf.c (test_function): Fix comment, and
48174         simplify usage of obstack_* in macros.  Add a test for coverage.
48175         Reported by Bruno Haible.
48176
48177 2008-06-14  Bruno Haible  <bruno@clisp.org>
48178
48179         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48180         array size as a constant, not as a const variable.
48181         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48182         AC_USE_SYSTEM_EXTENSIONS.
48183         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48184         Test whether the obstack_printf function actually exists.
48185         * modules/obstack-printf (Depends-on): Add extensions.
48186         (Include): Remove obstack.h.
48187         * modules/obstack-printf-posix (Depends-on): Add extensions.
48188         (Include): Remove obstack.h.
48189
48190 2008-06-13  Eric Blake  <ebb9@byu.net>
48191
48192         Add obstack-printf and obstack-printf-posix modules.
48193         * modules/obstack-printf: New file.
48194         * modules/obstack-printf-posix: Likewise.
48195         * MODULES.html.sh (Misc): Mention them.
48196         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48197         Likewise.
48198         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48199         Likewise.
48200         * modules/stdio (Makefile.am): Accomodate new modules.
48201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48202         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48203         Declare.
48204         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48205         functions.
48206         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48207         (gl_REPLACE_OBSTACK_PRINTF): New macros
48208         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48209         * tests/test-obstack-printf.c: New file.
48210         * modules/obstack-printf-tests: Likewise.
48211         * modules/obstack-printf-posix-tests: Likewise.
48212
48213 2008-06-11  Bruno Haible  <bruno@clisp.org>
48214
48215         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48216         * lib/open.c: Include errno.h.
48217         (open): Fail when attempting to write to a file that has a trailing
48218         slash.
48219         * tests/test-open.c (main): Test against trailing slash bug.
48220         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48221
48222 2008-06-10  Bruno Haible  <bruno@clisp.org>
48223
48224         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48225         for $? to work inside the trap command, with various /bin/sh-s.
48226         * tests/test-vc-list-files-cvs.sh: Likewise.
48227
48228 2008-06-10  Bruno Haible  <bruno@clisp.org>
48229
48230         * lib/acl-internal.h: Don't include gettext.h here.
48231         * lib/set-mode-acl.c: Include gettext.h here.
48232         * lib/copy-acl.c: Likewise.
48233
48234 2008-06-10  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48237         * lib/wait-process.c (wait_subprocess): Likewise.
48238         * lib/execute.h (execute): Add termsigp argument.
48239         * lib/execute.c (execute): Likewise.
48240         * lib/csharpcomp.c (compile_csharp_using_pnet,
48241         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48242         * lib/csharpexec.c (execute_csharp_using_pnet,
48243         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48244         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48245         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48246         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48247         is_jikes_present): Update.
48248         * lib/javaexec.c (execute_java_class): Update.
48249         * lib/javaversion.c (execute_and_read_line): Update.
48250         * NEWS: Document the changes.
48251         Reported by Eric Blake.
48252
48253 2008-06-10  Eric Blake  <ebb9@byu.net>
48254
48255         Add missing include.
48256         * tests/test-strstr.c (includes): Add <signal.h>.
48257         * tests/test-strcasestr.c (includes): Likewise.
48258         * tests/test-memmem.c (includes): Likewise.
48259
48260 2008-06-10  Bruno Haible  <bruno@clisp.org>
48261
48262         * lib/wait-process.c (wait_subprocess): Add an assertion.
48263
48264 2008-06-10  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48267
48268 2008-06-10  Bruno Haible  <bruno@clisp.org>
48269
48270         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48271         using alarm().
48272         * tests/test-strcasestr.c (main): Likewise.
48273         * tests/test-strstr.c (main): Likewise.
48274
48275 2008-06-09  Bruno Haible  <bruno@clisp.org>
48276
48277         Work around the Solaris 10 ACE ACLs ABI change.
48278         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48279         declare if ACL_NO_TRIVIAL is present.
48280         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48281         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48282         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48283         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48284         define if ACL_NO_TRIVIAL is present.
48285         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48286         and use the current ABI.
48287         (file_has_acl): Use same #if condition as elsewhere.
48288         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48289         in use, and use the current ABI.
48290         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48291         Reported by Jim Meyering.
48292
48293 2008-06-09  Eric Blake  <ebb9@byu.net>
48294
48295         Work around environments that (stupidly) ignore SIGALRM.
48296         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48297         before using alarm().
48298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48300         Reported by Ian Beckwith <ianb@erislabs.net>.
48301
48302         Produce autobuild blurb earlier in log.
48303         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48304
48305 2008-06-09  Jim Meyering  <meyering@redhat.com>
48306         and OndÅ™ej Vašík  <ovasik@redhat.com>
48307
48308         utimens.c: correct kernel bug work-around
48309         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48310         failure, not success, and the kernel bug we're trying to work
48311         around affects not just the utimensat call, but also the fallback
48312         futimens call.
48313         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48314         not success.
48315         [HAVE_FUTIMENS]: Use the same work-around, here.
48316
48317 2008-06-09  Jim Meyering  <meyering@redhat.com>
48318
48319         add more guards around definition of ACE_-related code
48320         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48321         ALLOW and ACE_OWNER are also defined.
48322
48323 2008-06-08  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/acl-internal.h: Add me as co-author.
48326         * lib/file-has-acl.c: Likewise.
48327         * lib/set-mode-acl.c: Likewise.
48328         * lib/copy-acl.c: Likewise.
48329
48330 2008-06-08  Bruno Haible  <bruno@clisp.org>
48331
48332         Add support for AIX ACLs.
48333         * lib/acl-internal.h (acl_nontrivial): New declaration.
48334         * lib/file-has-acl.c (acl_nontrivial): New function.
48335         (file_has_acl): Add implementation using AIX 4 ACL API.
48336         * lib/set-mode-acl.c (qset_acl): Likewise.
48337         * lib/copy-acl.c (qcopy_acl): Likewise.
48338
48339 2008-06-08  Bruno Haible  <bruno@clisp.org>
48340
48341         Add support for HP-UX ACLs.
48342         * lib/acl-internal.h (acl_nontrivial): New declaration.
48343         * lib/file-has-acl.c (acl_nontrivial): New function.
48344         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48345         * lib/set-mode-acl.c (qset_acl): Likewise.
48346         * lib/copy-acl.c (qcopy_acl): Likewise.
48347
48348 2008-06-08  Bruno Haible  <bruno@clisp.org>
48349
48350         Add support for Cygwin ACLs.
48351         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48352         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48353         the chmod_or_fchmod call.
48354         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48355
48356 2008-06-08  Bruno Haible  <bruno@clisp.org>
48357
48358         Fix bug with setuid modes in Solaris 10+ code.
48359         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48360         succeeded, when the mode contains some special bits.
48361
48362 2008-06-08  Bruno Haible  <bruno@clisp.org>
48363
48364         Add support for Solaris 7..10 ACLs.
48365         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48366         declarations.
48367         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48368         functions.
48369         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48370         * lib/set-mode-acl.c (qset_acl): Likewise.
48371         * lib/copy-acl.c (qcopy_acl): Likewise.
48372
48373 2008-06-08  Bruno Haible  <bruno@clisp.org>
48374
48375         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48376         declaration.
48377         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48378         (acl_access_nontrivial): Remove MacOS X case.
48379         (file_has_acl): Use acl_extended_nontrivial.
48380         * lib/copy-acl.c (qcopy_acl): Likewise.
48381
48382 2008-06-08  Bruno Haible  <bruno@clisp.org>
48383
48384         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48385
48386 2008-06-08  Jim Meyering  <meyering@redhat.com>
48387
48388         * modules/acl (Maintainer): Add Bruno Haible.
48389
48390 2008-06-07  Bruno Haible  <bruno@clisp.org>
48391
48392         Improve support for Tru64 ACLs.
48393         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48394         ACL on OSF/1.
48395
48396 2008-06-07  Bruno Haible  <bruno@clisp.org>
48397
48398         Add support for MacOS X ACLs.
48399         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48400         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48401         * lib/set-mode-acl.c (qset_acl): Likewise.
48402         * lib/copy-acl.c (qcopy_acl): Likewise.
48403
48404 2008-06-07  Bruno Haible  <bruno@clisp.org>
48405
48406         Fix memory leak introduced on 2008-05-22.
48407         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48408         use.
48409
48410 2008-06-07  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48413         to construct an empty ACL.
48414
48415 2008-06-07  Bruno Haible  <bruno@clisp.org>
48416
48417         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48418         precisely.
48419         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48420
48421 2008-06-07  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48424         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48425
48426 2008-06-07  Bruno Haible  <bruno@clisp.org>
48427
48428         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48429         regardless of POSIX.
48430         * doc/posix-functions/_longjmp.texi: Likewise.
48431         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48432         SystemV platform in this case.
48433
48434 2008-06-06  Eric Blake  <ebb9@byu.net>
48435
48436         Document abort() bugs.
48437         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48438
48439         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48440         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48441         sigsetjmp.
48442         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48443         siglongjmp, but only as a macro.
48444         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48445         is obsolete.
48446         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48447
48448         Tweak documentation to cover cygwin argz bugs.
48449         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48450         argz bug fix; no code change needed since no cygwin releases
48451         occurred between the last fix and the bug being tested.
48452         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48453         module and recently fixed cygwin bugs.
48454         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48455         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48456         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48457         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48458         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48459         Likewise.
48460         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48461         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48462         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48463         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48464         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48465         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48466         Likewise.
48467
48468         Avoid gcc warning on cygwin.
48469         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48470         !ACL_NO_TRIVIAL]: Avoid unused variable.
48471
48472 2008-06-05  Eric Blake  <ebb9@byu.net>
48473
48474         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48475         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48476         git-version-gen fails to come up with a version.
48477         Reported by Simon Josefsson.
48478
48479 2008-06-05  Jim Meyering  <meyering@redhat.com>
48480             Paul Eggert  <eggert@cs.ucla.edu>
48481
48482         utimens.c: work around a probable Linux kernel bug
48483         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48484         appears to be a kernel bug that causes utimensat to return 280
48485         instead of 0, indicating success.
48486
48487 2008-06-04  Bruno Haible  <bruno@clisp.org>
48488
48489         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48490         2008-06-01 commit.
48491
48492 2008-06-04  Bruno Haible  <bruno@clisp.org>
48493
48494         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48495         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48496         (file_has_acl): Use it. Save errno afterwards.
48497         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48498
48499 2008-06-03  Bruno Haible  <bruno@clisp.org>
48500
48501         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48502         draft code. Simplify #ifs.
48503         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48504         Put Solaris code after POSIX-draft code. Fix comments regarding
48505         Solaris 10, HP-UX. Mention Cygwin.
48506         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48507
48508 2008-06-03  Eric Blake  <ebb9@byu.net>
48509
48510         Provide fallback for older kernels.
48511         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48512         Provide runtime fallback if kernel lacks support.
48513         Reported by Mike Frysinger.
48514
48515 2008-06-02  Bruno Haible  <bruno@clisp.org>
48516
48517         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48518         it exists.
48519
48520 2008-06-02  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48523         * lib/copy-acl.c (qcopy_acl): Update comment.
48524
48525 2008-06-02  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48528         like ACL APIs.
48529
48530 2008-06-02  Bruno Haible  <bruno@clisp.org>
48531
48532         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48533         * tests/test-set-mode-acl.sh: Likewise.
48534         * tests/test-copy-acl.sh: Likewise.
48535         * tests/test-copy-file.sh: Likewise.
48536
48537 2008-06-02  Bruno Haible  <bruno@clisp.org>
48538
48539         * tests/test-file-has-acl.sh: Remove unused code.
48540
48541 2008-06-01  Bruno Haible  <bruno@clisp.org>
48542
48543         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48544         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48545         messages.
48546         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48547
48548 2008-06-01  Bruno Haible  <bruno@clisp.org>
48549
48550         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48551         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48552         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48553         APIs.
48554         * modules/acl-tests (configure.ac): Remove tests now contained in
48555         m4/acl.m4.
48556
48557 2008-06-02  Jim Meyering  <meyering@redhat.com>
48558
48559         announce-gen: use a better key-server host name
48560         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48561         it may be more consistently reliable.  Suggested by Werner Koch
48562         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48563
48564 2008-06-01  Bruno Haible  <bruno@clisp.org>
48565
48566         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48567         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48568
48569 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48570
48571         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48572
48573 2008-06-01  Bruno Haible  <bruno@clisp.org>
48574
48575         New ACL tests.
48576         * tests/test-file-has-acl.sh: New file.
48577         * tests/test-file-has-acl.c: New file.
48578         * tests/test-set-mode-acl.sh: New file.
48579         * tests/test-set-mode-acl.c: New file.
48580         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48581         * tests/test-copy-acl.c: New file.
48582         * modules/acl-tests: New file, based on modules/copy-file-tests.
48583         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48584         (Depends-on): Add acl-tests.
48585         (configure.ac): Remove checks.
48586         (Makefile.am): Don't create test-sameacls program here any more.
48587
48588 2008-06-01  Bruno Haible  <bruno@clisp.org>
48589
48590         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48591         * tests/test-sameacls.c: Include progname.h.
48592         (main): Invoke set_program_name. Portability fixes for MacOS X,
48593         Solaris, HP-UX.
48594
48595 2008-06-01  Bruno Haible  <bruno@clisp.org>
48596
48597         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48598         function.
48599         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48600
48601 2008-06-01  Bruno Haible  <bruno@clisp.org>
48602
48603         * modules/rpmatch (Depends-on): Add strdup.
48604
48605 2008-06-01  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/pipe.c: Include unistd-safer.h.
48608         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48609         * modules/pipe (Depends-on): Add unistd-safer.
48610
48611 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48612
48613         * modules/autobuild (configure.ac): Call AB_INIT.
48614
48615 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48616
48617         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48618         Suggested by Bruno Haible <bruno@clisp.org>.
48619
48620 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48621
48622         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48623         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48624         <bruno@clisp.org>.
48625
48626 2008-05-29  Eric Blake  <ebb9@byu.net>
48627
48628         Prefer new POSIX 200x interfaces over futimesat.
48629         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48630         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48631         when available.
48632         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48633
48634 2008-05-28  Bruno Haible  <bruno@clisp.org>
48635
48636         * modules/stpcpy (License): Change to LGPLv2+.
48637         Requested by David Lutterkort <dlutter@redhat.com>.
48638
48639 2008-05-27  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48642         current mingw.
48643         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48644
48645 2008-05-27  Bruno Haible  <bruno@clisp.org>
48646
48647         * modules/iconv_open (Link): New section, from module 'iconv'.
48648         * modules/striconv (Link): Likewise.
48649         * modules/striconveh (Link): Likewise.
48650         * modules/xstriconv (Link): Likewise.
48651         * modules/unicodeio (Link): Likewise.
48652         * modules/propername (Link): Likewise.
48653         Reported by Jim Meyering.
48654
48655 2008-05-26  Jim Meyering  <meyering@redhat.com>
48656
48657         sha256: do not artificially restrict buffer length to be < 2^32
48658         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48659         uint32_t to size_t.
48660         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48661         to match.
48662
48663         avoid unaligned access errors, e.g., on sparc
48664         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48665         direct access through a possibly-unaligned uint64* pointer.
48666         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48667         direct access through a possibly-unaligned uint32* pointer.
48668         Prompted by this patch from Tom "spot" Callaway:
48669         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48670
48671         sha512.c: fix typo in comment
48672         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48673
48674 2008-05-25  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48677         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48678         (Makefile.am): Update lib_SOURCES.
48679
48680 2008-05-25  Bruno Haible  <bruno@clisp.org>
48681
48682         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48683
48684 2008-05-25  Jim Meyering  <meyering@redhat.com>
48685
48686         useless-if-before-free: freed expr may have white-space differences
48687         * build-aux/useless-if-before-free: Recognize cases in which the
48688         freed expression differs from the tested one in embedded white
48689         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48690         $1 was used, so we can't make any regexp shy.  Improved tests now
48691         detect this.
48692
48693         useless-if-before-free: accept white space in the expression.
48694         * build-aux/useless-if-before-free: For now, any white space
48695         in the expression must be identical in the free argument.
48696
48697         useless-if-before-free: efficiency tweak
48698         * build-aux/useless-if-before-free: Make the expression-matching
48699         regexp "shy".
48700         Make the *outer* regexp shy, not the expr-matching one.
48701
48702         update code-in-comment to accept cast of free arg
48703         * build-aux/useless-if-before-free: Update regexp.
48704
48705 2008-05-25  Bruno Haible  <bruno@clisp.org>
48706
48707         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48708         * modules/copy-file-tests (Files, Makefile.am): Update.
48709         * tests/test-copy-file.c (func_test_copy): Update.
48710
48711 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48712
48713         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48714
48715 2008-05-23  Bruno Haible  <bruno@clisp.org>
48716
48717         Improve support for ACLs on OSF/1.
48718         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48719         Remove fallback for unknown flavors of ACLs.
48720
48721 2008-05-22  Bruno Haible  <bruno@clisp.org>
48722
48723         Add support for ACLs on OSF/1.
48724         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48725         replacements.
48726         (acl_free_text): New macro fallback.
48727         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48728         acl_free.
48729         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48730         acl_free_text function. Require AC_C_INLINE.
48731
48732 2008-05-22  Bruno Haible  <bruno@clisp.org>
48733
48734         Make copy_acl work on MacOS X 10.5.
48735         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48736         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48737         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48738         If MODE_INSIDE_ACL, don't assume that every system has the same text
48739         representation for ACLs as FreeBSD.
48740         * lib/copy-acl.c (copy_acl): Add support for platforms with
48741         !MODE_INSIDE_ACL.
48742         * lib/file-has-acl.c (file_has_acl): Likewise.
48743         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48744         FreeBSD, MacOS X, or IRIX, respectively.
48745
48746 2008-05-22  Bruno Haible  <bruno@clisp.org>
48747
48748         * lib/acl.h: Don't include <sys/acl.h>.
48749         (GETACLCNT): Move fallback to lib/acl-internal.h.
48750         * lib/acl-internal.h: Include <sys/acl.h> here.
48751         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48752
48753 2008-05-22  Bruno Haible  <bruno@clisp.org>
48754
48755         Split off copy_acl function to separate file.
48756         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48757         * lib/acl.c (copy_acl): Moved function to separate file.
48758         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48759         * modules/acl (Files): Add lib/copy-acl.c.
48760         (Makefiles.am): Augment lib_SOURCES.
48761
48762 2008-05-22  Bruno Haible  <bruno@clisp.org>
48763
48764         * modules/copy-file-tests: New file.
48765         * tests/test-copy-file.sh: New file.
48766         * tests/test-copy-file.c: New file.
48767         * tests/test-copy-file-sameacls.c: New file.
48768
48769 2008-05-22  Eric Blake  <ebb9@byu.net>
48770
48771         Avoid gcc warning.
48772         * tests/test-memcmp.c (main): Pass NULL indirectly.
48773
48774 2008-05-21  Bruno Haible  <bruno@clisp.org>
48775
48776         Add reference doc about ACLs.
48777         * doc/acl-resources.txt: New file.
48778         * doc/acl-cygwin.txt: New file.
48779
48780 2008-05-21  Bruno Haible  <bruno@clisp.org>
48781
48782         Avoid one more warning from gcc.
48783         * lib/vasnprintf.c (IF_LINT): Update comments.
48784         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48785
48786 2008-05-21  Jim Meyering  <meyering@redhat.com>
48787
48788         avoid a warning from gcc
48789         * lib/vasnprintf.c (IF_LINT): Define.
48790         (scale10_round_decimal_long_double):
48791         Use it to avoid a "may be used uninitialized" warning.
48792         (scale10_round_decimal_double): Likewise.
48793
48794 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48795
48796         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48797         declared.
48798
48799 2008-05-20  Bruno Haible  <bruno@clisp.org>
48800
48801         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48802         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48803
48804 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48805
48806         * modules/memcmp-tests: New file.
48807         * tests/test-memcmp.c: New file.
48808
48809 2008-05-19  Bruno Haible  <bruno@clisp.org>
48810
48811         * modules/propername (Notice, configure.ac): Put quoted "..." into
48812         --keyword option.
48813         * lib/propername.h: Update comments accordingly.
48814         Reported by Eric Blake.
48815
48816 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48817
48818         * modules/getpass-gnu (Depends-on): Add fseeko.
48819
48820 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48821
48822         * modules/base64-tests: New file.
48823
48824 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48825
48826         * lib/base64.c (base64_decode_ctx): If a decode context structure
48827         was passed in use it to ignore newlines.  If a context structure
48828         was _not_ passed in, continue to treat newlines as garbage (this
48829         is the historical behavior).  Formerly base64_decode.
48830         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48831         takes a decode context structure.
48832         * lib/base64.h (base64_decode): Macro for four-argument calls.
48833         (base64_decode_alloc): Likewise.
48834         * lib/base64.c (base64_decode_ctx): If a decode context structure
48835         was passed in use it to ignore newlines.  If a context structure
48836         was _not_ passed in, continue to treat newlines as garbage (this
48837         is the historical behavior).  Formerly base64_decode.
48838         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48839         takes a decode context structure.
48840         * lib/base64.h (base64_decode): Macro for four-argument calls.
48841         (base64_decode_alloc): Likewise.
48842
48843 2008-05-19  Jim Meyering  <meyering@redhat.com>
48844
48845         avoid a warning from gcc
48846         * lib/trim.c (IF_LINT): Define.
48847         (trim2): Use it to avoid a "may be used uninitialized" warning.
48848
48849         Fix doc typo.
48850         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48851
48852 2008-05-19  Bruno Haible  <bruno@clisp.org>
48853
48854         * doc/glibc-functions/getpass.texi: Document limits of other
48855         implementations.
48856
48857 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48858             Bruno Haible <bruno@clisp.org>
48859
48860         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48861
48862 2008-05-18  Bruno Haible  <bruno@clisp.org>
48863
48864         * modules/propername: New file, from GNU gettext.
48865         * lib/propername.h: New file, from GNU gettext.
48866         * lib/propername.c: New file, from GNU gettext.
48867         * MODULES.html.sh (Internationalization functions): Add propername.
48868
48869 2008-05-16  Jim Meyering  <meyering@redhat.com>
48870             Bruno Haible  <bruno@clisp.org>
48871
48872         Avoid some warnings from "gcc -Wshadow".
48873         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48874
48875 2008-05-15  Eric Blake  <ebb9@byu.net>
48876
48877         Extend previous patch to cygwin 1.7.0.
48878         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48879         fast implementation in cygwin >= 1.7.0.
48880         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48882
48883 2008-05-15  Bruno Haible  <bruno@clisp.org>
48884
48885         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48886         implementation in glibc >= 2.9.
48887         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48889
48890 2008-05-15  Bruno Haible  <bruno@clisp.org>
48891
48892         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48893         (Unicode string functions): Add unilbrk/*.
48894         Reported by Karl Berry.
48895
48896 2008-05-15  Eric Blake  <ebb9@byu.net>
48897
48898         Fix violation of <stdbool.h> replacement in regex.
48899         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48900         * lib/regexec.c (re_search_internal): Likewise.
48901         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48902
48903 2008-05-15  Jim Meyering  <meyering@redhat.com>
48904
48905         avoid distracting test output when git or cvs is not found
48906         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48907         * tests/test-vc-list-files-git.sh: Likewise.
48908
48909 2008-05-15  Eric Blake  <ebb9@byu.net>
48910
48911         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48912         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48913         glibc version.
48914         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48915         * doc/posix-functions/strstr.texi (strstr): Likewise.
48916         * lib/str-two-way.h (MAX): Sychronize with glibc.
48917
48918 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48919
48920         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48921         opr.ctx_type.
48922         (calc_first): Initialize constraint field.
48923         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48924         Fix grammar.
48925         (duplicate_node): Merge constraint field for all node types.
48926         (calc_eclosure_iter): Look at constraint field for all node types.
48927         * lib/regex_internal.c (create_cd_newstate): Don't look at
48928         opr.ctx_type.
48929
48930 2008-05-14  Bruno Haible  <bruno@clisp.org>
48931
48932         Help GCC to do better code generation.
48933         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48934         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48935         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48936         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48937         Declare with attribute 'malloc' if supported.
48938
48939 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48940
48941         use "echo STR|wc -c" rather than unportable "expr length STR"
48942         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48943         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48944
48945 2008-05-14  Jim Meyering  <meyering@redhat.com>
48946
48947         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48948         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48949         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48950         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48951         via Collin Lasse.
48952
48953 2008-05-14  Eric Blake  <ebb9@byu.net>
48954
48955         Avoid quadratic growth in gl_LIBSOURCES.
48956         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48957         Suggested by Bruno Haible.
48958
48959         Test xmemdup0.
48960         * modules/xmemdup0-tests: New file.
48961         * tests/test-xmemdup0.c: Likewise.
48962
48963 2008-05-13  Eric Blake  <ebb9@byu.net>
48964
48965         Split xmemdup0 into its own module.
48966         * modules/xmemdup0: New file.
48967         * lib/xmemdup0.h: Likewise.
48968         * lib/xmemdup0.c: Likewise.
48969         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48970         * lib/xalloc.h (xmemdup0): Remove.
48971         * lib/xmalloc.c (xmemdup0): Likewise.
48972
48973 2008-05-13  Eric Blake  <ebb9@byu.net>
48974             Bruno Haible  <bruno@clisp.org>
48975
48976         Reduce number of forks required during autoconf.
48977         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48978         and gl_LIBSOURCES_DIR.
48979         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48980         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48981         m4_syscmd per file.
48982         <m4_foreach_w>: Move...
48983         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48984
48985 2008-05-13  Eric Blake  <ebb9@byu.net>
48986
48987         * gnulib-tool: Fix various comment typos.
48988
48989 2008-05-12  Bruno Haible  <bruno@clisp.org>
48990
48991         Tailor the linebreaking algorithm.
48992         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48993
48994 2008-05-12  Bruno Haible  <bruno@clisp.org>
48995
48996         Update to Unicode 5.0.0.
48997         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48998         LBP_JV, LBP_JT. Redistribute values.
48999         (unilbrk_table): Change size.
49000         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49001         Unicode TR#14 rev. 22.
49002         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49003         LBP_JV, LBP_JT. Redistribute values.
49004         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49005         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49006         Update.
49007         * lib/unilbrk/lbrkprop1.h: Regenerated.
49008         * lib/unilbrk/lbrkprop2.h: Regenerated.
49009         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49010         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49011         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49012         Likewise.
49013         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49014         Likewise.
49015         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49016         result.
49017         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49018         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49019         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49020         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49021         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49022         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49023
49024 2008-05-11  Bruno Haible  <bruno@clisp.org>
49025
49026         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49027
49028 2008-05-11  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49031         * modules/unilbrk/gen-lbrk: New file.
49032
49033 2008-05-11  Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49036         * m4/sha512.m4 (gl_SHA512): Likewise.
49037
49038 2008-05-11  Jim Meyering  <meyering@redhat.com>
49039
49040         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49041         * modules/crypto/sha256: New file.
49042         * modules/crypto/sha512: Likewise.
49043         * lib/sha256.c: Likewise.
49044         * lib/sha256.h: Likewise.
49045         * lib/sha512.c: Likewise.
49046         * lib/sha512.h: Likewise.
49047         * lib/u64.h: Likewise.
49048         * m4/sha256.m4: Likewise.
49049         * m4/sha512.m4: Likewise.
49050         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49051
49052 2008-05-10  Bruno Haible  <bruno@clisp.org>
49053
49054         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49055         (Input/Output <stdio.h>): Add xprintf.
49056         (Signal handling <signal.h>): Add strsignal.
49057         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49058         (Core language properties): Add func.
49059         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49060         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49061         strings.
49062         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49063         (Input/output): New section.
49064         (File system functions): Add openat-die, stat-macros.
49065         (Networking functions): Add sockets.
49066         (Unicode string functions): Add unictype/*.
49067         (Support for building libraries and executables): Add gperf.
49068         (Support for building documentation): Add agpl-3.0.
49069         (Misc): Add nocrash.
49070
49071 2008-05-10  Bruno Haible  <bruno@clisp.org>
49072
49073         * modules/unictype/gen-ctype: New file.
49074
49075 2008-05-10  Jim Meyering  <meyering@redhat.com>
49076
49077         Make chdir-safer.c more efficient on a system with no symlinks.
49078         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49079         also if ELOOP is zero.  Suggested by Bruno Haible.
49080
49081         Make chdir-safer.c slightly safer.
49082         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49083         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49084
49085         Avoid compile failure on systems without ELOOP (like mingw).
49086         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49087         Reported by Bruno Haible.
49088
49089 2008-05-10  Bruno Haible  <bruno@clisp.org>
49090
49091         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49092         (is_utf8_encoding): Use a case-insensitive comparison.
49093         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49094         streq.
49095
49096 2008-05-10  Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49099         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49100         * lib/unilbrk/ulc-common.h (iconv_string_length,
49101         iconv_string_keeping_offsets): Remove declarations.
49102         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49103         Don't include <iconv.h>, streq.h, xsize.h.
49104         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49105         conversion.
49106         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49107         <iconv.h>, streq.h, xsize.h.
49108         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49109         conversion.
49110         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49111         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49112         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49113         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49114
49115 2008-05-10  Bruno Haible  <bruno@clisp.org>
49116
49117         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49118         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49119
49120         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49121         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49122
49123         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49124         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49125
49126         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49127         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49128
49129         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49130         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49131
49132         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49133         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49134
49135         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49136         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49137
49138         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49139         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49140
49141 2008-05-10  Bruno Haible  <bruno@clisp.org>
49142
49143         Split up 'linebreak' module.
49144         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49145         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49146         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49147         modifications.
49148         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49149         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49150         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49151         lib/linebreak.c.
49152         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49153         lib/linebreak.c.
49154         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49155         lib/linebreak.c.
49156         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49157         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49158         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49159         lib/linebreak.c.
49160         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49161         lib/linebreak.c.
49162         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49163         lib/linebreak.c.
49164         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49165         lib/linebreak.c.
49166         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49167         lib/linebreak.c.
49168         * modules/unilbrk/base: New file.
49169         * modules/unilbrk/tables: New file.
49170         * modules/unilbrk/u8-possible-linebreaks: New file.
49171         * modules/unilbrk/u16-possible-linebreaks: New file.
49172         * modules/unilbrk/u32-possible-linebreaks: New file.
49173         * modules/unilbrk/ulc-common: New file.
49174         * modules/unilbrk/ulc-possible-linebreaks: New file.
49175         * modules/unilbrk/u8-width-linebreaks: New file.
49176         * modules/unilbrk/u16-width-linebreaks: New file.
49177         * modules/unilbrk/u32-width-linebreaks: New file.
49178         * modules/unilbrk/ulc-width-linebreaks: New file.
49179         * lib/linebreak.h: Remove file.
49180         * lib/linebreak.c: Remove file.
49181         * m4/linebreak.m4: Remove file.
49182         * modules/linebreak: Remove file.
49183         * NEWS: Mention the changes.
49184
49185 2008-05-09  Eric Blake  <ebb9@byu.net>
49186
49187         Add xmemdup0.
49188         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49189         implementation.
49190         * lib/xmalloc.c (xmemdup0): New C implementation.
49191
49192 2008-05-08  Bruno Haible  <bruno@clisp.org>
49193
49194         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49195
49196 2008-05-07  Eric Blake  <ebb9@byu.net>
49197
49198         Support cross-compilation of <wctype.h>.
49199         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49200         AC_CACHE_CHECK.
49201
49202 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49203
49204         * build-aux/vc-list-files: Add support for bzr.
49205
49206 2008-05-03  Jim Meyering  <meyering@redhat.com>
49207
49208         avoid failed assertion with tight malloc
49209         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49210
49211 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49212
49213         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49214         are needed from arpa/inet.h.
49215         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49216         Reported by Bruno Haible.
49217
49218 2008-05-02  Jim Meyering  <meyering@redhat.com>
49219
49220         avoid compilation error on FreeBSD 6
49221         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49222
49223 2008-05-01  Jim Meyering  <meyering@redhat.com>
49224
49225         useless-if-before-free: correct --help's exit status description
49226         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49227         for one or more matches, etc.  Reported by Bruno Haible.
49228
49229         vc-list-files: make the stand-alone gnulib test work
49230         * modules/vc-list-files-tests (configure.ac):
49231         Define and AC_SUBST abs_aux_dir.
49232         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49233         $(abs_top_srcdir) to each script and having each of them
49234         duplicate the work of setting PATH, set PATH here, using
49235         the new variable, abs_aux_dir instead.
49236         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49237         * tests/test-vc-list-files-git.sh: Likewise.
49238         Reported by Bruno Haible.
49239
49240 2008-05-01  Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49243         reallocation. Rename 'done' to 'found_delimiter'.
49244
49245 2008-05-01  Jim Meyering  <meyering@redhat.com>
49246
49247         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49248         * build-aux/vc-list-files: Use `...`, not $(...).
49249
49250 2008-04-30  Jim Meyering  <meyering@redhat.com>
49251
49252         add tests for vc-list-files
49253         * modules/vc-list-files-tests: New module.
49254         * tests/test-vc-list-files-cvs.sh: New file.
49255         * tests/test-vc-list-files-git.sh: New file.
49256
49257         avoid a warning from gcc
49258         * lib/getndelim2.c (IF_LINT): Define.
49259         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49260
49261         vc-list-files: work properly with build-aux/cvsu, too
49262         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49263         to all cvs-based clauses.
49264
49265         vc-list-files: work properly in the CVS+awk case, too
49266         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49267
49268         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49269         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49270         take more than one file argument, so .  Add quotes, just in case $dir
49271         ever contains a shell meta-character.  Prompted by Soren Hansen in
49272         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49273
49274 2008-04-29  Eric Blake  <ebb9@byu.net>
49275
49276         Optimize getndelim2 to use block operations when possible.
49277         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49278         freadseek, and memchr2.
49279         * lib/getndelim2.c (getndelim2): Use them for block reads.
49280
49281 2008-04-29  Bruno Haible  <bruno@clisp.org>
49282
49283         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49284         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49285         * modules/inet_ntop (Depends-on): Add extensions.
49286         * modules/inet_pton (Depends-on): Likewise.
49287         Reported by Simon Josefsson.
49288
49289 2008-04-29  Jim Meyering  <meyering@redhat.com>
49290
49291         When the is more than one match in a block, match all of them.
49292         * build-aux/useless-if-before-free: Iterate through each block
49293         until there are no more matches.
49294
49295         Fix broken useless-if-before-free script.
49296         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49297         the expression to match cast of argument to free-like function.
49298
49299 2008-04-29  Eric Blake  <ebb9@byu.net>
49300
49301         Use new header.
49302         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49303
49304 2008-04-29  Jim Meyering  <meyering@redhat.com>
49305
49306         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49307         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49308         by gnulib to exist and to declare e.g., inet_ntop.
49309         Don't include "inet_ntop.h", now removed.
49310
49311         * m4/arpa_inet_h.m4: Remove trailing blanks.
49312
49313 2008-04-29  Eric Blake  <ebb9@byu.net>
49314
49315         Silence valgrind on safe reads beyond potential array bounds.
49316         * lib/rawmemchr.valgrind: New file.
49317         * lib/strchrnul.valgrind: Likewise.
49318         * modules/rawmemchr (Files): Distribute new file.
49319         * modules/strchrnul (Files): Likewise.
49320         Suggested by Bruno Haible.
49321
49322 2008-04-29  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49325         (inet_ntop, inet_pton): Change portability warning's wording.
49326         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49327         Invoke gl_CHECK_NEXT_HEADERS.
49328         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49329         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49330         set ARPA_INET_H.
49331         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49332         * modules/arpa_inet (Description): No longer only for systems that
49333         lack it.
49334         (Depends-on): Add include_next.
49335         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49336         HAVE_ARPA_INET_H.
49337
49338 2008-04-29  Jim Meyering  <meyering@redhat.com>
49339
49340         * modules/mkdir (License): Re-license as LGPLv2+.
49341
49342 2008-04-29  Bruno Haible  <bruno@clisp.org>
49343
49344         * modules/rawmemchr (Maintainer): Set to Eric.
49345         * modules/strchrnul (Maintainer): Likewise.
49346
49347 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49348
49349         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49350         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49351
49352         * modules/arpa_inet (arpa/inet.h): Use them.
49353
49354 2008-04-28  Eric Blake  <ebb9@byu.net>
49355
49356         Test getndelim2.
49357         * modules/getndelim2-tests: New file.
49358         * tests/test-getndelim2.c: Likewise.
49359         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49360         stream.
49361         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49362
49363         * MODULES.html.sh: Document new module.
49364
49365 2008-04-20  Bruno Haible  <bruno@clisp.org>
49366
49367         * lib/c-stack.c (die): Use raise.
49368         * modules/c-stack (Depends-on): Add raise.
49369
49370 2008-04-28  Bruno Haible  <bruno@clisp.org>
49371
49372         Expect rpmatch to be declared.
49373         * lib/yesno.c (rpmatch): Remove declaration.
49374
49375         Declare rpmatch.
49376         * lib/stdlib.in.h (rpmatch): New declaration.
49377         * lib/rpmatch.c: Include <stdlib.h> first.
49378         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49379         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49381         HAVE_RPMATCH.
49382         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49384         (Include): Set to <stdlib.h>.
49385         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49386         HAVE_RPMATCH.
49387         * NEWS: Document the change.
49388
49389 2008-04-28  Bruno Haible  <bruno@clisp.org>
49390
49391         Change rpmatch to use nl_langinfo when appropriate.
49392         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49393         (N_): New macro.
49394         (localized_pattern): New function/macro.
49395         (try): Remove match, nomatch arguments. Copy the pattern into safe
49396         memory before caching it.
49397         (rpmatch): Use localized_pattern. Add translator comments.
49398         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49399         Suggested by Eric Blake.
49400         * modules/rpmatch (Depends-on): Add stdbool.
49401
49402 2008-04-28  Eric Blake  <ebb9@byu.net>
49403
49404         Add rawmemchr module, matching glibc.
49405         * modules/string (Makefile.am): New indicator.
49406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49407         * lib/string.in.h (rawmemchr): Declare when appropriate.
49408         * modules/rawmemchr: New file.
49409         * m4/rawmemchr.m4: Likewise.
49410         * lib/rawmemchr.c: Likewise.
49411         * modules/rawmemchr-tests: Likewise.
49412         * tests/test-rawmemchr.c: Likewise.
49413         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49414         module.
49415         * modules/strchrnul (Depends-on): Add rawmemchr.
49416         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49417
49418         Whitespace cleanup.
49419         * tests/test-strchrnul.c: Reindent.
49420         * lib/strchrnul.c: Likewise.
49421
49422         Optimize and test strchrnul.
49423         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49424         * modules/strchrnul-tests: New file.
49425         * tests/test-strchrnul.c: Likewise.
49426
49427         Remove intprops dependency.
49428         * modules/memchr (Depends-on): Remove intprops.
49429         * modules/memrchr (Depends-on): Likewise.
49430         * modules/memchr2 (Depends-on): Likewise.
49431         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49432         * lib/memrchr.c (__memrchr): Likewise.
49433         * lib/memrchr2.c (memchr2): Likewise.
49434         Reported by Simon Josefsson.
49435
49436 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49437
49438         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49439         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49440
49441 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49442
49443         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49444
49445         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49446
49447         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49448
49449         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49450         declarations.
49451         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49452
49453         * m4/inet_pton.m4: Don't check for header files.
49454
49455         * m4/inet_ntop.m4: Don't check for header files.
49456
49457 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49458
49459         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49460         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49461         trigger for cygwin).
49462         Reported by Bruno Haible  <bruno@clisp.org>.
49463
49464 2008-04-28  Bruno Haible  <bruno@clisp.org>
49465
49466         * doc/posix-functions/strdup.texi: Mention mingw problem.
49467
49468 2008-04-27  Bruno Haible  <bruno@clisp.org>
49469
49470         * modules/stat-time-tests (Depends-on): Add sleep.
49471         * tests/test-stat-time.c (force_unlink): New function.
49472         (cleanup): Use it.
49473         (test_mtime): Remove the ctime related tests.
49474         (test_ctime): New function, containing the ctime related tests.
49475         (main): Call test_ctime, except on native Windows platforms.
49476
49477 2008-04-27  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/rpmatch.c (rpmatch): Add some comments.
49480         Reported by James Youngman <jay@gnu.org>.
49481
49482 2008-04-27  Bruno Haible  <bruno@clisp.org>
49483
49484         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49485         quiet NaNs.
49486
49487 2008-04-27  Bruno Haible  <bruno@clisp.org>
49488
49489         Make test-yesno.sh work on mingw.
49490         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49491         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49492         (main): Set stdin to binary mode.
49493         * modules/yesno-tests (Depends-on): Add binary-io.
49494
49495 2008-04-27  Bruno Haible  <bruno@clisp.org>
49496
49497         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49498         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49499         argument that lie outside the IEEE 854 domain.
49500         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49501         (gl_ISFINITE): Use it.
49502         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49503
49504 2008-04-27  Bruno Haible  <bruno@clisp.org>
49505
49506         Allow local renaming in config.h.
49507         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49508
49509 2008-04-27  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/memchr.c (__memchr): Change type of 'i'.
49512         * lib/memchr2.c (memchr2): Likewise.
49513
49514 2008-04-26  Eric Blake  <ebb9@byu.net>
49515         and Bruno Haible  <bruno@clisp.org>
49516
49517         Optimize and test memrchr.
49518         * modules/memrchr (Depends-on): Add intprops.
49519         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49520         * modules/memrchr-tests: New file.
49521         * tests/test-memrchr.c: New file.
49522
49523 2008-04-26  Bruno Haible  <bruno@clisp.org>
49524
49525         Add tentative support for DragonFly BSD.
49526         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49527         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49528         fp.
49529         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49530         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49531         * lib/fpurge.c (fpurge): Likewise.
49532         * lib/freadable.c (freaadable): Likewise.
49533         * lib/freadahead.c (freadahead): Likewise.
49534         * lib/freading.c (freading): Likewise.
49535         * lib/freadptr.c (freadptr): Likewise.
49536         * lib/freadseek.c (freadptrinc): Likewise.
49537         * lib/fseeko.c (fseeko): Likewise.
49538         * lib/fseterr.c (fseterr): Likewise.
49539         * lib/fwritable.c (fwritable): Likewise.
49540         * lib/fwriting.c (fwriting): Likewise.
49541
49542 2008-04-26  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/stdio-impl.h: New file.
49545         * lib/fbufmode.c: Include stdio-impl.h.
49546         (fbufmode): Use fp_, remove redundant #defines.
49547         * lib/fflush.c: Include stdio-impl.h.
49548         (clear_ungetc_buffer): Remove redundant #defines.
49549         * lib/fpurge.c: Include stdio-impl.h.
49550         (fpurge): Remove redundant #defines.
49551         * lib/freadable.c: Include stdio-impl.h.
49552         (freadable): Remove redundant #defines.
49553         * lib/freadahead.c: Include stdio-impl.h.
49554         (freadahead): Remove redundant #defines.
49555         * lib/freading.c: Include stdio-impl.h.
49556         (freading): Remove redundant #defines.
49557         * lib/freadptr.c: Include stdio-impl.h.
49558         (freadptr): Remove redundant #defines.
49559         * lib/freadseek.c: Include stdio-impl.h.
49560         (freadptrinc): Remove redundant #defines.
49561         * lib/fseeko.c: Include stdio-impl.h.
49562         (rpl_fseeko): Remove redundant #defines.
49563         * lib/fseterr.c: Include stdio-impl.h.
49564         (fseterr): Remove redundant #defines.
49565         * lib/fwritable.c: Include stdio-impl.h.
49566         (fwritable: Remove redundant #defines.
49567         * lib/fwriting.c: Include stdio-impl.h.
49568         (fwriting): Remove redundant #defines.
49569         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49570         * modules/fflush (Files): Likewise.
49571         * modules/fpurge (Files): Likewise.
49572         * modules/freadable (Files): Likewise.
49573         * modules/freadahead (Files): Likewise.
49574         * modules/freading (Files): Likewise.
49575         * modules/freadptr (Files): Likewise.
49576         * modules/freadseek (Files): Likewise.
49577         * modules/fseeko (Files): Likewise.
49578         * modules/fseterr (Files): Likewise.
49579         * modules/fwritable (Files): Likewise.
49580         * modules/fwriting (Files): Likewise.
49581
49582 2008-04-26  Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49585         restore_seek_optimization, update_fpos_cache): New functions, extracted
49586         from rpl_fflush.
49587         (rpl_fflush): Use them.
49588         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49589         (gl_REPLACE_FFLUSH): Use it.
49590
49591 2008-04-26  Bruno Haible  <bruno@clisp.org>
49592
49593         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49594         on Solaris.
49595         * tests/test-xstrtoimax.sh: Likewise.
49596         * tests/test-xstrtoumax.sh: Likewise.
49597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49598
49599 2008-04-26  Bruno Haible  <bruno@clisp.org>
49600
49601         * modules/memchr-tests: New file.
49602         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49603
49604 2008-04-26  Eric Blake  <ebb9@byu.net>
49605             Bruno Haible  <bruno@clisp.org>
49606
49607         * lib/memchr.c: Include intprops.h.
49608         (__memchr): Optimize parallel detection of matching bytes. Rename local
49609         variables. Add explanatory comments.
49610
49611 2008-04-26  Bruno Haible  <bruno@clisp.org>
49612
49613         Fix module 'memchr', broken since 2000-10-28.
49614         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49615
49616 2008-04-26  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49619         comments.
49620
49621 2008-04-25  Eric Blake  <ebb9@byu.net>
49622
49623         Use native fstatat on cygwin 1.7.0.
49624         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49625         first.
49626
49627 2008-04-23  Eric Blake  <ebb9@byu.net>
49628
49629         Improve memchr2 performance.
49630         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49631         NUL bytes.
49632         * modules/memchr2 (Depends-on): Use intprops.h.
49633
49634 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49635
49636         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49637         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49638         <blp@cs.stanford.edu>.
49639
49640 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49641
49642         * lib/arpa_inet.in.h: New file.
49643
49644         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49645         (Makefile.am): Sed in substitute header file.
49646
49647         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49648         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49649
49650         * modules/inet_ntop (configure.ac): Use
49651         gl_ARPA_INET_MODULE_INDICATOR.
49652
49653         * modules/inet_pton (configure.ac): Use
49654         gl_ARPA_INET_MODULE_INDICATOR.
49655
49656 2008-04-22  Jim Meyering  <meyering@redhat.com>
49657
49658         * modules/verify (License): Re-license as LGPLv2+.
49659
49660 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49661
49662         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49663         parameter to void* as per POSIX standard (MinGW uses char*).
49664
49665 2008-04-21  Bruno Haible  <bruno@clisp.org>
49666
49667         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49668         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49669         Define to replacements if REPLACE_ISWCNTRL is 1.
49670         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49671         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49672         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49673         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49674         what it fixes.
49675         * doc/posix-functions/iswalpha.texi: Likewise.
49676         * doc/posix-functions/iswblank.texi: Likewise.
49677         * doc/posix-functions/iswcntrl.texi: Likewise.
49678         * doc/posix-functions/iswdigit.texi: Likewise.
49679         * doc/posix-functions/iswgraph.texi: Likewise.
49680         * doc/posix-functions/iswlower.texi: Likewise.
49681         * doc/posix-functions/iswprint.texi: Likewise.
49682         * doc/posix-functions/iswpunct.texi: Likewise.
49683         * doc/posix-functions/iswspace.texi: Likewise.
49684         * doc/posix-functions/iswupper.texi: Likewise.
49685         * doc/posix-functions/iswxdigit.texi: Likewise.
49686         Reported by Alain Guibert.
49687
49688 2008-04-21  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49691         Patch by Alain Guibert.
49692
49693 2008-04-21  Bruno Haible  <bruno@clisp.org>
49694
49695         Fix test failures on mingw.
49696         * tests/test-xstrtol.c (print_no_progname): New function.
49697         (main): Install it in error_print_progname hook.
49698         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49699         * tests/test-xstrtoimax.sh: Likewise.
49700         * tests/test-xstrtoumax.sh: Likewise.
49701
49702 2008-04-21  Bruno Haible  <bruno@clisp.org>
49703
49704         Fix test failure on mingw.
49705         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49706
49707 2008-04-21  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49710         Actually assign a value.
49711
49712 2008-04-20  Bruno Haible  <bruno@clisp.org>
49713
49714         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49715         take 2.
49716         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49717         'canonicalize-lgpl' module is also used.
49718         * lib/canonicalize-lgpl.c: Undo last change.
49719         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49720
49721 2008-04-20  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49724         config.h. Provide _mkdir based fallback for mingw.
49725         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49726         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49727         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49728         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49729         rather than defining mkdir in config.h.
49730         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49731         (gl_SYS_STAT_H_DEFAULTS): New macro.
49732         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49733         HAVE_IO_H any more.
49734         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49735         HAVE_DECL_MKDIR and HAVE_IO_H.
49736
49737 2008-04-20  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/isapipe.c: Port to native Windows platforms.
49740
49741 2008-04-20  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49744
49745 2008-04-21  Eric Blake  <ebb9@byu.net>
49746
49747         Work around preprocessors that don't handle UINTMAX_MAX.
49748         * lib/memchr2.c (memchr2): Avoid embedded #if.
49749         Reported by Alain Guibert, fix suggested by Bruno Haible.
49750
49751 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49752
49753         * doc/posix-functions/strftime.texi (strftime): Explain better
49754         Windows incompatibility.  Suggested by Micah Cowan
49755         <micah@cowan.name>.
49756
49757 2008-04-20  Bruno Haible  <bruno@clisp.org>
49758
49759         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49760         unistr/u8-mblen.
49761
49762 2008-04-20  Bruno Haible  <bruno@clisp.org>
49763
49764         Fix test failure on platforms with non-GNU iconv.
49765         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49766         (U_TO_U8): Use it, rather than u16_to_u8.
49767         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49768         units at the end of the input string.
49769         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49770
49771 2008-04-20  Bruno Haible  <bruno@clisp.org>
49772
49773         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49774         when the resulting length is 0.
49775         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49776
49777 2008-04-20  Bruno Haible  <bruno@clisp.org>
49778
49779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49780         works.
49781         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49782
49783 2008-04-20  Bruno Haible  <bruno@clisp.org>
49784
49785         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49786         * modules/tsearch-tests (configure.ac): Test for initstate function.
49787
49788 2008-04-20  Bruno Haible  <bruno@clisp.org>
49789
49790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49791         for nlink_t if missing.
49792         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49793
49794 2008-04-19  Bruno Haible  <bruno@clisp.org>
49795
49796         Work around snprintf bug on Linux libc5.
49797         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49799         gl_SNPRINTF_SIZE1.
49800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49801         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49802         that test failed.
49803         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49804         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49805         * modules/snprintf (Files): Add m4/printf.m4.
49806         * modules/vsnprintf (Files): Likewise.
49807         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49808         * doc/posix-functions/vsnprintf.texi: Likewise.
49809
49810 2008-04-19  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49813         from 0.0058 to less than 10^-7.
49814
49815 2008-04-19  Bruno Haible  <bruno@clisp.org>
49816
49817         Fix rounding when a precision is given.
49818         * lib/vasnprintf.c (is_borderline): New function.
49819         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49820         9...9x.
49821         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49822         %e, %g.
49823         * tests/test-vasprintf-posix.c (test_function): Likewise.
49824         * tests/test-snprintf-posix.h (test_function): Likewise.
49825         * tests/test-sprintf-posix.h (test_function): Likewise.
49826         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49827         * tests/test-printf-posix.h (test_function): Likewise.
49828         * tests/test-printf-posix.output: Update.
49829         Reported by John Darrington <john@darrington.wattle.id.au> via
49830         Ben Pfaff <blp@cs.stanford.edu>.
49831
49832 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49833
49834         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49835         Suggested by Bruno Haible <bruno@clisp.org>.
49836
49837 2008-04-17  Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49840         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49841         implementation.
49842         Patch by Bruce Merry <bmerry@gmail.com>.
49843
49844 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49845
49846         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49847         doesn't work under Windows.
49848
49849 2008-04-16  Bruno Haible  <bruno@clisp.org>
49850
49851         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49852         New macros.
49853         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49854         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49855         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49856         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49857         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49858         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49859         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49860         macros.
49861         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49862         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49863         Northern Sotho, Uighur.
49864
49865 2008-04-16  Bruno Haible  <bruno@clisp.org>
49866
49867         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49868         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49869         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49870         Reported by Daniel Bergström <daniel@octocode.com>.
49871
49872 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49873             Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49876         function.
49877         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49878         New functions, mostly extracted from gl_locale_name_default.
49879         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49880
49881 2008-04-16  Eric Blake  <ebb9@byu.net>
49882
49883         Adjust strtod detection to catch glibc 2.7 bug.
49884         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49885         Reported by John Gatewood Ham.
49886
49887 2008-04-16  Bruno Haible  <bruno@clisp.org>
49888
49889         Add tentative support for Linux libc5.
49890         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49891         * lib/fpurge.c (fpurge): Likewise.
49892         * lib/freadable.c (freadable): Likewise.
49893         * lib/freadahead.c (freadahead): Likewise.
49894         * lib/freading.c (freading): Likewise.
49895         * lib/freadptr.c (freadptr): Likewise.
49896         * lib/freadseek.c (freadptrinc): Likewise.
49897         * lib/fseeko.c (rpl_fseeko): Likewise.
49898         * lib/fseterr.c (fseterr): Likewise.
49899         * lib/fwritable.c (fwritable): Likewise.
49900         * lib/fwriting.c (fwriting): Likewise.
49901         Reported by Alain Guibert <alguibert+bts@free.fr>.
49902
49903 2008-04-15  Bruno Haible  <bruno@clisp.org>
49904
49905         * modules/mathl (configure.ac): Define module indicator.
49906
49907 2008-04-15  Bruno Haible  <bruno@clisp.org>
49908
49909         * lib/logl.c (logl): Remove unused variables.
49910
49911 2008-04-15  Bruno Haible  <bruno@clisp.org>
49912
49913         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49914         fails.
49915
49916 2008-04-15  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/trim.c (trim2): Fix argument of isspace() macro.
49919
49920 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49921
49922         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49923         to 0.
49924         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49925
49926 2008-04-14  Bruno Haible  <bruno@clisp.org>
49927
49928         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49929         AC_LANG_PROGRAM argument.
49930         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49931         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49933         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49934         * m4/math_h.m4 (gl_MATH_H): Likewise.
49935         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49937         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49938         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49939         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49940         * m4/regex.m4 (gl_REGEX): Likewise.
49941         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49942         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49944         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49945         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49946         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49949
49950 2008-04-14  Jim Meyering  <meyering@redhat.com>
49951
49952         test-strtod: fix typos: s/abs/fabs/
49953         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49954
49955 2008-04-13  Bruno Haible  <bruno@clisp.org>
49956
49957         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49958         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49959         module is also used and while not building the reloc-wrapper.
49960
49961 2008-04-13  Bruno Haible  <bruno@clisp.org>
49962
49963         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49964
49965 2008-04-13  Bruno Haible  <bruno@clisp.org>
49966
49967         Fix AIX compilation failure introduced on 2008-04-02.
49968         * tests/test-frexp.c (exp): Undefine before redefining.
49969         * tests/test-frexpl.c (exp): Likewise.
49970
49971 2008-04-13  Bruno Haible  <bruno@clisp.org>
49972
49973         Work around a HP-UX stdio bug.
49974         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49975         * tests/test-ftello.c (main): Likewise.
49976         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49977         * doc/posix-functions/ftello.texi: Likewise.
49978
49979 2008-04-13  Bruno Haible  <bruno@clisp.org>
49980
49981         Make test-signbit pass on HP-UX/hppa.
49982         * tests/test-signbit.c (minus_zerol): New variable.
49983         (test_signbitl): Use it.
49984
49985 2008-04-13  Bruno Haible  <bruno@clisp.org>
49986
49987         Make truncl work on OSF/1 4.0.
49988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49989         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49990         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49992         HAVE_DECL_TRUNCL.
49993         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49994         HAVE_DECL_TRUNCL.
49995         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49996
49997 2008-04-13  Bruno Haible  <bruno@clisp.org>
49998
49999         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50000
50001 2008-04-13  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50004         expression, so as to avoid HP-UX 11 cc compiler bug.
50005
50006 2008-04-13  Bruno Haible  <bruno@clisp.org>
50007
50008         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50009
50010 2008-04-13  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/git-merge-changelog.c: Remove empty declaration outside of
50013         functions.
50014
50015 2008-04-13  Bruno Haible  <bruno@clisp.org>
50016
50017         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50018
50019 2008-04-13  Bruno Haible  <bruno@clisp.org>
50020
50021         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50022         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50024         also if it exists but lacks definitions of the SHUT_* macros.
50025         * modules/sys_socket (Description): Update.
50026         Reported by Elbert Pol <e.pol@chello.nl>.
50027
50028 2008-04-13  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/localcharset.c (OS2): Don't redefine if already defined.
50031         Reported by Elbert Pol <e.pol@chello.nl>.
50032
50033 2008-04-13  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/binary-io.h [__EMX__]: Include <io.h>.
50036         Reported by Elbert Pol <e.pol@chello.nl>.
50037
50038 2008-04-12  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/fpucw.h: Enable the definitions also for x86_64.
50041         Needed for NetBSD/x86_64.
50042         Reported by Thomas Klausner <tk@giga.or.at>.
50043
50044 2008-04-12  Bruno Haible  <bruno@clisp.org>
50045
50046         * tests/test-strtod.c: Include isnand.h.
50047         (main): Use isnand instead of isnan.
50048         Reported by Jim Meyering.
50049
50050 2008-04-12  Bruno Haible  <bruno@clisp.org>
50051
50052         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50053         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50054
50055 2008-04-12  Jim Meyering  <meyering@redhat.com>
50056
50057         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50058
50059 2008-04-12  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50062         Reported by Elbert Pol <e.pol@chello.nl>.
50063
50064 2008-04-12  Eric Blake  <ebb9@byu.net>
50065
50066         Work around Solaris 10 math.h bug.
50067         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50068         (gl_MATH_H_DEFAULTS): Set up default.
50069         * modules/math (Makefile.am): Replace new indicators.
50070         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50071         * tests/test-math.c (main): Test this.
50072         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50073         * doc/posix-headers/math.texi (math.h): Mention bug.
50074         Reported by Nelson H. F. Beebe and Jim Meyering.
50075
50076 2008-04-11  Bruno Haible  <bruno@clisp.org>
50077
50078         Adapt to future versions of Apple GCC.
50079         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50080         Reported by Peter O'Gorman <peter@pogma.com>.
50081
50082 2008-04-11  Bruno Haible  <bruno@clisp.org>
50083
50084         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50085
50086 2008-04-11  Bruno Haible  <bruno@clisp.org>
50087
50088         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50089
50090         * modules/getaddrinfo-tests (Makefile.am): Define
50091         test_getaddrinfo_LDADD.
50092
50093 2008-04-11  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50096         (init): Fix syntax error.
50097         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50098         is declared.
50099
50100 2008-04-11  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50103         * modules/glob (Depends-on): Add stdbool.
50104
50105 2008-04-11  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/trim.c: Include <string.h>.
50108
50109 2008-04-11  Eric Blake  <ebb9@byu.net>
50110
50111         Avoid compile failure on OS/2.
50112         * lib/regex_internal.h (internal_function): Disable optimization
50113         on OS/2 (__EMX__), where it caused compiler error.
50114         Reported by Elbert Pol.
50115
50116 2008-04-11  Bruno Haible  <bruno@clisp.org>
50117
50118         Flush the standard error stream before aborting. Needed on mingw.
50119         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50120         * tests/test-array_list.c (ASSERT): Likewise.
50121         * tests/test-array_oset.c (ASSERT): Likewise.
50122         * tests/test-avltree_list.c (ASSERT): Likewise.
50123         * tests/test-avltree_oset.c (ASSERT): Likewise.
50124         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50125         * tests/test-binary-io.c (ASSERT): Likewise.
50126         * tests/test-byteswap.c (ASSERT): Likewise.
50127         * tests/test-c-ctype.c (ASSERT): Likewise.
50128         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50129         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50130         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50131         * tests/test-c-strstr.c (ASSERT): Likewise.
50132         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50133         * tests/test-canonicalize.c (ASSERT): Likewise.
50134         * tests/test-carray_list.c (ASSERT): Likewise.
50135         * tests/test-ceilf1.c (ASSERT): Likewise.
50136         * tests/test-ceilf2.c (ASSERT): Likewise.
50137         * tests/test-ceill.c (ASSERT): Likewise.
50138         * tests/test-count-one-bits.c (ASSERT): Likewise.
50139         * tests/test-fbufmode.c (ASSERT): Likewise.
50140         * tests/test-fflush2.c (ASSERT): Likewise.
50141         * tests/test-floorf1.c (ASSERT): Likewise.
50142         * tests/test-floorf2.c (ASSERT): Likewise.
50143         * tests/test-floorl.c (ASSERT): Likewise.
50144         * tests/test-fopen.c (ASSERT): Likewise.
50145         * tests/test-fpending.c (ASSERT): Likewise.
50146         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50147         * tests/test-fpurge.c (ASSERT): Likewise.
50148         * tests/test-freadable.c (ASSERT): Likewise.
50149         * tests/test-freadahead.c (ASSERT): Likewise.
50150         * tests/test-freading.c (ASSERT): Likewise.
50151         * tests/test-freadptr.c (ASSERT): Likewise.
50152         * tests/test-freadptr2.c (ASSERT): Likewise.
50153         * tests/test-freadseek.c (ASSERT): Likewise.
50154         * tests/test-freopen.c (ASSERT): Likewise.
50155         * tests/test-frexp.c (ASSERT): Likewise.
50156         * tests/test-frexpl.c (ASSERT): Likewise.
50157         * tests/test-fseek.c (ASSERT): Likewise.
50158         * tests/test-fseeko.c (ASSERT): Likewise.
50159         * tests/test-fstrcmp.c (ASSERT): Likewise.
50160         * tests/test-ftell.c (ASSERT): Likewise.
50161         * tests/test-ftello.c (ASSERT): Likewise.
50162         * tests/test-func.c (ASSERT): Likewise.
50163         * tests/test-fwritable.c (ASSERT): Likewise.
50164         * tests/test-fwriting.c (ASSERT): Likewise.
50165         * tests/test-getdelim.c (ASSERT): Likewise.
50166         * tests/test-getline.c (ASSERT): Likewise.
50167         * tests/test-i-ring.c (ASSERT): Likewise.
50168         * tests/test-iconv-utf.c (ASSERT): Likewise.
50169         * tests/test-iconv.c (ASSERT): Likewise.
50170         * tests/test-isfinite.c (ASSERT): Likewise.
50171         * tests/test-isnand.c (ASSERT): Likewise.
50172         * tests/test-isnanf.c (ASSERT): Likewise.
50173         * tests/test-isnanl.h (ASSERT): Likewise.
50174         * tests/test-ldexpl.c (ASSERT): Likewise.
50175         * tests/test-linked_list.c (ASSERT): Likewise.
50176         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50177         * tests/test-localename.c (ASSERT): Likewise.
50178         * tests/test-lseek.c (ASSERT): Likewise.
50179         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50180         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50181         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50182         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50183         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50184         * tests/test-mbschr.c (ASSERT): Likewise.
50185         * tests/test-mbscspn.c (ASSERT): Likewise.
50186         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50187         * tests/test-mbspbrk.c (ASSERT): Likewise.
50188         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50189         * tests/test-mbsrchr.c (ASSERT): Likewise.
50190         * tests/test-mbsspn.c (ASSERT): Likewise.
50191         * tests/test-mbsstr1.c (ASSERT): Likewise.
50192         * tests/test-mbsstr2.c (ASSERT): Likewise.
50193         * tests/test-mbsstr3.c (ASSERT): Likewise.
50194         * tests/test-memchr2.c (ASSERT): Likewise.
50195         * tests/test-memmem.c (ASSERT): Likewise.
50196         * tests/test-open.c (ASSERT): Likewise.
50197         * tests/test-printf-frexp.c (ASSERT): Likewise.
50198         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50199         * tests/test-printf-posix.c (ASSERT): Likewise.
50200         * tests/test-quotearg.c (ASSERT): Likewise.
50201         * tests/test-rbtree_list.c (ASSERT): Likewise.
50202         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50203         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50204         * tests/test-round1.c (ASSERT): Likewise.
50205         * tests/test-roundf1.c (ASSERT): Likewise.
50206         * tests/test-roundl.c (ASSERT): Likewise.
50207         * tests/test-signbit.c (ASSERT): Likewise.
50208         * tests/test-sleep.c (ASSERT): Likewise.
50209         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50210         * tests/test-snprintf.c (ASSERT): Likewise.
50211         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50212         * tests/test-stat-time.c (ASSERT): Likewise.
50213         * tests/test-strcasestr.c (ASSERT): Likewise.
50214         * tests/test-strerror.c (ASSERT): Likewise.
50215         * tests/test-striconv.c (ASSERT): Likewise.
50216         * tests/test-striconveh.c (ASSERT): Likewise.
50217         * tests/test-striconveha.c (ASSERT): Likewise.
50218         * tests/test-strsignal.c (ASSERT): Likewise.
50219         * tests/test-strstr.c (ASSERT): Likewise.
50220         * tests/test-strtod.c (ASSERT): Likewise.
50221         * tests/test-trunc1.c (ASSERT): Likewise.
50222         * tests/test-trunc2.c (ASSERT): Likewise.
50223         * tests/test-truncf1.c (ASSERT): Likewise.
50224         * tests/test-truncf2.c (ASSERT): Likewise.
50225         * tests/test-truncl.c (ASSERT): Likewise.
50226         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50227         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50228         * tests/test-vasnprintf.c (ASSERT): Likewise.
50229         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50230         * tests/test-vasprintf.c (ASSERT): Likewise.
50231         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50232         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50233         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50234         * tests/test-vsnprintf.c (ASSERT): Likewise.
50235         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50236         * tests/test-wcwidth.c (ASSERT): Likewise.
50237         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50238         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50239         * tests/test-xvasprintf.c (ASSERT): Likewise.
50240         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50241         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50242         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50243         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50244         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50245         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50246         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50247         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50248         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50249         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50250         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50251         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50252         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50253         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50254         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50255         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50256         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50257         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50258         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50259         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50260         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50261         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50262         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50263         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50264         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50265         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50266         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50267         * tests/unictype/test-combining.c (ASSERT): Likewise.
50268         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50269         * tests/unictype/test-digit.c (ASSERT): Likewise.
50270         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50271         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50272         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50273         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50274         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50275         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50276         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50277         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50278         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50279         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50280         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50281         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50282         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50283         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50284         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50285         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50286         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50287         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50288         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50289         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50290         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50291         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50292         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50293         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50294         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50295         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50296         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50297         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50298         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50299         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50300         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50301         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50302         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50303         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50304         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50305         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50306         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50307         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50308         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50309         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50310         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50311         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50312         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50313         Reported by Eric Blake.
50314
50315 2008-04-11  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/wchar.in.h: Tweak comment.
50318
50319 2008-04-11  Bruno Haible  <bruno@clisp.org>
50320
50321         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50322         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50323         gl_COMMON.
50324         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50325
50326 2008-04-11  Bruno Haible  <bruno@clisp.org>
50327
50328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50329
50330 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50331
50332         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50333         of attempting to use non-existing /dev/*random.  Based on patch
50334         from Adam Strzelecki <ono@java.pl> in
50335         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50336
50337 2008-04-08  Bruno Haible  <bruno@clisp.org>
50338
50339         Add tentative support for emx+gcc.
50340         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50341         * lib/fpurge.c (fpurge): Likewise.
50342         * lib/freadable.c (freadable): Likewise.
50343         * lib/freadahead.c (freadahead): Likewise.
50344         * lib/freading.c (freading): Likewise.
50345         * lib/freadptr.c (freadptr): Likewise.
50346         * lib/freadseek.c (freadptrinc): Likewise.
50347         * lib/fseeko.c (rpl_fseeko): Likewise.
50348         * lib/fseterr.c (fseterr): Likewise.
50349         * lib/fwritable.c (fwritable): Likewise.
50350         * lib/fwriting.c (fwriting): Likewise.
50351         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50352
50353 2008-04-09  Eric Blake  <ebb9@byu.net>
50354
50355         Avoid some autoconf warnings.
50356         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50357         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50358         * m4/afs.m4 (gl_AFS): Likewise.
50359         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50360         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50361         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50362         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50363         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50364         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50365         (AC_CHECK_DECLS_ONCE): Likewise.
50366         Rename file...
50367         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50368         gnulib-tool requires autoconf 2.59 or better.
50369         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50370
50371 2008-04-08  Eric Blake  <ebb9@byu.net>
50372
50373         Use 'git describe --match' if present (added in git 1.5.5).
50374         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50375         if possible.
50376
50377 2008-04-08  Bruno Haible  <bruno@clisp.org>
50378
50379         Add tentative support for OpenServer.
50380         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50381         _ptr, _cnt.
50382         * lib/fpurge.c (fpurge): Likewise.
50383         * lib/freadable.c (freadable): Likewise.
50384         * lib/freadahead.c (freadahead): Likewise.
50385         * lib/freading.c (freading): Likewise.
50386         * lib/freadptr.c (freadptr): Likewise.
50387         * lib/freadseek.c (freadptrinc): Likewise.
50388         * lib/fseeko.c (rpl_fseeko): Likewise.
50389         * lib/fseterr.c (fseterr): Likewise.
50390         * lib/fwritable.c (fwritable): Likewise.
50391         * lib/fwriting.c (fwriting): Likewise.
50392         Reported by Roger Cornelius <rac@tenzing.org> and
50393         Brian K. White <brian@aljex.com>.
50394
50395 2008-04-06  Jim Meyering  <meyering@redhat.com>
50396
50397         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50398
50399 2008-04-06  Bruno Haible  <bruno@clisp.org>
50400
50401         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50402         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50403         * tests/test-printf-posix.sh: Likewise.
50404         * tests/test-vfprintf-posix.sh: Likewise.
50405         * tests/test-vprintf-posix.sh: Likewise.
50406         * tests/test-xprintf-posix.sh: Likewise.
50407
50408 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50409
50410         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50411         hide error from 'ls', needed on OS/2.
50412         Report by Elbert Pol <elbert.pol@gmail.com>.
50413
50414 2008-04-04  Eric Blake  <ebb9@byu.net>
50415
50416         Make test-fseeko.c failures meaningful.
50417         * tests/test-fseeko.c: Print line number on failure.
50418         * tests/test-fseek.c: Likewise.
50419         Reported by Nelson H. F. Beebe.
50420
50421         Improve strtod bug detection check.
50422         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50423         required for Solaris 10.
50424         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50425
50426 2008-04-04  Bruno Haible  <bruno@clisp.org>
50427
50428         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50429         by m4/setenv.m4.
50430
50431 2008-04-03  Eric Blake  <ebb9@byu.net>
50432
50433         Ensure sane .version contents.
50434         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50435         version string.
50436         * build-aux/git-version-gen: Improve documentation.
50437
50438         Make GNU make output nicer.
50439         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50440         MAKECMDGOALS to enforce message for all command line targets.  Set
50441         srcdir for use in maint.mk.
50442
50443         Another maintainer tweak.
50444         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50445         a target that regenerates version.
50446
50447 2008-04-03  Jim Meyering  <meyering@redhat.com>
50448
50449         vc-list-files: don't cause coreutils "make po-check" failure
50450         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50451
50452 2008-04-03  Eric Blake  <ebb9@byu.net>
50453
50454         Allow VPATH usage of vc-list-files.
50455         * build-aux/vc-list-files (scriptversion): Add timestamp.
50456         (options): Add --help, --version, -C.
50457         (CVS): Support installed cvsu.
50458
50459 2008-04-02  Bruno Haible  <bruno@clisp.org>
50460
50461         Avoid some "statement with no effect" warnings from gcc.
50462         * tests/test-wctype.c (main): Explicitly ignore unused values.
50463         Reported by Jim Meyering.
50464
50465 2008-04-02  Jim Meyering  <meyering@redhat.com>
50466
50467         Avoid some warnings from "gcc -Wshadow".
50468         * tests/test-frexp.c (exp): Define to a different identifier.
50469         * tests/test-frexpl.c (exp): Likewise.
50470
50471 2008-04-03  Jim Meyering  <meyering@redhat.com>
50472
50473         bootstrap: remove dangling *.[ch] symlinks from lib
50474         * build-aux/bootstrap [dangling symlink removal]: Move find's
50475         -depth option to precede all others, to avoid a warning.
50476         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50477
50478 2008-04-02  Bruno Haible  <bruno@clisp.org>
50479
50480         Avoid some warnings from "gcc -Wshadow".
50481         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50482         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50483         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50484         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50485         Reported by Jim Meyering.
50486
50487 2008-04-01  Bruno Haible  <bruno@clisp.org>
50488
50489         Fix test to work on IRIX 6.5 with cc.
50490         * tests/test-math.c (numeric_equal): New function.
50491         (main): Use it.
50492
50493 2008-04-01  Bruno Haible  <bruno@clisp.org>
50494
50495         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50496
50497 2008-04-01  Bruno Haible  <bruno@clisp.org>
50498
50499         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50500         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50501         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50502         (Depends-on): Remove math.
50503
50504         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50505         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50506         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50507         (Depends-on): Remove math.
50508
50509         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50510         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50511         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50512         (Depends-on): Remove math.
50513         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50514         (Depends-on): Remove math.
50515
50516         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50517         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50518         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50519         (Depends-on): Remove math.
50520         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50521         (Depends-on): Remove math.
50522
50523         * tests/test-round1.c: Include nan.h.
50524         (main): Use NaNd instead of NAN.
50525         * modules/round-tests (Files): Add tests/nan.h.
50526
50527         * tests/test-trunc1.c: Include nan.h.
50528         (main): Use NaNd instead of NAN.
50529         * modules/trunc-tests (Files): Add tests/nan.h.
50530
50531         * tests/test-roundf1.c: Include nan.h.
50532         (main): Use NaNf instead of NAN.
50533         * modules/roundf-tests (Files): Add tests/nan.h.
50534
50535         * tests/test-truncf1.c: Include nan.h.
50536         (main): Use NaNf instead of NAN.
50537         * modules/truncf-tests (Files): Add tests/nan.h.
50538
50539         * tests/test-ceilf1.c: Include nan.h.
50540         (main): Use NaNf instead of NAN.
50541         * modules/ceilf-tests (Files): Add tests/nan.h.
50542
50543         * tests/test-floorf1.c: Include nan.h.
50544         (main): Use NaNf instead of NAN.
50545         * modules/floorf-tests (Files): Add tests/nan.h.
50546
50547         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50548         (main): Use NaNf instead of NAN.
50549         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50550
50551         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50552         (main): Use NaNd instead of NAN.
50553         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50554
50555         * tests/test-frexp.c: Include nan.h.
50556         (main): Use NaNd instead of NAN.
50557         * modules/frexp-tests (Files): Add tests/nan.h.
50558
50559         * lib/isnan.c: Don't include <math.h>.
50560         (FUNC): Don't use NAN macro.
50561         * modules/isnand-nolibm (Depends-on): Remove math.
50562         * modules/isnanf-nolibm (Depends-on): Remove math.
50563         * modules/isnanl (Depends-on): Remove math.
50564         * modules/isnanl-nolibm (Depends-on): Remove math.
50565
50566         * tests/nan.h: New file.
50567
50568 2008-04-01  Eric Blake  <ebb9@byu.net>
50569
50570         Fix typos.
50571         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50572         values to be the right type.
50573
50574         For now, cater to gnulib strtod inaccuracies.
50575         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50576         fractional results.  While not as nice from a QoI perspective, it
50577         is a quicker patch than correctly implementing decimal to binary
50578         rounding.
50579
50580 2008-03-31  Eric Blake  <ebb9@byu.net>
50581
50582         Guarantee a definition of NAN.
50583         * lib/math.in.h (NAN): Define if missing.
50584         * tests/test-math.c (main): Test it.
50585         * doc/posix-headers/math.texi (math.h): Document this.
50586         * lib/isnan.c (rpl_isnand): Use it.
50587         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50588         * tests/test-floorf1.c (NaN): Likewise.
50589         * tests/test-frexp.c (NaN): Likewise.
50590         * tests/test-isnand.c (NaN): Likewise.
50591         * tests/test-isnanf.c (NaN): Likewise.
50592         * tests/test-round1.c (NaN): Likewise.
50593         * tests/test-roundf1.c (NaN): Likewise.
50594         * tests/test-snprintf-posix.h (NaN): Likewise.
50595         * tests/test-sprintf-posix.h (NaN): Likewise.
50596         * tests/test-trunc1.c (NaN): Likewise.
50597         * tests/test-truncf1.c (NaN): Likewise.
50598         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50599         * tests/test-vasprintf-posix.c (NaN): Likewise.
50600         * modules/isnand-nolibm (Depends-on): Add math.
50601         * modules/isnanf-nolibm (Depends-on): Likewise.
50602         * modules/isnanl (Depends-on): Likewise.
50603         * modules/isnanl-nolibm (Depends-on): Likewise.
50604         * modules/snprintf-posix-tests (Depends-on): Likewise.
50605         * modules/sprintf-posix-tests (Depends-on): Likewise.
50606         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50607         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50608         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50609         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50610
50611 2008-03-31  Bruno Haible  <bruno@clisp.org>
50612
50613         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50614         * doc/posix-functions/strtod.texi: Likewise.
50615
50616 2008-03-31  Bruno Haible  <bruno@clisp.org>
50617
50618         * tests/test-strtod.c (main): Don't use C99 syntax.
50619
50620 2008-03-31  Bruno Haible  <bruno@clisp.org>
50621
50622         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50623         Reported by Eric Blake.
50624
50625 2008-03-31  Jim Meyering  <meyering@redhat.com>
50626
50627         Don't compare actual signbit return values.
50628         * tests/test-strtod.c (main): Rather, compare only their
50629         zero/non-zero nature.
50630
50631 2008-03-31  Eric Blake  <ebb9@byu.net>
50632
50633         More strtod documentation.
50634         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50635         failures as distinct bugs.
50636
50637 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50638
50639         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50640         Problem reported by Erik Benada in
50641         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50642
50643 2008-03-30  Bruno Haible  <bruno@clisp.org>
50644
50645         * tests/test-strtod.c: Add comments about which assertion fails on which
50646         platform.
50647         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50648
50649 2008-03-30  Eric Blake  <ebb9@byu.net>
50650
50651         Test signbit behavior on zeros.
50652         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50653         (test_signbitd, test_signbitl): Likewise.
50654
50655         More strtod touchups.
50656         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50657         sign of negative underflow, for now.  Use .5, not .1.
50658         * doc/posix-functions/strtod.texi (strtod): Mention these
50659         limitations.
50660         Reported by Jim Meyering.
50661
50662 2008-03-30  Bruno Haible  <bruno@clisp.org>
50663
50664         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50665         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50666
50667 2008-03-30  Bruno Haible  <bruno@clisp.org>
50668
50669         Avoid failure when attempting to return empty iconv results on some
50670         platforms.
50671         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50672         allocation, don't report ENOMEM when the resulting string is empty.
50673
50674 2008-03-30  Bruno Haible  <bruno@clisp.org>
50675
50676         Fix buffer overrun.
50677         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50678         Don't consider the width for tmp_length. Check count against tmp_length
50679         before doing the padding. Ensure enough allocation during padding.
50680
50681 2008-03-30  Eric Blake  <ebb9@byu.net>
50682
50683         strtod touchups.
50684         * lib/strtod.c (strtod): Avoid compiler warnings.
50685         Reported by Jim Meyering.
50686
50687 2008-03-30  Bruno Haible  <bruno@clisp.org>
50688
50689         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50690         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50691         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50692         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50693         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50694         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50695         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50696         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50697
50698         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50699         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50700         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50701         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50702         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50703         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50704         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50705         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50706
50707         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50708         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50709         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50710         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50711         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50712         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50713         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50714         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50715
50716         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50717         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50718
50719         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50720         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50721
50722         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50723         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50724
50725         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50727         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50728
50729         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50731         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50732
50733         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50735         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50736
50737         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50739         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50740
50741         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50742         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50744         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50745         (Depends-on): Add EOVERFLOW.
50746         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50747         (Depends-on): Add EOVERFLOW.
50748         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50749         (Depends-on): Add EOVERFLOW.
50750         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50751         (Depends-on): Add EOVERFLOW.
50752         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50753         (Depends-on): Add EOVERFLOW.
50754         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50755         (Depends-on): Add EOVERFLOW.
50756         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50757         (Depends-on): Add EOVERFLOW.
50758         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50759         (Depends-on): Add EOVERFLOW.
50760
50761         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50763         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50764
50765         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50767         * modules/snprintf (Depends-on): Add EOVERFLOW.
50768
50769         * lib/poll.c (EOVERFLOW): Remove fallback.
50770         * modules/poll (Depends-on): Add EOVERFLOW.
50771
50772         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50773         * modules/getugroups (Depends-on): Add EOVERFLOW.
50774
50775         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50776         * modules/getdelim (Depends-on): Add EOVERFLOW.
50777
50778         * lib/ftell.c (EOVERFLOW): Remove fallback.
50779         * modules/ftell (Depends-on): Add EOVERFLOW.
50780
50781         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50783         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50784
50785         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50786
50787         * modules/EOVERFLOW-tests: New file.
50788         * tests/test-EOVERFLOW.c: New file.
50789
50790         * modules/EOVERFLOW: New file.
50791         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50792
50793 2008-03-30  Bruno Haible  <bruno@clisp.org>
50794
50795         Fix bug introduced on 2007-06-10.
50796         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50797         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50798
50799 2008-03-30  Bruno Haible  <bruno@clisp.org>
50800
50801         Improve freadseek's efficiency after ungetc.
50802         * lib/freadseek.c: Include freadahead.h.
50803         (freadptrinc): New function, extracted from freadseek.
50804         (freadseek): Use it in a loop. Use freadahead to determine the number
50805         of loop iterations.
50806         * modules/freadseek (Depends-on): Add freadahead.
50807         (configure.ac): Require AC_C_INLINE.
50808
50809 2008-03-30  Bruno Haible  <bruno@clisp.org>
50810
50811         * lib/freadseek.c (freadseek): Don't ignore the return value of
50812         freadptr.
50813
50814 2008-03-29  Eric Blake  <ebb9@byu.net>
50815
50816         Add hex float support.
50817         * modules/strtod (Depends-on): Add c-ctype.
50818         (Link): Mention POW_LIB.
50819         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50820         whitespace between 'e' and exponent.
50821         * tests/test-strtod.c (main): Enable hex float tests.
50822         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50823         now provides.
50824
50825         Document various strtod bugs, with some fixes.
50826         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50827         "-0x", "inf", "nan", and hex constants.
50828         * doc/posix-functions/atof.texi (atof): Likewise.
50829         * modules/stdlib (Makefile.am): Support strtod.
50830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50831         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50832         detect additional strtod bugs.
50833         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50834         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50835         bool where appropriate.  Parse 'inf' and 'nan'.
50836         * tests/test-strtod.c: New file.
50837         * modules/strtod (Depends-on): Add stdbool, stdlib.
50838         (configure.ac): Turn on module indicator.
50839         * modules/strtod-tests: New module.
50840
50841 2008-03-29  Eric Blake  <ebb9@byu.net>
50842
50843         Fix ftell on mingw.
50844         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50845         * modules/ftell-tests (Depends-on): Add binary-io.
50846         * modules/ftello-tests (Depends-on): Likewise.
50847         * tests/test-ftell.c (main): Enhance test to cover behavior after
50848         ungetc.  Enforce binary mode.
50849         * tests/test-ftello.c (main): Likewise.
50850
50851         Pass test-freadseek on cygwin.
50852         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50853         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50854         ungetc buffer.
50855
50856         * tests/test-fflush2.c (main): Fix typo.
50857
50858 2008-03-29  Bruno Haible  <bruno@clisp.org>
50859
50860         * tests/test-fflush2.c (main): Temporarily disable the contents of
50861         this test.
50862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50863         Reported by Eric Blake.
50864
50865 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50866
50867         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50868         (GC_SHA224_DIGEST_SIZE): Add.
50869
50870         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50871         (gc_hash_digest_length): Likewise.
50872         (gc_hash_buffer): Likewise.
50873
50874 2008-03-25  Bruno Haible  <bruno@clisp.org>
50875
50876         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50877         detail which gettext release to use.
50878         Reported by Simon Josefsson.
50879
50880 2008-03-26  Jim Meyering  <meyering@redhat.com>
50881
50882         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50883         * modules/gnumakefile (clean-GNUmakefile): Also, use
50884         test ... && ... || : syntax rather than if-then ... fi.
50885
50886         gnumakefile: Don't double-quote-expand $(VPATH) value.
50887         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50888
50889 2008-03-24  Eric Blake  <ebb9@byu.net>
50890
50891         Alter GNUmakefile to install into top directory.
50892         * modules/maintainer-makefile: Split, and add dependency...
50893         * modules/gnumakefile: to this new module.
50894         * build-aux/GNUmakefile: Move...
50895         * top/GNUmakefile: ...here.
50896         * build-aux/maint.mk: Move...
50897         * top/maint.mk: ...here.
50898         * MODULES.html.sh (Support for maintaining...): Document new
50899         module.
50900
50901 2008-03-23  Bruno Haible  <bruno@clisp.org>
50902
50903         * gnulib-tool: New options --vc-files, --no-vc-files.
50904         (func_usage): Document them.
50905         (vc_files): New variable.
50906         (func_import): Consider vc_files.
50907         (func_create_testdir): Set vc_files to empty.
50908         Suggested by Jim Meyering and Karl Berry.
50909
50910 2008-03-23  Bruno Haible  <bruno@clisp.org>
50911
50912         Fix regex compilation error on HP-UX 11.
50913         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50914         * modules/regex (Files): Add m4/mbstate_t.m4.
50915         Reported by Ton Voon <ton.voon@altinity.com>.
50916
50917 2008-03-23  Bruno Haible  <bruno@clisp.org>
50918
50919         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50920
50921 2008-03-23  Eric Blake  <ebb9@byu.net>
50922             Bruno Haible  <bruno@clisp.org>
50923
50924         Install files from top/ in the destination directory.
50925         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50926         augmentation also for the files from top/.
50927         (func_import, func_create_testdir): Rewrite file names:
50928         top/filename -> filename.
50929
50930 2008-03-23  Bruno Haible  <bruno@clisp.org>
50931
50932         Tweak "gnulib --version" output.
50933         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50934
50935 2008-03-23  Bruno Haible  <bruno@clisp.org>
50936
50937         Tweak "gnulib --version" output.
50938         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50939         rather than contents of ChangeLog, when possible.
50940
50941 2008-03-21  Eric Blake  <ebb9@byu.net>
50942
50943         More --version tweaks.
50944         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50945         date of last ChangeLog entry.
50946
50947 2008-03-21  Jim Meyering  <meyering@redhat.com>
50948
50949         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50950
50951 2008-03-20  Eric Blake  <ebb9@byu.net>
50952
50953         VPATH fix.
50954         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50955
50956 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50957
50958         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50959         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50960
50961 2008-03-20  Eric Blake  <ebb9@byu.net>
50962
50963         Sync GNUmakefile with coreutils.
50964         * build-aux/GNUmakefile (have-Makefile): Rename...
50965         (_have-Makefile): ...to this, for namespace consideration.
50966         (GNUmakefile.cfg): Include, if present.
50967         (_autoreconf): Define a default.
50968         (_is-dist-target): New rule for rebuilds to pick up intra-release
50969         version.
50970         (maint-cfg.mk): Rename...
50971         (cfg.mk): ...to this.
50972
50973 2008-03-18  Jim Meyering  <meyering@redhat.com>
50974
50975         New script and module: mktempd
50976         * MODULES.html.sh (maint+release support): Add mktempd.
50977         * build-aux/mktempd: New file.
50978         * modules/mktempd: New file.
50979
50980 2008-03-15  Jim Meyering  <meyering@redhat.com>
50981
50982         Undo last change.
50983         * lib/sha1.c, lib/md5.c: 63 != ~63.
50984         Reported by Andreas Schwab.
50985
50986         sha1.c, md5.c: Hoist a redundant expression.
50987         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50988         "ctx->buflen" only once, before calling *_process_block.
50989         * lib/md5.c (md5_process_bytes): Likewise.
50990
50991 2008-03-14  Eric Blake  <ebb9@byu.net>
50992
50993         Bump copyright year in files generated by gnulib-tool.
50994         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50995         gnulib-tool, rather than hard-coding it.
50996
50997         Fix 'gnulib-tool --version' output to work with git.
50998         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50999         (startup): ...here.
51000         (func_version): Use it to invoke git-version-gen, rather than
51001         relying on CVS keyword expansion.  Modernize wording.
51002         (cvsdatestamp, last_checkin_date, version): Kill unused
51003         variables.
51004
51005 2008-03-12  Jim Meyering  <meyering@redhat.com>
51006
51007         Recognize optional cast of the argument to free.
51008         * build-aux/useless-if-before-free: Update regexps.
51009
51010         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51011
51012 2008-03-11  Bruno Haible  <bruno@clisp.org>
51013
51014         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51015         by a single package.
51016         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51017         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51018         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51019         Reported by Sam Steingold <sds@gnu.org>.
51020
51021 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51022
51023         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51024         repositories.
51025
51026 2008-03-11  Bruno Haible  <bruno@clisp.org>
51027
51028         Avoid conflicts between local macro definitions.
51029         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51030         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51031
51032 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51033             Bruno Haible  <bruno@clisp.org>
51034
51035         Make va_copy work with some version of xlc on AIX 5.1.
51036         * lib/stdarg.in.h: New file.
51037         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51038         On AIX, use a <stdarg.h> file substitute.
51039         * modules/stdarg (Files): Add lib/stdarg.in.h.
51040         (Depends-on): Add include_next.
51041         (Makefile.am): Build a stdarg.h substitute if requested.
51042         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51043
51044 2008-03-10  Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51047         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51048         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51049
51050 2008-03-10  Bruno Haible  <bruno@clisp.org>
51051
51052         * modules/stdlib (Depends-on): Add include_next, remove
51053         absolute-header.
51054
51055 2008-03-09  Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/freadahead.h (freadahead): Document more precisely.
51058         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51059         the sum of both buffer sizes.
51060         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51061         * NEWS: Document the change.
51062
51063 2008-03-09  Bruno Haible  <bruno@clisp.org>
51064
51065         Extend freadptr to return also the buffer size.
51066         * lib/freadptr.h (freadptr): Add sizep argument.
51067         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51068         (freadptr): Add sizep argument. Determine buffer size like freadahead
51069         does.
51070         * tests/test-freadptr.c: Don't include freadahead.h.
51071         (main): Adapt for new calling convention of freadptr.
51072         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51073         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51074         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51075         tests/test-freadptr2.sh.
51076         (Depends): Remove freadahead.
51077         (TESTS): Add test-freadptr2.sh.
51078         (check_PROGRAMS): Add test-freadptr2.
51079
51080 2008-03-09  Bruno Haible  <bruno@clisp.org>
51081
51082         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51083         Report and solution by Simon Josefsson.
51084
51085 2008-03-06  Bruno Haible  <bruno@clisp.org>
51086
51087         Make fflush after ungetc work on BSD platforms.
51088         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51089         * tests/test-fflush2.c: New file.
51090         * tests/test-fflush2.sh: New file.
51091         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51092         tests/test-fflush2.c.
51093         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51094         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51095
51096 2008-03-06  Eric Blake  <ebb9@byu.net>
51097
51098         Likewise for ftello.
51099         * modules/ftello (Dependencies): Add extensions.
51100         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51101
51102 2008-03-06  Bruno Haible  <bruno@clisp.org>
51103
51104         * modules/fseeko (Dependencies): Add extensions.
51105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51106         Needed on glibc systems.
51107
51108 2008-03-06  Bruno Haible  <bruno@clisp.org>
51109
51110         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51111         email address.
51112         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51113
51114 2008-03-06  Bruno Haible  <bruno@clisp.org>
51115
51116         * users.txt: Add libgnupdf.
51117
51118 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51119
51120         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51121         (Header File Substitutes, Function Substitutes,
51122         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51123         (Build robot for gnulib): Fix typo.
51124
51125 2008-03-06  Bruno Haible  <bruno@clisp.org>
51126
51127         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51128         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51129
51130 2008-03-06  Bruno Haible  <bruno@clisp.org>
51131
51132         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51133         * doc/gnulib.texi: Include it.
51134
51135 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51136
51137         * modules/func (License): Change license to unlimited; there was
51138         no LGPL parts in the module anyway.
51139
51140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51141
51142         * modules/__func__: Renamed to modules/func.
51143         * modules/__func__-tests: Renamed to modules/func-tests.
51144         * tests/test-__func__.c: Renamed to tests/test-func.c.
51145         * m4/__func__.m4: Renamed to m4/func.m4.
51146         * doc/gnulib.texi (__func__): Section renamed to func.
51147         Suggested by Eric Blake <ebb9@byu.net>.
51148
51149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51150
51151         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51152         about __func__.  Make example self-contained.  Suggested by Eric
51153         Blake <ebb9@byu.net>.
51154
51155         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51156         Suggested by Eric Blake <ebb9@byu.net>.
51157
51158 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51159
51160         * modules/__func__: New file.
51161         * modules/__func__-tests: New file.
51162         * tests/test-__func__.c: New file.
51163         * m4/__func__.m4: New file.
51164         * doc/gnulib.texi (__func__): Document __func__ module.
51165
51166 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51167
51168         * modules/byteswap (License): Re-license as LGPLv2+.
51169
51170 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51171
51172         * doc/Makefile: Add pdf target.
51173
51174 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51175
51176         * modules/inline (License): Use 'unlimited', since there are only
51177         *.m4 files in this module.
51178
51179 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51180             Bruno Haible  <bruno@clisp.org>
51181
51182         Add support for HP C 7.1 on OpenVMS 8.3.
51183         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51184
51185 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51186
51187         Update VMS specifics.
51188         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51189
51190 2008-03-02  Jim Meyering  <meyering@redhat.com>
51191
51192         Remove the last dependency on the "free" module.
51193         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51194         Reported by Bob Proulx.
51195
51196         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51197
51198         Remove useless "if" tests before free.  Deprecate "free" module.
51199         * doc/posix-functions/free.texi: Mention that this
51200         module is no longer useful.
51201         * modules/free (Notice): Say this module is obsolete.
51202         * modules/readutmp (Depends-on): Remove free.
51203         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51204         * lib/putenv.c (putenv): Likewise.
51205         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51206         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51207         * tests/test-c-strcasestr.c (main): Likewise.
51208         * tests/test-c-strstr.c (main): Likewise.
51209         * tests/test-mbscasestr1.c (main): Likewise.
51210         * tests/test-mbscasestr2.c (main): Likewise.
51211         * tests/test-mbsstr1.c (main): Likewise.
51212         * tests/test-mbsstr2.c (main): Likewise.
51213         * tests/test-memmem.c (main): Likewise.
51214         * tests/test-strcasestr.c (main): Likewise.
51215         * tests/test-striconv.c (main): Likewise.
51216         * tests/test-striconveh.c (main): Likewise.
51217         * tests/test-striconveha.c (main): Likewise.
51218         * tests/test-strstr.c (main): Likewise.
51219
51220         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51221
51222         bootstrap: sync from coreutils again
51223         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51224
51225 2008-03-01  Jim Meyering  <meyering@redhat.com>
51226
51227         bootstrap: sync from coreutils
51228         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51229         also when the target doesn't exist.
51230
51231 2008-03-01  Eric Blake  <ebb9@byu.net>
51232
51233         Fix bugs in last patch.
51234         * lib/memchr2.c (memchr2): Fix typo.
51235         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51236         extension.
51237         Reported by Bruce Korb.
51238
51239         New module 'memchr2'.
51240         * modules/memchr2: New file.
51241         * modules/memchr2-tests: Likewise.
51242         * lib/memchr2.h: Likewise.
51243         * lib/memchr2.c: Likewise, based on memchr.c.
51244         * tests/test-memchr2.c: New test.
51245         * MODULES.html.sh (String handling): Add memchr2.
51246
51247 2008-02-29  Bruno Haible  <bruno@clisp.org>
51248
51249         * modules/freadseek-tests: New file.
51250         * tests/test-freadseek.sh: New file.
51251         * tests/test-freadseek.c: New file.
51252
51253         New module 'freadseek'.
51254         * modules/freadseek: New file.
51255         * lib/freadseek.h: New file.
51256         * lib/freadseek.c: New file.
51257         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51258
51259 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51260
51261         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51262         wydawca.
51263
51264         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51265         program_invocation_name and program_invocation_short_name are
51266         present.
51267
51268 2008-02-28  Bruno Haible  <bruno@clisp.org>
51269
51270         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51271         * tests/test-freadptr.sh: Also test non-seekable stdin.
51272
51273 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51274
51275         * build-aux/bootstrap (source_base, m4_base)
51276         (doc_base, tests_base): New variables.
51277         (gnulib_tool_options): Do not hardcode base directories, use
51278         the above variables instead.
51279
51280 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51281
51282         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51283
51284 2008-02-28  Bruno Haible  <bruno@clisp.org>
51285
51286         * modules/freadptr-tests: New file.
51287         * tests/test-freadptr.sh: New file.
51288         * tests/test-freadptr.c: New file.
51289
51290         New module 'freadptr'.
51291         * modules/freadptr: New file.
51292         * lib/freadptr.h: New file.
51293         * lib/freadptr.c: New file.
51294         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51295
51296 2008-02-26  Karl Berry  <karl@freefriends.org>
51297
51298         Sync from Libtool:
51299         * libltdl/argz.c (argz_add, argz_count): New functions.
51300         * libltdl/argz.in.h: Declare them.
51301         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51302
51303 2008-02-22  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51306         is a pointer type.  Needed for HP-UX 10.
51307         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51308         * doc/posix-functions/gmtime_r.texi: Likewise.
51309         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51310
51311 2008-02-24  Bruno Haible  <bruno@clisp.org>
51312
51313         * modules/environ-tests: New file.
51314         * tests/test-environ.c: New file.
51315
51316         New module 'environ'.
51317         * modules/environ: New file.
51318         * lib/unistd.in.h (environ): New declaration.
51319         * m4/environ.m4: New file.
51320         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51321         after use.
51322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51323         HAVE_DECL_ENVIRON.
51324         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51325         HAVE_DECL_ENVIRON.
51326         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51327         wrong claim that 'environ' is missing on some systems.
51328         * modules/execute (Depends-on): Add environ.
51329         * lib/execute.c (environ): Remove fallback declaration.
51330         * modules/pipe (Depends-on): Add environ.
51331         * lib/pipe.c (environ): Remove fallback declaration.
51332         * modules/setenv (Depends-on): Add environ.
51333         * lib/setenv.c (environ): Remove fallback declaration.
51334         * modules/unsetenv (Depends-on): Add environ.
51335         * lib/unsetenv.c (environ): Remove fallback declaration.
51336         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51337         m4/environ.m4.
51338         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51339         (gl_PREREQ_UNSETENV): Likewise.
51340
51341 2008-02-24  Bruno Haible  <bruno@clisp.org>
51342
51343         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51344
51345 2008-02-20  Bob Proulx  <bob@proulx.com>
51346
51347         Enable use of older two part flavor 'git describe'.
51348         * build-aux/git-version-gen: If using the older two part flavor of
51349         git version then recreate the third part now present in the
51350         newer three part flavor of git describe.
51351
51352 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51353
51354         * lib/fts.c (fts_build): Typo correction to comment.
51355
51356 2008-02-17  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51359         generating no-op conflicts.
51360
51361 2008-02-17  Bruno Haible  <bruno@clisp.org>
51362
51363         Speed up by 10%.
51364         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51365         result_entries, rather than an index-based loop.
51366
51367 2008-02-17  Bruno Haible  <bruno@clisp.org>
51368
51369         Speed up by 25%.
51370         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51371         'hashcode_cached'.
51372         (entry_create): New function.
51373         (entry_hashcode): Use the cached hashcode if possible.
51374         (read_changelog_file, try_split_merged_entry): Use entry_create.
51375
51376 2008-02-17  Bruno Haible  <bruno@clisp.org>
51377
51378         Speed up from O(n^2) to O(n) for long ChangeLog files.
51379         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51380         (read_changelog_file): Change implementation of entries_reversed list
51381         to rbtreehash.
51382         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51383
51384 2008-02-17  Bruno Haible  <bruno@clisp.org>
51385
51386         New option --split-merged-entry.
51387         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51388         (find_paragraph_end, try_split_merged_entry): New functions.
51389         (long_options): Add option --split-merged-entry.
51390         (usage): Document option --split-merged-entry.
51391         (main): Implement option --split-merged-entry.
51392         Reported by Eric Blake.
51393
51394 2008-02-17  Bruno Haible  <bruno@clisp.org>
51395
51396         * lib/git-merge-changelog.c: Include c-strstr.h.
51397         (main): Support the "git pull --rebase" situation.
51398         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51399         Reported by Eric Blake.
51400
51401 2008-02-16  Eric Blake  <ebb9@byu.net>
51402
51403         Avoid doubling \ in common case of "c-maybe" quoting style.
51404         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51405         eliding outer quotes.
51406         * lib/quotearg.h: Document this.
51407         * tests/test-quotearg.c (result_strings, inputs, results_g)
51408         (flag_results, locale_results): Test it by adding a new string to
51409         each test group.
51410         (compare_strings): Test new string.
51411
51412 2008-02-13  Eric Blake  <ebb9@byu.net>
51413
51414         Avoid trigraph quoting in default output.
51415         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51416         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51417         unless explicitly requested.
51418         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51419
51420 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51421
51422         Don't rely on signed integer overflowing to negative value.
51423         * lib/getugroups.c (getugroups): Include <limits.h>.
51424         Instead, compare against INT_MAX, and increment only if the test passes.
51425
51426 2008-02-13  Jim Meyering  <meyering@redhat.com>
51427         and Eric Blake  <ebb9@byu.net>
51428
51429         Avoid shadowing warning and compile errors on Linux.
51430         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51431         forwarding macros on Linux.
51432         (dcgettext): Define a stub, for Linux.
51433         (results_g, main): Avoid warnings.
51434
51435 2008-02-12  Eric Blake  <ebb9@byu.net>
51436
51437         Silence warning in last patch.
51438         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51439
51440         Quotearg part 4: add tests, fix c-maybe colon quoting.
51441         * lib/quotearg.h: Improve documentation.
51442         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51443         escapes when adding outer quotes.  When quoting trigraphs, use
51444         valid C notation.  When quoting NUL, omit extra characters if next
51445         character is not digit.  Alter prototype.
51446         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51447         callers.
51448         * modules/quotearg-tests: New module.
51449         * tests/test-quotearg.c: New test.
51450
51451 2008-02-07  Eric Blake  <ebb9@byu.net>
51452
51453         Quotearg part 3: add flag to control outer quote elision.
51454         * lib/quotearg.h (c_maybe_quoting_style): New style.
51455         (enum quoting_flags): Better documentation of flags.
51456         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51457         c-maybe style.
51458         (quotearg_buffer_restyled): Handle new flag to elide outer
51459         quotes.
51460
51461         Quotearg part 2: add flag that can control NUL elision.
51462         * lib/quotearg.h (set_quoting_flags): New prototype.
51463         * lib/quotearg.c (struct quoting_options): Add flag field.
51464         (set_quoting_flags): New function.
51465         (quotearg_buffer_restyled): Add flags parameter.
51466         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51467         (quotearg_n_options): Set the flag, since length cannot be
51468         returned.
51469         (quoting_options_from_style): Default flags correctly.
51470
51471         Quotearg part 1: more wrappers, restore quotearg_char state.
51472         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51473         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51474         (quotearg_colon_mem): New wrappers.
51475         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51476         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51477         functions.
51478         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51479         (quotearg_colon_mem): New functions.
51480
51481 2008-02-11  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51484         library in the current directory: it does not work with parallel make.
51485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51486
51487 2008-02-11  Bruno Haible  <bruno@clisp.org>
51488
51489         * .gitattributes: New file.
51490
51491 2008-02-11  Jim Meyering  <meyering@redhat.com>
51492
51493         useless-if-before-free: Fix reversed exit values.
51494         * build-aux/useless-if-before-free: Use correct values
51495         for EXIT_MATCH and EXIT_NO_MATCH.
51496
51497         * build-aux/useless-if-before-free: Close stdout carefully.
51498
51499 2008-02-10  Bruno Haible  <bruno@clisp.org>
51500
51501         New module 'git-merge-changelog'.
51502         * modules/git-merge-changelog: New file.
51503         * lib/git-merge-changelog.c: New file.
51504
51505 2008-02-10  Jim Meyering  <meyering@redhat.com>
51506
51507         useless-if-before-free: New option: --list (-l).
51508
51509         useless-if-before-free: Don't exit immediately upon open failure.
51510         * build-aux/useless-if-before-free: Exit 2 for errors.
51511         Upon failure to open a file, don't exit immediately.
51512         Rather, just warn and continue with any remaining files.
51513
51514 2008-02-10  Bruno Haible  <bruno@clisp.org>
51515
51516         New abstract list operation 'node_set_value'.
51517         * lib/gl_list.h (gl_list_node_set_value): New function.
51518         (struct gl_list_implementation): New field node_set_value.
51519         * lib/gl_list.c (gl_list_node_set_value): New function.
51520         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51521         (gl_array_list_implementation): Update.
51522         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51523         (gl_carray_list_implementation): Update.
51524         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51525         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51526         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51527         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51528         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51529         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51530         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51531         Update.
51532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51533         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51534         (gl_sublist_list_implementation): Update.
51535
51536 2008-02-10  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51539         Needed when ELEMENT is #defined to 'some_type *'.
51540
51541 2008-02-10  Jim Meyering  <meyering@redhat.com>
51542
51543         New script and module: useless-if-before-free
51544         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51545         * build-aux/useless-if-before-free: New file.
51546         * modules/useless-if-before-free: New file.
51547
51548         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51549
51550         xstrtol_error: Fix typo.
51551         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51552         s/exit_failure/exit_status/.
51553
51554 2008-02-09  Jim Meyering  <meyering@redhat.com>
51555
51556         New script and module: gitlog-to-changelog
51557         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51558         * modules/gitlog-to-changelog: New file.
51559         * build-aux/gitlog-to-changelog: New file.
51560
51561 2008-02-08  Jim Meyering  <meyering@redhat.com>
51562
51563         Avoid two "parameter unused" warnings.
51564         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51565         Mark "st" as used.
51566
51567         Use "git COMMAND", not "git-COMMAND".
51568         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51569         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51570         * build-aux/git-version-gen: Use "git status", not "git-status".
51571
51572 2008-02-07  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51575         Avoids a crash on Windows Vista.
51576         Reported by Adam Strzelecki <ono@java.pl> via
51577         Simon Josefsson <simon@josefsson.org>.
51578
51579 2008-02-06  Bruno Haible  <bruno@clisp.org>
51580
51581         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51582         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51583         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51585         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51587         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51588         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51596         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51597         left-adjust flag.
51598         * tests/test-snprintf-posix.h (test_function): Likewise.
51599         * tests/test-sprintf-posix.h (test_function): Likewise.
51600         * tests/test-vasprintf-posix.c (test_function): Likewise.
51601         * doc/posix-functions/fprintf.texi: Update.
51602         * doc/posix-functions/printf.texi: Update.
51603         * doc/posix-functions/snprintf.texi: Update.
51604         * doc/posix-functions/sprintf.texi: Update.
51605         * doc/posix-functions/vfprintf.texi: Update.
51606         * doc/posix-functions/vprintf.texi: Update.
51607         * doc/posix-functions/vsnprintf.texi: Update.
51608         * doc/posix-functions/vsprintf.texi: Update.
51609         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51610
51611 2008-02-06  Bruno Haible  <bruno@clisp.org>
51612
51613         Fix bug introduced on 2008-01-26.
51614         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51615
51616 2008-02-06  Bruno Haible  <bruno@clisp.org>
51617
51618         Fix bug introduced on 2007-06-10.
51619         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51620         !NEED_PRINTF_FLAG_ZERO.
51621
51622 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51623
51624         getloadavg: use libperfstat on AIX5
51625         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51626
51627 2008-02-03  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/diffseq.h: Add comments about required #includes.
51630         Reported by Michael Biggs <gnulib@doubleplum.net>.
51631
51632 2008-02-01  Bruno Haible  <bruno@clisp.org>
51633
51634         * users.txt: Add gnuit.
51635
51636 2008-01-31  Bruno Haible  <bruno@clisp.org>
51637
51638         * lib/md4.c (set_uint32): Mark as inline.
51639         * lib/md5.c (set_uint32): Likewise.
51640         * lib/sha1.c (set_uint32): Likewise.
51641         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51642         * m4/md5.m4 (gl_MD5): Likewise.
51643         * m4/sha1.m4 (gl_SHA1): Likewise.
51644
51645 2008-01-31  Jim Meyering  <meyering@redhat.com>
51646
51647         Use "sizeof VAR", rather than a literal "4".
51648         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51649         * lib/md4.c (md4_read_ctx): Likewise.
51650         * lib/sha1.c (sha1_read_ctx): Likewise.
51651
51652 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51653
51654         * tests/test-sha1.c: New file, based on test-md5.c.
51655
51656         * modules/crypto/sha1-tests: New file.
51657
51658 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51659
51660         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51661
51662 2008-01-31  Jim Meyering  <meyering@redhat.com>
51663
51664         Prefer "sizeof v" over the equivalent "4".
51665         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51666         * lib/md5.c (set_uint32): Likewise.
51667         * lib/sha1.c (set_uint32): Likewise.
51668
51669 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51670
51671         * lib/sha1.c (set_uint32): Mark function as static.
51672
51673 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51674
51675         md2: clarify comments to say that alignment is not required.
51676         * lib/md2.h: Remove warning about alignment in comment.
51677         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51678         never been required.
51679
51680 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51681
51682         md4: adapt alignment constraint fix from sha1.
51683         * lib/md4.c (set_uint32): New function, from sha1.c
51684         (md4_read_ctx): Use it.
51685         (md4_finish_ctx): Doc fix.
51686         * lib/md4.h: Doc fix.
51687
51688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51689
51690         md5: adapt alignment constraint fix from sha1.
51691         * lib/md5.c (set_uint32): New function, from sha1.c
51692         (md5_read_ctx): Use it.
51693         (md5_finish_ctx): Doc fix.
51694         * lib/md5.h: Doc fix.
51695
51696 2008-01-30  Peter Palfrader  <weasel@debian.org>
51697
51698         sha1: remove the result buffer alignment constraint
51699         * lib/sha1.c (set_uint32): New function.
51700         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51701         constraint.
51702         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51703         * lib/sha1.h: Likewise.
51704
51705 2008-01-30  Andreas Schwab  <schwab@suse.de>
51706             Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51709         correct definition of LDBL_MIN_EXP.
51710
51711 2008-01-30  Karl Berry  <karl@gnu.org>
51712
51713         * config/srclist-update: try to preserve x bit on updates.
51714         * config/srclistvars.sh: update for karl.
51715
51716 2008-01-29  Jim Meyering  <meyering@redhat.com>
51717
51718         vasnprintf.c: Avoid warning about unused label
51719         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51720         "overflow" label definition and associated code with the
51721         same cpp condition that guards the sole use of that label.
51722
51723 2008-01-26  Bruno Haible  <bruno@clisp.org>
51724
51725         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51726         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51727         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51728         * lib/isnanl-nolibm.h (isnanl): Likewise.
51729         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51730
51731 2008-01-26  Bruno Haible  <bruno@clisp.org>
51732
51733         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51734         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51735
51736 2008-01-26  Bruno Haible  <bruno@clisp.org>
51737
51738         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51739         GCC >= 4.0 built-in.
51740         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51741
51742 2008-01-26  Bruno Haible  <bruno@clisp.org>
51743
51744         Rename isnan, applicable to 'double' only, to isnand.
51745         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51746         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51747         (configure.ac): Update.
51748         (Include): Replace "isnan.h" with "isnand.h".
51749         * m4/isnand.m4: Renamed from m4/isnan.m4.
51750         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51751         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51752         instead of isnan.c.
51753         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51754         instead of HAVE_ISNAN_IN_LIBC.
51755         (isnand): Renamed from isnan.
51756         * lib/isnand.c: New file.
51757         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51758         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51759         (Makefile.am): Update.
51760         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51761         Include isnand.h instead of isnan.h.
51762         (main): Test isnand instead of isnan.
51763         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51764         isnan-nolibm.
51765         * modules/frexp (Depends-on): Likewise.
51766         * modules/frexp-tests (Depends-on): Likewise.
51767         * modules/frexp-nolibm (Depends-on): Likewise.
51768         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51769         * modules/isfinite (Depends-on): Likewise.
51770         * modules/round-tests (Depends-on): Likewise.
51771         * modules/signbit (Depends-on): Likewise.
51772         * modules/signbit-tests (Depends-on): Likewise.
51773         * modules/snprintf-posix (Depends-on): Likewise.
51774         * modules/sprintf-posix (Depends-on): Likewise.
51775         * modules/trunc-tests (Depends-on): Likewise.
51776         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51777         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51778         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51779         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51781         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51782         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51783         * modules/vasnprintf-posix (Depends-on): Likewise.
51784         * modules/vasprintf-posix (Depends-on): Likewise.
51785         * modules/vfprintf-posix (Depends-on): Likewise.
51786         * modules/vsnprintf-posix (Depends-on): Likewise.
51787         * modules/vsprintf-posix (Depends-on): Likewise.
51788         * lib/frexp.c: Include isnand.h instead of isnan.h.
51789         (ISNAN): Set to isnand instead of isnan.
51790         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51791         (gl_isfinited): Use isnand instead of isnan.
51792         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51793         (gl_signbitd): Use isnand instead of isnan.
51794         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51795         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51796         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51797         (main): Use isnand instead of isnan.
51798         * tests/test-round1.c: Include isnand.h.
51799         (main): Use isnand instead of isnan.
51800         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51801         (ISNAN): Set to isnand instead of isnan.
51802         * tests/test-trunc1.c: Include isnand.h.
51803         (main): Use isnand instead of isnan.
51804         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51805         (equal): Use isnand instead of isnan.
51806         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51807         isnand-nolibm.
51808         * NEWS: Mention the change.
51809
51810 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51811             Bruno Haible  <bruno@clisp.org>
51812
51813         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51814         the GCC builtins for signbits are present and set
51815         REPLACE_SIGNBIT_USING_GCC if so.
51816         * lib/math.in.h (signbit): Define using GCC builtins if
51817         REPLACE_SIGNBIT_USING_GCC is set.
51818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51819         REPLACE_SIGNBIT_USING_GCC.
51820         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51821
51822 2008-01-25  Jim Meyering  <meyering@redhat.com>
51823
51824         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51825         * lib/poll.c: Include <config.h>, not "config.h".
51826         * tests/test-getaddrinfo.c: Likewise.
51827
51828 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51829
51830         * modules/sockets-tests: New file.
51831
51832 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51833
51834         * modules/sockets: New module, can be used to call WSA_Startup and
51835         WSA_Cleanup when needed.
51836
51837         * lib/sockets.h, lib/sockets.c: New files.
51838
51839         * m4/sockets.m4: New file.
51840
51841         * tests/test-sockets.c: New file.
51842
51843 2008-01-19  Bruno Haible  <bruno@clisp.org>
51844
51845         * doc/posix-headers: Renamed from doc/headers.
51846         * doc/posix-functions: Renamed from doc/functions.
51847         * doc/gnulib.texi: Update.
51848
51849 2008-01-19  Bruno Haible  <bruno@clisp.org>
51850
51851         * doc/glibc-functions/strcasestr.texi: Include contents of
51852         doc/functions/strcasestr.texi, fixing the list of platforms.
51853         * doc/functions/strcasestr.texi: Remove file.
51854
51855 2008-01-19  Bruno Haible  <bruno@clisp.org>
51856
51857         * doc/glibc-functions/memmem.texi: Include contents of
51858         doc/functions/memmem.texi.
51859         * doc/functions/memmem.texi: Remove file.
51860
51861 2008-01-18  Bruno Haible  <bruno@clisp.org>
51862
51863         * doc/glibc-functions/*.texi: New files.
51864         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51865         to use the new files.
51866
51867 2008-01-17  Bruno Haible  <bruno@clisp.org>
51868
51869         * tests/test-gethostname.c (main): Fix printf statement.
51870
51871 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51872
51873         * modules/gethostname-tests: New file.
51874
51875         * tests/test-gethostname.c: New file.
51876
51877 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51878
51879         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51880         used by the UNAME case.  Reported by Bruno Haible
51881         <bruno@clisp.org>.
51882
51883 2008-01-17  Eric Blake  <ebb9@byu.net>
51884
51885         Convert c-strcasestr to be more efficient.
51886         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51887         (Depends-on): Add c-strcase, remove malloca, strnlen.
51888         * tests/test-c-strcasestr.c (main): Enhance test.
51889         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51890
51891 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51892
51893         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51894         Use it in creating po/Makevars.
51895
51896 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51897
51898         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51899         Applications that requires it should initialize libgcrypt
51900         manually.
51901
51902 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51903
51904         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51905
51906 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51907
51908         Fix problem with getdate on mingw32 reported by Simon Josefsson
51909         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51910         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51911         tzname", when deciding whether to declare tzname.
51912         * lib/strftime.c (tzname): Likewise.
51913
51914 2008-01-15  Bruno Haible  <bruno@clisp.org>
51915
51916         Work around a MacOS X 10.5 bug in frexpl().
51917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51918         * doc/functions/frexpl.texi: Document the bug.
51919         Reported by Elias Pipping <pipping@gentoo.org>.
51920
51921 2008-01-14  Eric Blake  <ebb9@byu.net>
51922
51923         Touch up previous patch.
51924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51925         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51926
51927         Convert strcasestr module to use Two-Way algorithm.
51928         * modules/strcasestr-simple: New module, based on the old
51929         strcasestr, but with Two-Way rather than KMP.
51930         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51931         * lib/string.in.h (rpl_strcasestr): Declare.
51932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51933         performance.
51934         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51935         * modules/string (Makefile.am): Support strcasestr.
51936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51937         * modules/strcasestr-tests (Depends-on): Check for alarm.
51938         * tests/test-strcasestr.c: Augment test.
51939         * lib/str-two-way.h: Clean up stray macro.
51940         * NEWS: Document new module.
51941         * MODULES.html.sh (string handling): Likewise.
51942         * doc/functions/strcasestr.texi: New file.
51943         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51944         here, since it is not a POSIX function.
51945
51946 2008-01-14  Colin Watson  <cjwatson@debian.org>
51947             Bruno Haible  <bruno@clisp.org>
51948
51949         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51950         works fine; if not, set REPLACE_STRSIGNAL.
51951         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51953         REPLACE_STRSIGNAL.
51954         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51955         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51956         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51957
51958 2008-01-14  Bruno Haible  <bruno@clisp.org>
51959
51960         * modules/strsignal (Include): Change to <string.h>.
51961
51962 2008-01-14  Colin Watson  <cjwatson@debian.org>
51963
51964         * modules/argp (Notice): Add a notice recommending to change
51965         XGETTEXT_OPTIONS.
51966         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51967
51968 2008-01-13  Colin Watson  <cjwatson@debian.org>
51969
51970         * modules/strsignal-tests: New file.
51971         * tests/test-strsignal.c: New file.
51972
51973         * lib/strsignal.c: New file, from glibc with modifications.
51974         * lib/siglist.h: New file, from glibc with modifications.
51975         * lib/string.in.h (strsignal): New declaration.
51976         * m4/strsignal.m4: New file.
51977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51978         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51979         * modules/strsignal: New file.
51980         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51981         HAVE_DECL_STRSIGNAL.
51982
51983 2008-01-13  Bruno Haible  <bruno@clisp.org>
51984
51985         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51986         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51987         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51988         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51989
51990 2008-01-13  Bruno Haible  <bruno@clisp.org>
51991
51992         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51993         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51994         * lib/argp.h (__attribute__): Likewise.
51995         * lib/c-stack.c (__attribute__): Likewise.
51996         * lib/error.h (__attribute__): Likewise.
51997         * lib/fts.c (__attribute__): Likewise.
51998         * lib/openat.h (__attribute__): Likewise.
51999         * lib/stdio.in.h (__attribute__): Likewise.
52000         * lib/string.in.h (__attribute__): Likewise.
52001         * lib/utimens.c (__attribute__): Likewise.
52002         * lib/vasnprintf.h (__attribute__): Likewise.
52003         * lib/xalloc.h (__attribute__): Likewise.
52004         * lib/xprintf.h (__attribute__): Likewise.
52005         * lib/xstrtol.h (__attribute__): Likewise.
52006         * lib/xvasprintf.h (__attribute__): Likewise.
52007
52008 2008-01-12  Bruno Haible  <bruno@clisp.org>
52009
52010         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52011         * doc/glibc-headers/a.out.texi: New file.
52012         * doc/glibc-headers/aliases.texi: New file.
52013         * doc/glibc-headers/alloca.texi: New file.
52014         * doc/glibc-headers/ar.texi: New file.
52015         * doc/glibc-headers/argp.texi: New file.
52016         * doc/glibc-headers/argz.texi: New file.
52017         * doc/glibc-headers/byteswap.texi: New file.
52018         * doc/glibc-headers/crypt.texi: New file.
52019         * doc/glibc-headers/endian.texi: New file.
52020         * doc/glibc-headers/envz.texi: New file.
52021         * doc/glibc-headers/err.texi: New file.
52022         * doc/glibc-headers/error.texi: New file.
52023         * doc/glibc-headers/execinfo.texi: New file.
52024         * doc/glibc-headers/fpu_control.texi: New file.
52025         * doc/glibc-headers/fstab.texi: New file.
52026         * doc/glibc-headers/fts.texi: New file.
52027         * doc/glibc-headers/getopt.texi: New file.
52028         * doc/glibc-headers/ieee754.texi: New file.
52029         * doc/glibc-headers/ifaddrs.texi: New file.
52030         * doc/glibc-headers/libintl.texi: New file.
52031         * doc/glibc-headers/mcheck.texi: New file.
52032         * doc/glibc-headers/mntent.texi: New file.
52033         * doc/glibc-headers/obstack.texi: New file.
52034         * doc/glibc-headers/paths.texi: New file.
52035         * doc/glibc-headers/printf.texi: New file.
52036         * doc/glibc-headers/pty.texi: New file.
52037         * doc/glibc-headers/resolv.texi: New file.
52038         * doc/glibc-headers/shadow.texi: New file.
52039         * doc/glibc-headers/sysexits.texi: New file.
52040         * doc/glibc-headers/ttyent.texi: New file.
52041
52042 2008-01-12  Jim Meyering  <meyering@redhat.com>
52043
52044         announce-gen: emit Gnulib's git-based version string.
52045         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52046         New option --gnulib-version=V, where V is expected to be
52047         the output of running git describe in the gnulib directory.
52048         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52049         not useful, and plan to stop publishing an xdelta file with each
52050         coreutils release.
52051
52052         * build-aux/announce-gen: Also check for lzma-compressed files.
52053
52054 2008-01-11  Bruno Haible  <bruno@clisp.org>
52055
52056         * tests/test-memmem.c (main): Increase maximum allowed time.
52057         * tests/test-strstr.c (main): Likewise.
52058
52059 2008-01-11  Bruno Haible  <bruno@clisp.org>
52060
52061         * doc/functions/memmem.texi: Add more precisions about platforms.
52062         * doc/functions/strstr.texi: Likewise.
52063
52064 2008-01-10  Eric Blake  <ebb9@byu.net>
52065
52066         * m4/strstr.m4: Delete cruft from copy-n-paste.
52067         Reported by Bruno Haible.
52068
52069 2008-01-10  Bruno Haible  <bruno@clisp.org>
52070
52071         Make c-strstr rely on strstr.
52072         * lib/c-strstr.c: Don't include str-kmp.h.
52073         (c_strstr): Define in terms of strstr.
52074         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52075         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52076
52077 2008-01-10  Bruno Haible  <bruno@clisp.org>
52078
52079         * doc/gnulib.texi (String Functions in C Locale): New section.
52080         * doc/c-ctype.texi: New file.
52081         * doc/c-strcase.texi: New file.
52082         * doc/c-strcaseeq.texi: New file.
52083         * doc/c-strcasestr.texi: New file.
52084         * doc/c-strstr.texi: New file.
52085         * doc/c-strtod.texi: New file.
52086         * doc/c-strtold.texi: New file.
52087
52088 2008-01-10  Eric Blake  <ebb9@byu.net>
52089
52090         * lib/relocatable.h: Fix a comment.
52091
52092 2008-01-10  Eric Blake  <ebb9@byu.net>
52093
52094         Share two-way algorithm.
52095         * lib/str-two-way.h: New file, merged from...
52096         * lib/memmem.c: ...here...
52097         * lib/strstr.c: ...and here.
52098         * modules/memmem (Files): Use it.
52099         * modules/strstr (Files): Likewise.
52100
52101         Avoid quadratic strstr implementations.
52102         * lib/strstr.c: New file.
52103         * m4/strstr.m4: Likewise.
52104         * modules/strstr: Likewise.
52105         * modules/strstr-tests: Likewise.
52106         * tests/test-strstr.c: Likewise.
52107         * lib/string.in.h (rpl_strstr): Declare.
52108         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52110         * modules/string (Makefile.am): Likewise.
52111         * MODULES.html.sh (string handling): Mention new module.
52112         * doc/functions/strstr.texi (strstr): Document the bug.
52113
52114 2008-01-10  Bruno Haible  <bruno@clisp.org>
52115
52116         * lib/relocatable.h (relocate): State whether result is freshly
52117         allocated or not.
52118         * lib/relocatable.c (relocate): Return a freshly allocated string
52119         instead of a pointer to a privately held string.
52120         Reported by Sylvain Beucler <beuc@gnu.org>.
52121
52122 2008-01-10  Colin Watson  <cjwatson@debian.org>
52123
52124         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52125         s/S_ISNLK/S_ISLNK/.
52126
52127 2008-01-09  Bruno Haible  <bruno@clisp.org>
52128
52129         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52130         and other files.
52131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52132         if it's only a guess.
52133         * modules/memmem: Simplify by depending on memmem-simple.
52134
52135 2008-01-09  Bruno Haible  <bruno@clisp.org>
52136
52137         Work around OpenBSD 4.0 tdelete() bug.
52138         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52139         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52140         macros and don't redefine the enum values.
52141         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52142         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52143         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52144
52145 2008-01-09  Bruno Haible  <bruno@clisp.org>
52146
52147         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52148         (main): Don't perform the tests if setlocale did not install a UTF-8
52149         locale. Needed on OpenBSD 4.0.
52150         * modules/wcwidth-tests (Depends-on): Add localcharset.
52151
52152 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52153
52154         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52155         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52156         * NEWS: announce this.
52157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52158
52159 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52160         and Eric Blake  <ebb9@byu.net>
52161
52162         Add memmem-simple module.
52163         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52164         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52165         * modules/memmem-simple: New file.
52166         * modules/memmem (Description): Tweak.
52167         * MODULES.html.sh (string handling): Mention new module.
52168         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52169         addressed by memmem-simple.
52170         * NEWS: Document the difference.
52171
52172 2008-01-09  Eric Blake  <ebb9@byu.net>
52173
52174         Give gcc some memmem optimization hints.
52175         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52176         (strcasestr): Declare as pure.
52177         * modules/memmem (Maintainer): Claim my implementation.
52178
52179 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52180
52181         Support AIX 6.1 and higher.
52182         * build-aux/config.libpath: Likewise.
52183         * build-aux/config.rpath: Likewise.
52184
52185 2008-01-08  Jim Meyering  <meyering@redhat.com>
52186             Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52189         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52190         Reported by Peter Fales in
52191         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52192
52193 2008-01-08  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/unictype/category-of (Depends-on): Add
52196         unictype/category-none.
52197         * modules/unictype/category-and-tests (Depends-on): Add
52198         unictype/category-{L,N,Lu,Nd}.
52199         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52200         * modules/unictype/category-or-tests (Depends-on): Add
52201         unictype/category-{L,N}.
52202         * modules/unictype/category-name-tests (Depends-on): Add
52203         unictype/category-{Z,Nl}.
52204         Reported by Simon Josefsson.
52205
52206 2008-01-08  Bruno Haible  <bruno@clisp.org>
52207
52208         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52209         convention better.
52210         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52211         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52212         Reported by Peter Miller <millerp@canb.auug.org.au>.
52213
52214 2008-01-08  Eric Blake  <ebb9@byu.net>
52215
52216         Rewrite memmem to guarantee linear complexity without malloc.
52217         * lib/memmem.c (memmem): Use Two-Way rather than
52218         Knuth-Morris-Pratt, to allow O(1) space usage.
52219         (critical_factorization, two_way_short_needle)
52220         (two_way_long_needle): New functions.
52221         (knuth_morris_pratt): Delete.
52222         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52223         Add stdint.
52224         * tests/test-memmem.c (main): Add tests for periodic needle and
52225         sublinear performance.
52226         * doc/functions/memmem.texi (memmem): Document other deficiencies
52227         in cygwin and older glibc.
52228
52229 2008-01-08  Bruno Haible  <bruno@clisp.org>
52230
52231         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52232         augmentation.
52233
52234 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52235
52236         Add a configure time option: --disable-acl.
52237         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52238         AC_ARG_ENABLE(acl).
52239
52240 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52241
52242         * tests/test-localename.c: Don't include obsolete "setenv.h".
52243
52244         * modules/localename-tests (Depends-on): Need unsetenv.
52245
52246 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52247
52248         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52249
52250 2008-01-06  Colin Watson  <cjwatson@debian.org>
52251
52252         * users.txt: Add man-db.
52253
52254 2008-01-07  Bruno Haible  <bruno@clisp.org>
52255
52256         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52257         previous section name.
52258
52259 2008-01-07  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/progname.c (set_program_name): Don't strip off a leading
52262         "lt-" prefix outside a .libs directory.
52263         Suggested by Paul Eggert.
52264
52265 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52266             Bruno Haible  <bruno@clisp.org>
52267
52268         Improve memory cleanup in 'relocatable' module.
52269         * lib/relocatable.h (compute_curr_prefix): Change return type to
52270         'char *'.
52271         * lib/relocatable.c (compute_curr_prefix): Change return type to
52272         'char *'. Free curr_installdir after use.
52273         (relocate): Free curr_prefix_better after use.
52274         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52275
52276 2008-01-01  Bruno Haible  <bruno@clisp.org>
52277
52278         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52279         failure on older glibc systems.
52280         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52281
52282 2008-01-05  Eric Blake  <ebb9@byu.net>
52283
52284         Avoid quadratic system memmem.
52285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52286         Reported by Ralf Wildenhues.
52287
52288         Fix memmem test for mingw.
52289         * modules/memmem-tests (configure.ac): Check for alarm.
52290         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52291         it.
52292         * doc/functions/memmem.texi: New file.
52293         * doc/gnulib.texi (Function Substitutes): Add memmem.
52294         Reported by Bruno Haible.
52295
52296 2008-01-04  Bruno Haible  <bruno@clisp.org>
52297
52298         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52299         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52300         gl_HEADER_STRING_H_DEFAULTS.
52301
52302 2008-01-04  Eric Blake  <ebb9@byu.net>
52303
52304         Shorten duration of memmem test.
52305         * tests/test-memmem.c (main): Use alarm to declare failure if test
52306         is taking too long.
52307         Reported by Ralf Wildenhues.
52308
52309 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52310
52311         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52312         string, needed by strerror.
52313
52314 2008-01-03  Colin Watson  <cjwatson@debian.org>
52315             Bruno Haible  <bruno@clisp.org>
52316
52317         * doc/gnulib-tool.texi (Localization): New section.
52318
52319 2008-01-02  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52322         variables to 'unsigned char *' type.
52323         Reported by Paul Eggert.
52324
52325 2008-01-02  Jim Meyering  <jim@meyering.net>
52326
52327         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52328
52329 2007-12-31  Jim Meyering  <jim@meyering.net>
52330
52331         Avoid use of private FTS type name.
52332         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52333
52334 2007-12-30  Karl Berry  <karl@gnu.org>
52335
52336         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52337         work around defect in Texinfo and/or the standalone Info browser.
52338
52339 2007-12-30  Bruno Haible  <bruno@clisp.org>
52340
52341         Unify 5 copies of the KMP code.
52342         * lib/str-kmp.h: New file.
52343         * lib/c-strcasestr.c: Include str-kmp.h.
52344         (knuth_morris_pratt): Remove function.
52345         (c_strcasestr): Update.
52346         * lib/c-strstr.c: Include str-kmp.h.
52347         (knuth_morris_pratt): Remove function.
52348         (c_strcasestr): Update.
52349         * lib/mbscasestr.c: Include str-kmp.h.
52350         (knuth_morris_pratt_unibyte): Remove function.
52351         * lib/mbsstr.c: Include str-kmp.h.
52352         (knuth_morris_pratt_unibyte): Remove function.
52353         * lib/strcasestr.c: Include str-kmp.h.
52354         (knuth_morris_pratt): Remove function.
52355         (strcasestr): Update.
52356         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52357         * modules/c-strstr (Files): Likewise.
52358         * modules/mbscasestr (Files): Likewise.
52359         * modules/mbsstr (Files): Likewise.
52360         * modules/strcasestr (Files): Likewise.
52361         Suggested by Paul Eggert.
52362
52363 2007-12-30  Bruno Haible  <bruno@clisp.org>
52364
52365         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52366         defined.
52367
52368 2007-12-30  Bruno Haible  <bruno@clisp.org>
52369
52370         * lib/xmalloca.h: Include xalloc.h.
52371         (xnmalloca): New macro.
52372
52373 2007-12-30  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/malloca.h (nmalloca): New macro.
52376         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52377         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52378         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52379         knuth_morris_pratt_multibyte): Likewise.
52380         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52381         knuth_morris_pratt_multibyte): Likewise.
52382         * lib/memmem.c (knuth_morris_pratt): Likewise.
52383         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52384
52385 2007-12-25  Bruno Haible  <bruno@clisp.org>
52386
52387         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52388         * lib/glob.c: Don't include openat.h.
52389         (link_exists2_p): Add back the code that deals with the
52390         !GLOB_ALTDIRFUNC case.
52391         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52392         let it do the filename concatenation.
52393         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52394         * modules/glob (Depends-on): Remove openat.
52395
52396 2007-12-31  Bruno Haible  <bruno@clisp.org>
52397
52398         * modules/dirfd (License): Change to LGPLv2+.
52399         Approved by Jim Meyering.
52400
52401 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52402
52403         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52404         when multiplying M by sizeof (size_t).
52405
52406 2007-12-10  Martin Lambers  <marlam@marlam.de>
52407
52408         Override getpagesize on mingw.
52409         * lib/getpagesize.c: New file.
52410         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52411         * modules/getpagesize (Files): Add lib/getpagesize.c.
52412         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52414         REPLACE_GETPAGESIZE.
52415         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52416
52417 2007-12-25  Bruno Haible  <bruno@clisp.org>
52418
52419         * modules/localcharset (Notice): New field.
52420         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52421         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52422
52423 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52424             Bruno Haible  <bruno@clisp.org>
52425
52426         Avoid using the syntax symbol() in formatted documentation.
52427         * MODULES.html.sh (func_module): When replacing symbol() with a
52428         hyperlink, remove the parentheses. Show an error if some remain.
52429         Recognize and render the '...' syntax.
52430         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52431         Rework. Add paragraph about GCC's inlining.
52432         * doc/alloca.texi: Likewise.
52433         * doc/error.texi: Remove parentheses from symbol reference.
52434         * doc/gnulib-intro.texi: Likewise.
52435         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52436         * modules/fnmatch (Description): Reword to say "the ... function".
52437         * modules/full-read (Description): Likewise.
52438         * modules/full-write (Description): Likewise.
52439         * modules/safe-read (Description): Likewise.
52440         * modules/safe-write (Description): Likewise.
52441         * modules/strchrnul (Description): Likewise.
52442         * modules/trim (Description): Likewise.
52443         * modules/error (Description): Remove parentheses from symbol
52444         references.
52445         * modules/verror (Description): Likewise.
52446         Reported by Karl Berry.
52447
52448 2007-12-25  Bruno Haible  <bruno@clisp.org>
52449
52450         Fixup after 2007-10-16 commit.
52451         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52452
52453 2007-12-24  Bruno Haible  <bruno@clisp.org>
52454
52455         Make --enable-relocatable work with DESTDIR.
52456         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52457         to compute installdir from destprog.
52458         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52459         also set the RELOC_DESTDIR variable.
52460         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52461
52462 2007-12-24  Bruno Haible  <bruno@clisp.org>
52463
52464         Fix link error due to xalloc_die().
52465         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52466         of xreadlink.
52467         * lib/relocwrapper.c: Update comments.
52468         * build-aux/install-reloc: Remove xreadlink.c from file list.
52469         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52470         xreadlink.c.
52471         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52472
52473 2007-12-24  Bruno Haible  <bruno@clisp.org>
52474
52475         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52476         * lib/setenv.h: Remove file.
52477         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52478         lib/setenv.h.
52479         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52480         (Depends-on): Add stdlib.
52481         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52482         gl_FUNC_UNSETENV.
52483         (Include): Replace setenv.h with <stdlib.h>.
52484         * modules/unsetenv: New file.
52485         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52486         * lib/unsetenv.c: Include <stdlib.h> first.
52487         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52488         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52489         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52490         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52491         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52492         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52494         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52495         * doc/functions/unsetenv.texi: Update.
52496         * modules/xsetenv (Depends-on): Add unsetenv.
52497         * modules/getdate (Depends-on): Likewise.
52498         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52499         * lib/xsetenv.c: Don't include setenv.h.
52500         * lib/getdate.y: Likewise.
52501         * lib/relocwrapper.c: Likewise.
52502         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52503         (Depends-on): Add stdlib.
52504         * NEWS: Mention the changes.
52505         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52506
52507 2007-12-23  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52510         indentation.
52511
52512 2007-12-23  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/c-strcasestr.c: Add more comments.
52515         * lib/c-strstr.c: Likewise.
52516         * lib/mbscasestr.c: Likewise.
52517         * lib/mbsstr.c: Likewise.
52518         * lib/strcasestr.c: Likewise.
52519         * lib/memmem.c: Likewise.
52520
52521 2007-12-23  Bruno Haible  <bruno@clisp.org>
52522
52523         * tests/test-memmem.c: Include <string.h> first.
52524
52525 2007-12-22  Bruno Haible  <bruno@clisp.org>
52526
52527         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52528         the contents of $testsbase.
52529         Reported by Ralf Wildenhues.
52530
52531 2007-12-22  Bruno Haible  <bruno@clisp.org>
52532
52533         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52534         two variables local_ldadd_before, local_ldadd_last.
52535
52536 2007-12-20  Eric Blake  <ebb9@byu.net>
52537
52538         Work around circular library issue when cross-compiling.
52539         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52540         that progname.o does not need to pull in rpl_memcmp.
52541
52542 2007-12-19  Eric Blake  <ebb9@byu.net>
52543
52544         Fix memmem to avoid O(n^2) worst-case complexity.
52545         * lib/memmem.c (knuth_morris_pratt): New function.
52546         (memmem): Use it if first few naive iterations fail.
52547         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52548         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52549         * modules/memchr (License): Likewise.
52550         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52551         malloca.
52552         * tests/test-memmem.c: Rewrite, borrowing ideas from
52553         test-mbsstr1.c; the old version wouldn't even compile!
52554         * modules/memmem-tests: New file.
52555         * lib/string.in.h (rpl_memmem): Add declaration.
52556         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52558         REPLACE_MEMMEM.
52559
52560 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52561
52562         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52563         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52564         before any system include files, and undef after them all.  This
52565         should fix a problem on VMS reported by John E. Malmberg in
52566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52567
52568 2007-12-17  Eric Blake  <ebb9@byu.net>
52569
52570         Revert addition of verify, for BSD/OS.
52571         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52572         can't handle large files, for the sake of obsolete platforms.
52573         * modules/fseeko (Depends-on): Remove verify.
52574         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52575         * doc/functions/ftello.texi (ftello): Likewise.
52576         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52577         Reported by Larry Jones.
52578
52579 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52580
52581         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52582         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52583
52584 2007-12-17  Jim Meyering  <meyering@redhat.com>
52585
52586         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52587         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52588         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52589         * modules/getcwd (Depends-on): Add openat.
52590         Reported by Petr Salinger.
52591
52592 2007-12-17  Bruno Haible  <bruno@clisp.org>
52593
52594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52595         avoid a segmentation fault of the configure test on x86_64 systems.
52596
52597 2007-12-15  Jim Meyering  <meyering@redhat.com>
52598
52599         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52600
52601 2007-12-13  Eric Blake  <ebb9@byu.net>
52602
52603         Another fseek test.
52604         * tests/test-fseek.c (main): Also test ungetc handling.
52605         * tests/test-fseeko.c (main): Likewise.
52606         * modules/fseeko (Depends-on): Add verify.
52607         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52608         large.
52609         Reported by Larry Jones.
52610
52611         Fix fseeko on mingw.
52612         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52613         seek.
52614
52615         Beef up fseek tests.
52616         * tests/test-fseek.c (main): Also test eof handling.
52617         * tests/test-fseeko.c (main): Likewise.
52618         Reported by Larry Jones.
52619
52620 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52621
52622         Fix fseeko on BSD-based platforms.
52623         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52624         successful seek.
52625
52626 2007-12-12  Eric Blake  <ebb9@byu.net>
52627
52628         Allow circular dependency of separate libtests.a
52629         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52630         when use_libtests.
52631
52632 2007-12-11  Eric Blake  <ebb9@byu.net>
52633
52634         Fix bug with -0.0L in previous patch.
52635         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52636         * tests/test-isnan.c (main): Also test on zeroes.
52637         * tests/test-isnanf.c (main): Likewise.
52638         * tests/test-isnanl.h (main): Likewise.
52639
52640         Detect pseudo-denormals on x86 even when cross-compiling.
52641         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52642         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52643         invalid bit patterns that happen to satisfy ==.
52644
52645         Avoid link failures with separate libtests.a.
52646         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52647         last, to satisfy circular dependencies.
52648
52649 2007-12-11  Eric Blake  <ebb9@byu.net>
52650         and Bruno Haible  <bruno@clisp.org>
52651
52652         Fix OpenBSD 4.0 <float.h> handling of long double.
52653         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52654         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52655         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52656
52657 2007-12-11  Jim Meyering  <meyering@redhat.com>
52658
52659         * users.txt: Add libvirt.
52660
52661         Support versions of autoconf prior to 2.59c.
52662         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52663         if it is not already defined.
52664
52665 2007-12-09  Bruno Haible  <bruno@clisp.org>
52666
52667         Let 'gnulib-tool --import' collect sources needed for the tests in
52668         tests/ rather than in lib/.
52669         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52670         argument. If true, add rules to generate libtests.a, and put libtests.a
52671         into $(LDADD). Consider source files in subdirectories and set
52672         uses_subdirs.
52673         (func_emit_initmacro_start, func_emit_initmacro_end,
52674         func_emit_initmacro_done): Pass all arguments explicitly.
52675         (func_import): Determine two module lists main_modules,
52676         testsrelated_modules. Determine use_libtests. Determine two variables
52677         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52678         instead of just sed_transform_lib_file. Determine two variables
52679         main_files and testsrelated_files. Compute 'files' as the union of
52680         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52681         func_add_or_update. In the generated gnulib-comp.m4, collect the
52682         object files for tests/ in different variables than those for lib/.
52683         Substitute LIBTESTS_LIBDEPS.
52684         (func_create_testdir): Combine the uses_subdirs results from
52685         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52686
52687 2007-12-09  Bruno Haible  <bruno@clisp.org>
52688
52689         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52690         the build-aux directory.
52691
52692 2007-12-09  Bruno Haible  <bruno@clisp.org>
52693
52694         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52695         introduced on 2006-09-09.
52696
52697 2007-12-07  Jim Meyering  <meyering@redhat.com>
52698
52699         Let these macros work also with autoconf-2.59.
52700         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52701         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52702         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52703
52704 2007-12-06  Jim Meyering  <meyering@redhat.com>
52705
52706         Avoid a configure-time syntax error in gl_FUNC_ACL.
52707         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52708         function in each branch, before testing the cache variable.
52709
52710 2007-12-04  Eric Blake  <ebb9@byu.net>
52711
52712         Make scripts executable.
52713         * build-aux/config.guess: Add execute permissions.
52714         * build-aux/config.sub: Likewise.
52715         * build-aux/gendocs.sh: Likewise.
52716
52717         Fix frexp on mingw.
52718         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52719         cross-compiling.
52720         * doc/functions/frexp.texi (frexp): Document the bug.
52721
52722         Make cygwin fseeko check more reliable.
52723         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52724         version numbers, rather than unrelated feature check.
52725         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52726         * doc/functions/ftello.texi (ftello): Likewise.
52727         Reported by Bruno Haible.
52728
52729         * m4/strerror.m4: Bump version number.
52730
52731 2007-12-03  Bruno Haible  <bruno@clisp.org>
52732
52733         * doc/functions/mprotect.texi: Mention the mingw problem.
52734
52735 2007-12-03  Eric Blake  <ebb9@byu.net>
52736
52737         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52738         REPLACE_STRERROR is initialized before this macro.
52739
52740 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52741
52742         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52743         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52744         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52745         put -lsec in even for programs other than 'ls'.  This fixes a problem
52746         for gettext reported by Bruno Haible in
52747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52748         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52749         Add support for Solaris 10.  This isn't efficient, but should get the
52750         job done for now.
52751
52752 2007-12-03  James Youngman  <jay@gnu.org>
52753
52754         * doc/regexprops-generic.texi: change "an close-group" to "a
52755         close-group" and "illegal" to "not allowed".
52756
52757 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52758
52759         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52760         pr_byname.h. Needed for the rare case when the maintainer has done
52761         "make maintainer-clean" in the source directory and then attempts a
52762         build outside the source directory.
52763         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52764         scripts_byname.h.
52765
52766 2007-12-02  Martin Lambers <marlam@marlam.de>
52767             Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/getpagesize.h: Remove file.
52770         * lib/unistd.in.h: Include declaration of getpagesize here.
52771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52772         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52773         HAVE_SYS_PARAM_H.
52774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52775         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52776         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52777         (Depends-on): Add unistd.
52778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52779         (Include): Use <unistd.h> instead of getpagesize.h.
52780         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52781         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52782         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52783         gl_GETPAGESIZE invocation, already handled by module dependency.
52784         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52785
52786 2007-12-02  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/strings-tests: New file.
52789         * tests/test-strings.c: New file.
52790
52791         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52792         * lib/strings.in.h: New file.
52793         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52794         * m4/strings_h.m4: New file.
52795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52796         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52797         * modules/strings: New file.
52798         * modules/string (Makefile.am): Update.
52799         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52800         Reported by Karl Berry.
52801
52802 2007-12-01  Eric Blake  <ebb9@byu.net>
52803
52804         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52805         accomodate fix in cygwin 1.5.25.
52806
52807 2007-12-01  Jim Meyering  <meyering@redhat.com>
52808
52809         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52810         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52811         that would inhibit utf8-optimization of a regexp containing line-
52812         or buffer-anchors, e.g., `^', `$'.
52813
52814 2007-11-30  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52817         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52818         glthread_recursive_lock_init.
52819         * lib/lock.c (glthread_recursive_lock_init)
52820         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52822
52823 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52824
52825         New function qset_acl, like set_acl but with syscall semantics.
52826         * lib/acl.h (qset_acl): New decl.
52827         * lib/acl.c (qset_acl): New function.
52828         (set_acl): Use new function.  Use more-consistent diagnostics.
52829
52830 2007-11-28  Jim Meyering  <meyering@redhat.com>
52831
52832         * modules/physmem (License): Change from GPL to LGPLv2+.
52833
52834 2007-11-26  Bruno Haible  <bruno@clisp.org>
52835
52836         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52837         'long double' type has excess precision.
52838         Reported by Jim Meyering in
52839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52840
52841 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52842
52843         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52844         Sync from <http://gnu.org/licenses>.
52845         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52846         with license text from same location.
52847         * doc/maintain.texi, doc/standards.texi:  Sync from
52848         <http://savannah.gnu.org/projects/gnustandards>.
52849
52850 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52851         and Jim Meyering  <meyering@redhat.com>
52852
52853         Adjust getdate' grammar to accept a slightly more regular language.
52854         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52855         Before, the former was rejected.
52856         * lib/getdate.y (digits_to_date_time): New function, factored
52857         out of ...
52858         (number): ...here.  Just call digits_to_date_time.
52859         (hybrid): New non-terminal to handle an <unsigned number,
52860         signed relative offset> sequence consistently.
52861
52862 2007-11-18  Jim Meyering  <meyering@redhat.com>
52863
52864         Pull my changes from coreutils:
52865         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52866         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52867         use of $gnulib_tool_option_extras, so that it's separated from the
52868         preceding argument.
52869
52870         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52871         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52872         parent destination directories before copying a file into place.
52873
52874 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52875
52876         bootstrap: work also with 4-argument variant of AC_INIT
52877         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52878
52879 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52880
52881         Port test-getaddrinfo to Solaris.
52882         Problem reported by Bruno Haible in
52883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52884         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52885         explanation of setting 'hints'.
52886         Don't reject an implementation merely because it returns EAI_SERVICE.
52887         (EAI_SERVICE): Define to 0 if not defined.
52888
52889 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         The license of gnu-make and posix-shell is now "GPLed build tool".
52892         * modules/gnu-make (License): Likewise.
52893         * modules/posix-shell (License): Likewise.
52894
52895         New module posix-shell, for determining a POSIX shell
52896         or perhaps something that is close enough to a POSIX shell.
52897         * m4/posix-shell.m4: New file.
52898         * modules/posix-shell: New file.
52899
52900         * MODULES.html.sh: Mention new module.
52901
52902         New module gnu-make, for determining whether we're using GNU Make.
52903         * m4/gnu-make.m4: New file.
52904         * modules/gnu-make: New file.
52905         * MODULES.html.sh: Mention new module.
52906
52907 2007-11-14  Jim Meyering  <meyering@redhat.com>
52908
52909         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52910         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52911         use this macro to create a function _definition_.
52912         Remove useless "#undef ARGMATCH_DIE".
52913
52914 2007-11-14  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/config.charset: Update for OpenBSD 4.1.
52917         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52918
52919 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52920
52921         Document 64-bit #if problems in stdint.texi.
52922         * doc/headers/stdint.texi (stdint.h): Mention problems with
52923         64-bit-#if, and how to work around them.
52924
52925         Don't insist on 'long long int' support in the preprocessor.  It
52926         breaks too many things.  For example, PRIdMAX still uses a 'long
52927         long int' format with the latest Sun compiler, even though
52928         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52929         preprocessor problem.  This causes the latest coreutils to dump
52930         core on Solaris 10 sparc with the Sun C compiler.
52931         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52932         the troublesome expressions at configure-time, not at #if-time.
52933         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52934         preprocessor.
52935         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52936         compile-time C checks, done at 'configure'-time.
52937         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52938         * modules/inttypes (Makefile): Substitute the new symbols that
52939         gl_INTTYPES_H now generates.
52940         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52941
52942 2007-11-12  Bruno Haible  <bruno@clisp.org>
52943
52944         Tests for Unicode character classification functions.
52945
52946         * modules/unictype/bidicategory-byname-tests: New file.
52947         * modules/unictype/bidicategory-name-tests: New file.
52948         * modules/unictype/bidicategory-of-tests: New file.
52949         * modules/unictype/bidicategory-test-tests: New file.
52950         * modules/unictype/block-list-tests: New file.
52951         * modules/unictype/block-of-tests: New file.
52952         * modules/unictype/block-test-tests: New file.
52953         * modules/unictype/category-C-tests: New file.
52954         * modules/unictype/category-Cc-tests: New file.
52955         * modules/unictype/category-Cf-tests: New file.
52956         * modules/unictype/category-Cn-tests: New file.
52957         * modules/unictype/category-Co-tests: New file.
52958         * modules/unictype/category-Cs-tests: New file.
52959         * modules/unictype/category-L-tests: New file.
52960         * modules/unictype/category-Ll-tests: New file.
52961         * modules/unictype/category-Lm-tests: New file.
52962         * modules/unictype/category-Lo-tests: New file.
52963         * modules/unictype/category-Lt-tests: New file.
52964         * modules/unictype/category-Lu-tests: New file.
52965         * modules/unictype/category-M-tests: New file.
52966         * modules/unictype/category-Mc-tests: New file.
52967         * modules/unictype/category-Me-tests: New file.
52968         * modules/unictype/category-Mn-tests: New file.
52969         * modules/unictype/category-N-tests: New file.
52970         * modules/unictype/category-Nd-tests: New file.
52971         * modules/unictype/category-Nl-tests: New file.
52972         * modules/unictype/category-No-tests: New file.
52973         * modules/unictype/category-P-tests: New file.
52974         * modules/unictype/category-Pc-tests: New file.
52975         * modules/unictype/category-Pd-tests: New file.
52976         * modules/unictype/category-Pe-tests: New file.
52977         * modules/unictype/category-Pf-tests: New file.
52978         * modules/unictype/category-Pi-tests: New file.
52979         * modules/unictype/category-Po-tests: New file.
52980         * modules/unictype/category-Ps-tests: New file.
52981         * modules/unictype/category-S-tests: New file.
52982         * modules/unictype/category-Sc-tests: New file.
52983         * modules/unictype/category-Sk-tests: New file.
52984         * modules/unictype/category-Sm-tests: New file.
52985         * modules/unictype/category-So-tests: New file.
52986         * modules/unictype/category-Z-tests: New file.
52987         * modules/unictype/category-Zl-tests: New file.
52988         * modules/unictype/category-Zp-tests: New file.
52989         * modules/unictype/category-Zs-tests: New file.
52990         * modules/unictype/category-and-not-tests: New file.
52991         * modules/unictype/category-and-tests: New file.
52992         * modules/unictype/category-byname-tests: New file.
52993         * modules/unictype/category-name-tests: New file.
52994         * modules/unictype/category-none-tests: New file.
52995         * modules/unictype/category-of-tests: New file.
52996         * modules/unictype/category-or-tests: New file.
52997         * modules/unictype/category-test-withtable-tests: New file.
52998         * modules/unictype/combining-class-tests: New file.
52999         * modules/unictype/ctype-alnum-tests: New file.
53000         * modules/unictype/ctype-alpha-tests: New file.
53001         * modules/unictype/ctype-blank-tests: New file.
53002         * modules/unictype/ctype-cntrl-tests: New file.
53003         * modules/unictype/ctype-digit-tests: New file.
53004         * modules/unictype/ctype-graph-tests: New file.
53005         * modules/unictype/ctype-lower-tests: New file.
53006         * modules/unictype/ctype-print-tests: New file.
53007         * modules/unictype/ctype-punct-tests: New file.
53008         * modules/unictype/ctype-space-tests: New file.
53009         * modules/unictype/ctype-upper-tests: New file.
53010         * modules/unictype/ctype-xdigit-tests: New file.
53011         * modules/unictype/decimal-digit-tests: New file.
53012         * modules/unictype/digit-tests: New file.
53013         * modules/unictype/mirror-tests: New file.
53014         * modules/unictype/numeric-tests: New file.
53015         * modules/unictype/property-alphabetic-tests: New file.
53016         * modules/unictype/property-ascii-hex-digit-tests: New file.
53017         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53018         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53019         * modules/unictype/property-bidi-block-separator-tests: New file.
53020         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53021         * modules/unictype/property-bidi-common-separator-tests: New file.
53022         * modules/unictype/property-bidi-control-tests: New file.
53023         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53024         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53025         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53026         * modules/unictype/property-bidi-european-digit-tests: New file.
53027         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53028         * modules/unictype/property-bidi-left-to-right-tests: New file.
53029         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53030         * modules/unictype/property-bidi-other-neutral-tests: New file.
53031         * modules/unictype/property-bidi-pdf-tests: New file.
53032         * modules/unictype/property-bidi-segment-separator-tests: New file.
53033         * modules/unictype/property-bidi-whitespace-tests: New file.
53034         * modules/unictype/property-byname-tests: New file.
53035         * modules/unictype/property-combining-tests: New file.
53036         * modules/unictype/property-composite-tests: New file.
53037         * modules/unictype/property-currency-symbol-tests: New file.
53038         * modules/unictype/property-dash-tests: New file.
53039         * modules/unictype/property-decimal-digit-tests: New file.
53040         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53041         * modules/unictype/property-deprecated-tests: New file.
53042         * modules/unictype/property-diacritic-tests: New file.
53043         * modules/unictype/property-extender-tests: New file.
53044         * modules/unictype/property-format-control-tests: New file.
53045         * modules/unictype/property-grapheme-base-tests: New file.
53046         * modules/unictype/property-grapheme-extend-tests: New file.
53047         * modules/unictype/property-grapheme-link-tests: New file.
53048         * modules/unictype/property-hex-digit-tests: New file.
53049         * modules/unictype/property-hyphen-tests: New file.
53050         * modules/unictype/property-id-continue-tests: New file.
53051         * modules/unictype/property-id-start-tests: New file.
53052         * modules/unictype/property-ideographic-tests: New file.
53053         * modules/unictype/property-ids-binary-operator-tests: New file.
53054         * modules/unictype/property-ids-trinary-operator-tests: New file.
53055         * modules/unictype/property-ignorable-control-tests: New file.
53056         * modules/unictype/property-iso-control-tests: New file.
53057         * modules/unictype/property-join-control-tests: New file.
53058         * modules/unictype/property-left-of-pair-tests: New file.
53059         * modules/unictype/property-line-separator-tests: New file.
53060         * modules/unictype/property-logical-order-exception-tests: New file.
53061         * modules/unictype/property-lowercase-tests: New file.
53062         * modules/unictype/property-math-tests: New file.
53063         * modules/unictype/property-non-break-tests: New file.
53064         * modules/unictype/property-not-a-character-tests: New file.
53065         * modules/unictype/property-numeric-tests: New file.
53066         * modules/unictype/property-other-alphabetic-tests: New file.
53067         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53068         * modules/unictype/property-other-grapheme-extend-tests: New file.
53069         * modules/unictype/property-other-id-continue-tests: New file.
53070         * modules/unictype/property-other-id-start-tests: New file.
53071         * modules/unictype/property-other-lowercase-tests: New file.
53072         * modules/unictype/property-other-math-tests: New file.
53073         * modules/unictype/property-other-uppercase-tests: New file.
53074         * modules/unictype/property-paired-punctuation-tests: New file.
53075         * modules/unictype/property-paragraph-separator-tests: New file.
53076         * modules/unictype/property-pattern-syntax-tests: New file.
53077         * modules/unictype/property-pattern-white-space-tests: New file.
53078         * modules/unictype/property-private-use-tests: New file.
53079         * modules/unictype/property-punctuation-tests: New file.
53080         * modules/unictype/property-quotation-mark-tests: New file.
53081         * modules/unictype/property-radical-tests: New file.
53082         * modules/unictype/property-sentence-terminal-tests: New file.
53083         * modules/unictype/property-soft-dotted-tests: New file.
53084         * modules/unictype/property-space-tests: New file.
53085         * modules/unictype/property-terminal-punctuation-tests: New file.
53086         * modules/unictype/property-test-tests: New file.
53087         * modules/unictype/property-titlecase-tests: New file.
53088         * modules/unictype/property-unassigned-code-value-tests: New file.
53089         * modules/unictype/property-unified-ideograph-tests: New file.
53090         * modules/unictype/property-uppercase-tests: New file.
53091         * modules/unictype/property-variation-selector-tests: New file.
53092         * modules/unictype/property-white-space-tests: New file.
53093         * modules/unictype/property-xid-continue-tests: New file.
53094         * modules/unictype/property-xid-start-tests: New file.
53095         * modules/unictype/property-zero-width-tests: New file.
53096         * modules/unictype/scripts-tests: New file.
53097         * modules/unictype/syntax-c-ident-tests: New file.
53098         * modules/unictype/syntax-c-whitespace-tests: New file.
53099         * modules/unictype/syntax-java-ident-tests: New file.
53100         * modules/unictype/syntax-java-whitespace-tests: New file.
53101         * tests/unictype/test-bidi_byname.c: New file.
53102         * tests/unictype/test-bidi_name.c: New file.
53103         * tests/unictype/test-bidi_of.c: New file.
53104         * tests/unictype/test-bidi_test.c: New file.
53105         * tests/unictype/test-block_list.c: New file.
53106         * tests/unictype/test-block_of.c: New file.
53107         * tests/unictype/test-block_test.c: New file.
53108         * tests/unictype/test-categ_and.c: New file.
53109         * tests/unictype/test-categ_and_not.c: New file.
53110         * tests/unictype/test-categ_byname.c: New file.
53111         * tests/unictype/test-categ_name.c: New file.
53112         * tests/unictype/test-categ_none.c: New file.
53113         * tests/unictype/test-categ_of.c: New file.
53114         * tests/unictype/test-categ_or.c: New file.
53115         * tests/unictype/test-categ_test_withtable.c: New file.
53116         * tests/unictype/test-combining.c: New file.
53117         * tests/unictype/test-decdigit.c: New file.
53118         * tests/unictype/test-digit.c: New file.
53119         * tests/unictype/test-mirror.c: New file.
53120         * tests/unictype/test-numeric.c: New file.
53121         * tests/unictype/test-pr_byname.c: New file.
53122         * tests/unictype/test-pr_test.c: New file.
53123         * tests/unictype/test-predicate-part1.h: New file.
53124         * tests/unictype/test-predicate-part2.h: New file.
53125         * tests/unictype/test-scripts.c: New file.
53126         * tests/unictype/test-sy_c_ident.c: New file.
53127         * tests/unictype/test-sy_java_ident.c: New file.
53128
53129         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53130         for Unicode 5.0.0.
53131         * tests/unictype/test-categ_Cc.c: Likewise.
53132         * tests/unictype/test-categ_Cf.c: Likewise.
53133         * tests/unictype/test-categ_Cn.c: Likewise.
53134         * tests/unictype/test-categ_Co.c: Likewise.
53135         * tests/unictype/test-categ_Cs.c: Likewise.
53136         * tests/unictype/test-categ_L.c: Likewise.
53137         * tests/unictype/test-categ_Ll.c: Likewise.
53138         * tests/unictype/test-categ_Lm.c: Likewise.
53139         * tests/unictype/test-categ_Lo.c: Likewise.
53140         * tests/unictype/test-categ_Lt.c: Likewise.
53141         * tests/unictype/test-categ_Lu.c: Likewise.
53142         * tests/unictype/test-categ_M.c: Likewise.
53143         * tests/unictype/test-categ_Mc.c: Likewise.
53144         * tests/unictype/test-categ_Me.c: Likewise.
53145         * tests/unictype/test-categ_Mn.c: Likewise.
53146         * tests/unictype/test-categ_N.c: Likewise.
53147         * tests/unictype/test-categ_Nd.c: Likewise.
53148         * tests/unictype/test-categ_Nl.c: Likewise.
53149         * tests/unictype/test-categ_No.c: Likewise.
53150         * tests/unictype/test-categ_P.c: Likewise.
53151         * tests/unictype/test-categ_Pc.c: Likewise.
53152         * tests/unictype/test-categ_Pd.c: Likewise.
53153         * tests/unictype/test-categ_Pe.c: Likewise.
53154         * tests/unictype/test-categ_Pf.c: Likewise.
53155         * tests/unictype/test-categ_Pi.c: Likewise.
53156         * tests/unictype/test-categ_Po.c: Likewise.
53157         * tests/unictype/test-categ_Ps.c: Likewise.
53158         * tests/unictype/test-categ_S.c: Likewise.
53159         * tests/unictype/test-categ_Sc.c: Likewise.
53160         * tests/unictype/test-categ_Sk.c: Likewise.
53161         * tests/unictype/test-categ_Sm.c: Likewise.
53162         * tests/unictype/test-categ_So.c: Likewise.
53163         * tests/unictype/test-categ_Z.c: Likewise.
53164         * tests/unictype/test-categ_Zl.c: Likewise.
53165         * tests/unictype/test-categ_Zp.c: Likewise.
53166         * tests/unictype/test-categ_Zs.c: Likewise.
53167         * tests/unictype/test-ctype_alnum.c: Likewise.
53168         * tests/unictype/test-ctype_alpha.c: Likewise.
53169         * tests/unictype/test-ctype_blank.c: Likewise.
53170         * tests/unictype/test-ctype_cntrl.c: Likewise.
53171         * tests/unictype/test-ctype_digit.c: Likewise.
53172         * tests/unictype/test-ctype_graph.c: Likewise.
53173         * tests/unictype/test-ctype_lower.c: Likewise.
53174         * tests/unictype/test-ctype_print.c: Likewise.
53175         * tests/unictype/test-ctype_punct.c: Likewise.
53176         * tests/unictype/test-ctype_space.c: Likewise.
53177         * tests/unictype/test-ctype_upper.c: Likewise.
53178         * tests/unictype/test-ctype_xdigit.c: Likewise.
53179         * tests/unictype/test-decdigit.h: Likewise.
53180         * tests/unictype/test-digit.h: Likewise.
53181         * tests/unictype/test-numeric.h: Likewise.
53182         * tests/unictype/test-pr_alphabetic.c: Likewise.
53183         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53184         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53185         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53186         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53187         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53188         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53189         * tests/unictype/test-pr_bidi_control.c: Likewise.
53190         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53191         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53192         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53193         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53194         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53195         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53196         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53197         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53198         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53199         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53200         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53201         * tests/unictype/test-pr_combining.c: Likewise.
53202         * tests/unictype/test-pr_composite.c: Likewise.
53203         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53204         * tests/unictype/test-pr_dash.c: Likewise.
53205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53206         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53207         * tests/unictype/test-pr_deprecated.c: Likewise.
53208         * tests/unictype/test-pr_diacritic.c: Likewise.
53209         * tests/unictype/test-pr_extender.c: Likewise.
53210         * tests/unictype/test-pr_format_control.c: Likewise.
53211         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53212         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53213         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53214         * tests/unictype/test-pr_hex_digit.c: Likewise.
53215         * tests/unictype/test-pr_hyphen.c: Likewise.
53216         * tests/unictype/test-pr_id_continue.c: Likewise.
53217         * tests/unictype/test-pr_id_start.c: Likewise.
53218         * tests/unictype/test-pr_ideographic.c: Likewise.
53219         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53220         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53221         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53222         * tests/unictype/test-pr_iso_control.c: Likewise.
53223         * tests/unictype/test-pr_join_control.c: Likewise.
53224         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53225         * tests/unictype/test-pr_line_separator.c: Likewise.
53226         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53227         * tests/unictype/test-pr_lowercase.c: Likewise.
53228         * tests/unictype/test-pr_math.c: Likewise.
53229         * tests/unictype/test-pr_non_break.c: Likewise.
53230         * tests/unictype/test-pr_not_a_character.c: Likewise.
53231         * tests/unictype/test-pr_numeric.c: Likewise.
53232         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53233         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53234         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53235         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53236         * tests/unictype/test-pr_other_id_start.c: Likewise.
53237         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53238         * tests/unictype/test-pr_other_math.c: Likewise.
53239         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53240         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53241         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53242         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53243         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53244         * tests/unictype/test-pr_private_use.c: Likewise.
53245         * tests/unictype/test-pr_punctuation.c: Likewise.
53246         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53247         * tests/unictype/test-pr_radical.c: Likewise.
53248         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53249         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53250         * tests/unictype/test-pr_space.c: Likewise.
53251         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53252         * tests/unictype/test-pr_titlecase.c: Likewise.
53253         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53254         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53255         * tests/unictype/test-pr_uppercase.c: Likewise.
53256         * tests/unictype/test-pr_variation_selector.c: Likewise.
53257         * tests/unictype/test-pr_white_space.c: Likewise.
53258         * tests/unictype/test-pr_xid_continue.c: Likewise.
53259         * tests/unictype/test-pr_xid_start.c: Likewise.
53260         * tests/unictype/test-pr_zero_width.c: Likewise.
53261         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53262         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53263
53264 2007-11-12  Bruno Haible  <bruno@clisp.org>
53265
53266         Unicode character classification functions.
53267         * lib/unictype.h: New file.
53268         * modules/unictype/base: New file.
53269         * modules/unictype/category-L: New file.
53270         * modules/unictype/category-Lu: New file.
53271         * modules/unictype/category-Ll: New file.
53272         * modules/unictype/category-Lt: New file.
53273         * modules/unictype/category-Lm: New file.
53274         * modules/unictype/category-Lo: New file.
53275         * modules/unictype/category-M: New file.
53276         * modules/unictype/category-Mn: New file.
53277         * modules/unictype/category-Mc: New file.
53278         * modules/unictype/category-Me: New file.
53279         * modules/unictype/category-N: New file.
53280         * modules/unictype/category-Nd: New file.
53281         * modules/unictype/category-Nl: New file.
53282         * modules/unictype/category-No: New file.
53283         * modules/unictype/category-P: New file.
53284         * modules/unictype/category-Pc: New file.
53285         * modules/unictype/category-Pd: New file.
53286         * modules/unictype/category-Ps: New file.
53287         * modules/unictype/category-Pe: New file.
53288         * modules/unictype/category-Pi: New file.
53289         * modules/unictype/category-Pf: New file.
53290         * modules/unictype/category-Po: New file.
53291         * modules/unictype/category-S: New file.
53292         * modules/unictype/category-Sm: New file.
53293         * modules/unictype/category-Sc: New file.
53294         * modules/unictype/category-Sk: New file.
53295         * modules/unictype/category-So: New file.
53296         * modules/unictype/category-Z: New file.
53297         * modules/unictype/category-Zs: New file.
53298         * modules/unictype/category-Zl: New file.
53299         * modules/unictype/category-Zp: New file.
53300         * modules/unictype/category-C: New file.
53301         * modules/unictype/category-Cc: New file.
53302         * modules/unictype/category-Cf: New file.
53303         * modules/unictype/category-Cs: New file.
53304         * modules/unictype/category-Co: New file.
53305         * modules/unictype/category-Cn: New file.
53306         * modules/unictype/category-or: New file.
53307         * modules/unictype/category-of: New file.
53308         * modules/unictype/category-test: New file.
53309         * modules/unictype/category-test-withtable: New file.
53310         * modules/unictype/category-byname: New file.
53311         * modules/unictype/category-none: New file.
53312         * modules/unictype/category-and: New file.
53313         * modules/unictype/category-and-not: New file.
53314         * modules/unictype/category-name: New file.
53315         * modules/unictype/combining-class: New file.
53316         * modules/unictype/category-all: New file.
53317         * modules/unictype/bidicategory-all: New file.
53318         * modules/unictype/bidicategory-byname: New file.
53319         * modules/unictype/bidicategory-name: New file.
53320         * modules/unictype/bidicategory-of: New file.
53321         * modules/unictype/bidicategory-test: New file.
53322         * modules/unictype/decimal-digit: New file.
53323         * modules/unictype/digit: New file.
53324         * modules/unictype/numeric: New file.
53325         * modules/unictype/mirror: New file.
53326         * modules/unictype/property-white-space: New file.
53327         * modules/unictype/property-alphabetic: New file.
53328         * modules/unictype/property-other-alphabetic: New file.
53329         * modules/unictype/property-not-a-character: New file.
53330         * modules/unictype/property-default-ignorable-code-point: New file.
53331         * modules/unictype/property-other-default-ignorable-code-point: New
53332         file.
53333         * modules/unictype/property-deprecated: New file.
53334         * modules/unictype/property-logical-order-exception: New file.
53335         * modules/unictype/property-variation-selector: New file.
53336         * modules/unictype/property-private-use: New file.
53337         * modules/unictype/property-unassigned-code-value: New file.
53338         * modules/unictype/property-uppercase: New file.
53339         * modules/unictype/property-other-uppercase: New file.
53340         * modules/unictype/property-lowercase: New file.
53341         * modules/unictype/property-other-lowercase: New file.
53342         * modules/unictype/property-titlecase: New file.
53343         * modules/unictype/property-soft-dotted: New file.
53344         * modules/unictype/property-id-start: New file.
53345         * modules/unictype/property-other-id-start: New file.
53346         * modules/unictype/property-id-continue: New file.
53347         * modules/unictype/property-other-id-continue: New file.
53348         * modules/unictype/property-xid-start: New file.
53349         * modules/unictype/property-xid-continue: New file.
53350         * modules/unictype/property-pattern-white-space: New file.
53351         * modules/unictype/property-pattern-syntax: New file.
53352         * modules/unictype/property-join-control: New file.
53353         * modules/unictype/property-grapheme-base: New file.
53354         * modules/unictype/property-grapheme-extend: New file.
53355         * modules/unictype/property-other-grapheme-extend: New file.
53356         * modules/unictype/property-grapheme-link: New file.
53357         * modules/unictype/property-bidi-control: New file.
53358         * modules/unictype/property-bidi-left-to-right: New file.
53359         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53360         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53361         * modules/unictype/property-bidi-european-digit: New file.
53362         * modules/unictype/property-bidi-eur-num-separator: New file.
53363         * modules/unictype/property-bidi-eur-num-terminator: New file.
53364         * modules/unictype/property-bidi-arabic-digit: New file.
53365         * modules/unictype/property-bidi-common-separator: New file.
53366         * modules/unictype/property-bidi-block-separator: New file.
53367         * modules/unictype/property-bidi-segment-separator: New file.
53368         * modules/unictype/property-bidi-whitespace: New file.
53369         * modules/unictype/property-bidi-non-spacing-mark: New file.
53370         * modules/unictype/property-bidi-boundary-neutral: New file.
53371         * modules/unictype/property-bidi-pdf: New file.
53372         * modules/unictype/property-bidi-embedding-or-override: New file.
53373         * modules/unictype/property-bidi-other-neutral: New file.
53374         * modules/unictype/property-hex-digit: New file.
53375         * modules/unictype/property-ascii-hex-digit: New file.
53376         * modules/unictype/property-ideographic: New file.
53377         * modules/unictype/property-unified-ideograph: New file.
53378         * modules/unictype/property-radical: New file.
53379         * modules/unictype/property-ids-binary-operator: New file.
53380         * modules/unictype/property-ids-trinary-operator: New file.
53381         * modules/unictype/property-zero-width: New file.
53382         * modules/unictype/property-space: New file.
53383         * modules/unictype/property-non-break: New file.
53384         * modules/unictype/property-iso-control: New file.
53385         * modules/unictype/property-format-control: New file.
53386         * modules/unictype/property-dash: New file.
53387         * modules/unictype/property-hyphen: New file.
53388         * modules/unictype/property-punctuation: New file.
53389         * modules/unictype/property-line-separator: New file.
53390         * modules/unictype/property-paragraph-separator: New file.
53391         * modules/unictype/property-quotation-mark: New file.
53392         * modules/unictype/property-sentence-terminal: New file.
53393         * modules/unictype/property-terminal-punctuation: New file.
53394         * modules/unictype/property-currency-symbol: New file.
53395         * modules/unictype/property-math: New file.
53396         * modules/unictype/property-other-math: New file.
53397         * modules/unictype/property-paired-punctuation: New file.
53398         * modules/unictype/property-left-of-pair: New file.
53399         * modules/unictype/property-combining: New file.
53400         * modules/unictype/property-composite: New file.
53401         * modules/unictype/property-decimal-digit: New file.
53402         * modules/unictype/property-numeric: New file.
53403         * modules/unictype/property-diacritic: New file.
53404         * modules/unictype/property-extender: New file.
53405         * modules/unictype/property-ignorable-control: New file.
53406         * modules/unictype/property-test: New file.
53407         * modules/unictype/property-byname: New file.
53408         * modules/unictype/property-all: New file.
53409         * modules/unictype/scripts: New file.
53410         * modules/unictype/scripts-all: New file.
53411         * modules/unictype/block-of: New file.
53412         * modules/unictype/block-test: New file.
53413         * modules/unictype/block-list: New file.
53414         * modules/unictype/block-all: New file.
53415         * modules/unictype/syntax-c-whitespace: New file.
53416         * modules/unictype/syntax-java-whitespace: New file.
53417         * modules/unictype/syntax-c-ident: New file.
53418         * modules/unictype/syntax-java-ident: New file.
53419         * modules/unictype/ctype-alnum: New file.
53420         * modules/unictype/ctype-alpha: New file.
53421         * modules/unictype/ctype-cntrl: New file.
53422         * modules/unictype/ctype-digit: New file.
53423         * modules/unictype/ctype-graph: New file.
53424         * modules/unictype/ctype-lower: New file.
53425         * modules/unictype/ctype-print: New file.
53426         * modules/unictype/ctype-punct: New file.
53427         * modules/unictype/ctype-space: New file.
53428         * modules/unictype/ctype-upper: New file.
53429         * modules/unictype/ctype-xdigit: New file.
53430         * modules/unictype/ctype-blank: New file.
53431         * lib/unictype/bidi_byname.c: New file.
53432         * lib/unictype/bidi_name.c: New file.
53433         * lib/unictype/bidi_of.c: New file.
53434         * lib/unictype/bidi_test.c: New file.
53435         * lib/unictype/bitmap.h: New file.
53436         * lib/unictype/block_test.c: New file.
53437         * lib/unictype/blocks.c: New file.
53438         * lib/unictype/categ_C.c: New file.
53439         * lib/unictype/categ_Cc.c: New file.
53440         * lib/unictype/categ_Cf.c: New file.
53441         * lib/unictype/categ_Cn.c: New file.
53442         * lib/unictype/categ_Co.c: New file.
53443         * lib/unictype/categ_Cs.c: New file.
53444         * lib/unictype/categ_L.c: New file.
53445         * lib/unictype/categ_Ll.c: New file.
53446         * lib/unictype/categ_Lm.c: New file.
53447         * lib/unictype/categ_Lo.c: New file.
53448         * lib/unictype/categ_Lt.c: New file.
53449         * lib/unictype/categ_Lu.c: New file.
53450         * lib/unictype/categ_M.c: New file.
53451         * lib/unictype/categ_Mc.c: New file.
53452         * lib/unictype/categ_Me.c: New file.
53453         * lib/unictype/categ_Mn.c: New file.
53454         * lib/unictype/categ_N.c: New file.
53455         * lib/unictype/categ_Nd.c: New file.
53456         * lib/unictype/categ_Nl.c: New file.
53457         * lib/unictype/categ_No.c: New file.
53458         * lib/unictype/categ_P.c: New file.
53459         * lib/unictype/categ_Pc.c: New file.
53460         * lib/unictype/categ_Pd.c: New file.
53461         * lib/unictype/categ_Pe.c: New file.
53462         * lib/unictype/categ_Pf.c: New file.
53463         * lib/unictype/categ_Pi.c: New file.
53464         * lib/unictype/categ_Po.c: New file.
53465         * lib/unictype/categ_Ps.c: New file.
53466         * lib/unictype/categ_S.c: New file.
53467         * lib/unictype/categ_Sc.c: New file.
53468         * lib/unictype/categ_Sk.c: New file.
53469         * lib/unictype/categ_Sm.c: New file.
53470         * lib/unictype/categ_So.c: New file.
53471         * lib/unictype/categ_Z.c: New file.
53472         * lib/unictype/categ_Zl.c: New file.
53473         * lib/unictype/categ_Zp.c: New file.
53474         * lib/unictype/categ_Zs.c: New file.
53475         * lib/unictype/categ_and.c: New file.
53476         * lib/unictype/categ_and_not.c: New file.
53477         * lib/unictype/categ_byname.c: New file.
53478         * lib/unictype/categ_name.c: New file.
53479         * lib/unictype/categ_none.c: New file.
53480         * lib/unictype/categ_of.c: New file.
53481         * lib/unictype/categ_or.c: New file.
53482         * lib/unictype/categ_test.c: New file.
53483         * lib/unictype/combining.c: New file.
53484         * lib/unictype/ctype_alnum.c: New file.
53485         * lib/unictype/ctype_alpha.c: New file.
53486         * lib/unictype/ctype_blank.c: New file.
53487         * lib/unictype/ctype_cntrl.c: New file.
53488         * lib/unictype/ctype_digit.c: New file.
53489         * lib/unictype/ctype_graph.c: New file.
53490         * lib/unictype/ctype_lower.c: New file.
53491         * lib/unictype/ctype_print.c: New file.
53492         * lib/unictype/ctype_punct.c: New file.
53493         * lib/unictype/ctype_space.c: New file.
53494         * lib/unictype/ctype_upper.c: New file.
53495         * lib/unictype/ctype_xdigit.c: New file.
53496         * lib/unictype/decdigit.c: New file.
53497         * lib/unictype/digit.c: New file.
53498         * lib/unictype/identsyntaxmap.h: New file.
53499         * lib/unictype/mirror.c: New file.
53500         * lib/unictype/numeric.c: New file.
53501         * lib/unictype/pr_alphabetic.c: New file.
53502         * lib/unictype/pr_ascii_hex_digit.c: New file.
53503         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53504         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53505         * lib/unictype/pr_bidi_block_separator.c: New file.
53506         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53507         * lib/unictype/pr_bidi_common_separator.c: New file.
53508         * lib/unictype/pr_bidi_control.c: New file.
53509         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53510         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53511         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53512         * lib/unictype/pr_bidi_european_digit.c: New file.
53513         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53514         * lib/unictype/pr_bidi_left_to_right.c: New file.
53515         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53516         * lib/unictype/pr_bidi_other_neutral.c: New file.
53517         * lib/unictype/pr_bidi_pdf.c: New file.
53518         * lib/unictype/pr_bidi_segment_separator.c: New file.
53519         * lib/unictype/pr_bidi_whitespace.c: New file.
53520         * lib/unictype/pr_byname.c: New file.
53521         * lib/unictype/pr_byname.gperf: New file.
53522         * lib/unictype/pr_combining.c: New file.
53523         * lib/unictype/pr_composite.c: New file.
53524         * lib/unictype/pr_currency_symbol.c: New file.
53525         * lib/unictype/pr_dash.c: New file.
53526         * lib/unictype/pr_decimal_digit.c: New file.
53527         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53528         * lib/unictype/pr_deprecated.c: New file.
53529         * lib/unictype/pr_diacritic.c: New file.
53530         * lib/unictype/pr_extender.c: New file.
53531         * lib/unictype/pr_format_control.c: New file.
53532         * lib/unictype/pr_grapheme_base.c: New file.
53533         * lib/unictype/pr_grapheme_extend.c: New file.
53534         * lib/unictype/pr_grapheme_link.c: New file.
53535         * lib/unictype/pr_hex_digit.c: New file.
53536         * lib/unictype/pr_hyphen.c: New file.
53537         * lib/unictype/pr_id_continue.c: New file.
53538         * lib/unictype/pr_id_start.c: New file.
53539         * lib/unictype/pr_ideographic.c: New file.
53540         * lib/unictype/pr_ids_binary_operator.c: New file.
53541         * lib/unictype/pr_ids_trinary_operator.c: New file.
53542         * lib/unictype/pr_ignorable_control.c: New file.
53543         * lib/unictype/pr_iso_control.c: New file.
53544         * lib/unictype/pr_join_control.c: New file.
53545         * lib/unictype/pr_left_of_pair.c: New file.
53546         * lib/unictype/pr_line_separator.c: New file.
53547         * lib/unictype/pr_logical_order_exception.c: New file.
53548         * lib/unictype/pr_lowercase.c: New file.
53549         * lib/unictype/pr_math.c: New file.
53550         * lib/unictype/pr_non_break.c: New file.
53551         * lib/unictype/pr_not_a_character.c: New file.
53552         * lib/unictype/pr_numeric.c: New file.
53553         * lib/unictype/pr_other_alphabetic.c: New file.
53554         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53555         * lib/unictype/pr_other_grapheme_extend.c: New file.
53556         * lib/unictype/pr_other_id_continue.c: New file.
53557         * lib/unictype/pr_other_id_start.c: New file.
53558         * lib/unictype/pr_other_lowercase.c: New file.
53559         * lib/unictype/pr_other_math.c: New file.
53560         * lib/unictype/pr_other_uppercase.c: New file.
53561         * lib/unictype/pr_paired_punctuation.c: New file.
53562         * lib/unictype/pr_paragraph_separator.c: New file.
53563         * lib/unictype/pr_pattern_syntax.c: New file.
53564         * lib/unictype/pr_pattern_white_space.c: New file.
53565         * lib/unictype/pr_private_use.c: New file.
53566         * lib/unictype/pr_punctuation.c: New file.
53567         * lib/unictype/pr_quotation_mark.c: New file.
53568         * lib/unictype/pr_radical.c: New file.
53569         * lib/unictype/pr_sentence_terminal.c: New file.
53570         * lib/unictype/pr_soft_dotted.c: New file.
53571         * lib/unictype/pr_space.c: New file.
53572         * lib/unictype/pr_terminal_punctuation.c: New file.
53573         * lib/unictype/pr_test.c: New file.
53574         * lib/unictype/pr_titlecase.c: New file.
53575         * lib/unictype/pr_unassigned_code_value.c: New file.
53576         * lib/unictype/pr_unified_ideograph.c: New file.
53577         * lib/unictype/pr_uppercase.c: New file.
53578         * lib/unictype/pr_variation_selector.c: New file.
53579         * lib/unictype/pr_white_space.c: New file.
53580         * lib/unictype/pr_xid_continue.c: New file.
53581         * lib/unictype/pr_xid_start.c: New file.
53582         * lib/unictype/pr_zero_width.c: New file.
53583         * lib/unictype/scripts.c: New file.
53584         * lib/unictype/sy_c_ident.c: New file.
53585         * lib/unictype/sy_c_whitespace.c: New file.
53586         * lib/unictype/sy_java_ident.c: New file.
53587         * lib/unictype/sy_java_whitespace.c: New file.
53588
53589         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53590         Unicode 5.0.0.
53591         * lib/unictype/blocks.h: Likewise.
53592         * lib/unictype/categ_C.h: Likewise.
53593         * lib/unictype/categ_Cc.h: Likewise.
53594         * lib/unictype/categ_Cf.h: Likewise.
53595         * lib/unictype/categ_Cn.h: Likewise.
53596         * lib/unictype/categ_Co.h: Likewise.
53597         * lib/unictype/categ_Cs.h: Likewise.
53598         * lib/unictype/categ_L.h: Likewise.
53599         * lib/unictype/categ_Ll.h: Likewise.
53600         * lib/unictype/categ_Lm.h: Likewise.
53601         * lib/unictype/categ_Lo.h: Likewise.
53602         * lib/unictype/categ_Lt.h: Likewise.
53603         * lib/unictype/categ_Lu.h: Likewise.
53604         * lib/unictype/categ_M.h: Likewise.
53605         * lib/unictype/categ_Mc.h: Likewise.
53606         * lib/unictype/categ_Me.h: Likewise.
53607         * lib/unictype/categ_Mn.h: Likewise.
53608         * lib/unictype/categ_N.h: Likewise.
53609         * lib/unictype/categ_Nd.h: Likewise.
53610         * lib/unictype/categ_Nl.h: Likewise.
53611         * lib/unictype/categ_No.h: Likewise.
53612         * lib/unictype/categ_P.h: Likewise.
53613         * lib/unictype/categ_Pc.h: Likewise.
53614         * lib/unictype/categ_Pd.h: Likewise.
53615         * lib/unictype/categ_Pe.h: Likewise.
53616         * lib/unictype/categ_Pf.h: Likewise.
53617         * lib/unictype/categ_Pi.h: Likewise.
53618         * lib/unictype/categ_Po.h: Likewise.
53619         * lib/unictype/categ_Ps.h: Likewise.
53620         * lib/unictype/categ_S.h: Likewise.
53621         * lib/unictype/categ_Sc.h: Likewise.
53622         * lib/unictype/categ_Sk.h: Likewise.
53623         * lib/unictype/categ_Sm.h: Likewise.
53624         * lib/unictype/categ_So.h: Likewise.
53625         * lib/unictype/categ_Z.h: Likewise.
53626         * lib/unictype/categ_Zl.h: Likewise.
53627         * lib/unictype/categ_Zp.h: Likewise.
53628         * lib/unictype/categ_Zs.h: Likewise.
53629         * lib/unictype/categ_of.h: Likewise.
53630         * lib/unictype/combining.h: Likewise.
53631         * lib/unictype/ctype_alnum.h: Likewise.
53632         * lib/unictype/ctype_alpha.h: Likewise.
53633         * lib/unictype/ctype_blank.h: Likewise.
53634         * lib/unictype/ctype_cntrl.h: Likewise.
53635         * lib/unictype/ctype_digit.h: Likewise.
53636         * lib/unictype/ctype_graph.h: Likewise.
53637         * lib/unictype/ctype_lower.h: Likewise.
53638         * lib/unictype/ctype_print.h: Likewise.
53639         * lib/unictype/ctype_punct.h: Likewise.
53640         * lib/unictype/ctype_space.h: Likewise.
53641         * lib/unictype/ctype_upper.h: Likewise.
53642         * lib/unictype/ctype_xdigit.h: Likewise.
53643         * lib/unictype/decdigit.h: Likewise.
53644         * lib/unictype/digit.h: Likewise.
53645         * lib/unictype/mirror.h: Likewise.
53646         * lib/unictype/numeric.h: Likewise.
53647         * lib/unictype/pr_alphabetic.h: Likewise.
53648         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53649         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53650         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53651         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53652         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53653         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53654         * lib/unictype/pr_bidi_control.h: Likewise.
53655         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53656         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53657         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53658         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53659         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53660         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53661         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53662         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53663         * lib/unictype/pr_bidi_pdf.h: Likewise.
53664         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53665         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53666         * lib/unictype/pr_combining.h: Likewise.
53667         * lib/unictype/pr_composite.h: Likewise.
53668         * lib/unictype/pr_currency_symbol.h: Likewise.
53669         * lib/unictype/pr_dash.h: Likewise.
53670         * lib/unictype/pr_decimal_digit.h: Likewise.
53671         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53672         * lib/unictype/pr_deprecated.h: Likewise.
53673         * lib/unictype/pr_diacritic.h: Likewise.
53674         * lib/unictype/pr_extender.h: Likewise.
53675         * lib/unictype/pr_format_control.h: Likewise.
53676         * lib/unictype/pr_grapheme_base.h: Likewise.
53677         * lib/unictype/pr_grapheme_extend.h: Likewise.
53678         * lib/unictype/pr_grapheme_link.h: Likewise.
53679         * lib/unictype/pr_hex_digit.h: Likewise.
53680         * lib/unictype/pr_hyphen.h: Likewise.
53681         * lib/unictype/pr_id_continue.h: Likewise.
53682         * lib/unictype/pr_id_start.h: Likewise.
53683         * lib/unictype/pr_ideographic.h: Likewise.
53684         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53685         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53686         * lib/unictype/pr_ignorable_control.h: Likewise.
53687         * lib/unictype/pr_iso_control.h: Likewise.
53688         * lib/unictype/pr_join_control.h: Likewise.
53689         * lib/unictype/pr_left_of_pair.h: Likewise.
53690         * lib/unictype/pr_line_separator.h: Likewise.
53691         * lib/unictype/pr_logical_order_exception.h: Likewise.
53692         * lib/unictype/pr_lowercase.h: Likewise.
53693         * lib/unictype/pr_math.h: Likewise.
53694         * lib/unictype/pr_non_break.h: Likewise.
53695         * lib/unictype/pr_not_a_character.h: Likewise.
53696         * lib/unictype/pr_numeric.h: Likewise.
53697         * lib/unictype/pr_other_alphabetic.h: Likewise.
53698         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53699         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53700         * lib/unictype/pr_other_id_continue.h: Likewise.
53701         * lib/unictype/pr_other_id_start.h: Likewise.
53702         * lib/unictype/pr_other_lowercase.h: Likewise.
53703         * lib/unictype/pr_other_math.h: Likewise.
53704         * lib/unictype/pr_other_uppercase.h: Likewise.
53705         * lib/unictype/pr_paired_punctuation.h: Likewise.
53706         * lib/unictype/pr_paragraph_separator.h: Likewise.
53707         * lib/unictype/pr_pattern_syntax.h: Likewise.
53708         * lib/unictype/pr_pattern_white_space.h: Likewise.
53709         * lib/unictype/pr_private_use.h: Likewise.
53710         * lib/unictype/pr_punctuation.h: Likewise.
53711         * lib/unictype/pr_quotation_mark.h: Likewise.
53712         * lib/unictype/pr_radical.h: Likewise.
53713         * lib/unictype/pr_sentence_terminal.h: Likewise.
53714         * lib/unictype/pr_soft_dotted.h: Likewise.
53715         * lib/unictype/pr_space.h: Likewise.
53716         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53717         * lib/unictype/pr_titlecase.h: Likewise.
53718         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53719         * lib/unictype/pr_unified_ideograph.h: Likewise.
53720         * lib/unictype/pr_uppercase.h: Likewise.
53721         * lib/unictype/pr_variation_selector.h: Likewise.
53722         * lib/unictype/pr_white_space.h: Likewise.
53723         * lib/unictype/pr_xid_continue.h: Likewise.
53724         * lib/unictype/pr_xid_start.h: Likewise.
53725         * lib/unictype/pr_zero_width.h: Likewise.
53726         * lib/unictype/scripts.h: Likewise.
53727         * lib/unictype/scripts_byname.gperf: Likewise.
53728         * lib/unictype/sy_c_ident.h: Likewise.
53729         * lib/unictype/sy_c_whitespace.h: Likewise.
53730         * lib/unictype/sy_java_ident.h: Likewise.
53731         * lib/unictype/sy_java_whitespace.h: Likewise.
53732
53733         * lib/unictype/Makefile: New file.
53734         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53735         glibc.
53736         * lib/unictype/3level.h: New file, copied from glibc.
53737         * lib/unictype/3levelbit.h: New file.
53738
53739 2007-11-11  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/gperf: New file.
53742         * modules/iconv_open (Depends-on): Add it.
53743         (Makefile.am): Remove the GPERF definition.
53744
53745 2007-11-11  Bruno Haible  <bruno@clisp.org>
53746
53747         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53748         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53749
53750 2007-11-11  Bruno Haible  <bruno@clisp.org>
53751
53752         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53753         (usage): Remove function.
53754
53755 2007-11-11  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53758         gl_FUNC_CEILF_LIBS.
53759         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53760         gl_FUNC_CEIL_LIBS.
53761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53762         gl_FUNC_CEILL_LIBS.
53763         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53764         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53765         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53766
53767 2007-11-11  Bruno Haible  <bruno@clisp.org>
53768
53769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53770         roundf were declared but do not exist on functions.
53771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53772         roundl were declared but do not exist on functions.
53773         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53774         HAVE_FLOORL_AND_CEILL, respectively.
53775         Needed for Sun C on Solaris 10.
53776
53777 2007-11-11  Bruno Haible  <bruno@clisp.org>
53778
53779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53780         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53781         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53782         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53783         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53784         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53785         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53786         HAVE_DECL_ROUNDF.
53787         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53788         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53790         of HAVE_DECL_ROUND*.
53791         * modules/math (Makefile.am): Update.
53792
53793 2007-11-10  Bruno Haible  <bruno@clisp.org>
53794
53795         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53796         ptrdiff_t as m4/intl.m4.
53797
53798 2007-11-10  Jim Meyering  <meyering@redhat.com>
53799
53800         Avoid link failure for the argmatch test.
53801         * tests/test-argmatch.c (usage): Define function to avoid a link
53802         failure: argmatch_die requires a usage function.
53803
53804 2007-11-09  Bruno Haible  <bruno@clisp.org>
53805
53806         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53807         * doc/functions/vsnprintf.texi: Likewise.
53808         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53809         with a size argument < 2.
53810
53811 2007-11-09  Bruno Haible  <bruno@clisp.org>
53812
53813         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53814         buffer. Fixes an inefficiency introduced on 2007-11-03.
53815
53816 2007-11-09  Bruno Haible  <bruno@clisp.org>
53817
53818         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53819         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53820
53821 2007-11-08  Jim Meyering  <meyering@redhat.com>
53822
53823         Change cache variable name prefix "jm_" to "gl_" everywhere.
53824         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53825         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53826         * m4/uptime.m4: s/gl_/jm_/
53827
53828 2007-11-07  Bruno Haible  <bruno@clisp.org>
53829
53830         Update to GNU gettext 0.17.
53831         * m4/intl.m4: Update to GNU gettext 0.17.
53832         * m4/po.m4: Likewise.
53833         * modules/gettext (Files): Remove m4/ulonglong.m4.
53834         (configure.ac): Require gettext infrastructure from version 0.17.
53835
53836 2007-11-06  Bruno Haible  <bruno@clisp.org>
53837
53838         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53839         symbolic values are not defined in a public header.
53840         * lib/freadable.c (freadable) [QNX]: Likewise.
53841         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53842         * lib/freading.c (freading) [QNX]: Likewise.
53843         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53844         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53845         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53846         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53847         Reported by Alain Magloire.
53848
53849         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53850
53851 2007-11-05  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53854         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53855         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53856         Reported by Eric Blake.
53857
53858 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53859             Bruno Haible  <bruno@clisp.org>
53860
53861         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53862         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53863         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53864         (malloc): Undefine also before including <stdlib.h>.
53865         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53866         Needed on OSF/1 4.0.
53867
53868 2007-11-05  Jim Meyering  <meyering@redhat.com>
53869
53870         git-version-gen: sync from coreutils.
53871         * build-aux/git-version-gen: Add comments.
53872         Change the first '-' to '.' in the snapshot version string,
53873         e.g., 6.9-377-08144 -> 6.9.377-08144
53874         Remove first parameter.
53875         Don't declare a version "-dirty" merely because a time
53876         stamp has changed.
53877
53878 2007-11-04  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/lock.h: Protect all macro definitions containing an 'if'
53881         statement through a "do { ... } while (0)".
53882         * lib/tls.h: Likewise.
53883
53884 2007-11-04  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53887
53888 2007-11-04  Bruno Haible  <bruno@clisp.org>
53889
53890         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53891         * modules/fprintf-posix (Depends-on): Add nocrash.
53892         * modules/snprintf-posix (Depends-on): Likewise.
53893         * modules/sprintf-posix (Depends-on): Likewise.
53894         * modules/vasnprintf-posix (Depends-on): Likewise.
53895         * modules/vasprintf-posix (Depends-on): Likewise.
53896         * modules/vfprintf-posix (Depends-on): Likewise.
53897         * modules/vsnprintf-posix (Depends-on): Likewise.
53898         * modules/vsprintf-posix (Depends-on): Likewise.
53899         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53900         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53901         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53902         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53903         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53904         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53905         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53906
53907 2007-11-04  Bruno Haible  <bruno@clisp.org>
53908
53909         * modules/nocrash: New file.
53910         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53911         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53912
53913 2007-11-04  Bruno Haible  <bruno@clisp.org>
53914
53915         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53916         precision handling.
53917         * tests/test-vasprintf-posix.c (test_function): Likewise.
53918         * tests/test-snprintf-posix.h (test_function): Likewise.
53919         * tests/test-sprintf-posix.h (test_function): Likewise.
53920
53921         Fix *printf behaviour for large precisions on mingw and BeOS.
53922         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53923         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53927         gl_PRINTF_PRECISION and test its result. Invoke
53928         gl_PREREQ_VASNPRINTF_PRECISION.
53929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53936         * doc/functions/fprintf.texi: Update.
53937         * doc/functions/printf.texi: Update.
53938         * doc/functions/snprintf.texi: Update.
53939         * doc/functions/sprintf.texi: Update.
53940         * doc/functions/vfprintf.texi: Update.
53941         * doc/functions/vprintf.texi: Update.
53942         * doc/functions/vsnprintf.texi: Update.
53943         * doc/functions/vsprintf.texi: Update.
53944
53945 2007-11-04  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53948
53949 2007-11-04  Bruno Haible  <bruno@clisp.org>
53950
53951         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53952         Reported by Sylvain Beucler <beuc@gnu.org>.
53953
53954 2007-11-03  Bruno Haible  <bruno@clisp.org>
53955
53956         * tests/test-fprintf-posix2.sh: New file.
53957         * tests/test-fprintf-posix2.c: New file.
53958         * modules/fprintf-posix-tests (Files): Add them.
53959         (TESTS): Add test-fprintf-posix2.sh.
53960         (configure.ac): Check for getrlimit and setrlimit.
53961         (check_PROGRAMS): Add test-fprintf-posix2.
53962
53963         * tests/test-printf-posix2.sh: New file.
53964         * tests/test-printf-posix2.c: New file.
53965         * modules/printf-posix-tests (Files): Add them.
53966         (TESTS): Add test-printf-posix2.sh.
53967         (configure.ac): Check for getrlimit and setrlimit.
53968         (check_PROGRAMS): Add test-printf-posix2.
53969
53970         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53971         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53972         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53973         (decode_double): New function, copied from decode_long_double.
53974         (scale10_round_decimal_decoded): New function, extracted from
53975         scale10_round_decimal_long_double.
53976         (scale10_round_decimal_long_double): Use it.
53977         (scale10_round_decimal_double): New function.
53978         (floorlog10): New function.
53979         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53981         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53983         gl_PRINTF_ENOMEM and test its result. Invoke
53984         gl_PREREQ_VASNPRINTF_ENOMEM.
53985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53992         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53993         * modules/snprintf-posix (Depends-on): Likewise.
53994         * modules/sprintf-posix (Depends-on): Likewise.
53995         * modules/vasnprintf-posix (Depends-on): Likewise.
53996         * modules/vasprintf-posix (Depends-on): Likewise.
53997         * modules/vfprintf-posix (Depends-on): Likewise.
53998         * modules/vsnprintf-posix (Depends-on): Likewise.
53999         * modules/vsprintf-posix (Depends-on): Likewise.
54000         * doc/functions/fprintf.texi: Update.
54001         * doc/functions/printf.texi: Update.
54002         * doc/functions/snprintf.texi: Update.
54003         * doc/functions/sprintf.texi: Update.
54004         * doc/functions/vfprintf.texi: Update.
54005         * doc/functions/vprintf.texi: Update.
54006         * doc/functions/vsnprintf.texi: Update.
54007         * doc/functions/vsprintf.texi: Update.
54008
54009 2007-11-03  Bruno Haible  <bruno@clisp.org>
54010
54011         * modules/frexp-nolibm-tests: New file.
54012
54013         * modules/frexp-nolibm: New file.
54014         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54015
54016 2007-11-03  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54019         value is C99 compliant.
54020         Needed for OSF/1 5.1.
54021
54022 2007-11-03  Bruno Haible  <bruno@clisp.org>
54023
54024         Fix out-of-memory handling of vasnprintf.
54025         * lib/printf-parse.c: Include <errno.h>.
54026         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54027         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54028         is already set.
54029
54030 2007-11-02  Eric Blake  <ebb9@byu.net>
54031
54032         Fix tests on cygwin.
54033         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54034
54035 2007-11-01  Bruno Haible  <bruno@clisp.org>
54036
54037         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54038         warning.
54039         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54040         needed for POSIX compatibility.
54041
54042 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54045         for compatibility with GNU.
54046
54047 2007-11-01  Bruno Haible  <bruno@clisp.org>
54048
54049         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54050         (putenv): Renamed from rpl_putenv. Change argument type from
54051         'const char *' to 'char *'.
54052         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54053         of defining putenv in config.h, just set REPLACE_PUTENV.
54054         * modules/putenv (Depends-on): Add stdlib.
54055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54056         (Include): Use <stdlib.h>.
54057         * lib/stdlib.in.h (putenv): New declaration.
54058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54059         REPLACE_PUTENV.
54060         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54061         REPLACE_PUTENV.
54062         Needed for MacOS X 10.5.0.
54063         Reported by Peter O'Gorman <peter@pogma.com>.
54064
54065 2007-11-01  Jim Meyering  <meyering@redhat.com>
54066
54067         Treat an empty date string exactly like "0".
54068         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54069         if the remaining date string (to be parsed) is empty, use "0".
54070         Reported by Mischa Molhoek and discussed in this thread:
54071         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54072
54073 2007-10-31  Bruno Haible  <bruno@clisp.org>
54074
54075         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54076         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54077         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54078         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54079         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54080         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54081
54082 2007-10-31  Bruno Haible  <bruno@clisp.org>
54083
54084         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54085         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54086         (AC_TYPE_LONG_LONG_INT): Use it.
54087         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54088         it as well.
54089         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54090         to m4/longlong.m4.
54091         * modules/stdint (Files): Remove m4/ulonglong.m4.
54092         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54093         m4/ulonglong.m4.
54094         * modules/strtoumax (Files): Likewise.
54095
54096 2007-10-30  Bruno Haible  <bruno@clisp.org>
54097
54098         * modules/xvasprintf-posix: New file.
54099         Suggested by Eric Blake.
54100
54101 2007-10-30  Bruno Haible  <bruno@clisp.org>
54102
54103         * modules/xprintf-posix-tests: New file.
54104         * tests/test-xprintf-posix.sh: New file.
54105         * tests/test-xprintf-posix.c: New file.
54106         * tests/test-xfprintf-posix.c: New file.
54107
54108         * modules/xprintf-posix: New file.
54109
54110 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54111
54112         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54113         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54114         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54115
54116 2007-10-29  Bruno Haible  <bruno@clisp.org>
54117
54118         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54119         contain the special marker '_cv_'.
54120         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54121         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54122         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54123         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54124         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54125         Reported by Ralf Wildenhues.
54126
54127 2007-10-29  Bruno Haible  <bruno@clisp.org>
54128
54129         * gnulib-tool (func_import): When --lgpl is not specified, set
54130         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54131         GPLv3.
54132         Reported by Simon Josefsson.
54133
54134 2007-10-28  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54137         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54138         HAVE_DECL_ISFINITE.
54139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54140         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54141         HAVE_DECL_ISFINITE.
54142
54143 2007-10-28  Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54146         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54147
54148 2007-10-28  Bruno Haible  <bruno@clisp.org>
54149
54150         Fix link errors with Sun C 5.0 on Solaris 10.
54151         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54152         function is declared but not present in the compiler's libm.
54153         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54154         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54155         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54156         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54157         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54158         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54159         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54161         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54162         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54163         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54164         HAVE_DECL_FLOORL.
54165
54166 2007-10-28  Bruno Haible  <bruno@clisp.org>
54167
54168         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54169         gl_FUNC_FLOORL. Cache the result.
54170         (gl_FUNC_FLOORL): Use it.
54171         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54172         gl_FUNC_CEILL. Cache the result.
54173         (gl_FUNC_CEILL): Use it.
54174
54175         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54176         gl_FUNC_FLOOR. Cache the result.
54177         (gl_FUNC_FLOOR): Use it.
54178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54179         gl_FUNC_CEIL. Cache the result.
54180         (gl_FUNC_CEIL): Use it.
54181
54182         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54183         gl_FUNC_FLOORF. Cache the result.
54184         (gl_FUNC_FLOORF): Use it.
54185         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54186         gl_FUNC_CEILF. Cache the result.
54187         (gl_FUNC_CEILF): Use it.
54188
54189 2007-10-28  Bruno Haible  <bruno@clisp.org>
54190
54191         * gnulib-tool: Allow specifying the LGPL version number through
54192         --lgpl=2 or --lgpl=3.
54193         (func_usage): Document --lgpl with argument.
54194         Handle --lgpl=... arguments.
54195         (func_import): Recognize also gl_LGPL calls with an argument. When
54196         --lgpl=2 is used and the module's license is just LGPL, report an
54197         error. Set sed_transform_lib_file according to the lgpl variable. In
54198         the generated files, use --lgpl or gl_LGPL invocations with argument,
54199         if necessary.
54200         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54201         an LGPv2+ license.
54202         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54203         gl_LGPL macro.
54204
54205 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54206             Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54209         (u16_uctomb_aux): Likewise.
54210         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54211         !HAVE_INLINE.
54212         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54213
54214 2007-10-28  Bruno Haible  <bruno@clisp.org>
54215
54216         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54217         Invoke AM_GETTEXT_OPTION if it exists.
54218         * modules/vasprintf: Likewise.
54219         * modules/verror: Likewise.
54220         * modules/xprintf: Likewise.
54221         * modules/xvasprintf: Likewise.
54222
54223 2007-10-27  Ben Pfaff  <blp@gnu.org>
54224
54225         * lib/math.in.h: Define isfinite macro and prototypes for
54226         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54227         implementations.
54228         * m4/math_h.m4: New substitutions for isfinite module.
54229         * lib/isfinite.c: New file.
54230         * m4/isfinite.m4: New file.
54231         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54232         * modules/isfinite: New file.
54233         * modules/isfinite-tests: New file.
54234         * tests/tests-isfinite.c: New file.
54235         * doc/functions/isfinite.texi: Mention isfinite module.
54236         * MODULES.html.sh: Mention new module.
54237
54238 2007-10-27  Ben Pfaff  <blp@gnu.org>
54239
54240         Ralf Wildenhues reported that Tru64 4.0D declares the round
54241         functions but does not have definitions.
54242         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54243         cannot be found in any library, set the output variable to
54244         "missing" instead of "".
54245         * m4/round.m4: Also use our substitute if we cannot find round in
54246         any library, even if it is declared.
54247         * m4/roundf.m4: Likewise for roundf.
54248         * m4/roundl.m4: Likewise for roundl.
54249         * lib/math.in.h: Undefine roundf, round, roundl before defining
54250         their replacements, to allow for hypothetical systems where these
54251         may be defined as macros but not available in libraries.
54252
54253 2007-10-27  Bruno Haible  <bruno@clisp.org>
54254
54255         * doc/gnulib.texi: Invoke @firstparagraphindent.
54256         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54257         changes in gnulib.
54258         (Source changes): New section.
54259
54260 2007-10-26  Bruno Haible  <bruno@clisp.org>
54261
54262         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54263         borrowed from autoconf.
54264
54265 2007-10-26  Bruno Haible  <bruno@clisp.org>
54266
54267         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54268         strerror returned the empty string. Needed on HP-UX 11.00.
54269
54270 2007-10-24  Micah Cowan  <micah@cowan.name>
54271
54272         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54273         * build-aux/bootstrap: Remove support for now-unnecessary option,
54274         --cvs-user, and envvars CVS_USER, CVS_RSH.
54275
54276 2007-10-24  Jim Meyering  <meyering@redhat.com>
54277
54278         Avoid diagnostics from sha1sum when there is no cached checksum.
54279         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54280         if the po.s1 file hasn't been created yet.
54281
54282         * build-aux/bootstrap: Sync from coreutils:
54283         2007-10-24  Jim Meyering  <meyering@redhat.com>
54284         Get gnulib from the git repository, not from an obsolete cvs one.
54285         * build-aux/bootstrap: Suggestion from Micah Cowan.
54286         2007-10-04  Jim Meyering  <jim@meyering.net>
54287         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54288         (update_po_files): Work also when there are no .po files in po/.
54289
54290 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * README: Append ".git" to git and cg examples.
54293         Problem reported by Benoit Sigoure.
54294
54295 2007-10-23  Micah Cowan  <micah@cowan.name>
54296
54297         * users.txt: Add wget.
54298
54299 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54300
54301         Fix linking of some unistdio tests on FreeBSD.
54302         * modules/unistdio/u16-vsnprintf-tests
54303         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54304         * modules/unistdio/u16-vsprintf-tests
54305         (test_u16_vsnprintf1_LDADD): Likewise.
54306         * modules/unistdio/u32-vsnprintf-tests
54307         (test_u32_vsnprintf1_LDADD): Likewise.
54308         * modules/unistdio/u32-vsprintf-tests
54309         (test_u32_vsprintf1_LDADD): Likewise.
54310         * modules/unistdio/u8-vsnprintf-tests
54311         (test_u8_vsnprintf1_LDADD): Likewise.
54312         * modules/unistdio/u8-vsprintf-tests
54313         (test_u8_vsprintf1_LDADD): Likewise.
54314         * modules/unistdio/ulc-vsnprintf-tests
54315         (test_ulc_vsnprintf1_LDADD): Likewise.
54316         * modules/unistdio/ulc-vsprintf-tests
54317         (test_ulc_vsprintf1_LDADD): Likewise.
54318
54319         Fix linking of some uniconv tests on FreeBSD.
54320         * modules/uniconv/u16-conv-from-enc-tests
54321         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54322         * modules/uniconv/u16-conv-to-enc-tests
54323         (test_u16_conv_to_enc_LDADD): Likewise.
54324         * modules/uniconv/u16-strconv-from-enc-tests
54325         (test_u16_strconv_from_enc_LDADD): Likewise.
54326         * modules/uniconv/u16-strconv-to-enc-tests
54327         (test_u16_strconv_to_enc_LDADD): Likewise.
54328         * modules/uniconv/u32-conv-from-enc-tests
54329         (test_u32_conv_from_enc_LDADD): Likewise.
54330         * modules/uniconv/u32-conv-to-enc-tests
54331         (test_u32_conv_to_enc_LDADD): Likewise.
54332         * modules/uniconv/u32-strconv-from-enc-tests
54333         (test_u32_strconv_from_enc_LDADD): Likewise.
54334         * modules/uniconv/u32-strconv-to-enc-tests
54335         (test_u32_strconv_to_enc_LDADD): Likewise.
54336         * modules/uniconv/u8-conv-from-enc-tests
54337         (test_u8_conv_from_enc_LDADD): Likewise.
54338         * modules/uniconv/u8-conv-to-enc-tests
54339         (test_u8_conv_to_enc_LDADD): Likewise.
54340         * modules/uniconv/u8-strconv-from-enc-tests
54341         (test_u8_strconv_from_enc_LDADD): Likewise.
54342         * modules/uniconv/u8-strconv-to-enc-tests
54343         (test_u8_strconv_to_enc_LDADD): Likewise.
54344
54345 2007-10-22  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54348         size.
54349
54350 2007-10-22  Eric Blake  <ebb9@byu.net>
54351
54352         Tweak x*printf documentation.
54353         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54354         variable name and comments.
54355         Suggested by Bruno Haible.
54356
54357 2007-10-22  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/acl.c (copy_acl): Fix file name in comment.
54360
54361 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         Fix Tru64 problem with stdbool.h.
54364         * lib/stdbool.in.h (false, true):
54365         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54366         Don't declare as an enum in this situation; it runs afoul of Tru64.
54367         Problem reported by Steven M. Schweda in
54368         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54369
54370 2007-10-22  Eric Blake  <ebb9@byu.net>
54371
54372         Also wrap vf?printf.
54373         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54374         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54375         (xvprintf, xvfprintf): New functions.
54376
54377 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54378
54379         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54380         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54381
54382         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54383         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54384
54385 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54386
54387         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54388         by Bruno Haible.
54389
54390 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54391
54392         * lib/getloadavg.c
54393         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54394         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54395
54396         * tests/test-i-ring.c: Work for C89.
54397
54398 2007-10-22  Bruno Haible  <bruno@clisp.org>
54399
54400         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54401         -1u, in preprocessor expression, so that we don't test for the bug
54402         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54404
54405 2007-10-22  Eric Blake  <ebb9@byu.net>
54406
54407         * tests/test-yesno.sh: Silence stderr during test.
54408
54409 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54410
54411         * modules/crypto/gc-camellia: New file.
54412
54413         * m4/gc-camellia.m4: New file.
54414
54415         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54416
54417         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54418
54419 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54420
54421         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54422         --help to stdout.  Reported by sms@antinode.org (Steven
54423         M. Schweda).
54424
54425 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54426
54427         * users.txt: Fix link to libksba.
54428
54429 2007-10-21  Ben Pfaff  <blp@gnu.org>
54430
54431         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54432         round.c roundf implementation that depends on floorf and ceilf to
54433         be tested unconditionally.
54434
54435 2007-10-21  Ben Pfaff  <blp@gnu.org>
54436
54437         * m4/check-libm-func.m4: Removed.
54438         * m4/check-math-lib.m4: New file.
54439         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54440         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54441         definition and lack of AC_LIBOBJ([roundf]).
54442         * m4/roundl.m4: Ditto, and similarly for roundl.
54443         * modules/round: Reference new m4 file.
54444         * modules/roundf: Ditto.
54445         * modules/roundl: Ditto.
54446         * tests/test-round2.c (main): Use ROUND instead of round.
54447         Bug report from Bruno Haible.
54448
54449 2007-10-21  Bruno Haible  <bruno@clisp.org>
54450
54451         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54452         context.
54453
54454 2007-10-21  Bruno Haible  <bruno@clisp.org>
54455
54456         * tests/test-wcwidth.c (main): Allow negative result for some control
54457         characters.
54458
54459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54460         Needed on OSF/1 5.1.
54461
54462 2007-10-21  Bruno Haible  <bruno@clisp.org>
54463
54464         * tests/test-floorf1.c: Include isnanf.h.
54465         (main): Use isnanf() instead of isnan().
54466         * tests/test-ceilf1.c: Include isnanf.h.
54467         (main): Use isnanf() instead of isnan().
54468         * tests/test-truncf1.c: Include isnanf.h.
54469         (main): Use isnanf() instead of isnan().
54470         * tests/test-roundf1.c: Include isnanf.h.
54471         (main): Use isnanf() instead of isnan().
54472
54473 2007-10-21  Eric Blake  <ebb9@byu.net>
54474
54475         * users.txt: Update URL for m4.
54476
54477 2007-10-21  Bruno Haible  <bruno@clisp.org>
54478
54479         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54480
54481 2007-10-21  Bruno Haible  <bruno@clisp.org>
54482
54483         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54484         Git's management files if the CVS files are not present.
54485
54486 2007-10-20  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54489         gcc-3.4.x.
54490
54491 2007-10-20  Ben Pfaff  <blp@gnu.org>
54492
54493         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54494         implementations.
54495         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54496         * lib/round.c: New file.
54497         * lib/roundf.c: New file.
54498         * lib/roundl.c: New file.
54499         * m4/round.m4: New file.
54500         * m4/roundf.m4: New file.
54501         * m4/roundl.m4: New file.
54502         * m4/check-libm-func-m4: New file.
54503         * modules/math: Replace round, roundf, roundl related @VARS@ in
54504         math.in.h.
54505         * modules/round: New file.
54506         * modules/round-tests: New file.
54507         * modules/roundf: New file.
54508         * modules/roundf-tests: New file.
54509         * modules/roundl: New file.
54510         * modules/roundl-tests: New file.
54511         * tests/test-round1.c: New file.
54512         * tests/test-round2.c: New file.
54513         * tests/test-roundf1.c: New file.
54514         * tests/test-roundf2.c: New file.
54515         * tests/test-roundl.c: New file.
54516         * doc/functions/round.texi: Mention round module.
54517         * doc/functions/roundf.texi: Mention roundf module.
54518         * doc/functions/roundl.texi: Mention roundl module.
54519         * MODULES.html.sh: Mention new modules.
54520         Thanks to Bruno Haible for suggestions.
54521
54522 2007-10-20  Jim Meyering  <meyering@redhat.com>
54523
54524         * lib/xprintf.c: Include <config.h> unconditionally.
54525
54526         Change xprintf's license to GPL.
54527         * modules/xprintf (License): s/LGPL/GPL/, since this module
54528         depends on modules (exit and exitfail) which are GPL.
54529         Suggestion from Bruno Haible.
54530
54531         xprintf fixes.
54532         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54533         Use a clearer diagnostic.
54534         Patch from Bruno Haible.
54535
54536 2007-10-20  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54539         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54541
54542 2007-10-20  Bruno Haible  <bruno@clisp.org>
54543
54544         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54545         precision in the comparison result > x - 1 or similar.
54546         * tests/test-ceilf2.c (correct_result_p): Likewise.
54547         * tests/test-truncf2.c (correct_result_p): Likewise.
54548         * tests/test-trunc2.c (correct_result_p): Likewise.
54549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54550
54551 2007-10-20  Bruno Haible  <bruno@clisp.org>
54552
54553         * modules/ceil: New file.
54554         * m4/ceil.m4: New file.
54555         * doc/functions/ceil.texi: Mention the 'ceil' module.
54556
54557 2007-10-20  Bruno Haible  <bruno@clisp.org>
54558
54559         * modules/floor: New file.
54560         * m4/floor.m4: New file.
54561         * doc/functions/floor.texi: Mention the 'floor' module.
54562
54563 2007-10-20  Bruno Haible  <bruno@clisp.org>
54564
54565         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54566         of %a.
54567         * modules/floorf-tests (Depends-on): Likewise.
54568         * modules/truncf-tests (Depends-on): Likewise.
54569         * modules/trunc-tests (Depends-on): Likewise.
54570         Reported by Ben Pfaff.
54571
54572 2007-10-19  Jim Meyering  <meyering@redhat.com>
54573
54574         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54575         Don't bother testing specific errno values.  Just test ferror.
54576
54577         New module: xprintf
54578         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54579
54580 2007-10-19  Bruno Haible  <bruno@clisp.org>
54581
54582         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54583         syntax.
54584         * modules/javaexec (Makefile.am): Likewise.
54585         * modules/relocatable-prog (Makefile.am): Likewise.
54586         Suggested by Jim Meyering.
54587
54588 2007-10-18  Bruno Haible  <bruno@clisp.org>
54589
54590         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54591         Reported by Jim Meyering.
54592
54593 2007-10-18  Eric Blake  <ebb9@byu.net>
54594
54595         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54596
54597 2007-10-18  Bruno Haible  <bruno@clisp.org>
54598
54599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54600         the format string into writable memory. Needed in Fortify conditions.
54601
54602 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54603             Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54606         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54607         * modules/trim (Depends-on): Add mbchar.
54608         (configure.ac): Add gl_FUNC_MBRTOWC.
54609         (Makefile.am): Augment lib_SOURCES.
54610
54611 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         Modify glob.c to use fstatat and dirfd, to simplify it.
54614         Suggested by Eric Blake.
54615         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54616         Don't include <stdbool.h>; not used.
54617         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54618         (link_exists_p): Simplify implementation, since we can now assume
54619         dirfd and fstatat.
54620         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54621
54622 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54623
54624         * gnulib-tool (func_get_dependencies): Fix sed script to
54625         match only tests.
54626
54627 2007-10-17  Bruno Haible  <bruno@clisp.org>
54628
54629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54630         allow locale names without encoding suffix.
54631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54633
54634 2007-10-16  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54637         * lib/getgroups.c (getgroups): Likewise.
54638         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54639
54640 2007-10-16  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54643         * modules/malloc-posix (License): Likewise.
54644         * modules/realloc-posix (License): Likewise.
54645         * modules/calloc-posix (License): Likewise.
54646         * modules/intprops (License): Change from GPL to LGPL, with
54647         Paul Eggert's approval.
54648
54649 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         Merge glibc changes into lib/glob.c.
54652
54653         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54654         2007-10-15 04:59:03 UTC.  Here are the changes:
54655
54656         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54657
54658         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54659
54660         * lib/glob.c: Add some branch prediction throughout.
54661
54662         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54663
54664         [BZ #5103]
54665         * lib/glob.c (glob): Recognize patterns starting \/.
54666
54667         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54668
54669         [BZ #3996]
54670         * lib/glob.c (attribute_hidden): Define if not defined.
54671         (glob): Unescape dirname, filename or username when needed and not
54672         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54673         is NULL.  Handle unescaped [ in pattern without closing ].
54674         Don't pass GLOB_CHECK down to recursive glob for directories.
54675         (__glob_pattern_type): New function.
54676         (__glob_pattern_p): Implement using __glob_pattern_type.
54677         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54678         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54679         Remove unreachable code.
54680
54681         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54682
54683         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54684         explain why there are no leaks.
54685
54686         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54687
54688         [BZ #3253]
54689         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54690         time, rather allocate increasingly bigger arrays of pointers, if
54691         possible with alloca, if too large with malloc.
54692
54693 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54694
54695         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54696         Problem reported by H.Merijn Brand in
54697         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54699         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54700
54701 2007-10-15  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54704         with explicit rpl_ prefix.
54705         * lib/fopen.c (fopen): Likewise.
54706         * lib/freopen.c (freopen): Likewise.
54707         * lib/iconv.c (iconv): Likewise.
54708         * lib/iconv_close.c (iconv_close): Likewise.
54709
54710 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54711
54712         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54713
54714 2007-10-15  Bruno Haible  <bruno@clisp.org>
54715
54716         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54717         <stddef.h> instead of <stdlib.h> since we only need NULL.
54718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54719
54720 2007-10-15  Bruno Haible  <bruno@clisp.org>
54721
54722         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54723         Replace paragraph talking about LIBOBJS.
54724         Reported by Colin Watson <cjwatson@debian.org>.
54725
54726 2007-10-15  Bruno Haible  <bruno@clisp.org>
54727
54728         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54729         <stdlib.h> before using NULL.
54730
54731 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54732
54733         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54734         Reported by Albert Chin <china@thewrittenword.com>.
54735
54736 2007-10-14  Bruno Haible  <bruno@clisp.org>
54737
54738         * modules/iconv_open-utf-tests: New file.
54739         * tests/test-iconv-utf.c: New file.
54740
54741         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54742         * modules/iconv_open-utf: New file.
54743         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54744         (iconv, iconv_close): New declarations.
54745         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54746         be defined.
54747         (iconv_open): Add special handling of conversion between UTF-8 and
54748         UTF-{16,32}{BE,LE}.
54749         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54750         * lib/iconv_close.c: New file.
54751         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54752         gl_FUNC_ICONV_OPEN.
54753         (gl_FUNC_ICONV_OPEN): Use it.
54754         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54755         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54756         and REPLACE_ICONV_UTF.
54757         * modules/iconv_open (Depends-on): Add c-strcase.
54758         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54759         ICONV_CONST.
54760         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54761
54762 2007-10-13  Albert Chin  <china@thewrittenword.com>
54763             Bruno Haible  <bruno@clisp.org>
54764
54765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54766         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54767
54768 2007-10-13  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54771         defined, use the ISO C99 inline semantics.
54772         * lib/argp.h (ARGP_EI): Likewise.
54773
54774 2007-10-13  Bruno Haible  <bruno@clisp.org>
54775
54776         Handle 'inline' change in gcc 4.3.0.
54777         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54778         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54779         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54780         argp_fmtstream_point): Disable 'extern' declaration if the function
54781         definition is going to be provided inline.
54782         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54783         semantics, not the ISO C99 inline semantics.
54784         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54785         'extern' declaration if the function definition is going to be provided
54786         inline.
54787         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54788         the GNU C inline semantics, not the ISO C99 inline semantics. With
54789         GCC 4.2, avoid a warning.
54790
54791 2007-10-13  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/freading.h (freading): Enable the use of __freading for
54794         glibc >= 2.7.
54795         * lib/freading.c (freading): Likewise.
54796
54797 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54798
54799         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54800         "warning: C99 inline functions are not supported; using GNU89".
54801
54802 2007-10-12  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54805         of 2.
54806         * tests/test-ceilf2.c: New file.
54807         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54808
54809         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54810         * modules/ceilf-tests: Update.
54811
54812 2007-10-12  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54815         of 2.
54816         * tests/test-floorf2.c: New file.
54817         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54818
54819         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54820         * modules/floorf-tests: Update.
54821
54822 2007-10-12  Bruno Haible  <bruno@clisp.org>
54823
54824         * tests/test-trunc2.c: New file.
54825         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54826
54827         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54828         * modules/trunc-tests: Update.
54829
54830 2007-10-12  Bruno Haible  <bruno@clisp.org>
54831
54832         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54833         of 2.
54834         * tests/test-truncf2.c: New file.
54835         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54836
54837         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54838         * modules/truncf-tests: Update.
54839
54840 2007-10-11  Eric Blake  <ebb9@byu.net>
54841
54842         Don't claim strerror is broken on Interix.
54843         * doc/functions/strerror.texi (strerror): Known broken systems are
54844         now Solaris 8, and not Interix.
54845         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54846         Interix on cross-compile.
54847         Reported by Martin Koeppe in
54848         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54849
54850 2007-10-11  Bruno Haible  <bruno@clisp.org>
54851
54852         * modules/i-ring-tests: New file.
54853         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54854         instead of assert.
54855
54856 2007-10-11  Bruno Haible  <bruno@clisp.org>
54857
54858         * modules/filenamecat-tests: New file.
54859         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54860         * lib/filenamecat.c: Remove test code.
54861
54862 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54863
54864         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54865
54866         * lib/strerror.c: Include <string.h> always, to test interface,
54867         and to remove the need for the dummy.
54868         Include intprops.h to compute width instead of doing it ourselves
54869         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54870         (strerror): Define it to return NULL if there's no system strerror.
54871         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54872         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54873         ancient pre-strerror Unix systems well any more.  Saying "unknown
54874         system error" is enough.
54875         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54876         simpler strerror.c implementation.
54877         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54878         Simplify the tests to reflect the simpler strerror implementation.
54879         * modules/strerror (Depends-on): Add intprops.
54880
54881 2007-10-09  Eric Blake  <ebb9@byu.net>
54882
54883         Silence test-fpending.
54884         * modules/fpending-tests (Files): Add wrapper script.
54885         * tests/test-fpending.sh: New file.
54886
54887 2007-10-09  Bruno Haible  <bruno@clisp.org>
54888
54889         * MODULES.html.sh (func_module): Don't create a hyperlink for
54890         function names like 'printf_frexp'.
54891         (Misc): Add crc, memxor.
54892         (Characteristics of floating types): New section.
54893         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54894         isnanf-nolibm, signbit, trunc, truncf, truncl.
54895         (Enhancements for ISO C 99 functions): New subsection Input/output.
54896         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54897         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54898         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54899         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54900         (Enhancements for POSIX:2001 functions): Add chdir-long.
54901         (File system functions): Add areadlink, chdir-safer, read-file.
54902         Remove cycle-check.
54903         (File system as inode set): New section.
54904         (Date and time): Add gethrxtime.
54905         (Multithreading): Add openmp.
54906         (Internationalization functions): Add localename.
54907         (Unicode string functions): Add unistr/u*-mbsnlen.
54908         (Support for maintaining and releasing projects): Add git-version-gen.
54909         (Lone files): Remove directories.
54910
54911 2007-10-08  Ben Pfaff  <blp@gnu.org>
54912
54913         * lib/xmalloca.h: Fix typo in comment.
54914
54915 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54918         when avoiding problems with integer overflow.  Use a portable test
54919         instead.
54920
54921 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54922
54923         * modules/dummy (License): Change to LGPLv2+.
54924         * modules/float (License): Likewise
54925         * modules/realloc (License): Likewise
54926         * modules/stdlib (License): Likewise
54927
54928 2007-10-07  Bruno Haible  <bruno@clisp.org>
54929
54930         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54931         * floor.c (TWO_MANT_DIG): Likewise.
54932         * ceil.c (TWO_MANT_DIG): Likewise.
54933         Reported by Ben Pfaff.
54934
54935 2007-10-07  Bruno Haible  <bruno@clisp.org>
54936
54937         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54938         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54939         * lib/frexp.c (FUNC): Likewise.
54940         * lib/printf-frexp.h (printf_frexp): Likewise.
54941         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54942         * lib/printf-frexp.c (FUNC): Likewise.
54943         Suggested by Jim Meyering.
54944
54945 2007-10-07  Jim Meyering  <meyering@redhat.com>
54946
54947         Make xnanosleep's integer overflow test more robust.
54948         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54949         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54950
54951 2007-10-07  Bruno Haible  <bruno@clisp.org>
54952
54953         * NEWS: Mention the license change.
54954
54955         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54956         abbreviations in the modules files.
54957
54958         Change copyright notice from GPLv2+ to GPLv3+.
54959         * README: Change copyright notice.
54960         * MODULES.html.sh: Likewise.
54961         * build-aux/bootstrap.conf: Likewise.
54962         * build-aux/config.libpath: Likewise.
54963         * build-aux/csharpcomp.sh.in: Likewise.
54964         * build-aux/csharpexec.sh.in: Likewise.
54965         * build-aux/install-reloc: Likewise.
54966         * build-aux/javacomp.sh.in: Likewise.
54967         * build-aux/javaexec.sh.in: Likewise.
54968         * build-aux/ldd.sh.in: Likewise.
54969         * build-aux/reloc-ldflags: Likewise.
54970         * build-aux/relocatable.sh.in: Likewise.
54971         * build-aux/x-to-1.in: Likewise.
54972         * check-module: Likewise.
54973         * config/srclistvars.sh: Likewise.
54974         * gnulib-tool: Likewise.
54975         * lib/acl-internal.h: Likewise.
54976         * lib/acl.c: Likewise.
54977         * lib/acl.h: Likewise.
54978         * lib/acl_entries.c: Likewise.
54979         * lib/areadlink-with-size.c: Likewise.
54980         * lib/areadlink.c: Likewise.
54981         * lib/areadlink.h: Likewise.
54982         * lib/argmatch.c: Likewise.
54983         * lib/argmatch.h: Likewise.
54984         * lib/argp-ba.c: Likewise.
54985         * lib/argp-eexst.c: Likewise.
54986         * lib/argp-fmtstream.c: Likewise.
54987         * lib/argp-fmtstream.h: Likewise.
54988         * lib/argp-fs-xinl.c: Likewise.
54989         * lib/argp-help.c: Likewise.
54990         * lib/argp-namefrob.h: Likewise.
54991         * lib/argp-parse.c: Likewise.
54992         * lib/argp-pin.c: Likewise.
54993         * lib/argp-pv.c: Likewise.
54994         * lib/argp-pvh.c: Likewise.
54995         * lib/argp-xinl.c: Likewise.
54996         * lib/argp.h: Likewise.
54997         * lib/at-func.c: Likewise.
54998         * lib/atanl.c: Likewise.
54999         * lib/backupfile.c: Likewise.
55000         * lib/backupfile.h: Likewise.
55001         * lib/basename.c: Likewise.
55002         * lib/binary-io.h: Likewise.
55003         * lib/byteswap.in.h: Likewise.
55004         * lib/c-stack.c: Likewise.
55005         * lib/c-stack.h: Likewise.
55006         * lib/c-strcasestr.c: Likewise.
55007         * lib/c-strcasestr.h: Likewise.
55008         * lib/c-strstr.c: Likewise.
55009         * lib/c-strstr.h: Likewise.
55010         * lib/c-strtod.c: Likewise.
55011         * lib/calloc.c: Likewise.
55012         * lib/canon-host.c: Likewise.
55013         * lib/canon-host.h: Likewise.
55014         * lib/canonicalize-lgpl.c: Likewise.
55015         * lib/canonicalize.c: Likewise.
55016         * lib/canonicalize.h: Likewise.
55017         * lib/ceil.c: Likewise.
55018         * lib/ceilf.c: Likewise.
55019         * lib/ceill.c: Likewise.
55020         * lib/chdir-long.c: Likewise.
55021         * lib/chdir-long.h: Likewise.
55022         * lib/chdir-safer.c: Likewise.
55023         * lib/chdir-safer.h: Likewise.
55024         * lib/chown.c: Likewise.
55025         * lib/classpath.c: Likewise.
55026         * lib/classpath.h: Likewise.
55027         * lib/clean-temp.c: Likewise.
55028         * lib/clean-temp.h: Likewise.
55029         * lib/cloexec.c: Likewise.
55030         * lib/close-stream.c: Likewise.
55031         * lib/closein.c: Likewise.
55032         * lib/closein.h: Likewise.
55033         * lib/closeout.c: Likewise.
55034         * lib/closeout.h: Likewise.
55035         * lib/concat-filename.c: Likewise.
55036         * lib/copy-file.c: Likewise.
55037         * lib/copy-file.h: Likewise.
55038         * lib/count-one-bits.h: Likewise.
55039         * lib/crc.c: Likewise.
55040         * lib/crc.h: Likewise.
55041         * lib/creat-safer.c: Likewise.
55042         * lib/csharpcomp.c: Likewise.
55043         * lib/csharpcomp.h: Likewise.
55044         * lib/csharpexec.c: Likewise.
55045         * lib/csharpexec.h: Likewise.
55046         * lib/cycle-check.c: Likewise.
55047         * lib/cycle-check.h: Likewise.
55048         * lib/diacrit.c: Likewise.
55049         * lib/diacrit.h: Likewise.
55050         * lib/diffseq.h: Likewise.
55051         * lib/dirchownmod.c: Likewise.
55052         * lib/dirent.in.h: Likewise.
55053         * lib/dirfd.c: Likewise.
55054         * lib/dirfd.h: Likewise.
55055         * lib/dirname.c: Likewise.
55056         * lib/dirname.h: Likewise.
55057         * lib/dummy.c: Likewise.
55058         * lib/dup-safer.c: Likewise.
55059         * lib/dup2.c: Likewise.
55060         * lib/eealloc.h: Likewise.
55061         * lib/error.c: Likewise.
55062         * lib/error.h: Likewise.
55063         * lib/euidaccess.c: Likewise.
55064         * lib/exclude.c: Likewise.
55065         * lib/exclude.h: Likewise.
55066         * lib/execute.c: Likewise.
55067         * lib/execute.h: Likewise.
55068         * lib/exitfail.c: Likewise.
55069         * lib/exitfail.h: Likewise.
55070         * lib/expl.c: Likewise.
55071         * lib/fatal-signal.c: Likewise.
55072         * lib/fatal-signal.h: Likewise.
55073         * lib/fbufmode.c: Likewise.
55074         * lib/fbufmode.h: Likewise.
55075         * lib/fchdir.c: Likewise.
55076         * lib/fchmodat.c: Likewise.
55077         * lib/fchownat.c: Likewise.
55078         * lib/fcntl--.h: Likewise.
55079         * lib/fcntl-safer.h: Likewise.
55080         * lib/fcntl.in.h: Likewise.
55081         * lib/fd-safer.c: Likewise.
55082         * lib/fflush.c: Likewise.
55083         * lib/file-has-acl.c: Likewise.
55084         * lib/file-set.c: Likewise.
55085         * lib/file-type.c: Likewise.
55086         * lib/file-type.h: Likewise.
55087         * lib/fileblocks.c: Likewise.
55088         * lib/filemode.c: Likewise.
55089         * lib/filemode.h: Likewise.
55090         * lib/filename.h: Likewise.
55091         * lib/filenamecat.c: Likewise.
55092         * lib/filenamecat.h: Likewise.
55093         * lib/findprog.c: Likewise.
55094         * lib/findprog.h: Likewise.
55095         * lib/float.in.h: Likewise.
55096         * lib/floor.c: Likewise.
55097         * lib/floorf.c: Likewise.
55098         * lib/floorl.c: Likewise.
55099         * lib/fopen-safer.c: Likewise.
55100         * lib/fopen.c: Likewise.
55101         * lib/fpending.c: Likewise.
55102         * lib/fpending.h: Likewise.
55103         * lib/fprintf.c: Likewise.
55104         * lib/fprintftime.h: Likewise.
55105         * lib/fpucw.h: Likewise.
55106         * lib/fpurge.c: Likewise.
55107         * lib/fpurge.h: Likewise.
55108         * lib/freadable.c: Likewise.
55109         * lib/freadable.h: Likewise.
55110         * lib/freadahead.c: Likewise.
55111         * lib/freadahead.h: Likewise.
55112         * lib/freading.c: Likewise.
55113         * lib/freading.h: Likewise.
55114         * lib/free.c: Likewise.
55115         * lib/freopen.c: Likewise.
55116         * lib/frexp.c: Likewise.
55117         * lib/frexpl.c: Likewise.
55118         * lib/fseek.c: Likewise.
55119         * lib/fseterr.c: Likewise.
55120         * lib/fseterr.h: Likewise.
55121         * lib/fstatat.c: Likewise.
55122         * lib/fstrcmp.c: Likewise.
55123         * lib/fstrcmp.h: Likewise.
55124         * lib/fsusage.c: Likewise.
55125         * lib/fsusage.h: Likewise.
55126         * lib/ftell.c: Likewise.
55127         * lib/ftello.c: Likewise.
55128         * lib/fts-cycle.c: Likewise.
55129         * lib/fts.c: Likewise.
55130         * lib/fts_.h: Likewise.
55131         * lib/full-read.c: Likewise.
55132         * lib/full-read.h: Likewise.
55133         * lib/full-write.c: Likewise.
55134         * lib/full-write.h: Likewise.
55135         * lib/fwritable.c: Likewise.
55136         * lib/fwritable.h: Likewise.
55137         * lib/fwriteerror.c: Likewise.
55138         * lib/fwriteerror.h: Likewise.
55139         * lib/fwriting.c: Likewise.
55140         * lib/fwriting.h: Likewise.
55141         * lib/gcd.c: Likewise.
55142         * lib/gcd.h: Likewise.
55143         * lib/getcwd.c: Likewise.
55144         * lib/getdate.h: Likewise.
55145         * lib/getdate.y: Likewise.
55146         * lib/getdomainname.c: Likewise.
55147         * lib/getdomainname.h: Likewise.
55148         * lib/getgroups.c: Likewise.
55149         * lib/gethostname.c: Likewise.
55150         * lib/gethrxtime.c: Likewise.
55151         * lib/gethrxtime.h: Likewise.
55152         * lib/getloadavg.c: Likewise.
55153         * lib/getndelim2.c: Likewise.
55154         * lib/getndelim2.h: Likewise.
55155         * lib/getnline.c: Likewise.
55156         * lib/getnline.h: Likewise.
55157         * lib/getopt.c: Likewise.
55158         * lib/getopt.in.h: Likewise.
55159         * lib/getopt1.c: Likewise.
55160         * lib/getopt_int.h: Likewise.
55161         * lib/getpagesize.h: Likewise.
55162         * lib/getsubopt.c: Likewise.
55163         * lib/gettime.c: Likewise.
55164         * lib/getugroups.c: Likewise.
55165         * lib/getugroups.h: Likewise.
55166         * lib/getusershell.c: Likewise.
55167         * lib/gl_anyavltree_list1.h: Likewise.
55168         * lib/gl_anyavltree_list2.h: Likewise.
55169         * lib/gl_anyhash_list1.h: Likewise.
55170         * lib/gl_anyhash_list2.h: Likewise.
55171         * lib/gl_anylinked_list1.h: Likewise.
55172         * lib/gl_anylinked_list2.h: Likewise.
55173         * lib/gl_anyrbtree_list1.h: Likewise.
55174         * lib/gl_anyrbtree_list2.h: Likewise.
55175         * lib/gl_anytree_list1.h: Likewise.
55176         * lib/gl_anytree_list2.h: Likewise.
55177         * lib/gl_anytree_oset.h: Likewise.
55178         * lib/gl_anytreehash_list1.h: Likewise.
55179         * lib/gl_anytreehash_list2.h: Likewise.
55180         * lib/gl_array_list.c: Likewise.
55181         * lib/gl_array_list.h: Likewise.
55182         * lib/gl_array_oset.c: Likewise.
55183         * lib/gl_array_oset.h: Likewise.
55184         * lib/gl_avltree_list.c: Likewise.
55185         * lib/gl_avltree_list.h: Likewise.
55186         * lib/gl_avltree_oset.c: Likewise.
55187         * lib/gl_avltree_oset.h: Likewise.
55188         * lib/gl_avltreehash_list.c: Likewise.
55189         * lib/gl_avltreehash_list.h: Likewise.
55190         * lib/gl_carray_list.c: Likewise.
55191         * lib/gl_carray_list.h: Likewise.
55192         * lib/gl_linked_list.c: Likewise.
55193         * lib/gl_linked_list.h: Likewise.
55194         * lib/gl_linkedhash_list.c: Likewise.
55195         * lib/gl_linkedhash_list.h: Likewise.
55196         * lib/gl_list.c: Likewise.
55197         * lib/gl_list.h: Likewise.
55198         * lib/gl_oset.c: Likewise.
55199         * lib/gl_oset.h: Likewise.
55200         * lib/gl_rbtree_list.c: Likewise.
55201         * lib/gl_rbtree_list.h: Likewise.
55202         * lib/gl_rbtree_oset.c: Likewise.
55203         * lib/gl_rbtree_oset.h: Likewise.
55204         * lib/gl_rbtreehash_list.c: Likewise.
55205         * lib/gl_rbtreehash_list.h: Likewise.
55206         * lib/gl_sublist.c: Likewise.
55207         * lib/gl_sublist.h: Likewise.
55208         * lib/group-member.c: Likewise.
55209         * lib/group-member.h: Likewise.
55210         * lib/hard-locale.c: Likewise.
55211         * lib/hard-locale.h: Likewise.
55212         * lib/hash-pjw.c: Likewise.
55213         * lib/hash-pjw.h: Likewise.
55214         * lib/hash-triple.c: Likewise.
55215         * lib/hash.c: Likewise.
55216         * lib/hash.h: Likewise.
55217         * lib/human.c: Likewise.
55218         * lib/human.h: Likewise.
55219         * lib/i-ring.c: Likewise.
55220         * lib/i-ring.h: Likewise.
55221         * lib/idcache.c: Likewise.
55222         * lib/imaxabs.c: Likewise.
55223         * lib/imaxdiv.c: Likewise.
55224         * lib/inet_pton.c: Likewise.
55225         * lib/inet_pton.h: Likewise.
55226         * lib/intprops.h: Likewise.
55227         * lib/inttostr.c: Likewise.
55228         * lib/inttostr.h: Likewise.
55229         * lib/inttypes.in.h: Likewise.
55230         * lib/isapipe.c: Likewise.
55231         * lib/isdir.c: Likewise.
55232         * lib/isnan.c: Likewise.
55233         * lib/isnan.h: Likewise.
55234         * lib/isnanf.c: Likewise.
55235         * lib/isnanf.h: Likewise.
55236         * lib/isnanl-nolibm.h: Likewise.
55237         * lib/isnanl.c: Likewise.
55238         * lib/isnanl.h: Likewise.
55239         * lib/javacomp.c: Likewise.
55240         * lib/javacomp.h: Likewise.
55241         * lib/javaexec.c: Likewise.
55242         * lib/javaexec.h: Likewise.
55243         * lib/javaversion.c: Likewise.
55244         * lib/javaversion.h: Likewise.
55245         * lib/javaversion.java: Likewise.
55246         * lib/lbrkprop.h: Likewise.
55247         * lib/lchmod.h: Likewise.
55248         * lib/lchown.c: Likewise.
55249         * lib/ldexpl.c: Likewise.
55250         * lib/linebreak.c: Likewise.
55251         * lib/linebreak.h: Likewise.
55252         * lib/linebuffer.c: Likewise.
55253         * lib/linebuffer.h: Likewise.
55254         * lib/locale.in.h: Likewise.
55255         * lib/logl.c: Likewise.
55256         * lib/long-options.c: Likewise.
55257         * lib/long-options.h: Likewise.
55258         * lib/lstat.c: Likewise.
55259         * lib/lstat.h: Likewise.
55260         * lib/math.in.h: Likewise.
55261         * lib/mbchar.c: Likewise.
55262         * lib/mbchar.h: Likewise.
55263         * lib/mbfile.h: Likewise.
55264         * lib/mbiter.h: Likewise.
55265         * lib/mbscasecmp.c: Likewise.
55266         * lib/mbscasestr.c: Likewise.
55267         * lib/mbschr.c: Likewise.
55268         * lib/mbscspn.c: Likewise.
55269         * lib/mbslen.c: Likewise.
55270         * lib/mbsncasecmp.c: Likewise.
55271         * lib/mbsnlen.c: Likewise.
55272         * lib/mbspbrk.c: Likewise.
55273         * lib/mbspcasecmp.c: Likewise.
55274         * lib/mbsrchr.c: Likewise.
55275         * lib/mbssep.c: Likewise.
55276         * lib/mbsspn.c: Likewise.
55277         * lib/mbsstr.c: Likewise.
55278         * lib/mbstok_r.c: Likewise.
55279         * lib/mbswidth.c: Likewise.
55280         * lib/mbswidth.h: Likewise.
55281         * lib/mbuiter.h: Likewise.
55282         * lib/memcasecmp.c: Likewise.
55283         * lib/memcasecmp.h: Likewise.
55284         * lib/memchr.c: Likewise.
55285         * lib/memcmp.c: Likewise.
55286         * lib/memcoll.c: Likewise.
55287         * lib/memcoll.h: Likewise.
55288         * lib/memcpy.c: Likewise.
55289         * lib/memrchr.c: Likewise.
55290         * lib/mkancesdirs.c: Likewise.
55291         * lib/mkdir-p.c: Likewise.
55292         * lib/mkdir-p.h: Likewise.
55293         * lib/mkdir.c: Likewise.
55294         * lib/mkdirat.c: Likewise.
55295         * lib/mkdtemp.c: Likewise.
55296         * lib/mkstemp-safer.c: Likewise.
55297         * lib/mkstemp.c: Likewise.
55298         * lib/modechange.c: Likewise.
55299         * lib/modechange.h: Likewise.
55300         * lib/mountlist.c: Likewise.
55301         * lib/mountlist.h: Likewise.
55302         * lib/mpsort.c: Likewise.
55303         * lib/nanosleep.c: Likewise.
55304         * lib/obstack.c: Likewise.
55305         * lib/obstack.h: Likewise.
55306         * lib/open-safer.c: Likewise.
55307         * lib/open.c: Likewise.
55308         * lib/openat-die.c: Likewise.
55309         * lib/openat-priv.h: Likewise.
55310         * lib/openat-proc.c: Likewise.
55311         * lib/openat.c: Likewise.
55312         * lib/openat.h: Likewise.
55313         * lib/pagealign_alloc.c: Likewise.
55314         * lib/pagealign_alloc.h: Likewise.
55315         * lib/physmem.c: Likewise.
55316         * lib/physmem.h: Likewise.
55317         * lib/pipe-safer.c: Likewise.
55318         * lib/pipe.c: Likewise.
55319         * lib/pipe.h: Likewise.
55320         * lib/posixtm.c: Likewise.
55321         * lib/posixtm.h: Likewise.
55322         * lib/posixver.c: Likewise.
55323         * lib/printf-frexp.c: Likewise.
55324         * lib/printf-frexp.h: Likewise.
55325         * lib/printf-frexpl.c: Likewise.
55326         * lib/printf-frexpl.h: Likewise.
55327         * lib/printf.c: Likewise.
55328         * lib/progname.c: Likewise.
55329         * lib/progname.h: Likewise.
55330         * lib/progreloc.c: Likewise.
55331         * lib/putenv.c: Likewise.
55332         * lib/quote.c: Likewise.
55333         * lib/quote.h: Likewise.
55334         * lib/quotearg.c: Likewise.
55335         * lib/quotearg.h: Likewise.
55336         * lib/raise.c: Likewise.
55337         * lib/readline.c: Likewise.
55338         * lib/readline.h: Likewise.
55339         * lib/readlink.c: Likewise.
55340         * lib/readtokens.c: Likewise.
55341         * lib/readtokens.h: Likewise.
55342         * lib/readtokens0.c: Likewise.
55343         * lib/readtokens0.h: Likewise.
55344         * lib/readutmp.c: Likewise.
55345         * lib/readutmp.h: Likewise.
55346         * lib/realloc.c: Likewise.
55347         * lib/relocwrapper.c: Likewise.
55348         * lib/rename-dest-slash.c: Likewise.
55349         * lib/rename.c: Likewise.
55350         * lib/rmdir.c: Likewise.
55351         * lib/rpmatch.c: Likewise.
55352         * lib/safe-read.c: Likewise.
55353         * lib/safe-read.h: Likewise.
55354         * lib/safe-write.c: Likewise.
55355         * lib/safe-write.h: Likewise.
55356         * lib/same-inode.h: Likewise.
55357         * lib/same.c: Likewise.
55358         * lib/same.h: Likewise.
55359         * lib/save-cwd.c: Likewise.
55360         * lib/save-cwd.h: Likewise.
55361         * lib/savedir.c: Likewise.
55362         * lib/savedir.h: Likewise.
55363         * lib/savewd.c: Likewise.
55364         * lib/savewd.h: Likewise.
55365         * lib/search.in.h: Likewise.
55366         * lib/setenv.c: Likewise.
55367         * lib/setenv.h: Likewise.
55368         * lib/settime.c: Likewise.
55369         * lib/sh-quote.c: Likewise.
55370         * lib/sh-quote.h: Likewise.
55371         * lib/sig2str.c: Likewise.
55372         * lib/sig2str.h: Likewise.
55373         * lib/signal.in.h: Likewise.
55374         * lib/signbitd.c: Likewise.
55375         * lib/signbitf.c: Likewise.
55376         * lib/signbitl.c: Likewise.
55377         * lib/sigprocmask.c: Likewise.
55378         * lib/sincosl.c: Likewise.
55379         * lib/sleep.c: Likewise.
55380         * lib/sprintf.c: Likewise.
55381         * lib/sqrtl.c: Likewise.
55382         * lib/stat-time.h: Likewise.
55383         * lib/stdio--.h: Likewise.
55384         * lib/stdio-safer.h: Likewise.
55385         * lib/stdlib--.h: Likewise.
55386         * lib/stdlib-safer.h: Likewise.
55387         * lib/stdlib.in.h: Likewise.
55388         * lib/stpcpy.c: Likewise.
55389         * lib/stpncpy.c: Likewise.
55390         * lib/strchrnul.c: Likewise.
55391         * lib/strcspn.c: Likewise.
55392         * lib/strerror.c: Likewise.
55393         * lib/strftime.c: Likewise.
55394         * lib/strftime.h: Likewise.
55395         * lib/striconveh.c: Likewise.
55396         * lib/striconveh.h: Likewise.
55397         * lib/striconveha.c: Likewise.
55398         * lib/striconveha.h: Likewise.
55399         * lib/stripslash.c: Likewise.
55400         * lib/strnlen1.c: Likewise.
55401         * lib/strnlen1.h: Likewise.
55402         * lib/strtod.c: Likewise.
55403         * lib/strtoimax.c: Likewise.
55404         * lib/strtok_r.c: Likewise.
55405         * lib/strtol.c: Likewise.
55406         * lib/strtoll.c: Likewise.
55407         * lib/strtoul.c: Likewise.
55408         * lib/strtoull.c: Likewise.
55409         * lib/sysexits.in.h: Likewise.
55410         * lib/tempname.c: Likewise.
55411         * lib/tempname.h: Likewise.
55412         * lib/timespec.h: Likewise.
55413         * lib/tls.c: Likewise.
55414         * lib/tls.h: Likewise.
55415         * lib/tmpdir.c: Likewise.
55416         * lib/tmpdir.h: Likewise.
55417         * lib/tmpfile-safer.c: Likewise.
55418         * lib/tmpfile.c: Likewise.
55419         * lib/trigl.c: Likewise.
55420         * lib/trigl.h: Likewise.
55421         * lib/trim.c: Likewise.
55422         * lib/trim.h: Likewise.
55423         * lib/trunc.c: Likewise.
55424         * lib/truncf.c: Likewise.
55425         * lib/truncl.c: Likewise.
55426         * lib/tsearch.c: Likewise.
55427         * lib/unicodeio.c: Likewise.
55428         * lib/unicodeio.h: Likewise.
55429         * lib/unistd--.h: Likewise.
55430         * lib/unistd-safer.h: Likewise.
55431         * lib/unistdio/ulc-fprintf.c: Likewise.
55432         * lib/unistdio/ulc-vfprintf.c: Likewise.
55433         * lib/unlinkdir.c: Likewise.
55434         * lib/unlinkdir.h: Likewise.
55435         * lib/unlocked-io.h: Likewise.
55436         * lib/unsetenv.c: Likewise.
55437         * lib/userspec.c: Likewise.
55438         * lib/utime.c: Likewise.
55439         * lib/utimecmp.c: Likewise.
55440         * lib/utimecmp.h: Likewise.
55441         * lib/utimens.c: Likewise.
55442         * lib/verify.h: Likewise.
55443         * lib/verror.c: Likewise.
55444         * lib/verror.h: Likewise.
55445         * lib/version-etc-fsf.c: Likewise.
55446         * lib/version-etc.c: Likewise.
55447         * lib/version-etc.h: Likewise.
55448         * lib/vfprintf.c: Likewise.
55449         * lib/vprintf.c: Likewise.
55450         * lib/vsprintf.c: Likewise.
55451         * lib/w32spawn.h: Likewise.
55452         * lib/wait-process.c: Likewise.
55453         * lib/wait-process.h: Likewise.
55454         * lib/wcwidth.c: Likewise.
55455         * lib/write-any-file.c: Likewise.
55456         * lib/xalloc-die.c: Likewise.
55457         * lib/xalloc.h: Likewise.
55458         * lib/xasprintf.c: Likewise.
55459         * lib/xgetcwd.c: Likewise.
55460         * lib/xgetcwd.h: Likewise.
55461         * lib/xgetdomainname.c: Likewise.
55462         * lib/xgetdomainname.h: Likewise.
55463         * lib/xgethostname.c: Likewise.
55464         * lib/xmalloc.c: Likewise.
55465         * lib/xmalloca.c: Likewise.
55466         * lib/xmalloca.h: Likewise.
55467         * lib/xmemcoll.c: Likewise.
55468         * lib/xnanosleep.c: Likewise.
55469         * lib/xreadlink.c: Likewise.
55470         * lib/xreadlink.h: Likewise.
55471         * lib/xsetenv.c: Likewise.
55472         * lib/xsetenv.h: Likewise.
55473         * lib/xstriconv.c: Likewise.
55474         * lib/xstriconv.h: Likewise.
55475         * lib/xstrndup.c: Likewise.
55476         * lib/xstrndup.h: Likewise.
55477         * lib/xstrtod.c: Likewise.
55478         * lib/xstrtod.h: Likewise.
55479         * lib/xstrtol-error.c: Likewise.
55480         * lib/xstrtol.c: Likewise.
55481         * lib/xstrtol.h: Likewise.
55482         * lib/xtime.h: Likewise.
55483         * lib/xvasprintf.c: Likewise.
55484         * lib/xvasprintf.h: Likewise.
55485         * lib/yesno.c: Likewise.
55486         * lib/yesno.h: Likewise.
55487         * posix-modules: Likewise.
55488         * tests/test-alloca-opt.c: Likewise.
55489         * tests/test-arcfour.c: Likewise.
55490         * tests/test-arctwo.c: Likewise.
55491         * tests/test-argmatch.c: Likewise.
55492         * tests/test-argp-2.sh: Likewise.
55493         * tests/test-argp.c: Likewise.
55494         * tests/test-arpa_inet.c: Likewise.
55495         * tests/test-array_list.c: Likewise.
55496         * tests/test-array_oset.c: Likewise.
55497         * tests/test-atexit.c: Likewise.
55498         * tests/test-avltree_list.c: Likewise.
55499         * tests/test-avltree_oset.c: Likewise.
55500         * tests/test-avltreehash_list.c: Likewise.
55501         * tests/test-base64.c: Likewise.
55502         * tests/test-binary-io.c: Likewise.
55503         * tests/test-byteswap.c: Likewise.
55504         * tests/test-c-ctype.c: Likewise.
55505         * tests/test-c-strcasecmp.c: Likewise.
55506         * tests/test-c-strcasestr.c: Likewise.
55507         * tests/test-c-strncasecmp.c: Likewise.
55508         * tests/test-c-strstr.c: Likewise.
55509         * tests/test-canonicalize-lgpl.c: Likewise.
55510         * tests/test-canonicalize.c: Likewise.
55511         * tests/test-carray_list.c: Likewise.
55512         * tests/test-ceilf.c: Likewise.
55513         * tests/test-ceill.c: Likewise.
55514         * tests/test-count-one-bits.c: Likewise.
55515         * tests/test-crc.c: Likewise.
55516         * tests/test-dirname.c: Likewise.
55517         * tests/test-fbufmode.c: Likewise.
55518         * tests/test-fcntl.c: Likewise.
55519         * tests/test-fflush.c: Likewise.
55520         * tests/test-floorf.c: Likewise.
55521         * tests/test-floorl.c: Likewise.
55522         * tests/test-fopen.c: Likewise.
55523         * tests/test-fprintf-posix.c: Likewise.
55524         * tests/test-fprintf-posix.h: Likewise.
55525         * tests/test-fpurge.c: Likewise.
55526         * tests/test-freadable.c: Likewise.
55527         * tests/test-freadahead.c: Likewise.
55528         * tests/test-freading.c: Likewise.
55529         * tests/test-freopen.c: Likewise.
55530         * tests/test-frexp.c: Likewise.
55531         * tests/test-frexpl.c: Likewise.
55532         * tests/test-fseek.c: Likewise.
55533         * tests/test-fseeko.c: Likewise.
55534         * tests/test-fseterr.c: Likewise.
55535         * tests/test-fstrcmp.c: Likewise.
55536         * tests/test-ftell.c: Likewise.
55537         * tests/test-ftello.c: Likewise.
55538         * tests/test-fwritable.c: Likewise.
55539         * tests/test-fwriting.c: Likewise.
55540         * tests/test-getaddrinfo.c: Likewise.
55541         * tests/test-getpass.c: Likewise.
55542         * tests/test-gettimeofday.c: Likewise.
55543         * tests/test-hmac-md5.c: Likewise.
55544         * tests/test-hmac-sha1.c: Likewise.
55545         * tests/test-iconv.c: Likewise.
55546         * tests/test-iconvme.c: Likewise.
55547         * tests/test-inttypes.c: Likewise.
55548         * tests/test-isnan.c: Likewise.
55549         * tests/test-isnanf.c: Likewise.
55550         * tests/test-isnanl-nolibm.c: Likewise.
55551         * tests/test-isnanl.c: Likewise.
55552         * tests/test-isnanl.h: Likewise.
55553         * tests/test-ldexpl.c: Likewise.
55554         * tests/test-linked_list.c: Likewise.
55555         * tests/test-linkedhash_list.c: Likewise.
55556         * tests/test-locale.c: Likewise.
55557         * tests/test-localename.c: Likewise.
55558         * tests/test-lock.c: Likewise.
55559         * tests/test-lseek.c: Likewise.
55560         * tests/test-malloca.c: Likewise.
55561         * tests/test-math.c: Likewise.
55562         * tests/test-mbscasecmp.c: Likewise.
55563         * tests/test-mbscasestr1.c: Likewise.
55564         * tests/test-mbscasestr2.c: Likewise.
55565         * tests/test-mbscasestr3.c: Likewise.
55566         * tests/test-mbscasestr4.c: Likewise.
55567         * tests/test-mbschr.c: Likewise.
55568         * tests/test-mbscspn.c: Likewise.
55569         * tests/test-mbsncasecmp.c: Likewise.
55570         * tests/test-mbspbrk.c: Likewise.
55571         * tests/test-mbspcasecmp.c: Likewise.
55572         * tests/test-mbsrchr.c: Likewise.
55573         * tests/test-mbsspn.c: Likewise.
55574         * tests/test-mbsstr1.c: Likewise.
55575         * tests/test-mbsstr2.c: Likewise.
55576         * tests/test-mbsstr3.c: Likewise.
55577         * tests/test-md5.c: Likewise.
55578         * tests/test-memmem.c: Likewise.
55579         * tests/test-netinet_in.c: Likewise.
55580         * tests/test-open.c: Likewise.
55581         * tests/test-printf-frexp.c: Likewise.
55582         * tests/test-printf-frexpl.c: Likewise.
55583         * tests/test-printf-posix.c: Likewise.
55584         * tests/test-printf-posix.h: Likewise.
55585         * tests/test-rbtree_list.c: Likewise.
55586         * tests/test-rbtree_oset.c: Likewise.
55587         * tests/test-rbtreehash_list.c: Likewise.
55588         * tests/test-read-file.c: Likewise.
55589         * tests/test-rijndael.c: Likewise.
55590         * tests/test-search.c: Likewise.
55591         * tests/test-signbit.c: Likewise.
55592         * tests/test-sleep.c: Likewise.
55593         * tests/test-snprintf-posix.c: Likewise.
55594         * tests/test-snprintf-posix.h: Likewise.
55595         * tests/test-snprintf.c: Likewise.
55596         * tests/test-sprintf-posix.c: Likewise.
55597         * tests/test-sprintf-posix.h: Likewise.
55598         * tests/test-stat-time.c: Likewise.
55599         * tests/test-stdbool.c: Likewise.
55600         * tests/test-stdint.c: Likewise.
55601         * tests/test-stdio.c: Likewise.
55602         * tests/test-stdlib.c: Likewise.
55603         * tests/test-stpncpy.c: Likewise.
55604         * tests/test-strcasestr.c: Likewise.
55605         * tests/test-striconv.c: Likewise.
55606         * tests/test-striconveh.c: Likewise.
55607         * tests/test-striconveha.c: Likewise.
55608         * tests/test-string.c: Likewise.
55609         * tests/test-sys_select.c: Likewise.
55610         * tests/test-sys_socket.c: Likewise.
55611         * tests/test-sys_stat.c: Likewise.
55612         * tests/test-sys_time.c: Likewise.
55613         * tests/test-sysexits.c: Likewise.
55614         * tests/test-time.c: Likewise.
55615         * tests/test-tls.c: Likewise.
55616         * tests/test-trunc.c: Likewise.
55617         * tests/test-truncf.c: Likewise.
55618         * tests/test-truncl.c: Likewise.
55619         * tests/test-unistd.c: Likewise.
55620         * tests/test-vasnprintf-posix.c: Likewise.
55621         * tests/test-vasnprintf-posix2.c: Likewise.
55622         * tests/test-vasnprintf.c: Likewise.
55623         * tests/test-vasprintf-posix.c: Likewise.
55624         * tests/test-vasprintf.c: Likewise.
55625         * tests/test-verify.c: Likewise.
55626         * tests/test-vfprintf-posix.c: Likewise.
55627         * tests/test-vprintf-posix.c: Likewise.
55628         * tests/test-vsnprintf-posix.c: Likewise.
55629         * tests/test-vsnprintf.c: Likewise.
55630         * tests/test-vsprintf-posix.c: Likewise.
55631         * tests/test-wchar.c: Likewise.
55632         * tests/test-wctype.c: Likewise.
55633         * tests/test-wcwidth.c: Likewise.
55634         * tests/test-xstrtol.c: Likewise.
55635         * tests/test-xvasprintf.c: Likewise.
55636         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55637         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55638         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55639         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55640         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55641         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55642         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55643         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55644         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55645         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55646         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55647         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55648         * tests/uniname/test-uninames.c: Likewise.
55649         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55650         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55651         * tests/unistdio/test-u16-printf1.h: Likewise.
55652         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55653         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55654         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55655         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55656         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55657         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55658         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55659         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55660         * tests/unistdio/test-u32-printf1.h: Likewise.
55661         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55662         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55663         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55664         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55665         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55666         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55667         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55668         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55669         * tests/unistdio/test-u8-printf1.h: Likewise.
55670         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55671         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55672         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55673         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55674         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55675         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55676         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55677         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55678         * tests/unistdio/test-ulc-printf1.h: Likewise.
55679         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55680         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55681         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55682         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55683         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55684         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55685         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55686         * tests/uniwidth/test-u16-width.c: Likewise.
55687         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55688         * tests/uniwidth/test-u32-width.c: Likewise.
55689         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55690         * tests/uniwidth/test-u8-width.c: Likewise.
55691         * tests/uniwidth/test-uc_width.c: Likewise.
55692         * config/srclist-update: Likewise.
55693         (fixlicense): Update to GPLv3+.
55694
55695         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55696         * tests/test-tsearch.c: Change copyright notice.
55697
55698         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55699         * lib/c-strcaseeq.h: Change copyright notice.
55700         * lib/streq.h: Likewise.
55701         * lib/uniconv.h: Likewise.
55702         * lib/uniconv/u-conv-from-enc.h: Likewise.
55703         * lib/uniconv/u-conv-to-enc.h: Likewise.
55704         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55705         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55706         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55707         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55708         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55709         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55710         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55711         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55712         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55713         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55714         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55715         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55716         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55717         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55718         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55719         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55720         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55721         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55722         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55723         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55724         * lib/uniname.h: Likewise.
55725         * lib/uniname/uniname.c: Likewise.
55726         * lib/unistdio.h: Likewise.
55727         * lib/unistdio/u-asnprintf.h: Likewise.
55728         * lib/unistdio/u-asprintf.h: Likewise.
55729         * lib/unistdio/u-printf-args.c: Likewise.
55730         * lib/unistdio/u-printf-args.h: Likewise.
55731         * lib/unistdio/u-printf-parse.h: Likewise.
55732         * lib/unistdio/u-snprintf.h: Likewise.
55733         * lib/unistdio/u-sprintf.h: Likewise.
55734         * lib/unistdio/u-vasprintf.h: Likewise.
55735         * lib/unistdio/u-vsnprintf.h: Likewise.
55736         * lib/unistdio/u-vsprintf.h: Likewise.
55737         * lib/unistdio/u16-asnprintf.c: Likewise.
55738         * lib/unistdio/u16-asprintf.c: Likewise.
55739         * lib/unistdio/u16-printf-parse.c: Likewise.
55740         * lib/unistdio/u16-snprintf.c: Likewise.
55741         * lib/unistdio/u16-sprintf.c: Likewise.
55742         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55743         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55744         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55745         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55746         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55747         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55748         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55749         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55750         * lib/unistdio/u16-vasnprintf.c: Likewise.
55751         * lib/unistdio/u16-vasprintf.c: Likewise.
55752         * lib/unistdio/u16-vsnprintf.c: Likewise.
55753         * lib/unistdio/u16-vsprintf.c: Likewise.
55754         * lib/unistdio/u32-asnprintf.c: Likewise.
55755         * lib/unistdio/u32-asprintf.c: Likewise.
55756         * lib/unistdio/u32-printf-parse.c: Likewise.
55757         * lib/unistdio/u32-snprintf.c: Likewise.
55758         * lib/unistdio/u32-sprintf.c: Likewise.
55759         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55760         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55761         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55762         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55763         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55764         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55765         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55766         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55767         * lib/unistdio/u32-vasnprintf.c: Likewise.
55768         * lib/unistdio/u32-vasprintf.c: Likewise.
55769         * lib/unistdio/u32-vsnprintf.c: Likewise.
55770         * lib/unistdio/u32-vsprintf.c: Likewise.
55771         * lib/unistdio/u8-asnprintf.c: Likewise.
55772         * lib/unistdio/u8-asprintf.c: Likewise.
55773         * lib/unistdio/u8-printf-parse.c: Likewise.
55774         * lib/unistdio/u8-snprintf.c: Likewise.
55775         * lib/unistdio/u8-sprintf.c: Likewise.
55776         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55777         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55778         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55779         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55780         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55781         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55782         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55783         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55784         * lib/unistdio/u8-vasnprintf.c: Likewise.
55785         * lib/unistdio/u8-vasprintf.c: Likewise.
55786         * lib/unistdio/u8-vsnprintf.c: Likewise.
55787         * lib/unistdio/u8-vsprintf.c: Likewise.
55788         * lib/unistdio/ulc-asnprintf.c: Likewise.
55789         * lib/unistdio/ulc-asprintf.c: Likewise.
55790         * lib/unistdio/ulc-printf-parse.c: Likewise.
55791         * lib/unistdio/ulc-snprintf.c: Likewise.
55792         * lib/unistdio/ulc-sprintf.c: Likewise.
55793         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55794         * lib/unistdio/ulc-vasprintf.c: Likewise.
55795         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55796         * lib/unistdio/ulc-vsprintf.c: Likewise.
55797         * lib/unistr.h: Likewise.
55798         * lib/unistr/u-cpy-alloc.h: Likewise.
55799         * lib/unistr/u-cpy.h: Likewise.
55800         * lib/unistr/u-endswith.h: Likewise.
55801         * lib/unistr/u-move.h: Likewise.
55802         * lib/unistr/u-set.h: Likewise.
55803         * lib/unistr/u-startswith.h: Likewise.
55804         * lib/unistr/u-stpcpy.h: Likewise.
55805         * lib/unistr/u-stpncpy.h: Likewise.
55806         * lib/unistr/u-strcat.h: Likewise.
55807         * lib/unistr/u-strcpy.h: Likewise.
55808         * lib/unistr/u-strcspn.h: Likewise.
55809         * lib/unistr/u-strdup.h: Likewise.
55810         * lib/unistr/u-strlen.h: Likewise.
55811         * lib/unistr/u-strncat.h: Likewise.
55812         * lib/unistr/u-strncpy.h: Likewise.
55813         * lib/unistr/u-strnlen.h: Likewise.
55814         * lib/unistr/u-strpbrk.h: Likewise.
55815         * lib/unistr/u-strspn.h: Likewise.
55816         * lib/unistr/u-strstr.h: Likewise.
55817         * lib/unistr/u-strtok.h: Likewise.
55818         * lib/unistr/u16-check.c: Likewise.
55819         * lib/unistr/u16-chr.c: Likewise.
55820         * lib/unistr/u16-cmp.c: Likewise.
55821         * lib/unistr/u16-cpy-alloc.c: Likewise.
55822         * lib/unistr/u16-cpy.c: Likewise.
55823         * lib/unistr/u16-endswith.c: Likewise.
55824         * lib/unistr/u16-mblen.c: Likewise.
55825         * lib/unistr/u16-mbsnlen.c: Likewise.
55826         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55827         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55828         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55829         * lib/unistr/u16-mbtouc.c: Likewise.
55830         * lib/unistr/u16-mbtoucr.c: Likewise.
55831         * lib/unistr/u16-move.c: Likewise.
55832         * lib/unistr/u16-next.c: Likewise.
55833         * lib/unistr/u16-prev.c: Likewise.
55834         * lib/unistr/u16-set.c: Likewise.
55835         * lib/unistr/u16-startswith.c: Likewise.
55836         * lib/unistr/u16-stpcpy.c: Likewise.
55837         * lib/unistr/u16-stpncpy.c: Likewise.
55838         * lib/unistr/u16-strcat.c: Likewise.
55839         * lib/unistr/u16-strchr.c: Likewise.
55840         * lib/unistr/u16-strcmp.c: Likewise.
55841         * lib/unistr/u16-strcpy.c: Likewise.
55842         * lib/unistr/u16-strcspn.c: Likewise.
55843         * lib/unistr/u16-strdup.c: Likewise.
55844         * lib/unistr/u16-strlen.c: Likewise.
55845         * lib/unistr/u16-strmblen.c: Likewise.
55846         * lib/unistr/u16-strmbtouc.c: Likewise.
55847         * lib/unistr/u16-strncat.c: Likewise.
55848         * lib/unistr/u16-strncmp.c: Likewise.
55849         * lib/unistr/u16-strncpy.c: Likewise.
55850         * lib/unistr/u16-strnlen.c: Likewise.
55851         * lib/unistr/u16-strpbrk.c: Likewise.
55852         * lib/unistr/u16-strrchr.c: Likewise.
55853         * lib/unistr/u16-strspn.c: Likewise.
55854         * lib/unistr/u16-strstr.c: Likewise.
55855         * lib/unistr/u16-strtok.c: Likewise.
55856         * lib/unistr/u16-to-u32.c: Likewise.
55857         * lib/unistr/u16-to-u8.c: Likewise.
55858         * lib/unistr/u16-uctomb-aux.c: Likewise.
55859         * lib/unistr/u16-uctomb.c: Likewise.
55860         * lib/unistr/u32-check.c: Likewise.
55861         * lib/unistr/u32-chr.c: Likewise.
55862         * lib/unistr/u32-cmp.c: Likewise.
55863         * lib/unistr/u32-cpy-alloc.c: Likewise.
55864         * lib/unistr/u32-cpy.c: Likewise.
55865         * lib/unistr/u32-endswith.c: Likewise.
55866         * lib/unistr/u32-mblen.c: Likewise.
55867         * lib/unistr/u32-mbsnlen.c: Likewise.
55868         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55869         * lib/unistr/u32-mbtouc.c: Likewise.
55870         * lib/unistr/u32-mbtoucr.c: Likewise.
55871         * lib/unistr/u32-move.c: Likewise.
55872         * lib/unistr/u32-next.c: Likewise.
55873         * lib/unistr/u32-prev.c: Likewise.
55874         * lib/unistr/u32-set.c: Likewise.
55875         * lib/unistr/u32-startswith.c: Likewise.
55876         * lib/unistr/u32-stpcpy.c: Likewise.
55877         * lib/unistr/u32-stpncpy.c: Likewise.
55878         * lib/unistr/u32-strcat.c: Likewise.
55879         * lib/unistr/u32-strchr.c: Likewise.
55880         * lib/unistr/u32-strcmp.c: Likewise.
55881         * lib/unistr/u32-strcpy.c: Likewise.
55882         * lib/unistr/u32-strcspn.c: Likewise.
55883         * lib/unistr/u32-strdup.c: Likewise.
55884         * lib/unistr/u32-strlen.c: Likewise.
55885         * lib/unistr/u32-strmblen.c: Likewise.
55886         * lib/unistr/u32-strmbtouc.c: Likewise.
55887         * lib/unistr/u32-strncat.c: Likewise.
55888         * lib/unistr/u32-strncmp.c: Likewise.
55889         * lib/unistr/u32-strncpy.c: Likewise.
55890         * lib/unistr/u32-strnlen.c: Likewise.
55891         * lib/unistr/u32-strpbrk.c: Likewise.
55892         * lib/unistr/u32-strrchr.c: Likewise.
55893         * lib/unistr/u32-strspn.c: Likewise.
55894         * lib/unistr/u32-strstr.c: Likewise.
55895         * lib/unistr/u32-strtok.c: Likewise.
55896         * lib/unistr/u32-to-u16.c: Likewise.
55897         * lib/unistr/u32-to-u8.c: Likewise.
55898         * lib/unistr/u32-uctomb.c: Likewise.
55899         * lib/unistr/u8-check.c: Likewise.
55900         * lib/unistr/u8-chr.c: Likewise.
55901         * lib/unistr/u8-cmp.c: Likewise.
55902         * lib/unistr/u8-cpy-alloc.c: Likewise.
55903         * lib/unistr/u8-cpy.c: Likewise.
55904         * lib/unistr/u8-endswith.c: Likewise.
55905         * lib/unistr/u8-mblen.c: Likewise.
55906         * lib/unistr/u8-mbsnlen.c: Likewise.
55907         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55908         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55909         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55910         * lib/unistr/u8-mbtouc.c: Likewise.
55911         * lib/unistr/u8-mbtoucr.c: Likewise.
55912         * lib/unistr/u8-move.c: Likewise.
55913         * lib/unistr/u8-next.c: Likewise.
55914         * lib/unistr/u8-prev.c: Likewise.
55915         * lib/unistr/u8-set.c: Likewise.
55916         * lib/unistr/u8-startswith.c: Likewise.
55917         * lib/unistr/u8-stpcpy.c: Likewise.
55918         * lib/unistr/u8-stpncpy.c: Likewise.
55919         * lib/unistr/u8-strcat.c: Likewise.
55920         * lib/unistr/u8-strchr.c: Likewise.
55921         * lib/unistr/u8-strcmp.c: Likewise.
55922         * lib/unistr/u8-strcpy.c: Likewise.
55923         * lib/unistr/u8-strcspn.c: Likewise.
55924         * lib/unistr/u8-strdup.c: Likewise.
55925         * lib/unistr/u8-strlen.c: Likewise.
55926         * lib/unistr/u8-strmblen.c: Likewise.
55927         * lib/unistr/u8-strmbtouc.c: Likewise.
55928         * lib/unistr/u8-strncat.c: Likewise.
55929         * lib/unistr/u8-strncmp.c: Likewise.
55930         * lib/unistr/u8-strncpy.c: Likewise.
55931         * lib/unistr/u8-strnlen.c: Likewise.
55932         * lib/unistr/u8-strpbrk.c: Likewise.
55933         * lib/unistr/u8-strrchr.c: Likewise.
55934         * lib/unistr/u8-strspn.c: Likewise.
55935         * lib/unistr/u8-strstr.c: Likewise.
55936         * lib/unistr/u8-strtok.c: Likewise.
55937         * lib/unistr/u8-to-u16.c: Likewise.
55938         * lib/unistr/u8-to-u32.c: Likewise.
55939         * lib/unistr/u8-uctomb-aux.c: Likewise.
55940         * lib/unistr/u8-uctomb.c: Likewise.
55941         * lib/unitypes.h: Likewise.
55942         * lib/uniwidth.h: Likewise.
55943         * lib/uniwidth/cjk.h: Likewise.
55944         * lib/uniwidth/u16-strwidth.c: Likewise.
55945         * lib/uniwidth/u16-width.c: Likewise.
55946         * lib/uniwidth/u32-strwidth.c: Likewise.
55947         * lib/uniwidth/u32-width.c: Likewise.
55948         * lib/uniwidth/u8-strwidth.c: Likewise.
55949         * lib/uniwidth/u8-width.c: Likewise.
55950         * lib/uniwidth/width.c: Likewise.
55951
55952 2007-10-07  Bruno Haible  <bruno@clisp.org>
55953
55954         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55955         The file is still under LGPL (see modules/inttypes).
55956
55957 2007-10-06  Bruno Haible  <bruno@clisp.org>
55958
55959         * modules/trunc (Dependencies): Add 'extensions'.
55960         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55961         Reported by Ben Pfaff <blp@gnu.org>.
55962
55963 2007-10-06  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/freopen-tests: New file.
55966         * tests/test-freopen.c: New file.
55967
55968         * modules/fopen-tests: New file.
55969         * tests/test-fopen.c: New file.
55970
55971         * modules/fopen: New file.
55972         * lib/fopen.c: New file.
55973         * m4/fopen.m4: New file.
55974         * modules/freopen: New file.
55975         * lib/freopen.c: New file.
55976         * m4/freopen.m4: New file.
55977         * lib/stdio.in.h (fopen, freopen): New declarations.
55978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55979         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55980         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55981         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55982         * doc/functions/fopen.texi: Mention the 'fopen' module.
55983         * doc/functions/freopen.texi: Mention the 'freopen' module.
55984
55985 2007-10-06  Bruno Haible  <bruno@clisp.org>
55986
55987         * modules/open-tests: New file.
55988         * tests/test-open.c: New file.
55989
55990         * modules/open: New file.
55991         * lib/open.c: New file.
55992         * m4/open.m4: New file.
55993         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55994         lib/open.c does.
55995         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55996         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55997         macros.
55998         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55999         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56000         REPLACE_OPEN.
56001         * doc/functions/open.texi: Mention the 'open' module.
56002
56003 2007-10-04  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/ceill-tests: New file.
56006         * tests/test-ceill.c: New file.
56007
56008         * modules/ceill: New file.
56009         * lib/ceill.c: Replace entire file.
56010         * m4/ceill.m4: New file.
56011         * lib/math.in.h (ceill): Replace declaration.
56012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56013         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56014         * doc/functions/ceill.texi: Mention the 'ceill' module.
56015         * modules/mathl (Files): Remove lib/ceill.c.
56016         (Depends-on): Add ceill.
56017
56018 2007-10-04  Bruno Haible  <bruno@clisp.org>
56019
56020         * modules/ceilf-tests: New file.
56021         * tests/test-ceilf.c: New file.
56022
56023         * modules/ceilf: New file.
56024         * lib/ceil.c: New file.
56025         * lib/ceilf.c: New file.
56026         * m4/ceilf.m4: New file.
56027         * lib/math.in.h (ceilf): New declaration.
56028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56029         HAVE_DECL_CEILF.
56030         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56031         HAVE_DECL_CEILF.
56032         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56033
56034 2007-10-04  Bruno Haible  <bruno@clisp.org>
56035
56036         * modules/floorl-tests: New file.
56037         * tests/test-floorl.c: New file.
56038
56039         * modules/floorl: New file.
56040         * lib/floorl.c: Replace entire file.
56041         * m4/floorl.m4: New file.
56042         * lib/math.in.h (floorl): Replace declaration.
56043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56044         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56045         * doc/functions/floorl.texi: Mention the 'floorl' module.
56046         * modules/mathl (Files): Remove lib/floorl.c.
56047         (Depends-on): Add floorl.
56048
56049 2007-10-04  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/floorf-tests: New file.
56052         * tests/test-floorf.c: New file.
56053
56054         * modules/floorf: New file.
56055         * lib/floor.c: New file.
56056         * lib/floorf.c: New file.
56057         * m4/floorf.m4: New file.
56058         * lib/math.in.h (floorf): New declaration.
56059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56060         HAVE_DECL_FLOORF.
56061         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56062         HAVE_DECL_FLOORF.
56063         * doc/functions/floorf.texi: Mention the 'floorf' module.
56064
56065 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56066             Bruno Haible  <bruno@clisp.org>
56067
56068         Advertise for the Git server instead of the CVS server.
56069         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56070         repository instead of the CVS one.
56071         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56072         about all VCS systems generically.
56073         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56074
56075 2007-10-04  Bruno Haible  <bruno@clisp.org>
56076
56077         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56078         means.
56079         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56080
56081 2007-10-04  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/truncl-tests: New file.
56084         * tests/test-truncl.c: New file.
56085
56086         * modules/truncl: New file.
56087         * lib/truncl.c: New file.
56088         * m4/truncl.m4: New file.
56089         * lib/math.in.h (truncl): New declaration.
56090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56091         HAVE_DECL_TRUNCL.
56092         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56093         HAVE_DECL_TRUNCL.
56094         * doc/functions/truncl.texi: Mention the 'truncl' module.
56095
56096 2007-10-04  Bruno Haible  <bruno@clisp.org>
56097
56098         * modules/truncf-tests: New file.
56099         * tests/test-truncf.c: New file.
56100
56101         * modules/truncf: New file.
56102         * lib/trunc.c: Make paramerizable through USE_* macros.
56103         * lib/truncf.c: New file.
56104         * m4/truncf.m4: New file.
56105         * lib/math.in.h (truncf): New declaration.
56106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56107         HAVE_DECL_TRUNCF.
56108         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56109         HAVE_DECL_TRUNCF.
56110         * doc/functions/truncf.texi: Mention the 'truncf' module.
56111
56112 2007-10-03  Bruno Haible  <bruno@clisp.org>
56113
56114         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56115         augmentation also for tests modules.
56116         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56117         * modules/atexit-tests (Makefile.am): Likewise.
56118         * modules/binary-io-tests (Makefile.am): Likewise.
56119         * modules/c-strcase-tests (Makefile.am): Likewise.
56120         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56121         * modules/canonicalize-tests (Makefile.am): Likewise.
56122         * modules/closein-tests (Makefile.am): Likewise.
56123         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56124         * modules/freadahead-tests (Makefile.am): Likewise.
56125         * modules/fseek-tests (Makefile.am): Likewise.
56126         * modules/fseeko-tests (Makefile.am): Likewise.
56127         * modules/ftell-tests (Makefile.am): Likewise.
56128         * modules/ftello-tests (Makefile.am): Likewise.
56129         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56130         * modules/isnanl-tests (Makefile.am): Likewise.
56131         * modules/lseek-tests (Makefile.am): Likewise.
56132         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56133         * modules/mbscasestr-tests (Makefile.am): Likewise.
56134         * modules/mbschr-tests (Makefile.am): Likewise.
56135         * modules/mbscspn-tests (Makefile.am): Likewise.
56136         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56137         * modules/mbspbrk-tests (Makefile.am): Likewise.
56138         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56139         * modules/mbsrchr-tests (Makefile.am): Likewise.
56140         * modules/mbsspn-tests (Makefile.am): Likewise.
56141         * modules/mbsstr-tests (Makefile.am): Likewise.
56142         * modules/printf-posix-tests (Makefile.am): Likewise.
56143         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56144         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56145         * modules/tsearch-tests (Makefile.am): Likewise.
56146         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56147         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56148         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56149         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56150         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56151         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56152         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56153         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56154         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56155         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56156         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56157         * modules/xstrtol-tests (Makefile.am): Likewise.
56158         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56159         * modules/yesno-tests (Makefile.am): Likewise.
56160
56161 2007-10-03  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/trunc-tests: New file.
56164         * tests/test-trunc.c: New file.
56165
56166         * modules/trunc: New file.
56167         * lib/trunc.c: New file.
56168         * m4/trunc.m4: New file.
56169         * lib/math.in.h (trunc): New declaration.
56170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56171         HAVE_DECL_TRUNC.
56172         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56173         HAVE_DECL_TRUNC.
56174         * doc/functions/trunc.texi: Mention the 'trunc' module.
56175
56176 2007-10-03  Bruno Haible  <bruno@clisp.org>
56177
56178         * tests/test-fpending.c: New file, mostly copied
56179         from coreutils/lib/t-fpending.c.
56180         * modules/fpending-tests: New file.
56181
56182 2007-10-03  Bruno Haible  <bruno@clisp.org>
56183
56184         Port the stdio extensions to QNX (untested).
56185         * lib/fseterr.c (fseterr): Add support for QNX.
56186         * lib/fbufmode.c (fbufmode): Likewise.
56187         * lib/freadable.c (freadable): Likewise.
56188         * lib/fwritable.c (fwritable): Likewise.
56189         * lib/freading.c (freading): Likewise.
56190         * lib/fwriting.c (fwriting): Likewise.
56191         * lib/freadahead.c (freadahed): Likewise.
56192         * lib/fpurge.c (fpurge): Likewise.
56193         * lib/fseeko.c (rpl_fseeko): Likewise.
56194
56195 2007-10-03  Bruno Haible  <bruno@clisp.org>
56196             Jim Meyering  <jim@meyering.net>
56197             Eric Blake  <ebb9@byu.net>
56198
56199         * doc/relocatable.texi: Use @command instead of @program.
56200
56201 2007-10-02  Jim Meyering  <jim@meyering.net>
56202
56203         Perform one more "_.h" -> ".in.h" substitution.
56204         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56205         instead of unistd_.h here, too.
56206
56207 2007-10-01  Bruno Haible  <bruno@clisp.org>
56208
56209         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56210         Needed for the alloca-opt module.
56211
56212 2007-09-30  Bruno Haible  <bruno@clisp.org>
56213
56214         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56215         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56216         alloca_.h.
56217         * lib/argz.in.h: Renamed from lib/argz_.h.
56218         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56219         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56220         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56221         byteswap_.h.
56222         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56223         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56224         dirent_.h.
56225         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56226         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56227         fcntl_.h.
56228         * lib/float.in.h: Renamed from lib/float_.h.
56229         * modules/float (Files, Makefile.am): Use float.in.h instead of
56230         float_.h.
56231         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56232         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56233         fnmatch_.h.
56234         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56235         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56236         getopt_.h.
56237         * lib/glob.in.h: Renamed from lib/glob_.h.
56238         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56239         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56240         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56241         iconv_.h.
56242         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56243         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56244         inttypes_.h.
56245         * lib/locale.in.h: Renamed from lib/locale_.h.
56246         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56247         locale_.h.
56248         * lib/math.in.h: Renamed from lib/math_.h.
56249         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56250         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56251         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56252         of netinet_in_.h. Add dependency.
56253         * lib/poll.in.h: Renamed from lib/poll_.h.
56254         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56255         * lib/search.in.h: Renamed from lib/search_.h.
56256         * modules/search (Files, Makefile.am): Use search.in.h instead of
56257         search_.h.
56258         * lib/signal.in.h: Renamed from lib/signal_.h.
56259         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56260         _signal.h.
56261         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56262         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56263         stdbool_.h.
56264         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56265         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56266         stdint_.h.
56267         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56268         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56269         stdio_.h.
56270         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56271         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56272         stdlib_.h.
56273         * lib/string.in.h: Renamed from lib/string_.h.
56274         * modules/string (Files, Makefile.am): Use string.in.h instead of
56275         string_.h.
56276         * doc/gnulib-tool.texi (Initial import): Update.
56277         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56278         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56279         of sys_select_.h. Add dependency.
56280         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56281         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56282         of sys_socket_.h.
56283         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56284         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56285         sys_stat_.h.
56286         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56287         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56288         sys_time_.h.
56289         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56290         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56291         sysexits_.h.
56292         * lib/time.in.h: Renamed from lib/time_.h.
56293         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56294         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56295         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56296         unistd_.h.
56297         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56298         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56299         wchar_.h.
56300         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56301         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56302         wctype_.h.
56303         * build-aux/bootstrap (slurp): Update.
56304         * lib/.cppi-disable: Update.
56305
56306 2007-09-30  Bruno Haible  <bruno@clisp.org>
56307
56308         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56309         Needed on BeOS.
56310
56311 2007-09-30  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56314
56315 2007-09-29  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56318
56319 2007-09-29  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56322         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56323         * build-aux/install-reloc: Compile also areadlink.c.
56324         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56325
56326 2007-09-29  Bruno Haible  <bruno@clisp.org>
56327
56328         * gnulib-tool (func_emit_initmacro_done): Indentation.
56329
56330 2007-09-29  Bruno Haible  <bruno@clisp.org>
56331
56332         * README: Add CVS checkout update instructions.
56333         Info from Bob Proulx <bob@proulx.com>.
56334
56335 2007-09-28  Eric Blake  <ebb9@byu.net>
56336
56337         Provide move-if-change.
56338         * build-aux/move-if-change: New file, based on best practice
56339         rather than any canonical upstream location.
56340
56341 2007-09-28  Jim Meyering  <jim@meyering.net>
56342
56343         Fix canonicalize loop-detection corner case.
56344         Do not attempt to stat the symlink values stored via seen_triple.
56345         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56346         on linux-2.6.18, (but not 2.6.22).
56347         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56348         triple_compare.  The former compares dev,ino,filename, while the latter
56349         would actually stat dirname(filename) when dev and ino were equal.
56350         * lib/hash-triple.c: Install <string.h>.
56351         (STREQ): Define.
56352         (triple_compare_ino_str): New function.
56353         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56354
56355 2007-09-28  Eric Blake  <ebb9@byu.net>
56356
56357         Enforce that AC_REPLACE_FUNCS files exist.
56358         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56359         override check for typos.
56360
56361         Fix test-closein on Solaris 10.
56362         * tests/test-closein.c (main): Don't assume stdin can be inherited
56363         closed on all systems.
56364         * tests/test-closein.sh: Likewise.
56365         Reported by Piotr Tarnowski.
56366
56367 2007-09-28  Jim Meyering  <jim@meyering.net>
56368
56369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56370
56371 2007-09-27  Jim Meyering  <jim@meyering.net>
56372
56373         canonicalize: Avoid a false-positive cycle failure.
56374         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56375         Sort.  Remove cycle-check.
56376         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56377         not cycle-check.h.
56378         (seen_triple): New function.
56379         (canonicalize_filename_mode): Use it instead of cycle-check.
56380         * tests/test-canonicalize.c: Add a test for this bug.
56381         * tests/test-canonicalize.sh: Set up and run the test.
56382
56383         New module, file-set, from coreutils.
56384         * modules/file-set: Define it.
56385         * lib/file-set.c, lib/file-set.h: Implement.
56386
56387         New module, hash-triple, from coreutils.
56388         * modules/hash-triple: Define it.
56389         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56390
56391 2007-09-25  Eric Blake  <ebb9@byu.net>
56392
56393         Fix strerror on Interix.
56394         * lib/string_.h (strerror): Declare replacement.
56395         * doc/functions/strerror.texi (strerror): Document the Interix
56396         shortcoming.
56397         * modules/string (Makefile.am): Support new hooks.
56398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56399         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56400         gl_FUNC_STRERROR_SEPARATE.
56401         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56402         * lib/strerror.c (rpl_strerror): Provide replacement.
56403         * modules/strerror (Depends-on): Add string.
56404         (configure.ac): Detect use of module.
56405         * tests/test-strerror.c: New file.
56406         * modules/strerror-tests: New test module.
56407         * modules/argp (Depends-on): Add strerror.
56408         * modules/error (Depends-on): Likewise.
56409         Reported by Martin Koeppe.
56410
56411 2007-09-24  Bruno Haible  <bruno@clisp.org>
56412
56413         * README: Update git instructions.
56414
56415 2007-09-24  Eric Blake  <ebb9@byu.net>
56416
56417         Revert fpending breakage from 2007-09-08.
56418         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56419         __fpending.c.
56420
56421 2007-09-24  Jim Meyering  <jim@meyering.net>
56422
56423         filenamecat.c: Add a test.
56424         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56425         showing how the function works when DIR is the empty string.
56426
56427 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56428
56429         * tests/test-canonicalize.sh: Turn on executable bit.
56430
56431 2007-09-19  Eric Blake  <ebb9@byu.net>
56432
56433         * README: Update CVS instructions.
56434
56435 2007-09-18  Bruno Haible  <bruno@clisp.org>
56436
56437         * modules/areadlink: New file.
56438         * lib/areadlink.h (areadlink): New declaration.
56439         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56440
56441 2007-09-17  Jim Meyering  <jim@meyering.net>
56442
56443         * lib/savewd.c (ESTALE) [!defined]: Define.
56444         Reported to be required on Interix by Martin Koeppe.
56445
56446 2007-09-17  Bruno Haible  <bruno@clisp.org>
56447
56448         * gnulib-tool (func_version): Use $version.
56449
56450 2007-09-16  Bruno Haible  <bruno@clisp.org>
56451
56452         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56453         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56454         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56455         Reported by Greg Schafer <gschafer@zip.com.au>.
56456
56457 2007-09-15  Bruno Haible  <bruno@clisp.org>
56458
56459         * gnulib-tool (sed): Try a little harder to make bash understand the
56460         alias.
56461         Reported by Bruce Korb <bruce.korb@gmail.com>.
56462
56463 2007-09-13  Eric Blake  <ebb9@byu.net>
56464
56465         * ChangeLog: Remove conflict markers.
56466
56467 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56468
56469         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56470         Reported by Bruno Haible <bruno@clisp.org>.
56471
56472 2007-09-12  Bruno Haible  <bruno@clisp.org>
56473
56474         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56475         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56476         is not defined.
56477
56478 2007-09-12  Eric Blake  <ebb9@byu.net>
56479
56480         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56481         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56482         Autoconf definition.
56483         * modules/euidaccess (Depends-on): Add extensions, for
56484         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56485         * modules/fnmatch (Depends-on): Likewise.
56486         * modules/getaddrinfo (Depends-on): Likewise.
56487         * modules/getdelim (Depends-on): Likewise.
56488         * modules/getline (Depends-on): Likewise.
56489         * modules/getsubopt (Depends-on): Likewise.
56490         * modules/gettext (Depends-on): Likewise.
56491         * modules/group-member (Depends-on): Likewise.
56492         * modules/mbchar (Depends-on): Likewise.
56493         * modules/memmem (Depends-on): Likewise.
56494         * modules/mempcpy (Depends-on): Likewise.
56495         * modules/memrchr (Depends-on): Likewise.
56496         * modules/pagealign_alloc (Depends-on): Likewise.
56497         * modules/readutmp (Depends-on): Likewise.
56498         * modules/stpcpy (Depends-on): Likewise.
56499         * modules/stpncpy (Depends-on): Likewise.
56500         * modules/strchrnul (Depends-on): Likewise.
56501         * modules/strndup (Depends-on): Likewise.
56502         * modules/strsep (Depends-on): Likewise.
56503         * modules/strverscmp (Depends-on): Likewise.
56504         * modules/vasprintf (Depends-on): Likewise.
56505         * modules/wcwidth (Depends-on): Likewise.
56506         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56507         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56510         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56511         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56512         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56513         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56514         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56515         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56518         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56520         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56521         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56522         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56523         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56525         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56526         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56528         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56530         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56532         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56533         so that lock.m4 can be used in gettext without extensions module.
56534
56535 2007-09-11  Bruno Haible  <bruno@clisp.org>
56536
56537         * m4/isc-posix.m4: Remove file.
56538         Suggested by Eric Blake.
56539
56540 2007-09-11  Eric Blake  <ebb9@byu.net>
56541
56542         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56543
56544 2007-09-10  Bruno Haible  <bruno@clisp.org>
56545
56546         * posix-modules: Fix typo in error message.
56547         Reported by Matt <mkraai@beckman.com>.
56548
56549 2007-09-09  Bruno Haible  <bruno@clisp.org>
56550
56551         * doc/functions/getdelim.texi: Update list of platforms lacking the
56552         function.
56553         * doc/functions/getline.texi: Likewise.
56554
56555 2007-09-09  Jim Meyering  <jim@meyering.net>
56556
56557         * lib/hash.c (hash_initialize): Detect calloc failure.
56558         Reported by Bruno Haible.
56559
56560 2007-09-09  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56563         malloc or realloc fails.
56564
56565 2007-09-09  Bruno Haible  <bruno@clisp.org>
56566
56567         * modules/getcwd (Depends-on): Add malloc-posix.
56568         * modules/glob (Depends-on): Likewise.
56569         * modules/putenv (Depends-on): Likewise.
56570         * modules/strdup (Depends-on): Likewise.
56571         * modules/getdelim (Depends-on): Add realloc-posix.
56572         * modules/read-file (Depends-on): Likewise.
56573
56574 2007-09-09  Bruno Haible  <bruno@clisp.org>
56575
56576         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56577         (gl_FUNC_MALLOC_POSIX): Require it.
56578         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56579         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56580         * modules/realloc (Files): Add m4/malloc.m4.
56581         * modules/calloc (Files): Likewise.
56582
56583 2007-09-09  Bruno Haible  <bruno@clisp.org>
56584
56585         * modules/malloc-posix: New file.
56586         * modules/malloc (Depends-on): Add malloc-posix.
56587         * lib/malloc.c: Include errno.h.
56588         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56589         and a POSIX-compatible malloc into a single function. Set ENOMEM
56590         when returning NULL.
56591         * m4/malloc.m4: New file.
56592         * doc/functions/malloc.texi: Mention the malloc-posix module.
56593         * lib/stdlib_.h (malloc): New declaration.
56594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56595         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56596         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56597         and HAVE_MALLOC_POSIX.
56598
56599 2007-09-09  Bruno Haible  <bruno@clisp.org>
56600
56601         * modules/realloc-posix: New file.
56602         * modules/realloc (Depends-on): Add realloc-posix.
56603         * lib/realloc.c: Include errno.h.
56604         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56605         and a POSIX-compatible realloc into a single function. Set ENOMEM
56606         when returning NULL.
56607         * m4/realloc.m4: New file.
56608         * doc/functions/realloc.texi: Mention the realloc-posix module.
56609         * lib/stdlib_.h (realloc): New declaration.
56610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56611         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56612         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56613         and HAVE_REALLOC_POSIX.
56614
56615 2007-09-09  Bruno Haible  <bruno@clisp.org>
56616
56617         * modules/calloc-posix: New file.
56618         * modules/calloc (Depends-on): Add calloc-posix.
56619         * lib/calloc.c: Include errno.h.
56620         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56621         and a POSIX-compatible calloc into a single function. Set ENOMEM
56622         when returning NULL.
56623         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56624         * doc/functions/calloc.texi: Mention the calloc-posix module.
56625         * lib/stdlib_.h (calloc): New declaration.
56626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56627         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56628         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56629         and HAVE_CALLOC_POSIX.
56630
56631 2007-09-09  Bruno Haible  <bruno@clisp.org>
56632
56633         Allow for modules to show an arbitrary notice.
56634         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56635         * gnulib-tool: New option --extract-notice.
56636         (func_usage): Document it.
56637         (sed_extract_prog): Update.
56638         (func_get_notice): New function.
56639         (func_modules_notice): New function.
56640         (func_import, func_create_testdir): Invoke it.
56641         Suggested by Jim Meyering.
56642
56643 2007-09-09  Bruno Haible  <bruno@clisp.org>
56644
56645         * gnulib-tool: New options --verbose, --quiet.
56646         (func_usage): Document them.
56647         (verbose): New variable.
56648         (func_execute_command): New function.
56649         (func_import): Don't show the module list and the file list if
56650         $verbose < 0.
56651         (func_create_testdir): Likewise. Use func_execute_command.
56652         (func_create_megatestdir): Use func_execute_command.
56653
56654 2007-09-08  Bruno Haible  <bruno@clisp.org>
56655
56656         * gnulib-tool (func_import): Prefer rsync over wget when available,
56657         for fetching the PO files.
56658
56659 2007-09-08  Bruno Haible  <bruno@clisp.org>
56660
56661         * posix-modules: New file. Portions copied from gnulib-tool.
56662         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56663
56664 2007-09-08  Jim Meyering  <jim@meyering.net>
56665
56666         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56667         * lib/fpending.h: Rename from __fpending.h.
56668         * lib/fpending.c: Rename from __fpending.c.
56669         Include "fpending.h", not "__fpending.h".
56670         * lib/__fpending.h, lib/__fpending.c: Remove files.
56671         * modules/fpending (Files): Reflect new file names.
56672         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56673
56674 2007-09-08  Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/inttypes-h.m4: Remove stub file.
56677
56678 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56679
56680         * doc/headers/stdint.texi: Discuss #include_next issue.
56681
56682 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56685
56686 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56687
56688         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56689         in variable name.
56690
56691 2007-09-03  Jim Meyering  <jim@meyering.net>
56692
56693         New module: git-version-gen.
56694         * modules/git-version-gen: New file.
56695
56696         Import changes from coreutils for bootstrap script.
56697
56698         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56699
56700         bootstrap: uses rsync to download the .po files
56701         * build-aux/bootstrap (po_download_command_format): New global.
56702         (download_po_files): Use rsync.
56703         (update_po_files): Don't remove .po files after download,
56704         so future rsync runs can take advantage of the copies.
56705
56706         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56707
56708         Solve the unnecessary-.po-file-regeneration problem once and for all.
56709         * build-aux/bootstrap (download_po_files): New function, renamed from
56710         get_translations.  Now, downloads, but doesn't update LINGUAS.
56711         (update_po_files): New function.
56712
56713         bootstrap: Ignore more.
56714         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56715         uniwidth to e.g., lib/.gitignore.
56716         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56717
56718         * build-aux/bootstrap: New setting: vc_ignore.
56719         (insert_sorted_if_absent): Create $file if absent.
56720         Adapt to new, possibly empty, list: $vc_ignore.
56721
56722         bootstrap: generate more ignorable names
56723         * build-aux/bootstrap (slurp): When generating ignorable names,
56724         also map .sin to .sed, .gperf to .c, and .y to .c.
56725
56726 2007-09-03  Jim Meyering  <jim@meyering.net>
56727
56728         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56729         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56730
56731 2007-09-02  Bruno Haible  <bruno@clisp.org>
56732
56733         Fix mis-recognition of 'mcs' on QNX 6.
56734         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56735         output contains the string "Mono".
56736         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56737         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56738
56739 2007-09-01  Bruno Haible  <bruno@clisp.org>
56740
56741         Fix collision between uniwidth/* and linebreak modules.
56742         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56743         u32_width): Remove declarations.
56744         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56745         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56746         streq3, streq2, streq1, streq0): Remove functions.
56747         (STREQ): Remove macro.
56748         (is_cjk_encoding): Remove function.
56749         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56750         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56751         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56752         * NEWS: Document the change.
56753
56754 2007-09-01  Bruno Haible  <bruno@clisp.org>
56755
56756         * lib/streq.h: Add double-inclusion guard.
56757
56758 2007-09-01  Karl Berry  <karl@gnu.org>
56759
56760         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56761
56762 2007-08-28  Jim Meyering  <jim@meyering.net>
56763
56764         Rename mreadlink_with_size to areadlink_with_size.
56765         * NEWS: Document the change.
56766         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56767         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56768         * lib/mreadlink.h: Rename this to...
56769         * lib/areadlink.h: ...this.
56770         * modules/mreadlink-with-size: Rename this to...
56771         * modules/areadlink-with-size: ...this.
56772         * lib/canonicalize.c: Reflect the renaming.
56773         * modules/canonicalize: Likewise.
56774
56775 2007-08-26  Bruno Haible  <bruno@clisp.org>
56776
56777         * gnulib-tool (func_import): When deciding which files to remove,
56778         consider also dangling symbolic links.
56779         Reported by Eric Blake.
56780
56781 2007-08-26  Bruno Haible  <bruno@clisp.org>
56782
56783         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56784
56785 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56786
56787         * lib/readline.c: Don't include getline.h, the prototype is now
56788         found in stdio.h.
56789
56790 2007-08-23  Jim Meyering  <jim@meyering.net>
56791
56792         Getdelim touchup.
56793         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56794         around the funlockfile call, since funlockfile never sets errno.
56795         Don't set errno upon failed realloc.
56796
56797 2007-08-22  Eric Blake  <ebb9@byu.net>
56798
56799         Getline touchups.
56800         * lib/getdelim.c (getdelim): Revert regression that required *n to
56801         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56802         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56803         getdelim, rather than whether implementation is missing.
56804         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56805         * lib/stdio_.h (getline): Also declare if replacement is
56806         required.
56807         * doc/functions/getdelim.texi: New file.
56808         * doc/functions/getline.texi: Likewise.
56809         * doc/gnulib.texi (Function Substitutes): Add new files.
56810         Reported by Bruno Haible.
56811
56812 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56813
56814         * users.txt: Add Guile.
56815
56816 2007-08-22  Eric Blake  <ebb9@byu.net>
56817
56818         * tests/test-getdelim.c (main): Use remove, not unlink.
56819         * tests/test-getline.c (main): Likewise.
56820
56821         Move getline and getdelim into stdio.h, per POSIX 200x.
56822         * modules/getline (Files): Remove getline.h.
56823         (Depends-on): Add stdio.
56824         (configure.ac): Add module indicator.
56825         * modules/getdelim (Files): Remove getdelim.h.
56826         (Depends-on): Add stdio.
56827         (configure.ac): Add module indicator.
56828         * modules/stdio (Makefile.am): Work with new indicators.
56829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56830         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56831         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56832         * lib/getdelim.h: Delete.
56833         * lib/getline.h: Delete.
56834         * lib/stdio_.h (getdelim, getline): Declare.
56835         * modules/getdelim-tests: New module.
56836         * modules/getline-tests: Likewise.
56837         * tests/test-getdelim.c: New file.
56838         * tests/test-getline.c: Likewise.
56839         * NEWS: Document the change.
56840         * lib/getline.c: Update choice of header.
56841         * lib/csharpcomp.c: Likewise.
56842         * lib/getpass.c: Likewise.
56843         * lib/javacomp.c: Likewise.
56844         * lib/javaversion.c: Likewise.
56845         * lib/yesno.c: Likewise.
56846         * lib/getdelim.c: Likewise.
56847         (getdelim): Set errno on failure, and avoid memory leak.
56848
56849 2007-08-19  Bruno Haible  <bruno@clisp.org>
56850
56851         * modules/closein (Depends-on): Add freadahead.
56852         * lib/closein.c: Include freadahead.h.
56853         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56854         is zero.
56855
56856 2007-08-19  Bruno Haible  <bruno@clisp.org>
56857
56858         * modules/freadahead-tests: New file.
56859         * tests/test-freadahead.sh: New file.
56860         * tests/test-freadahead.c: New file.
56861
56862         * modules/freadahead: New file.
56863         * lib/freadahead.h: New file.
56864         * lib/freadahead.c: New file.
56865         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56866         fbufmode, fpurge, freadable, fwritable.
56867
56868 2007-08-19  Eric Blake  <ebb9@byu.net>
56869
56870         Test yesno in combination with closein.
56871         * lib/yesno.c (yesno): Document use of stdin.
56872         * modules/yesno-tests (Files): New module.
56873         * tests/test-yesno.c (main): New file.
56874         * tests/test-yesno.sh: Likewise.
56875
56876 2007-08-19  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56879         * lib/fseeko.c (rpl_fseeko): Likewise.
56880         * lib/fseterr.c (fseterr): Likewise.
56881
56882 2007-08-19  Bruno Haible  <bruno@clisp.org>
56883
56884         * tests/test-lseek.c (main): Disable a test for BeOS.
56885         * doc/functions/lseek.texi: Document the BeOS bug.
56886
56887 2007-08-19  Bruno Haible  <bruno@clisp.org>
56888             Eric Blake  <ebb9@byu.net>
56889
56890         * lib/lseek.c: Include <sys/stat.h>.
56891         (rpl_lseek): Add workaround code also for Unix platforms.
56892         Needed for BeOS.
56893         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56894         * doc/functions/lseek.texi: Document BeOS definiency.
56895
56896 2007-08-18  Bruno Haible  <bruno@clisp.org>
56897
56898         * modules/fstrcmp-tests: New file.
56899         * tests/test-fstrcmp.c: New file.
56900
56901 2007-08-18  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/fstrcmp: New file, from GNU gettext with modifications.
56904         * lib/fstrcmp.h: New file, from GNU gettext.
56905         * lib/fstrcmp.c: New file, from GNU gettext.
56906         * MODULES.html.sh (String handling): Add fstrcmp.
56907
56908 2007-08-18  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56911         'bool'.
56912         (diag, compareseq): Remove const from the ctxt argument.
56913         (USE_HEURISTIC): Undefine at the end.
56914
56915 2007-08-18  Jim Meyering  <jim@meyering.net>
56916
56917         New file: lib/idcache.h
56918         * NEWS: Mention the addition.
56919         * modules/idcache (Files): Add lib/idcache.h
56920         * lib/idcache.c: Include "idcache.h".
56921         Don't include <sys/types.h>.
56922         Add a FIXME comment.
56923         Move file-scoped "static" declarations to the top.
56924         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56925
56926 2007-08-17  Bruno Haible  <bruno@clisp.org>
56927         and Paul Eggert  <eggert@cs.ucla.edu>
56928
56929         * MODULES.html.sh: Add diffseq.
56930         * modules/diffseq: New file.
56931         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56932         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56933
56934 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56935
56936         Import changes from coreutils for bootstrap script.
56937
56938         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56939
56940         * build-aux/bootstrap (slurp): Work even in environments where
56941         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56942         current code does not slurp files whose names start with ".", and
56943         this looks like it might be a troublesome area.
56944
56945         2007-07-11  Jim Meyering  <jim@meyering.net>
56946
56947         If there's a GPL vN copyright comment, require that N == 3.
56948
56949         2007-07-08  Jim Meyering  <jim@meyering.net>
56950
56951         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56952         * build-aux/bootstrap (mam_template): Move definition out of loop.
56953
56954         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56955
56956         * build-aux/bootstrap (symlink_to_dir): Rename function from
56957         symlink_to_gnulib.  Add a directory parameter.  Update all
56958         callers.
56959         (cp_mark_as_generated): Also check for -- and link to -- files in
56960         gl/.
56961
56962         2007-07-08  Jim Meyering  <jim@meyering.net>
56963
56964         Adapt to deeper hierarchy in gnulib.
56965         * build-aux/bootstrap (symlink_to_dir): If the destination
56966         directory doesn't exist, create it. This is required at least for
56967         "lib/uniwidth/cjk.h".
56968
56969         2007-05-15  Jim Meyering  <jim@meyering.net>
56970
56971         * build-aux/bootstrap: Now that generated Makefile.am files
56972         are no longer under version control, they must be created at
56973         bootstrap time.
56974
56975 2007-08-14  Ben Pfaff  <blp@gnu.org>
56976
56977         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56978
56979 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56980
56981         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56982         given the changes below.
56983         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56984         even on hosts that have padding bits beyond the supported 64.
56985
56986 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56987
56988         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56989         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56990         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56991         depends on it.
56992         (xstrtol_error): Remove.
56993         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56994         but with a different signature.
56995         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56996         * lib/xstrtol-error.c: Include exitfail.h.
56997         (xstrtol_fatal): New function, with a different signature from the
56998         old xstrtol_error, so that the caller need not worry about passing
56999         in an exit status, or about storage management of the option argument.
57000         (xstrtol_error): Now a static function.  Redo signature to
57001         implement xstrtol_fatal.  Output the correct number of hyphens in
57002         front of the option so that the caller need not worry about
57003         storage management.
57004         (N_): New macro.
57005         (_): Remove; not used now.
57006         * modules/xstrtol: Depend on getopt.
57007         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57008         of old STRTOL_FATAL_ERROR macro.
57009         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57010         of test program.
57011         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57012         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57013
57014 2007-08-08  Eric Blake  <ebb9@byu.net>
57015
57016         * lib/xstrtol-error.c: Add missing include.
57017
57018         Move xstrtol messages into gnulib domain, when --pobase is used.
57019         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57020         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57021         * modules/xstrtol (Files): Distribute new file.
57022         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57023         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57024         * tests/test-xstrtol.c: ...into new file.
57025         * tests/test-xstrtoul.c: Also test xstrtoul.
57026         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57027         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57028         * tests/test-xstrtol.sh: Drive the tests.
57029         * tests/test-xstrtoimax.sh: Likewise.
57030         * tests/test-xstrtoumax.sh: Likewise.
57031         * modules/xstrtol-tests: New module.
57032         * modules/xstrtoimax-tests: Likewise.
57033         * modules/xstrtoumax-tests: Likewise.
57034
57035 2007-08-08  Jim Meyering  <jim@meyering.net>
57036
57037         New function: mfile_name_concat.
57038         * lib/filenamecat.c (mfile_name_concat): New function, just like
57039         file_name_concat, but return NULL upon failure rather than exiting
57040         with a diagnostic.
57041         * lib/filenamecat.h: Declare it.
57042
57043 2007-08-07  Bruno Haible  <bruno@clisp.org>
57044
57045         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57046         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57047         warning from gcc.
57048         Reported by Eric Blake.
57049
57050 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57051
57052         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57053         * modules/crypto/arcfour (License): Likewise.
57054         * modules/crypto/des-tests (License): Likewise.
57055         * modules/crypto/gc-arctwo-tests (License): Likewise.
57056         * modules/crypto/gc-des-tests (License): Likewise.
57057         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57058         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57059         * modules/crypto/gc-md2-tests (License): Likewise.
57060         * modules/crypto/gc-md4-tests (License): Likewise.
57061         * modules/crypto/gc-md5-tests (License): Likewise.
57062         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57063         * modules/crypto/gc-rijndael-tests (License): Likewise.
57064         * modules/crypto/gc-sha1-tests (License): Likewise.
57065         * modules/crypto/gc-tests (License): Likewise.
57066         * modules/crypto/hmac-md5 (License): Likewise.
57067         * modules/crypto/hmac-sha1 (License): Likewise.
57068         * modules/crypto/md2-tests (License): Likewise.
57069         * modules/crypto/md4-tests (License): Likewise.
57070         * modules/crypto/md5 (License): Likewise.
57071         * modules/crypto/rijndael (License): Likewise.
57072         * modules/crypto/sha1 (License): Likewise.
57073         * modules/memxor (License): Likewise.
57074
57075 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57076         and Bruno Haible  <bruno@clisp.org>
57077
57078         * NEWS: Describe interface changes to human, xstrtol.
57079         * lib/human.h: Include <xstrtol.h>.
57080         (human_options): Return enum strtol_error, not int.  Remove
57081         bool arg; take int * instead.
57082         * lib/human.c: Don't include "gettext.h".
57083         (_): Remove; no longer used.
57084         Don't include <xstrtol.h>, since human.h does it.
57085         (human_options): Adjust to abovementioned interface changes.
57086         Do not report error to stderr; that's now the caller's
57087         responsibility.
57088         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57089         interface change.
57090         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57091         Str, Argument_type_string.  All uses changed.  Put " argument"
57092         in diagnostics to make them clearer.  Change wording of suffix
57093         message for clarity.
57094         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57095         Argument_type_string.
57096         (STRTOL_FATAL_WARN): Remove; no longer used.
57097         * modules/human (Depends-on): Remove gettext-h.
57098
57099 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57100
57101         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57102
57103 2007-07-31  Bruno Haible  <bruno@clisp.org>
57104
57105         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57106         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57107         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57108
57109 2007-07-31  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57112         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57113
57114 2007-07-30  Bruno Haible  <bruno@clisp.org>
57115
57116         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57117         * modules/c-ctype (License): Likewise.
57118         * modules/c-strcase (License): Likewise.
57119         * modules/check-version (License): Likewise.
57120         * modules/iconv (License): Likewise.
57121         * modules/iconv_open (License): Likewise.
57122         * modules/read-file (License): Likewise.
57123         * modules/striconv (License): Likewise.
57124         * modules/strverscmp (License): Likewise.
57125         * modules/vasprintf (License): Likewise.
57126         * modules/crypto/des (License): Likewise.
57127         * modules/crypto/gc (License): Likewise.
57128         * modules/crypto/gc-arcfour (License): Likewise.
57129         * modules/crypto/gc-arctwo (License): Likewise.
57130         * modules/crypto/gc-des (License): Likewise.
57131         * modules/crypto/gc-hmac-md5 (License): Likewise.
57132         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57133         * modules/crypto/gc-md2 (License): Likewise.
57134         * modules/crypto/gc-md4 (License): Likewise.
57135         * modules/crypto/gc-md5 (License): Likewise.
57136         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57137         * modules/crypto/gc-random (License): Likewise.
57138         * modules/crypto/gc-rijndael (License): Likewise.
57139         * modules/crypto/gc-sha1 (License): Likewise.
57140         * modules/crypto/md2 (License): Likewise.
57141         * modules/crypto/md4 (License): Likewise.
57142
57143 2007-07-30  Jim Meyering  <jim@meyering.net>
57144
57145         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57146         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57147         it has valid stat data.  This bug would cause du not to count the
57148         sizes of inaccessible directories.
57149         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57150         in <http://bugzilla.redhat.com/250077>.
57151
57152 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57153             Bruno Haible  <bruno@clisp.org>
57154
57155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57156         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57157         #include_next, gives a diagnostic about it, but reports no error in
57158         the exit code.
57159         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57160
57161 2007-07-24  Ben Pfaff  <blp@gnu.org>
57162
57163         Improve name: "count-one-bits" is better than "popcount".
57164         * MODULES.html.sh: Update name.
57165         * lib/popcount.h: Renamed lib/count-one-bits.h.
57166         (popcount): Renamed count_one_bits.
57167         (popcountl): Renamed count_one_bits_l.
57168         (popcountll): Renamed count_one_bits_ll.
57169         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57170         * modules/popcount: Renamed module/count-one-bits.
57171         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57172         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57173
57174 2007-07-23  Ben Pfaff  <blp@gnu.org>
57175
57176         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57177         better code generation, and add U to large constants to avoid
57178         warnings, in non-GCC case.
57179         Suggested by Bruno Haible.
57180
57181 2007-07-23  Ben Pfaff  <blp@gnu.org>
57182
57183         * lib/popcount.h: Use verify_true instead of if...abort.
57184         * modules/popcount: Depend on verify module.
57185         Suggested by Jim Meyering.
57186
57187 2007-07-23  Bruno Haible  <bruno@clisp.org>
57188
57189         * gnulib-tool (func_import): Create a .cvsignore file also when the
57190         directory is not yet in CVS but the toplevel directory is. When
57191         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57192         Reported by Karl Berry.
57193
57194 2007-07-22  Ben Pfaff  <blp@gnu.org>
57195
57196         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57197         case.
57198         Suggested by Eric Blake.
57199
57200 2007-07-22  Ben Pfaff  <blp@gnu.org>
57201
57202         New module: popcount.
57203         * MODULES.html.sh: Add popcount.
57204         * modules/popcount: New file.
57205         * modules/popcount-tests: New file.
57206         * tests/test-popcount.c: New file.
57207         * lib/popcount.h: New file.
57208         * m4/popcount.m4: New file.
57209
57210 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * build-aux/announce-gen: Update to GPLv3.
57213
57214         * build-aux/config.guess: Update from config.
57215
57216 2007-07-21  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57219         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57220
57221 2007-07-20  Jim Meyering  <jim@meyering.net>
57222
57223         * check-module: Diagnose a self-dependency.
57224
57225 2007-07-19  Bruno Haible  <bruno@clisp.org>
57226
57227         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57228         empty.
57229         Reported by Eric Blake.
57230
57231 2007-07-18  Bruno Haible  <bruno@clisp.org>
57232
57233         * gnulib-tool: New options --po-base, --po-domain.
57234         (func_usage): Document them.
57235         (pobase, po_domain): New variables.
57236         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57237         DEFAULT_TEXT_DOMAIN.
57238         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57239         (func_import): Consider pobase and po_domain. Create a po/ directory.
57240         (func_create_testdir): Set pobase and po_domain to empty.
57241         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57242         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57243
57244 2007-07-18  Bruno Haible  <bruno@clisp.org>
57245
57246         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57247         EXTRA_DIST augmentation for files in build-aux/.
57248
57249 2007-07-16  Bruno Haible  <bruno@clisp.org>
57250
57251         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57252         * modules/getdelim (License): Likewise.
57253
57254 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57255
57256         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57257         * modules/d-type (License): Likewise.
57258         * modules/extensions (License): Likewise.
57259         * modules/fnmatch (License): Likewise.
57260         * modules/fseeko (License): Likewise.
57261         * modules/getaddrinfo (License): Likewise.
57262         * modules/getline (License): Likewise.
57263         * modules/getlogin_r (License): Likewise.
57264         * modules/getpass (License): Likewise.
57265         * modules/gettimeofday (License): Likewise.
57266         * modules/glob (License): Likewise.
57267         * modules/inet_ntop (License): Likewise.
57268         * modules/malloc (License): Likewise.
57269         * modules/malloca (License): Likewise.
57270         * modules/memmem (License): Likewise.
57271         * modules/mempcpy (License): Likewise.
57272         * modules/memset (License): Likewise.
57273         * modules/minmax (License): Likewise.
57274         * modules/mktime (License): Likewise.
57275         * modules/netinet_in (License): Likewise.
57276         * modules/pathmax (License): Likewise.
57277         * modules/poll (License): Likewise.
57278         * modules/regex (License): Likewise.
57279         * modules/snprintf (License): Likewise.
57280         * modules/stdbool (License): Likewise.
57281         * modules/stdint (License): Likewise.
57282         * modules/stdio (License): Likewise.
57283         * modules/strcase (License): Likewise.
57284         * modules/strcasestr (License): Likewise.
57285         * modules/strdup (License): Likewise.
57286         * modules/string (License): Likewise.
57287         * modules/strndup (License): Likewise.
57288         * modules/strnlen (License): Likewise.
57289         * modules/strpbrk (License): Likewise.
57290         * modules/strptime (License): Likewise.
57291         * modules/strsep (License): Likewise.
57292         * modules/sys_select (License): Likewise.
57293         * modules/sys_socket (License): Likewise.
57294         * modules/sys_stat (License): Likewise.
57295         * modules/sys_time (License): Likewise.
57296         * modules/time (License): Likewise.
57297         * modules/time_r (License): Likewise.
57298         * modules/timegm (License): Likewise.
57299         * modules/unistd (License): Likewise.
57300         * modules/vsnprintf (License): Likewise.
57301         * modules/wctype (License): Likewise.
57302
57303 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57304
57305         * modules/argz (License): LGPLv2+.
57306
57307 2007-07-15  Karl Berry  <karl@gnu.org>
57308
57309         * doc/gnulib.texi: revise node structure per new fdl.texi.
57310
57311 2007-07-14  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57314         the output file.
57315         * lib/uniname/uninames.h: Regenerated.
57316
57317 2007-07-14  Karl Berry  <karl@gnu.org>
57318
57319         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57320         omitting sectioning and index commands.
57321
57322 2007-07-13  Bruno Haible  <bruno@clisp.org>
57323
57324         New gnulib-tool option --more-symlinks.
57325         * gnulib-tool (func_usage): Document --more-symlinks.
57326         (do_copyrights): New variable.
57327         Recognize option --more-symlinks.
57328         (func_import): Don't add a copyright notice transform to
57329         sed_transform_lib_file if do_copyrights is empty.
57330
57331 2007-07-13  Bruno Haible  <bruno@clisp.org>
57332
57333         * lib/vasnprintf.c (decimal_point_char): Define also if
57334         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57335         && !NEED_PRINTF_DIRECTIVE_A.
57336         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57337         Gary V. Vaughan <gary@gnu.org>.
57338
57339 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * lib/inttypes_.h: Undo previous change, since it was fixed
57342         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57343
57344 2007-07-13  Bruno Haible  <bruno@clisp.org>
57345
57346         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57347         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57348
57349 2007-07-13  Jim Meyering  <jim@meyering.net>
57350
57351         df: Don't fail for Tru64's "file-on-file mount".
57352         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57353         so we fall through and use statfs instead.  Details here:
57354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57355         Reported by Albert Chin.
57356
57357 2007-07-13  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57360         * modules/configmake (License): Likewise.
57361         * modules/gettext (License): Likewise.
57362         * modules/gettext-h (License): Likewise.
57363         * modules/include_next (License): Likewise.
57364         * modules/link-warning (License): Likewise.
57365         * modules/localcharset (License): Likewise.
57366         * modules/localename (License): Likewise.
57367         * modules/lock (License): Likewise.
57368         * modules/relocatable-lib-lgpl (License): Likewise.
57369         * modules/size_max (License): Likewise.
57370         * modules/vasnprintf (License): Likewise.
57371         * modules/wchar (License): Likewise.
57372         * modules/xsize (License): Likewise.
57373
57374 2007-07-13  Bruno Haible  <bruno@clisp.org>
57375
57376         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57377         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57378
57379 2007-07-12  Bruno Haible  <bruno@clisp.org>
57380
57381         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57382         in the modules files.
57383
57384 2007-07-11  Karl Berry  <karl@gnu.org>
57385
57386         * MODULES.html.sh (func_module): use
57387          sed -e '\|^'"${includefile}"'$|d'
57388          instead of /.../d, to avoid errors on $includefile's containing /.
57389
57390 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57391
57392         * gnulib-tool (func_import): Avoid duplication of --avoid
57393         statements
57394         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57395         names to `_' in variable names.
57396
57397 2007-07-10  Eric Blake  <ebb9@byu.net>
57398
57399         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57400         * NEWS: Document this change.
57401
57402 2007-07-08  Bruno Haible  <bruno@clisp.org>
57403
57404         Update to Unicode 5.0.
57405         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57406         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57407         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57408         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57409         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57410         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57411         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57412         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57413         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57414         U+10A3F, U+1D242..U+1D244.
57415         (nonspacing_table_ind): Update.
57416         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57417         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57418
57419 2007-07-08  Bruno Haible  <bruno@clisp.org>
57420
57421         Update to Unicode 5.0.
57422         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57423         code transform. Extend the name index field of unicode_name_to_code and
57424         unicode_code_to_name from 16 to 24 bits.
57425         * lib/uniname/uniname.c (unicode_character_name,
57426         unicode_name_character): Add the range 0x12xxx to the code transform.
57427         * lib/uniname/uninames.h: Regenerated.
57428         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57429
57430 2007-07-07  Bruno Haible  <bruno@clisp.org>
57431
57432         * modules/wcwidth-tests: New file.
57433         * tests/test-wcwidth.c: New file.
57434
57435         Work around MacOS X wcwidth() bug.
57436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57437         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57438         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57439         original wcwidth in non-UTF-8 locales.
57440         * modules/wcwidth (Depends-on): Add localcharset, streq,
57441         uniwidth/width.
57442         * doc/functions/wcwidth.texi: Update.
57443
57444 2007-07-07  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57447         (wcwidth): New declaration.
57448         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57449         macros.
57450         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57451         here. Prepare for creating <wchar.h> unconditionally.
57452         * modules/wchar (Depends-on): Add link-warning.
57453         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57454         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57455         * lib/wcwidth.h: Remove file.
57456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57457         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57458         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57459         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57460         (Include): Replace wcwidth.h with <wchar.h>.
57461         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57462         * lib/mbchar.h: Don't include wcwidth.h.
57463         * lib/mbswidth.c: Likewise.
57464         * NEWS: Mention the change.
57465
57466 2007-07-07  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57469         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57470         definition with an external declaration.
57471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57472         defined as a function. Remove AC_C_INLINE requirement.
57473         * modules/wcwidth (Files): Add lib/wcwidth.c.
57474         (Makefile.am): Remove redundant statement.
57475
57476 2007-07-07  Bruno Haible  <bruno@clisp.org>
57477
57478         * MODULES.html.sh (Unicode string functions): Add the new modules.
57479
57480         * tests/uniwidth/test-u32-strwidth.c: New file.
57481         * modules/uniwidth/u32-strwidth-tests: New file.
57482
57483         * lib/uniwidth/u32-strwidth.c: New file.
57484         * modules/uniwidth/u32-strwidth: New file.
57485
57486         * tests/uniwidth/test-u16-strwidth.c: New file.
57487         * modules/uniwidth/u16-strwidth-tests: New file.
57488
57489         * lib/uniwidth/u16-strwidth.c: New file.
57490         * modules/uniwidth/u16-strwidth: New file.
57491
57492         * tests/uniwidth/test-u8-strwidth.c: New file.
57493         * modules/uniwidth/u8-strwidth-tests: New file.
57494
57495         * lib/uniwidth/u8-strwidth.c: New file.
57496         * modules/uniwidth/u8-strwidth: New file.
57497
57498         * tests/uniwidth/test-u32-width.c: New file.
57499         * modules/uniwidth/u32-width-tests: New file.
57500
57501         * lib/uniwidth/u32-width.c: New file.
57502         * modules/uniwidth/u32-width: New file.
57503
57504         * tests/uniwidth/test-u16-width.c: New file.
57505         * modules/uniwidth/u16-width-tests: New file.
57506
57507         * lib/uniwidth/u16-width.c: New file.
57508         * modules/uniwidth/u16-width: New file.
57509
57510         * tests/uniwidth/test-u8-width.c: New file.
57511         * modules/uniwidth/u8-width-tests: New file.
57512
57513         * lib/uniwidth/u8-width.c: New file.
57514         * modules/uniwidth/u8-width: New file.
57515
57516         * tests/uniwidth/test-uc_width.c: New file.
57517         * modules/uniwidth/width-tests: New file.
57518
57519         * lib/uniwidth/width.c: New file, from GNU libiconv.
57520         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57521         * modules/uniwidth/width: New file.
57522
57523         * lib/uniwidth.h: New file, from GNU libiconv.
57524         * modules/uniwidth/base: New file.
57525
57526 2007-07-07  Bruno Haible  <bruno@clisp.org>
57527
57528         * lib/uniname.h: New file, from GNU gettext.
57529         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57530         * lib/uniname/uninames.h: New file, from GNU gettext.
57531         * lib/uniname/uniname.c: New file, from GNU gettext.
57532         * tests/uniname/test-uninames.sh: New file.
57533         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57534         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57535         * modules/uniname/base: New file.
57536         * modules/uniname/uniname: New file.
57537         * modules/uniname/uniname-tests: New file.
57538         * MODULES.html.sh (Unicode string functions): Add the new modules.
57539
57540 2007-07-06  Bruno Haible  <bruno@clisp.org>
57541
57542         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57543
57544 2007-07-06  Bruno Haible  <bruno@clisp.org>
57545
57546         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57547         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57548         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57549         include <sys/time.h>.
57550         Reported by Eric Blake.
57551
57552 2007-07-06  Eric Blake  <ebb9@byu.net>
57553
57554         Fix testing canonicalize on cygwin.
57555         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57556         Revert patch from 2007-06-19.
57557         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57558         canonicalize module is also in use.
57559         * tests/test-canonicalize.c: New file.
57560         * tests/test-canonicalize.sh: Likewise.
57561         * modules/canonicalize-tests: Likewise.
57562
57563 2007-07-06  Jim Meyering  <jim@meyering.net>
57564
57565         * lib/getugroups.c (getugroups): Detect getgrent failure.
57566         Adjust comment to reflect reality: this function may return -1.
57567
57568 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57569
57570         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57571         the new TP address.
57572         (usage): Fix typo
57573         (gnulib_mk): New variable.
57574
57575 2007-07-05  Jim Meyering  <jim@meyering.net>
57576
57577         Don't let endgrent clobber errno, no matter how improbable.
57578         * lib/getugroups.c (getugroups): Save and restore errno around
57579         endgrent call.
57580
57581         Close the group DB even when failing with 2^31 or more members.
57582         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57583
57584 2007-07-04  Jim Meyering  <jim@meyering.net>
57585
57586         * lib/getugroups.h: New file.
57587         * lib/getugroups.c: Include "getugroups.h".
57588         Remove uses of "register" keyword.
57589         Move local variable, "cp", down into scope where used.
57590         Give "username" parameter the "const" attribute.
57591         * modules/getugroups (Files): Add lib/getugroups.h
57592
57593 2007-07-04  Karl Berry  <karl@gnu.org>
57594
57595         * MODULES.html.sh (func_all_modules): Complete rename of
57596         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57597
57598 2007-07-02  Bruno Haible  <bruno@clisp.org>
57599
57600         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57601         mode, when inttypes.h comes from gnulib.
57602         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57603
57604 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57605
57606         * NEWS: Mention lgpl module name change.
57607
57608         * modules/lgpl-2.1: Renamed from lgpl.
57609
57610         * NEWS: Mention gpl module name change.
57611
57612         * modules/gpl-3.0: New file, based on gpl-2.0.
57613
57614         * modules/gpl-2.0: Renamed from gpl.
57615
57616         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57617         doc/gpl-2.0.texi.
57618
57619 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57622         #define __STDC_LIMIT_MACROS temporarily while including
57623         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57624         Problem reported by Joel E. Denny in
57625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57626
57627 2007-07-01  Bruno Haible  <bruno@clisp.org>
57628
57629         * lib/unistdio.h: New file.
57630         * lib/unistdio/u-asnprintf.h: New file.
57631         * lib/unistdio/u-asprintf.h: New file.
57632         * lib/unistdio/u-printf-args.c: New file.
57633         * lib/unistdio/u-printf-args.h: New file.
57634         * lib/unistdio/u-printf-parse.h: New file.
57635         * lib/unistdio/u-snprintf.h: New file.
57636         * lib/unistdio/u-sprintf.h: New file.
57637         * lib/unistdio/u-vasprintf.h: New file.
57638         * lib/unistdio/u-vsnprintf.h: New file.
57639         * lib/unistdio/u-vsprintf.h: New file.
57640         * lib/unistdio/ulc-asnprintf.c: New file.
57641         * lib/unistdio/ulc-asprintf.c: New file.
57642         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57643         * lib/unistdio/ulc-printf-parse.c: New file.
57644         * lib/unistdio/ulc-snprintf.c: New file.
57645         * lib/unistdio/ulc-sprintf.c: New file.
57646         * lib/unistdio/ulc-vasnprintf.c: New file.
57647         * lib/unistdio/ulc-vasprintf.c: New file.
57648         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57649         * lib/unistdio/ulc-vsnprintf.c: New file.
57650         * lib/unistdio/ulc-vsprintf.c: New file.
57651         * lib/unistdio/u8-asnprintf.c: New file.
57652         * lib/unistdio/u8-asprintf.c: New file.
57653         * lib/unistdio/u8-printf-parse.c: New file.
57654         * lib/unistdio/u8-snprintf.c: New file.
57655         * lib/unistdio/u8-sprintf.c: New file.
57656         * lib/unistdio/u8-vasnprintf.c: New file.
57657         * lib/unistdio/u8-vasprintf.c: New file.
57658         * lib/unistdio/u8-vsnprintf.c: New file.
57659         * lib/unistdio/u8-vsprintf.c: New file.
57660         * lib/unistdio/u8-u8-asnprintf.c: New file.
57661         * lib/unistdio/u8-u8-asprintf.c: New file.
57662         * lib/unistdio/u8-u8-snprintf.c: New file.
57663         * lib/unistdio/u8-u8-sprintf.c: New file.
57664         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57665         * lib/unistdio/u8-u8-vasprintf.c: New file.
57666         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57667         * lib/unistdio/u8-u8-vsprintf.c: New file.
57668         * lib/unistdio/u16-asnprintf.c: New file.
57669         * lib/unistdio/u16-asprintf.c: New file.
57670         * lib/unistdio/u16-printf-parse.c: New file.
57671         * lib/unistdio/u16-snprintf.c: New file.
57672         * lib/unistdio/u16-sprintf.c: New file.
57673         * lib/unistdio/u16-vasnprintf.c: New file.
57674         * lib/unistdio/u16-vasprintf.c: New file.
57675         * lib/unistdio/u16-vsnprintf.c: New file.
57676         * lib/unistdio/u16-vsprintf.c: New file.
57677         * lib/unistdio/u16-u16-asnprintf.c: New file.
57678         * lib/unistdio/u16-u16-asprintf.c: New file.
57679         * lib/unistdio/u16-u16-snprintf.c: New file.
57680         * lib/unistdio/u16-u16-sprintf.c: New file.
57681         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57682         * lib/unistdio/u16-u16-vasprintf.c: New file.
57683         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57684         * lib/unistdio/u16-u16-vsprintf.c: New file.
57685         * lib/unistdio/u32-asnprintf.c: New file.
57686         * lib/unistdio/u32-asprintf.c: New file.
57687         * lib/unistdio/u32-printf-parse.c: New file.
57688         * lib/unistdio/u32-snprintf.c: New file.
57689         * lib/unistdio/u32-sprintf.c: New file.
57690         * lib/unistdio/u32-vasnprintf.c: New file.
57691         * lib/unistdio/u32-vasprintf.c: New file.
57692         * lib/unistdio/u32-vsnprintf.c: New file.
57693         * lib/unistdio/u32-vsprintf.c: New file.
57694         * lib/unistdio/u32-u32-asnprintf.c: New file.
57695         * lib/unistdio/u32-u32-asprintf.c: New file.
57696         * lib/unistdio/u32-u32-snprintf.c: New file.
57697         * lib/unistdio/u32-u32-sprintf.c: New file.
57698         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57699         * lib/unistdio/u32-u32-vasprintf.c: New file.
57700         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57701         * lib/unistdio/u32-u32-vsprintf.c: New file.
57702         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57703         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57704         * tests/unistdio/test-ulc-printf1.h: New file.
57705         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57706         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57707         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57708         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57709         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57710         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57711         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57712         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57713         * tests/unistdio/test-u8-asnprintf1.c: New file.
57714         * tests/unistdio/test-u8-asnprintf1.h: New file.
57715         * tests/unistdio/test-u8-printf1.h: New file.
57716         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57717         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57718         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57719         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57720         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57721         * tests/unistdio/test-u8-vasprintf1.c: New file.
57722         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57723         * tests/unistdio/test-u8-vsprintf1.c: New file.
57724         * tests/unistdio/test-u16-asnprintf1.c: New file.
57725         * tests/unistdio/test-u16-asnprintf1.h: New file.
57726         * tests/unistdio/test-u16-printf1.h: New file.
57727         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57728         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57729         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57730         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57731         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57732         * tests/unistdio/test-u16-vasprintf1.c: New file.
57733         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57734         * tests/unistdio/test-u16-vsprintf1.c: New file.
57735         * tests/unistdio/test-u32-asnprintf1.c: New file.
57736         * tests/unistdio/test-u32-asnprintf1.h: New file.
57737         * tests/unistdio/test-u32-printf1.h: New file.
57738         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57739         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57740         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57741         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57742         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57743         * tests/unistdio/test-u32-vasprintf1.c: New file.
57744         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57745         * tests/unistdio/test-u32-vsprintf1.c: New file.
57746         * modules/unistdio/base: New file.
57747         * modules/unistdio/u-printf-args: New file.
57748         * modules/unistdio/ulc-asnprintf: New file.
57749         * modules/unistdio/ulc-asprintf: New file.
57750         * modules/unistdio/ulc-fprintf: New file.
57751         * modules/unistdio/ulc-printf-parse: New file.
57752         * modules/unistdio/ulc-snprintf: New file.
57753         * modules/unistdio/ulc-sprintf: New file.
57754         * modules/unistdio/ulc-vasnprintf: New file.
57755         * modules/unistdio/ulc-vasprintf: New file.
57756         * modules/unistdio/ulc-vfprintf: New file.
57757         * modules/unistdio/ulc-vsnprintf: New file.
57758         * modules/unistdio/ulc-vsprintf: New file.
57759         * modules/unistdio/u8-asnprintf: New file.
57760         * modules/unistdio/u8-asprintf: New file.
57761         * modules/unistdio/u8-printf-parse: New file.
57762         * modules/unistdio/u8-snprintf: New file.
57763         * modules/unistdio/u8-sprintf: New file.
57764         * modules/unistdio/u8-vasnprintf: New file.
57765         * modules/unistdio/u8-vasprintf: New file.
57766         * modules/unistdio/u8-vsnprintf: New file.
57767         * modules/unistdio/u8-vsprintf: New file.
57768         * modules/unistdio/u8-u8-asnprintf: New file.
57769         * modules/unistdio/u8-u8-asprintf: New file.
57770         * modules/unistdio/u8-u8-snprintf: New file.
57771         * modules/unistdio/u8-u8-sprintf: New file.
57772         * modules/unistdio/u8-u8-vasnprintf: New file.
57773         * modules/unistdio/u8-u8-vasprintf: New file.
57774         * modules/unistdio/u8-u8-vsnprintf: New file.
57775         * modules/unistdio/u8-u8-vsprintf: New file.
57776         * modules/unistdio/u16-asnprintf: New file.
57777         * modules/unistdio/u16-asprintf: New file.
57778         * modules/unistdio/u16-printf-parse: New file.
57779         * modules/unistdio/u16-snprintf: New file.
57780         * modules/unistdio/u16-sprintf: New file.
57781         * modules/unistdio/u16-vasnprintf: New file.
57782         * modules/unistdio/u16-vasprintf: New file.
57783         * modules/unistdio/u16-vsnprintf: New file.
57784         * modules/unistdio/u16-vsprintf: New file.
57785         * modules/unistdio/u16-u16-asnprintf: New file.
57786         * modules/unistdio/u16-u16-asprintf: New file.
57787         * modules/unistdio/u16-u16-snprintf: New file.
57788         * modules/unistdio/u16-u16-sprintf: New file.
57789         * modules/unistdio/u16-u16-vasnprintf: New file.
57790         * modules/unistdio/u16-u16-vasprintf: New file.
57791         * modules/unistdio/u16-u16-vsnprintf: New file.
57792         * modules/unistdio/u16-u16-vsprintf: New file.
57793         * modules/unistdio/u32-asnprintf: New file.
57794         * modules/unistdio/u32-asprintf: New file.
57795         * modules/unistdio/u32-printf-parse: New file.
57796         * modules/unistdio/u32-snprintf: New file.
57797         * modules/unistdio/u32-sprintf: New file.
57798         * modules/unistdio/u32-vasnprintf: New file.
57799         * modules/unistdio/u32-vasprintf: New file.
57800         * modules/unistdio/u32-vsnprintf: New file.
57801         * modules/unistdio/u32-vsprintf: New file.
57802         * modules/unistdio/u32-u32-asnprintf: New file.
57803         * modules/unistdio/u32-u32-asprintf: New file.
57804         * modules/unistdio/u32-u32-snprintf: New file.
57805         * modules/unistdio/u32-u32-sprintf: New file.
57806         * modules/unistdio/u32-u32-vasnprintf: New file.
57807         * modules/unistdio/u32-u32-vasprintf: New file.
57808         * modules/unistdio/u32-u32-vsnprintf: New file.
57809         * modules/unistdio/u32-u32-vsprintf: New file.
57810         * modules/unistdio/ulc-asnprintf-tests: New file.
57811         * modules/unistdio/ulc-vasnprintf-tests: New file.
57812         * modules/unistdio/ulc-vasprintf-tests: New file.
57813         * modules/unistdio/ulc-vsnprintf-tests: New file.
57814         * modules/unistdio/ulc-vsprintf-tests: New file.
57815         * modules/unistdio/u8-asnprintf-tests: New file.
57816         * modules/unistdio/u8-vasnprintf-tests: New file.
57817         * modules/unistdio/u8-vasprintf-tests: New file.
57818         * modules/unistdio/u8-vsnprintf-tests: New file.
57819         * modules/unistdio/u8-vsprintf-tests: New file.
57820         * modules/unistdio/u16-asnprintf-tests: New file.
57821         * modules/unistdio/u16-vasnprintf-tests: New file.
57822         * modules/unistdio/u16-vasprintf-tests: New file.
57823         * modules/unistdio/u16-vsnprintf-tests: New file.
57824         * modules/unistdio/u16-vsprintf-tests: New file.
57825         * modules/unistdio/u32-asnprintf-tests: New file.
57826         * modules/unistdio/u32-vasnprintf-tests: New file.
57827         * modules/unistdio/u32-vasprintf-tests: New file.
57828         * modules/unistdio/u32-vsnprintf-tests: New file.
57829         * modules/unistdio/u32-vsprintf-tests: New file.
57830         * MODULES.html.sh (Unicode string functions): Add the new modules.
57831
57832 2007-07-01  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/sprintf.c (sprintf): Limit the available length estimation,
57835         to avoid address wraparound.
57836         * lib/vsprintf.c (vsprintf): Likewise.
57837         * modules/sprintf-posix (Dependencies): Add stdint.
57838         * modules/vsprintf-posix (Dependencies): Likewise.
57839
57840 2007-07-01  Bruno Haible  <bruno@clisp.org>
57841
57842         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57843         Windows PATH as well. Conservative double-quoting. Comments.
57844
57845 2007-07-01  Bruno Haible  <bruno@clisp.org>
57846             Eric Blake  <ebb9@byu.net>
57847             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57848
57849         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57850         empty components in $PATH, denoting '.'.
57851
57852 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57853
57854         * gnulib-tool: Fix indentation.
57855         (func_create_megatestdir): Likewise.
57856         Report by Bruno Haible.
57857
57858 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57859
57860         Sync from Automake.
57861         * build-aux/gnupload: Fix shell portability issues with for loops.
57862         Report by Karl Berry.
57863
57864 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57865
57866         * build-aux/maint.mk (POURL): Use translationproject.org.
57867
57868 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57869             Bruno Haible  <bruno@clisp.org>
57870
57871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57872         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57873         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57874         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57875         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57876
57877 2007-06-27  Bruno Haible  <bruno@clisp.org>
57878
57879         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57880         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57881
57882 2007-06-26  Karl Berry  <karl@gnu.org>
57883
57884         * MODULES.html.sh: remove xreadlink-with-size.
57885
57886 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57889         method that I hope also handles the double-include problem noted
57890         by Bruno Haible in
57891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57892
57893 2007-06-23  Bruno Haible  <bruno@clisp.org>
57894
57895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57896         Don't let the 'mostlyclean' target fail if the last subdirectory could
57897         not be removed.
57898         Reported by Karl Berry.
57899
57900 2007-06-23  Bruno Haible  <bruno@clisp.org>
57901
57902         * gnulib-tool (echo): Add a speedier workaround for ksh.
57903         * tests/test-echo.sh: Likewise.
57904
57905 2007-06-23  Bruno Haible  <bruno@clisp.org>
57906
57907         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57908         * tests/test-echo.sh: Likewise.
57909
57910 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57911
57912         * gnulib-tool (IFS): Initialize early, so we don't set it to
57913         empty later.
57914         (self_abspathname): Rewrite algorithm to set it, reindent.
57915         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57916         (func_create_megatestdir): Merge some sed scripts.
57917
57918 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57921         exposed by Sun Studio 11 cc on Solaris 8.
57922
57923 2007-06-22  Bruno Haible  <bruno@clisp.org>
57924
57925         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57926         backslashes.
57927         * tests/test-echo.sh: New file.
57928
57929 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57930
57931         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57932         simplify `sed_replace_build_aux' scripts, they are portable but
57933         echoing them with `echo' is not.
57934         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57935
57936 2007-06-21  Karl Berry  <karl@gnu.org>
57937
57938         * config/srclist.txt: guess we can't handle the licenses via
57939         srclist at the moment.
57940
57941 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57942
57943         * MODULES.html.sh: Add include_next.
57944         * modules/include_next: New file.
57945
57946 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57947
57948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57949         INCLUDE_NEXT.
57950         (gl_CHECK_NEXT_HEADERS): New macro.
57951         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57952         the obsolescent gl_ABSOLUTE_HEADER.
57953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57954         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57955         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57956         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57957         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57958         * m4/math_h.m4 (gl_MATH_H): Likewise.
57959         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57960         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57961         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57962         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57963         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57964         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57965         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57966         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57970         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57971         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57972         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57973         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57974         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57975         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57976         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57977         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57978         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57979         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57980         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57981         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57982         * lib/float_.h: Likewise.
57983         * lib/inttypes_.h: Likewise.
57984         * lib/math_.h: Likewise.
57985         * lib/search_.h: Likewise.
57986         * lib/signal_.h: Likewise.
57987         * lib/stdint_.h: Likewise.
57988         * lib/stdio_.h: Likewise.
57989         * lib/stdlib_.h: Likewise.
57990         * lib/string_.h: Likewise.
57991         * lib/sys_stat_.h: Likewise.
57992         * lib/sys_time_.h: Likewise.
57993         * lib/time_.h: Likewise.
57994         * lib/unistd_.h: Likewise.
57995         * lib/wchar_.h: Likewise.
57996         * lib/wctype_.h: Likewise.
57997         * lib/dirent_.h: Likewise.
57998         * lib/iconv_.h: Likewise.
57999         * lib/locale_.h: Likewise.
58000         * lib/netinet_in_.h: Likewise.
58001         * lib/sys_select_.h: Likewise.
58002         * lib/sys_socket_.h: Likewise.
58003         * lib/sysexits_.h: Likewise.
58004         * modules/fcntl (Depends-on): Depend on include_next, not
58005         absolute_header.
58006         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58007         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58008         * modules/fchdir: Likewise.
58009         * modules/float: Likewise.
58010         * modules/iconv_open: Likewise.
58011         * modules/inttypes: Likewise.
58012         * modules/locale: Likewise.
58013         * modules/math: Likewise.
58014         * modules/netinet_in: Likewise.
58015         * modules/search: Likewise.
58016         * modules/signal: Likewise.
58017         * modules/stdint: Likewise.
58018         * modules/stdio: Likewise.
58019         * modules/stdlib: Likewise.
58020         * modules/string: Likewise.
58021         * modules/sys_select: Likewise.
58022         * modules/sys_socket: Likewise.
58023         * modules/sys_stat: Likewise.
58024         * modules/sys_time: Likewise.
58025         * modules/sysexits: Likewise.
58026         * modules/time: Likewise.
58027         * modules/unistd: Likewise.
58028         * modules/wchar: Likewise.
58029         * modules/wctype: Likewise.
58030         * modules/sys_stat: Change maintainer to "all".
58031         * modules/unistd: Likewise.
58032
58033 2007-06-20  Karl Berry  <karl@gnu.org>
58034
58035         * config/srclist.txt: track www changes in license files.
58036
58037 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58038
58039         * build-aux/bootstrap: Remove stray dot.
58040         Make sure build_aux settings are honored when linking
58041         gnulib_extra_files.
58042
58043 2007-06-19  Eric Blake  <ebb9@byu.net>
58044
58045         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58046         Allow compilation on cygwin.
58047
58048 2007-06-19  Jim Meyering  <jim@meyering.net>
58049
58050         xreadlink-with-size: Remove module.  No longer used.
58051         Ex-callers now use xreadlink or mreadlink-with-size.
58052         * modules/xreadlink-with-size: Remove module.
58053         * lib/xreadlink-with-size.c: Remove file.
58054         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58055         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58056         just before the function definition *is* accurate.
58057
58058         Eliminate one way canonicalize_filename_mode could exit.
58059         * lib/canonicalize.c (canonicalize_filename_mode):
58060         Use mreadlink_with_size, not xreadlink_with_size.
58061
58062 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58063
58064         Detect porting problems to FreeBSD/arm, which has time_t wider than
58065         long int.  Original problem reported for GNU diff by Xin Li in
58066         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58067         * modules/getdate (Depends-on): Add intprops, verify.
58068         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58069         is an integer type no wider than long int.
58070
58071 2007-06-18  Jim Meyering  <jim@meyering.net>
58072
58073         New module: mreadlink-with-size.
58074         * MODULES.html.sh: Add mreadlink-with-size.
58075         * modules/mreadlink-with-size: New module
58076         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58077         not xreadlink-with-size.
58078         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58079
58080 2007-06-16  Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58083         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58084         Reported by Gary V. Vaughan <gary@gnu.org>.
58085
58086 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         Revamp lchown so that it lives in unistd.h where it belongs.
58089         * lib/lchown.h: Remove.
58090         * lib/dirchownmod.c: Don't include lib/lchown.h.
58091         * lib/fchownat.c: Likewise.
58092         * lib/openat.c: Likewise.
58093         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58094         does not follow symlinks.
58095         (EOPNOTSUPP): Define if not defined.
58096         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58097         is defined to 0.
58098         (lchown): New decl.
58099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58100         Do not check for lchown decl.
58101         Set REPLACE_LCHOWN.
58102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58103         REPLACE_LCHOWN.
58104         * modules/chown: Make it clear it follows symlinks.
58105         * modules/lchown: Make it clear it doesn't follow symlinks.
58106         (Files): Remove lib/lchown.h
58107         (Depends-on): Add unistd.
58108         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58109         (Include): Include <unistd.h>, not "lchown.h".
58110         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58111         REPLACE_LCHOWN.
58112
58113 2007-06-15  Jim Meyering  <jim@meyering.net>
58114
58115         Change license (GPL to LGPL) of fsusage and dependents.
58116         * modules/fsusage (License): Change to LGPL.
58117         * modules/full-read (License): Likewise.
58118         * modules/full-write (License): Likewise.
58119         * modules/safe-read (License): Likewise.
58120         * modules/safe-write (License): Likewise.
58121
58122 2007-06-14  Ben Pfaff  <blp@gnu.org>
58123
58124         Missing part of allocsa -> malloca transition.
58125         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58126         gl_MALLOCA.
58127
58128 2007-06-12  Bruno Haible  <bruno@clisp.org>
58129
58130         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58131         to ia64, x86_64, i386.
58132         Reported by Eric Blake.
58133
58134 2007-06-12  Bruno Haible  <bruno@clisp.org>
58135
58136         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58137         cross-compiling to x86_64.
58138
58139 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58142         glitch reported by Ralf Wildenhues in
58143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58144
58145         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58146         Vin Shelton.
58147
58148 2007-06-11  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58151         replacement string.
58152         Reported by Eric Blake.
58153
58154 2007-06-10  Bruno Haible  <bruno@clisp.org>
58155
58156         Prepare vasnprintf code for use with Unicode strings.
58157         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58158         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58159         TYPE_U32_STRING.
58160         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58161         a_u32_string variants.
58162         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58163         * lib/printf-args.c: Don't include config.h and the specification
58164         header if PRINTF_FETCHARGS is already defined.
58165         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58166         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58167         TYPE_U16_STRING, TYPE_U32_STRING.
58168         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58169         u16_directive, u16_directives, u32_directive, u32_directives): New
58170         types.
58171         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58172         New declarations.
58173         * lib/printf-parse.c: Don't include config.h and the specification
58174         header if PRINTF_PARSE is already defined. Eliminate the set of
58175         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58176         them now. Include c-ctype.h.
58177         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58178         directive and CHAR_T_ONLY_ASCII.
58179         * lib/vasnprintf.c: Don't include config.h and the specification header
58180         if VASNPRINTF is already defined.
58181         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58182         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58183         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58184         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58185         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58186         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58187         code accordingly.
58188         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58189         pad_ourselves also in this case, with the 'c' and 's' directives, and
58190         with a different notion of "width".
58191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58192
58193 2007-06-10  Bruno Haible  <bruno@clisp.org>
58194
58195         * modules/unistr/u32-mbsnlen: New file.
58196         * lib/unistr/u32-mbsnlen.c: New file.
58197
58198         * modules/unistr/u16-mbsnlen: New file.
58199         * lib/unistr/u16-mbsnlen.c: New file.
58200
58201         * modules/unistr/u8-mbsnlen: New file.
58202         * lib/unistr/u8-mbsnlen.c: New file.
58203
58204         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58205         declarations.
58206
58207 2007-06-10  Bruno Haible  <bruno@clisp.org>
58208
58209         * lib/string_.h (mbsnlen): New declaration.
58210         * lib/mbsnlen.c: New file.
58211         * m4/mbsnlen.m4: New file.
58212         * modules/mbsnlen: New file.
58213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58214         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58215         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58216
58217 2007-06-10  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58220
58221 2007-06-10  Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58224         * lib/mbuiter.h: Likewise.
58225
58226 2007-06-10  Bruno Haible  <bruno@clisp.org>
58227
58228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58229         declaration.
58230
58231 2007-06-10  Karl Berry  <karl@gnu.org>
58232
58233         * config/srclist.txt: remove gettext entries, Bruno prefers
58234         to update individually.
58235
58236 2007-06-10  Bruno Haible  <bruno@clisp.org>
58237
58238         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58239         'maxlen'. Ensure only length + width bytes are allocated, not
58240         length + 1 + width.
58241
58242 2007-06-09  Bruno Haible  <bruno@clisp.org>
58243
58244         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58245         (CHAR_T): Remove macro.
58246         (VASNPRINTF): Update.
58247
58248 2007-06-09  Bruno Haible  <bruno@clisp.org>
58249
58250         * MODULES.html.sh (Unicode string functions): Add the new modules.
58251
58252         * modules/uniconv/u32-conv-to-enc: New file.
58253         * lib/uniconv/u32-conv-to-enc.c: New file.
58254         * modules/uniconv/u32-conv-to-enc-tests: New file.
58255         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58256
58257         * modules/uniconv/u16-conv-to-enc: New file.
58258         * lib/uniconv/u16-conv-to-enc.c: New file.
58259         * lib/uniconv/u-conv-to-enc.h: New file.
58260         * modules/uniconv/u16-conv-to-enc-tests: New file.
58261         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58262
58263         * modules/uniconv/u8-conv-to-enc: New file.
58264         * lib/uniconv/u8-conv-to-enc.c: New file.
58265         * modules/uniconv/u8-conv-to-enc-tests: New file.
58266         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58267
58268         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58269         u32_conv_to_encoding): New declarations.
58270
58271 2007-06-09  Bruno Haible  <bruno@clisp.org>
58272
58273         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58274
58275 2007-06-09  Bruno Haible  <bruno@clisp.org>
58276
58277         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58278         * modules/malloca: Renamed from modules/allocsa, updated.
58279         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58280         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58281         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58282         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58283         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58284         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58285         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58286         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58287         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58288         * modules/c-strcasestr (Depends-on): Update.
58289         * lib/c-strcasestr.c: Update.
58290         * modules/c-strstr (Depends-on): Update.
58291         * lib/c-strstr.c: Update.
58292         * modules/canonicalize-lgpl (Depends-on): Update.
58293         * lib/canonicalize-lgpl.c: Update.
58294         * modules/clean-temp (Depends-on): Update.
58295         * lib/clean-temp.c: Update.
58296         * modules/csharpcomp (Depends-on): Update.
58297         * lib/csharpcomp.c: Update.
58298         * modules/csharpexec (Depends-on): Update.
58299         * lib/csharpexec.c: Update.
58300         * modules/javacomp (Depends-on): Update.
58301         * lib/javacomp.c: Update.
58302         * modules/javaexec (Depends-on): Update.
58303         * lib/javaexec.c: Update.
58304         * modules/mbscasestr (Depends-on): Update.
58305         * lib/mbscasestr.c: Update.
58306         * modules/mbsstr (Depends-on): Update.
58307         * lib/mbsstr.c: Update.
58308         * modules/setenv (Depends-on): Update.
58309         * lib/setenv.c: Update.
58310         * modules/strcasestr (Depends-on): Update.
58311         * lib/strcasestr.c: Update.
58312         * modules/striconveha (Depends-on): Update.
58313         * lib/striconveha.c: Update.
58314         * modules/relocatable-prog-wrapper (Files): Update.
58315         * lib/relocwrapper.c: Update.
58316         * build-aux/install-reloc: Update.
58317         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58318
58319 2007-06-08  Bruno Haible  <bruno@clisp.org>
58320
58321         Port to uClibc.
58322         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58323         * lib/fpurge.c (fpurge): Likewise.
58324         * lib/freading.c (freading): Likewise.
58325         * lib/fseeko.c (rpl_fseeko): Likewise.
58326         * lib/fseterr.c (fseterr): Likewise.
58327         * lib/fwriting.c (fwriting): Likewise.
58328         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58329
58330 2007-06-08  Bruno Haible  <bruno@clisp.org>
58331
58332         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58333         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58334         * modules/gettext (Files): Add m4/intlmacosx.m4.
58335
58336 2007-06-07  Bruno Haible  <bruno@clisp.org>
58337
58338         * modules/localename-tests: New file.
58339         * tests/test-localename.c: New file.
58340
58341         New module 'localename'.
58342         * lib/localename.h: New file.
58343         * lib/localename.c: New file, from GNU gettext.
58344         * m4/localename.m4: New file.
58345         * modules/localename: New file.
58346
58347 2007-06-07  Bruno Haible  <bruno@clisp.org>
58348
58349         Work around the lack of <wchar.h> on some builds of uClibc.
58350         * doc/headers/wchar.texi: Update.
58351         * lib/wchar_.h: Include <wchar.h> only if it exists.
58352         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58353         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58354         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58355         doesn't exist.
58356         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58357         * modules/mbfile (Depends-on): Add wchar.
58358         * modules/mbiter (Depends-on): Likewise.
58359         * modules/mbuiter (Depends-on): Likewise.
58360         Reported by Simon Josefsson.
58361
58362 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58363
58364         Work around problem reported by Steven M. Schweda in
58365         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58366         Tru64 5.1B with the Compaq compiler environment installed declares
58367         an 'isblank' function but does not define it in the C library.
58368         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58369         * lib/regex_internal.h (isblank): Likewise.
58370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58371         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58372
58373 2007-06-05  Bruno Haible  <bruno@clisp.org>
58374
58375         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58376         ia64.
58377         * modules/printf-safe: New file.
58378         * modules/fprintf-posix (Depends-on): Add printf-safe.
58379         * modules/printf-posix (Depends-on): Likewise.
58380         * modules/snprintf-posix (Depends-on): Likewise.
58381         * modules/sprintf-posix (Depends-on): Likewise.
58382         * modules/vasnprintf-posix (Depends-on): Likewise.
58383         * modules/vasprintf-posix (Depends-on): Likewise.
58384         * modules/vfprintf-posix (Depends-on): Likewise.
58385         * modules/vprintf-posix (Depends-on): Likewise.
58386         * modules/vsnprintf-posix (Depends-on): Likewise.
58387         * modules/vsprintf-posix (Depends-on): Likewise.
58388         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58389         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58390         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58391         "no" on i386, x86_64, ia64.
58392         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58393         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58394         on i386, x86_64, ia64.
58395         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58396         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58397         on i386, x86_64, ia64.
58398         * tests/test-vasnprintf-posix.c: Include float.h.
58399         (LDBL80_WORDS): New macro.
58400         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58401         on i386, x86_64, ia64.
58402         * tests/test-vasprintf-posix.c: Include float.h.
58403         (LDBL80_WORDS): New macro.
58404         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58405         on i386, x86_64, ia64.
58406         * tests/test-snprintf-posix.c: Include float.h.
58407         * tests/test-sprintf-posix.c: Likewise.
58408         * tests/test-vsnprintf-posix.c: Likewise.
58409         * tests/test-vsprintf-posix.c: Likewise.
58410
58411 2007-06-05  Bruno Haible  <bruno@clisp.org>
58412
58413         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58415         non-IEEE numbers on i386, x86_64, ia64.
58416         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58417         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58418         * tests/test-isnanl.h: Include float.h.
58419         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58420
58421 2007-06-05  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58424         also the %a / %A. Handle the %a / %A code before this extra handling.
58425
58426 2007-06-05  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58429         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58430
58431 2007-06-05  Bruno Haible  <bruno@clisp.org>
58432
58433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58434         typo in variable name.
58435
58436 2007-06-05  Eric Blake  <ebb9@byu.net>
58437
58438         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58439         Reported by Simon Josefsson.
58440
58441 2007-06-04  Bruno Haible  <bruno@clisp.org>
58442
58443         Avoid test failures on some PowerPC platforms.
58444         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58445         Define differently for PowerPC.
58446         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58447         Reported by Gary V. Vaughan <gary@gnu.org>.
58448
58449 2007-06-02  Bruno Haible  <bruno@clisp.org>
58450
58451         Fix test-stdint failure on FreeBSD/ia64.
58452         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58453         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58454         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58455         * doc/headers/stdint.texi: Update.
58456
58457 2007-06-01  Bruno Haible  <bruno@clisp.org>
58458
58459         * tests/test-binary-io.c (main): Pass a third argument to open().
58460         Reported by Gary V. Vaughan <gary@gnu.org>.
58461
58462 2007-06-01  Bruno Haible  <bruno@clisp.org>
58463
58464         * doc/functions/frexpl.texi: Update for mingw.
58465
58466 2007-06-01  Bruno Haible  <bruno@clisp.org>
58467
58468         * tests/test-lseek.c (main): Disable test of errno for invalid third
58469         argument.
58470         * doc/functions/lseek.texi: Update.
58471         Reported by Gary V. Vaughan <gary@gnu.org>.
58472
58473 2007-05-28  Bruno Haible  <bruno@clisp.org>
58474
58475         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58476
58477 2007-05-31  Eric Blake  <ebb9@byu.net>
58478
58479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58480         cross compiling.
58481
58482 2007-05-30  Eric Blake  <ebb9@byu.net>
58483         and Bruno Haible  <bruno@clisp.org>
58484
58485         Work around mingw test failures exposed by m4-1.4.9b.
58486         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58487         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58488         moment.
58489
58490 2007-05-30  Bruno Haible  <bruno@clisp.org>
58491
58492         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58493         assuming that they are closed. Needed on HP-UX 11.
58494
58495 2007-05-29  Bruno Haible  <bruno@clisp.org>
58496
58497         Fix a problem with #include_next.
58498         * lib/dirent_.h: Split the double-inclusion guard.
58499         * lib/fcntl_.h: Likewise.
58500         * lib/float_.h: Likewise.
58501         * lib/iconv_.h: Likewise.
58502         * lib/inttypes_.h: Likewise.
58503         * lib/locale_.h: Likewise.
58504         * lib/math_.h: Likewise.
58505         * lib/netinet_in_.h: Likewise.
58506         * lib/search_.h: Likewise.
58507         * lib/signal_.h: Likewise.
58508         * lib/stdint_.h: Likewise.
58509         * lib/stdio_.h: Likewise.
58510         * lib/stdlib_.h: Likewise.
58511         * lib/string_.h: Likewise.
58512         * lib/sys_select_.h: Likewise.
58513         * lib/sys_socket_.h: Likewise.
58514         * lib/sys_stat_.h: Likewise.
58515         * lib/sys_time_.h: Likewise.
58516         * lib/sysexits_.h: Likewise.
58517         * lib/time_.h: Likewise.
58518         * lib/unistd_.h: Likewise.
58519         * lib/wchar_.h: Likewise.
58520         * lib/wctype_.h: Likewise.
58521
58522 2007-05-29  Bruno Haible  <bruno@clisp.org>
58523
58524         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58525         for the moment.
58526
58527 2007-05-29  Bruno Haible  <bruno@clisp.org>
58528
58529         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58530         invocation.
58531         Reported by Eric Blake.
58532
58533 2007-05-29  Bruno Haible  <bruno@clisp.org>
58534
58535         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58536         compiling case.
58537
58538 2007-05-29  Eric Blake  <ebb9@byu.net>
58539             Bruno Haible  <bruno@clisp.org>
58540
58541         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58542         cross compiles.
58543
58544 2007-05-28  Eric Blake  <ebb9@byu.net>
58545
58546         * modules/closein-tests (test_closein_LDADD): Support test on
58547         cygwin with libtool.
58548
58549 2007-05-28  Bruno Haible  <bruno@clisp.org>
58550
58551         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58552         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58553         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58554         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58555         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58556         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58557         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58558         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58559         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58560
58561 2007-05-28  Eric Blake  <ebb9@byu.net>
58562
58563         Unconditionally include <config.h> in unit tests.
58564         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58565         * tests/test-allocsa.c, tests/test-arcfour.c,
58566         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58567         tests/test-array_list.c, tests/test-array_oset.c,
58568         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58569         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58570         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58571         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58572         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58573         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58574         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58575         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58576         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58577         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58578         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58579         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58580         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58581         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58582         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58583         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58584         test-md5.c, test-memmem.c, test-printf-posix.c,
58585         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58586         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58587         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58588         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58589         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58590         test-vasnprintf-posix2.c, test-vasnprintf.c,
58591         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58592         test-vfprintf-posix.c, test-vprintf-posix.c,
58593         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58594         test-xvasprintf.c: Likewise.
58595
58596 2007-05-28  Bruno Haible  <bruno@clisp.org>
58597
58598         * gnulib-tool (func_import): Remember the --with-tests command-line
58599         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58600         Reported by Eric Blake.
58601
58602 2007-05-28  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/ftell-tests: New file.
58605         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58606         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58607
58608         * lib/ftell.c: New file.
58609         * modules/ftell: New file.
58610         * m4/ftell.m4: New file.
58611         * doc/functions/ftell.texi: Update.
58612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58613         REPLACE_FTELL.
58614         * lib/stdio_.h (rpl_ftell): New declaration.
58615         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58616         REPLACE_FTELL.
58617
58618 2007-05-28  Eric Blake  <ebb9@byu.net>
58619
58620         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58621
58622 2007-05-28  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/fseek-tests: New file.
58625         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58626         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58627
58628         * lib/fseek.c: New file.
58629         * modules/fseek: New file.
58630         * m4/fseek.m4: New file.
58631         * doc/functions/fseek.texi: Update.
58632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58633         REPLACE_FSEEK.
58634         * lib/stdio_.h (rpl_fseek): New declaration.
58635         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58636         REPLACE_FSEEK.
58637
58638 2007-05-28  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/stdio_.h (fflush): More comments.
58641
58642 2007-05-28  Bruno Haible  <bruno@clisp.org>
58643
58644         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58645         runtime test.
58646
58647 2007-05-28  Eric Blake  <ebb9@byu.net>
58648
58649         Improve lseek module.
58650         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58651         * lib/unistd_.h (lseek): Scale back link warning message.
58652         * tests/test-lseek.c: Beef up test.
58653         * tests/test-lseek.sh: Exercise more facets of lseek.
58654         Reported by Bruno Haible.
58655
58656 2007-05-28  Bruno Haible  <bruno@clisp.org>
58657
58658         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58659         to define.
58660
58661 2007-05-27  Bruno Haible  <bruno@clisp.org>
58662
58663         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58664
58665 2007-05-27  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/openmp: New file.
58668         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58669         Noah Misch.
58670
58671 2007-05-26  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/chdir-long (Depends-on): Add fchdir.
58674         * modules/chdir-safer (Depends-on): Likewise.
58675         * modules/fts (Depends-on): Likewise.
58676         * modules/fts-lgpl (Depends-on): Likewise.
58677         * modules/openat (Depends-on): Likewise.
58678         * modules/savewd (Depends-on): Likewise.
58679
58680 2007-05-24  Eric Blake  <ebb9@byu.net>
58681
58682         Fix lseek on mingw.
58683         * modules/lseek: New module.
58684         * m4/lseek.m4: New file.
58685         * lib/lseek.c: New file.
58686         * modules/lseek-tests: New file.
58687         * tests/test-lseek.c: New file.
58688         * tests/test-lseek.sh: New file.
58689         * MODULES.html.sh: Document lseek module.
58690         * modules/fflush (Depends-on): Add lseek, fseeko.
58691         * modules/fseeko (Depends-on): Likewise.
58692         * modules/ftello (Depends-on): Likewise.
58693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58694         broken.
58695         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58696         broken.
58697         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58698         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58699         * lib/ftello.c (rpl_ftello): Likewise.
58700         * tests/test-fseeko.c (main): Test this.
58701         * tests/test-fseeko.sh: Likewise.
58702         * tests/test-ftello.c (main): Likewise.
58703         * tests/test-ftello.sh: Likewise.
58704         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58705         implies replacing fseek.
58706         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58707         HAVE_FTELLO.
58708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58709         * modules/unistd (Makefile.am): Likewise.
58710         * lib/unistd_.h (lseek): Declare a replacement.
58711         * doc/functions/lseek.texi (lseek): Document this fix.
58712         * doc/functions/fseek.texi (fseek): Likewise.
58713         * doc/functions/ftell.texi (ftell): Likewise.
58714
58715 2007-05-24  Bruno Haible  <bruno@clisp.org>
58716
58717         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58718         in the printed representation of a NaN.
58719         * tests/test-vasprintf-posix.c (test_function): Likewise.
58720         * tests/test-snprintf-posix.h (test_function): Likewise.
58721         * tests/test-sprintf-posix.h (test_function): Likewise.
58722         Reported by Eric Blake.
58723
58724 2007-05-23  Eric Blake  <ebb9@byu.net>
58725
58726         Fix fseeko/ftello on cygwin 1.5.24.
58727         * doc/functions/fseeko.texi (fseeko): Document the fix.
58728         * doc/functions/ftello.texi (ftello): Document the fix.
58729         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58730         * doc/functions/stdout.text (stdout): New file.
58731         * doc/functions/stderr.text (stderr): New file.
58732         * doc/gnulib.texi (Function Substitutes): Use new files.
58733         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58734         prior to 1.7.0.
58735         * tests/test-ftello.c (main): Likewise for ftello.
58736         * tests/test-fseeko.sh: New file.
58737         * tests/test-ftello.sh: New file.
58738         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58739         with seekable stdin.
58740         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58742         (gl_REPLACE_FSEEKO): New macro.
58743         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58744         * modules/fseeko (Files): Distribute fseeko.c.
58745         * modules/ftello (Files): Distribute ftello.c.
58746         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58747         mode.
58748         * lib/ftello.c (rpl_ftello): New file.
58749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58750         fseeko, ftello.
58751         (gl_STDIN_LARGE_OFFSET): New macro.
58752         * modules/stdio (Makefile.am): Perform the replacement.
58753         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58754
58755 2007-05-23  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58758         GNULIB_POSIXCHECK is defined.
58759
58760 2007-05-21  Bruno Haible  <bruno@clisp.org>
58761
58762         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58763         Check also the output for NaN arguments. When cross-compiling, guess
58764         no on IRIX.
58765         * lib/vasnprintf.c: Update comments.
58766         * tests/test-vasnprintf-posix.c (strisnan): New function.
58767         (test_function): Use it.
58768         * tests/test-vasprintf-posix.c (strisnan): New function.
58769         (test_function): Use it.
58770         * tests/test-snprintf-posix.h (strisnan): New function.
58771         (test_function): Use it.
58772         * tests/test-sprintf-posix.h (strisnan): New function.
58773         (test_function): Use it.
58774         Reported by Eric Blake.
58775
58776 2007-05-20  Bruno Haible  <bruno@clisp.org>
58777
58778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58779         numbers that fails on BeOS.
58780         * doc/functions/frexpl.texi: Update.
58781
58782 2007-05-20  Jim Meyering  <jim@meyering.net>
58783
58784         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58785         forced upon us by glibc-2.6.
58786
58787 2007-05-20  Bruno Haible  <bruno@clisp.org>
58788
58789         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58790         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58791         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58792         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58793         NEED_PRINTF_INFINITE.
58794         (is_infinitel): New function.
58795         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58797         gl_PREREQ_VASNPRINTF_INFINITE.
58798         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58800         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58801         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58802         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58803         gl_PREREQ_VASNPRINTF_INFINITE.
58804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58808         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58810         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58811         * doc/functions/fprintf.texi: Update.
58812         * doc/functions/printf.texi: Update.
58813         * doc/functions/snprintf.texi: Update.
58814         * doc/functions/sprintf.texi: Update.
58815         * doc/functions/vfprintf.texi: Update.
58816         * doc/functions/vprintf.texi: Update.
58817         * doc/functions/vsnprintf.texi: Update.
58818         * doc/functions/vsprintf.texi: Update.
58819
58820 2007-05-20  Bruno Haible  <bruno@clisp.org>
58821
58822         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58823         was not found in libc.
58824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58825
58826 2007-05-20  Bruno Haible  <bruno@clisp.org>
58827
58828         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58829         printed as "-nan" instead of "nan".
58830         * tests/test-vasprintf-posix.c (test_function): Likewise.
58831         * tests/test-snprintf-posix.h (test_function): Likewise.
58832         * tests/test-sprintf-posix.h (test_function): Likewise.
58833         Needed for HP-UX 11.
58834
58835 2007-05-20  Jim Meyering  <jim@meyering.net>
58836
58837         Fix buggy test for the fchownat-deref bug.
58838         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58839         symlink required for the run-test.  Without it, this test would
58840         always declare that fchownat doesn't work, and client code would
58841         unnecessarily use the replacement function with fixed libc.
58842         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58843         Reported by Greg Schafer.
58844
58845 2007-05-19  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58848         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58849         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58850         Needed for IRIX 6.5 and Solaris 2.5.1.
58851
58852 2007-05-19  Bruno Haible  <bruno@clisp.org>
58853
58854         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58855         (test_function): Skip tests involving -0.0 on platforms where
58856         -0.0 = 0.0.
58857         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58858         (test_function): Skip tests involving -0.0 on platforms where
58859         -0.0 = 0.0.
58860         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58861         (test_function): Skip tests involving -0.0 on platforms where
58862         -0.0 = 0.0.
58863         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58864         (test_function): Skip tests involving -0.0 on platforms where
58865         -0.0 = 0.0.
58866         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58867         tests.
58868         * tests/test-printf-posix.h (test_function): Likewise.
58869         * tests/test-printf-posix.output: Remove all -0.0 related results.
58870         Needed for IRIX 6.5.
58871
58872 2007-05-19  Bruno Haible  <bruno@clisp.org>
58873
58874         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58875         printed as "nan0x7fffffff" instead of "nan".
58876         * tests/test-vasprintf-posix.c (test_function): Likewise.
58877         * tests/test-snprintf-posix.h (test_function): Likewise.
58878         * tests/test-sprintf-posix.h (test_function): Likewise.
58879         * tests/test-fprintf-posix.h (NaN): Remove macro.
58880         (test_function): Remove all NaN related tests.
58881         * tests/test-printf-posix.h (NaN): Remove macro.
58882         (test_function): Remove all NaN related tests.
58883         * tests/test-printf-posix.output: Remove all NaN related results.
58884         Needed for IRIX 6.5.
58885
58886 2007-05-19  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58890
58891 2007-05-19  Bruno Haible  <bruno@clisp.org>
58892
58893         * lib/float_.h: New file.
58894         * m4/float_h.m4: New file.
58895         * modules/float: New file.
58896         * modules/isnanl (Dependencies): Add float.
58897         * modules/isnanl-nolibm (Dependencies): Likewise.
58898         * modules/mathl (Dependencies): Likewise.
58899         * modules/printf-frexpl (Dependencies): Likewise.
58900         * modules/signbit (Dependencies): Likewise.
58901         * modules/vasnprintf (Dependencies): Likewise.
58902         * doc/headers/float.texi: Update.
58903
58904 2007-05-19  Jim Meyering  <jim@meyering.net>
58905
58906         * lib/utimens.c (gl_futimens): Rename from futimens,
58907         now that glibc-2.6 declares futimens.
58908         * lib/utimens.h: Likewise.
58909
58910 2007-05-19  Bruno Haible  <bruno@clisp.org>
58911
58912         Avoid test failures on mingw.
58913         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58914         * tests/test-printf-posix.sh: Likewise.
58915         * tests/test-vfprintf-posix.sh: Likewise.
58916         * tests/test-vprintf-posix.sh: Likewise.
58917
58918 2007-05-19  Bruno Haible  <bruno@clisp.org>
58919
58920         Fix *printf result for NaN, Inf, -0.0 on mingw.
58921         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58922         * lib/vasnprintf.c: Include math.h and isnan.h.
58923         (is_infinite_or_zero): New function.
58924         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58925         values in the %f, %F, %e, %E, %g, %G directives.
58926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58928         gl_PRINTF_INFINITE and test its result. Invoke
58929         gl_PREREQ_VASNPRINTF_INFINITE.
58930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58937         * doc/functions/fprintf.texi: Update.
58938         * doc/functions/printf.texi: Update.
58939         * doc/functions/snprintf.texi: Update.
58940         * doc/functions/sprintf.texi: Update.
58941         * doc/functions/vfprintf.texi: Update.
58942         * doc/functions/vprintf.texi: Update.
58943         * doc/functions/vsnprintf.texi: Update.
58944         * doc/functions/vsprintf.texi: Update.
58945
58946 2007-05-19  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58949         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58950         Instead of multiplying with 10^k, set extra_zeroes to k.
58951         (scale10_round_long_double): Remove function.
58952
58953 2007-05-18  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58956         introduced on 2007-05-06.
58957
58958 2007-05-18  Bruno Haible  <bruno@clisp.org>
58959
58960         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58961         %g directives.
58962         * tests/test-vasprintf-posix.c (test_function): Likewise.
58963         * tests/test-snprintf-posix.h (test_function): Likewise.
58964         * tests/test-sprintf-posix.h (test_function): Likewise.
58965
58966 2007-05-18  Bruno Haible  <bruno@clisp.org>
58967
58968         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58969         (strmatch): New function.
58970         (test_function): Test the %f directive on numbers of various exponents.
58971         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58972         (strmatch): New function.
58973         (test_function): Test the %f directive on numbers of various exponents.
58974         * tests/test-snprintf-posix.h (strmatch): New function.
58975         (test_function): Test the %f directive on numbers of various exponents.
58976         * tests/test-sprintf-posix.h (strmatch): New function.
58977         (test_function): Test the %f directive on numbers of various exponents.
58978         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58979         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58980         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58981         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58982
58983 2007-05-18  Bruno Haible  <bruno@clisp.org>
58984
58985         Add support for 'long double' number output.
58986         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58987         * lib/vasnprintf.c: Include math.h and float+.h.
58988         (mp_limb_t): New type.
58989         (GMP_LIMB_BITS): New macro.
58990         (mp_twolimb_t): New type.
58991         (GMP_TWOLIMB_BITS): New macro.
58992         (mpn_t): New type.
58993         (multiply, divide, convert_to_decimal, decode_long_double,
58994         scale10_round_long_double, scale10_round_decimal_long_double,
58995         floorlog10l): New functions.
58996         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58997         for the %f, %F, %e, %E, %g, %G directives.
58998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59000         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59001         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59009         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59010         * modules/snprintf-posix (Depends-on): Likewise.
59011         * modules/sprintf-posix (Depends-on): Likewise.
59012         * modules/vasnprintf-posix (Depends-on): Likewise.
59013         * modules/vasprintf-posix (Depends-on): Likewise.
59014         * modules/vfprintf-posix (Depends-on): Likewise.
59015         * modules/vsnprintf-posix (Depends-on): Likewise.
59016         * modules/vsprintf-posix (Depends-on): Likewise.
59017         * modules/vasnprintf (Files): Add lib/float+.h.
59018         * doc/functions/fprintf.texi: Update.
59019         * doc/functions/printf.texi: Update.
59020         * doc/functions/snprintf.texi: Update.
59021         * doc/functions/sprintf.texi: Update.
59022         * doc/functions/vfprintf.texi: Update.
59023         * doc/functions/vprintf.texi: Update.
59024         * doc/functions/vsnprintf.texi: Update.
59025         * doc/functions/vsprintf.texi: Update.
59026
59027 2007-05-18  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59030
59031 2007-05-18  Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59034         for printing 64-bit integers. Needed for mingw.
59035
59036 2007-05-18  Bruno Haible  <bruno@clisp.org>
59037
59038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59039         gl_FUNC_FREXPL_WORKS.
59040         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59041
59042 2007-05-18  Bruno Haible  <bruno@clisp.org>
59043
59044         * modules/frexpl-nolibm-tests: New file.
59045
59046         * modules/frexpl-nolibm: New file.
59047         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59048
59049 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59050
59051         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59052         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59053         GCC 4.2, which otherwise issues a lot of warnings.
59054         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59055         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59056         Likewise.
59057         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59058         * modules/iconv_open (iconv.h): Likewise.
59059         * modules/locale (locale.h): Likewise.
59060         * modules/netinet_in (netinet/in.h): Likewise.
59061         * modules/sys_select (sys_select.h): Likewise.
59062         * modules/sys_socket (sys/socket.h): Likewise.
59063         * modules/sys_stat (sys/stat.h): Likewise.
59064         * modules/sysexits (sysexits.h): Likewise.
59065         * modules/unistd (unistd.h): Likewise.
59066
59067 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59068
59069         * modules/closein-tests (Makefile.am): Distribute
59070         `test-closein.sh'.
59071
59072 2007-05-17  Bruno Haible  <bruno@clisp.org>
59073
59074         * tests/test-printf-posix.output: Renamed from
59075         tests/test-fprintf-posix.out.
59076         * modules/fprintf-posix-tests: Update.
59077         * modules/printf-posix-tests: Update.
59078         * modules/vfprintf-posix-tests: Update.
59079         * modules/vprintf-posix-tests: Update.
59080         * tests/test-fprintf-posix.sh: Update.
59081         * tests/test-printf-posix.sh: Update.
59082         * tests/test-vfprintf-posix.sh: Update.
59083         * tests/test-vprintf-posix.sh: Update.
59084         Reported by Ralf Wildenhues.
59085
59086 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59087
59088         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59089         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59090         GCC 4.2, which otherwise issues a lot of warnings.
59091         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59092         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59093         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59094         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59095         it should no longer be needed.
59096         * lib/string_.h: Likewise.
59097         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59098         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59099         * modules/inttypes (inttypes.h): Likewise.
59100         * modules/math (math.h): Likewise.
59101         * modules/search (search.h): Likewise.
59102         * modules/signal (signal.h): Likewise.
59103         * modules/stdint (stdint.h): Likewise.
59104         * modules/stdio (stdio.h): Likewise.
59105         * modules/stdlib (stdlib.h): Likewise.
59106         * modules/string (string.h): Likewise.
59107         * modules/sys_time (sys/time.h): Likewise.
59108         * modules/time (time.h): Likewise.
59109         * modules/wchar (wchar.h): Likewise.
59110         * modules/wctype (wtype.h): Likewise.
59111
59112 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59113
59114         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59115
59116 2007-05-13  Bruno Haible  <bruno@clisp.org>
59117
59118         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59119         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59120         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59121         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59122         (gl_PREREQ_STRTOK_R): Don't require it here.
59123
59124 2007-05-13  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59127         when used in C++ mode.
59128
59129 2007-05-12  Bruno Haible  <bruno@clisp.org>
59130
59131         * lib/linebuffer.h: Tweak doc.
59132         * lib/linebuffer.c: Likewise.
59133
59134 2007-05-12  James Youngman  <jay@gnu.org>
59135
59136         * lib/linebuffer.c (readlinebuffer_delim): New function,
59137         like readlinebuffer, but use a caller-specified delimiter.
59138         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59139         as the delimiter.
59140         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59141
59142 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59143
59144         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59145         * modules/openat (Files): Remove openat-die.c.
59146         (Depends-on): Add openat-die.
59147         * modules/openat-die: New module.
59148
59149 2007-05-06  Bruno Haible  <bruno@clisp.org>
59150
59151         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59152         Update with info about Cygwin.
59153         * doc/functions/fprintf.texi: Update.
59154         * doc/functions/printf.texi: Update.
59155         * doc/functions/snprintf.texi: Update.
59156         * doc/functions/sprintf.texi: Update.
59157         * doc/functions/vfprintf.texi: Update.
59158         * doc/functions/vprintf.texi: Update.
59159         * doc/functions/vsnprintf.texi: Update.
59160         * doc/functions/vsprintf.texi: Update.
59161         Reported by Eric Blake.
59162
59163 2007-05-06  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59166         padding ourselves for the floating-point directives.
59167         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59170         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59171         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59179         * tests/test-snprintf-posix.h (test_function): Also check the width
59180         and some flags in the %f directive.
59181         * tests/test-sprintf-posix.h (test_function): Likewise.
59182         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59183         * tests/test-vasprintf-posix.c (test_function): Likewise.
59184         * doc/functions/fprintf.texi: Update.
59185         * doc/functions/printf.texi: Update.
59186         * doc/functions/snprintf.texi: Update.
59187         * doc/functions/sprintf.texi: Update.
59188         * doc/functions/vfprintf.texi: Update.
59189         * doc/functions/vprintf.texi: Update.
59190         * doc/functions/vsnprintf.texi: Update.
59191         * doc/functions/vsprintf.texi: Update.
59192
59193 2007-05-06  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59196         pass the ' flag character to sprintf or snprintf.
59197         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59200         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59201         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59209         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59210         flag.
59211         * tests/test-sprintf-posix.h (test_function): Likewise.
59212         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59213         * tests/test-vasprintf-posix.c (test_function): Likewise.
59214         * doc/functions/fprintf.texi: Update.
59215         * doc/functions/printf.texi: Update.
59216         * doc/functions/snprintf.texi: Update.
59217         * doc/functions/sprintf.texi: Update.
59218         * doc/functions/vfprintf.texi: Update.
59219         * doc/functions/vprintf.texi: Update.
59220         * doc/functions/vsnprintf.texi: Update.
59221         * doc/functions/vsprintf.texi: Update.
59222
59223 2007-05-01  Bruno Haible  <bruno@clisp.org>
59224
59225         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59226
59227 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59230         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59231
59232 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59233
59234         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59235         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59237
59238 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59239
59240         * lib/argp-help.c (struct hol_entry): New member `ord'.
59241         (HOL_ENTRY_PTRCMP): Use ord for comparison
59242         (hol_sort): Initialize ord.
59243
59244 2007-05-01  Bruno Haible  <bruno@clisp.org>
59245
59246         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59247         Reported by Eric Blake.
59248         * doc/gnulib.texi (Function Substitutes): Update.
59249
59250 2007-05-01  Bruno Haible  <bruno@clisp.org>
59251
59252         * doc/functions.texi: Remove file, now redundant through
59253         doc/functions/*.texi.
59254
59255 2007-05-01  Bruno Haible  <bruno@clisp.org>
59256
59257         * modules/argp (Depends-on): Add sleep.
59258
59259 2007-05-01  Bruno Haible  <bruno@clisp.org>
59260
59261         * modules/sleep-tests: New file.
59262         * tests/test-sleep.c: New file.
59263
59264         * modules/sleep: New file.
59265         * lib/sleep.c: New file.
59266         * m4/sleep.m4: New file.
59267         * lib/unistd_.h (sleep): New declaration.
59268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59269         HAVE_SLEEP.
59270         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59271         * doc/functions/sleep.texi: Document the sleep module.
59272
59273 2007-05-01  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/sigprocmask.h: Remove file.
59276         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59277         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59279         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59280         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59281         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59282         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59283         HAVE_SIGSET_T as a shell variable.
59284         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59285         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59286         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59287         (Depends-on): Add signal. Remove verify.
59288         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59289         (Include): Mention <signal.h> instead of sigprocmask.h.
59290         * NEWS: Mention the change.
59291         * lib/fatal-signal.c: Don't include sigprocmask.h.
59292
59293 2007-05-01  Bruno Haible  <bruno@clisp.org>
59294
59295         * modules/signal: New file.
59296         * lib/signal_.h: New file.
59297         * m4/signal_h.m4: New file.
59298
59299 2007-05-01  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59302         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59303         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59304         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59305
59306 2007-05-01  Bruno Haible  <bruno@clisp.org>
59307
59308         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59309         configure time.
59310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59311         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59312         * modules/sys_stat (Makefile.am): Substitute their values into
59313         sys/stat.h.
59314
59315 2007-05-01  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59318         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59319         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59320
59321 2007-05-01  Bruno Haible  <bruno@clisp.org>
59322
59323         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59324         'assert' module here.
59325
59326 2007-05-01  Bruno Haible  <bruno@clisp.org>
59327
59328         * doc/functions/*.texi: New files.
59329         * doc/functions/google-ranking.txt: New file.
59330         * doc/gnulib.texi (Function Substitutes): New chapter.
59331         (ctime, inet_ntoa): Remove sections.
59332         * doc/ctime.texi: Remove file.
59333         * doc/inet_ntoa.texi: Remove file.
59334         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59335         dependencies.
59336         (%.info): New rule, specifying a --reference-limit.
59337
59338 2007-05-01  Bruno Haible  <bruno@clisp.org>
59339
59340         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59341
59342 2007-05-01  Bruno Haible  <bruno@clisp.org>
59343
59344         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59345         the portability of 'mkdir' to mingw systems.
59346
59347 2007-05-01  Bruno Haible  <bruno@clisp.org>
59348
59349         * doc/headers/google-ranking.txt: New file.
59350
59351 2007-04-30  Eric Blake  <ebb9@byu.net>
59352
59353         Prefer fseeko to fseek.
59354         * modules/getpass (Depends-on): Add fseeko.
59355         * lib/getpass.c (getpass): Use fseeko, not fseek.
59356
59357 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59358
59359         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59360         assumes the sorting is stable, while most qsort implementations
59361         are not.  Use argument addresses to ensure they never compare as
59362         equal.
59363
59364         * tests/test-argp-2.sh (usage-indent test): Fix output
59365         (func_compare): Restore diff options
59366         * tests/test-argp.c: Restore #include "progname.h"
59367
59368 2007-04-29  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59372         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59374         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59375         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59376         (TESTS, check_PROGRAMS): Add test-snprintf.
59377         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59378         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59379         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59380         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59381         assertions that fail on HP-UX, OSF/1, or IRIX.
59382         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59383
59384 2007-04-29  Bruno Haible  <bruno@clisp.org>
59385
59386         * MODULES.html.sh (posix_functions): Remove 'contents'.
59387
59388 2007-04-29  Karl Berry  <karl@gnu.org>
59389
59390         * config/srclist.txt (gendocs_template_min): new entry.
59391
59392 2007-04-29  Bruno Haible  <bruno@clisp.org>
59393
59394         Work around fpurge bug on BSD systems.
59395         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59397         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59398         fpurge to rpl_fpurge if the system already has this function.
59399         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59400         the case where the system already has this function. Correct invariants
59401         on BSD systems.
59402         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59403         BSD systems.
59404
59405 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59406
59407         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59408         proposed by Sven Verdoolaege.
59409
59410         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59411         options.
59412         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59413         (usage and help tests): Update
59414
59415 2007-04-29  Bruno Haible  <bruno@clisp.org>
59416
59417         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59418         Print more information in case of failure. Disable a test on BeOS.
59419
59420 2007-04-29  Bruno Haible  <bruno@clisp.org>
59421
59422         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59423         This helps debugging on systems on which no gdb is available.
59424
59425 2007-04-29  Bruno Haible  <bruno@clisp.org>
59426
59427         * lib/freading.h: Improve comments.
59428         * lib/fwriting.h: Likewise.
59429         * tests/test-freading.c (main): Don't check freading immediately after
59430         repositioning. Needed for glibc.
59431
59432 2007-04-29  Bruno Haible  <bruno@clisp.org>
59433
59434         * lib/freading.c (freading): Trivial simplification.
59435
59436 2007-04-28  Bruno Haible  <bruno@clisp.org>
59437
59438         * tests/test-fwriting.c (main): Also test the interaction between
59439         fflush and fwriting.
59440         * modules/fwriting-tests (Depends-on): Add fflush.
59441
59442         * tests/test-freading.c (main): Also test the interaction between
59443         fflush and freading.
59444         * modules/freading-tests (Depends-on): Add fflush.
59445
59446 2007-04-28  Bruno Haible  <bruno@clisp.org>
59447
59448         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59449         fseeko and ftello.
59450         Suggested by Eric Blake.
59451
59452 2007-04-28  Jim Meyering  <jim@meyering.net>
59453
59454         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59455         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59456         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59457
59458 2007-04-27  Eric Blake  <ebb9@byu.net>
59459
59460         * doc/headers/assert.texi (assert.h): Document assert module use.
59461
59462 2007-04-27  Bruno Haible  <bruno@clisp.org>
59463
59464         * doc/headers/*.texi: New files.
59465         * doc/gnulib.texi (Header File Substitutes): New chapter.
59466         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59467         dependencies.
59468         (standards.info ,standards.html, standards.dvi): Update dependencies.
59469         (mostlyclean, clean): New targets.
59470
59471 2007-04-27  Bruno Haible  <bruno@clisp.org>
59472
59473         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59474         * modules/sysexits (Files, Makefile.am): Update.
59475
59476         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59477         * modules/sys_socket (Files, Makefile.am): Update.
59478
59479         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59480         * modules/sys_stat (Files, Makefile.am): Update.
59481
59482 2007-04-27  Eric Blake  <ebb9@byu.net>
59483
59484         * lib/freading.h: Improve comments.
59485         * lib/fwriting.h: Likewise.
59486         * lib/fflush.c: Likewise.
59487
59488         Fix closein for mingw.
59489         * modules/closein-tests: Add tests for closein.
59490         * tests/test-closein.c: New file.
59491         * tests/test-closein.sh: Likewise.
59492         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59493         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59494
59495 2007-04-27  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59498         version is < 6.
59499         * lib/math_.h [__DECC]: Likewise.
59500         * lib/stdio_.h [__DECC]: Likewise.
59501         * lib/stdlib_.h [__DECC]: Likewise.
59502         * lib/string_.h [__DECC]: Likewise.
59503         * lib/time_.h [__DECC]: Likewise.
59504         * lib/wchar_.h [__DECC]: Likewise.
59505         * lib/wctype_.h [__DECC]: Likewise.
59506
59507 2007-04-27  Bruno Haible  <bruno@clisp.org>
59508
59509         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59510
59511 2007-04-27  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/fflush.c: Add comments.
59514         * modules/fpurge-tests (Depends-on): Add fflush.
59515         * modules/freadable-tests (Depends-on): Likewise.
59516         * modules/fwritable-tests (Depends-on): Likewise.
59517
59518 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59519
59520         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59521         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59522         Report by Bruno Haible <bruno@clisp.org>.
59523
59524 2007-04-26  Eric Blake  <ebb9@byu.net>
59525
59526         Fix fflush on mingw.
59527         * modules/fflush (Depends-on): Add freading.
59528         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59529         but unread data.
59530
59531 2007-04-26  Eric Blake  <ebb9@byu.net>
59532         and Bruno Haible  <bruno@clisp.org>
59533
59534         Implement freading and fwriting.
59535         * lib/freading.c: New file.
59536         * lib/freading.h: Likewise.
59537         * m4/freading.m4: Likewise.
59538         * modules/freading: Likewise.
59539         * modules/freading-tests: Likewise.
59540         * tests/test-freading.c: Likewise.
59541         * lib/fwriting.c: New file.
59542         * lib/fwriting.h: Likewise.
59543         * m4/fwriting.m4: Likewise.
59544         * modules/fwriting: Likewise.
59545         * modules/fwriting-tests: Likewise.
59546         * tests/test-fwriting.c: Likewise.
59547         * MODULES.html.sh (File stream based Input/Output): Mention them.
59548
59549 2007-04-26  Bruno Haible  <bruno@clisp.org>
59550
59551         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59552         'long' when we assume it.
59553         Suggested by Eric Blake.
59554
59555 2007-04-26  Bruno Haible  <bruno@clisp.org>
59556
59557         Ensure fseeko, ftello are declared on glibc systems.
59558         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59559         * modules/fseeko (configure.ac-early): Likewise.
59560         * modules/ftello (configure.ac-early): Likewise.
59561         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59562         AC_FUNC_FSEEKO for this.
59563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59564         (gl_CHECK_FSEEKO): Remove macro.
59565
59566 2007-04-26  Bruno Haible  <bruno@clisp.org>
59567
59568         * tests/test-fflush.c (main): Also check the ftell result after
59569         fflush and fseek/fseeko.
59570         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59571         file descriptor position cache in the stream.
59572         * lib/fseeko.c (rpl_fseeko): Likewise.
59573
59574 2007-04-26  Bruno Haible  <bruno@clisp.org>
59575
59576         * modules/fflush-tests (Depends-on): Add fseeko.
59577
59578 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59580
59581         * lib/argz_.h: ensure error_t definition is obtained in same
59582         mechanism system argz.h would have.
59583         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59584         argz facilities are known bad.  Err on the side of caution if
59585         cross-compiling.
59586
59587 2007-04-25  Eric Blake  <ebb9@byu.net>
59588
59589         * lib/fpurge.c (includes): Use stdlib.h for free.
59590         * tests/test-fflush.c (main): Also test fflush-fseeko.
59591
59592 2007-04-25  Bruno Haible  <bruno@clisp.org>
59593
59594         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59595         * lib/fseeko.c: New file.
59596         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59597         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59598         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59599         gl_FUNC_FSEEKO.
59600         (gl_FUNC_FSEEKO): Invoke it.
59601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59602         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59603         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59604
59605 2007-04-25  Bruno Haible  <bruno@clisp.org>
59606
59607         * modules/fflush (Depends-on): Add ftello.
59608
59609 2007-04-25  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/ftello-tests: New file.
59612         * tests/test-ftello.c: New file.
59613
59614         * modules/ftello: New file.
59615         * m4/ftello.m4: New file.
59616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59617         HAVE_FTELLO.
59618         * lib/stdio_.h (ftello): New declaration.
59619         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59620         HAVE_FTELLO.
59621
59622 2007-04-25  Bruno Haible  <bruno@clisp.org>
59623
59624         * modules/fseeko-tests: New file.
59625         * tests/test-fseeko.c: New file.
59626
59627         * modules/fseeko: New file.
59628         * m4/fseeko.m4: New file.
59629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59630         HAVE_FSEEKO.
59631         * lib/stdio_.h (fseeko): New declaration.
59632         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59633         HAVE_FSEEKO.
59634
59635 2007-04-25  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59638
59639 2007-04-25  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59642         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59643         * tests/test-unistd.c: Likewise.
59644         * tests/test-fcntl.c: Likewise.
59645
59646 2007-04-23  Eric Blake  <ebb9@byu.net>
59647
59648         * lib/fflush.c: Fix missing include.
59649         Reported by Bruno Haible.
59650
59651 2007-04-23  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59654         Reported by Eric Blake.
59655
59656 2007-04-23  Bruno Haible  <bruno@clisp.org>
59657
59658         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59659
59660 2007-04-23  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59663
59664 2007-04-23  Bruno Haible  <bruno@clisp.org>
59665
59666         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59667         Needed on HP-UX 11.
59668
59669 2007-04-16  Eric Blake  <ebb9@byu.net>
59670
59671         Make fflush rely on fpurge.
59672         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59673         open coding all variants.
59674         * modules/fflush (Depends-on): Add fpurge and unistd.
59675         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59676         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59677
59678         Fix --with-tests compilation on cygwin.
59679         * modules/argmatch-tests (Makefile.am): List gnulib library first
59680         in LDADD.
59681         * modules/argp-tests (Makefile.am): Likewise.
59682         * modules/array-list-tests (Makefile.am): Likewise.
59683         * modules/array-oset-tests (Makefile.am): Likewise.
59684         * modules/avltree-list-tests (Makefile.am): Likewise.
59685         * modules/avltree-oset-tests (Makefile.am): Likewise.
59686         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59687         * modules/carray-list-tests (Makefile.am): Likewise.
59688         * modules/dirname-tests (Makefile.am): Likewise.
59689         * modules/frexp-tests (Makefile.am): Likewise.
59690         * modules/isnanl-tests (Makefile.am): Likewise.
59691         * modules/linked-list-tests (Makefile.am): Likewise.
59692         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59693         * modules/lock-tests (Makefile.am): Likewise.
59694         * modules/rbtree-list-tests (Makefile.am): Likewise.
59695         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59696         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59697         * modules/tls-tests (Makefile.am): Likewise.
59698         * modules/tsearch-tests (Makefile.am): Likewise.
59699         * modules/xvasprintf-tests (Makefile.am): Likewise.
59700
59701         Fix fpurge for cygwin.
59702         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59703         value.
59704         * modules/fpurge-tests (Depends-on): Clean up trash.
59705
59706 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59707
59708         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59709
59710         * m4/autobuild.m4: Re-indent.
59711
59712 2007-04-13  Bruno Haible  <bruno@clisp.org>
59713
59714         * modules/fpurge-tests: New file.
59715         * tests/test-fpurge.c: New file.
59716
59717         * modules/fpurge: New file.
59718         * lib/fpurge.h: New file.
59719         * lib/fpurge.c: New file.
59720         * m4/fpurge.m4: New file.
59721
59722 2007-04-13  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/fbufmode-tests: New file.
59725         * tests/test-fbufmode.c: New file.
59726
59727         * modules/fbufmode: New file.
59728         * lib/fbufmode.h: New file.
59729         * lib/fbufmode.c: New file.
59730         * m4/fbufmode.m4: New file.
59731
59732 2007-04-13  Bruno Haible  <bruno@clisp.org>
59733
59734         * modules/fwritable-tests: New file.
59735         * tests/test-fwritable.c: New file.
59736
59737         * modules/fwritable: New file.
59738         * lib/fwritable.h: New file.
59739         * lib/fwritable.c: New file.
59740         * m4/fwritable.m4: New file.
59741
59742 2007-04-13  Bruno Haible  <bruno@clisp.org>
59743
59744         * modules/freadable-tests: New file.
59745         * tests/test-freadable.c: New file.
59746
59747         * modules/freadable: New file.
59748         * lib/freadable.h: New file.
59749         * lib/freadable.c: New file.
59750         * m4/freadable.m4: New file.
59751
59752 2007-04-13  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59755         MOSTLYCLEANFILES.
59756
59757 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59760         gzip bootstrap.conf to avoid dragging in i18n machinery.
59761         (gnulib_tool_option): Use it.
59762
59763 2007-04-13  Bruno Haible  <bruno@clisp.org>
59764
59765         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59766         %F directives.
59767         * tests/test-vasprintf-posix.c (test_function): Likewise.
59768         * tests/test-snprintf-posix.h (test_function): Likewise.
59769         * tests/test-sprintf-posix.h (test_function): Likewise.
59770         * tests/test-fprintf-posix.h (test_function): Likewise.
59771         * tests/test-printf-posix.h (test_function): Likewise.
59772         * tests/test-fprintf-posix.out: Likewise.
59773
59774 2007-04-13  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59777         * modules/tls-tests (configure.ac): Likewise.
59778         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59779
59780 2007-04-13  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/tls.c (glthread_tls_get): Fix return type.
59783         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59784
59785 2007-04-12  Eric Blake  <ebb9@byu.net>
59786
59787         * modules/gettime (Depends-on): Remove gettime.
59788         Reported by Dmitry V. Levin.
59789
59790 2007-04-12  Bruno Haible  <bruno@clisp.org>
59791
59792         * modules/fflush (Include): Mention <stdio.h>.
59793         * modules/strtoimax (Include): Mention <inttypes.h>.
59794         * modules/strtoumax (Include): Likewise.
59795
59796 2007-04-12  Eric Blake  <ebb9@byu.net>
59797
59798         * .cvsignore: New file.
59799         * .gitignore: Likewise.
59800
59801 2007-04-12  Bruno Haible  <bruno@clisp.org>
59802
59803         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59804         not before, since $(LDADD) often contains libgnu.a.
59805         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59806         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59807         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59808         Needed on Cygwin.
59809
59810 2007-04-12  Eric Blake  <ebb9@byu.net>
59811
59812         Work around glibc's failure to flush stdin on fclose.
59813         * lib/closein.c (close_stdin): Flush stdin before closing.
59814
59815         Work around glibc's failure to reset seekable stdin on exit.
59816         * modules/closein: New module.
59817         * lib/closein.c: New file.
59818         * lib/closein.h: Likewise.
59819         * m4/closein.m4: Likewise.
59820         * MODULES.html.sh (File stream based Input/Output): Document it.
59821
59822 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59823
59824         * gnulib-tool: Rename generated 'autobuild' script to
59825         'do-autobuild' in --create-megatestdir output.
59826
59827         * doc/gnulib.texi (Build robot for gnulib): Fix.
59828
59829 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59830
59831         * modules/sysexits (Depends-on): Add absolute-header.
59832
59833 2007-04-12  Eric Blake  <ebb9@byu.net>
59834
59835         No need to preserve errno on success.
59836         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59837         Reported by Bruno Haible.
59838
59839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59840
59841         * MODULES.html.sh (Support for maintaining and releasing
59842         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59843
59844 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59845
59846         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59847
59848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59849
59850         * modules/autobuild: New module.
59851
59852         * m4/autobuild.m4: New file.
59853
59854 2007-04-11  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59857         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59863         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59867         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59868         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59882         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59883         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59884         Reported by Eric Blake.
59885
59886 2007-04-11  Bruno Haible  <bruno@clisp.org>
59887
59888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59889
59890 2007-04-10  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59893         for NaN and Infinity. Needed on FreeBSD 6.1.
59894         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59895         regarding results for "%010a" of Infinity and NaN.
59896         * tests/test-vasprintf-posix.c (test_function): Likewise.
59897         * tests/test-snprintf-posix.h (test_function): Likewise.
59898         * tests/test-sprintf-posix.h (test_function): Likewise.
59899         * tests/test-fprintf-posix.h (test_function): Likewise.
59900         * tests/test-printf-posix.h (test_function): Likewise.
59901         * tests/test-fprintf-posix.out: Likewise.
59902
59903 2007-04-10  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/locale-tests: New file.
59906         * tests/test-locale.c: New file.
59907
59908         * modules/locale: New file.
59909         * lib/locale_.h: New file.
59910         * m4/locale_h.m4: New file.
59911
59912 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59913             Bruno Haible  <bruno@clisp.org>
59914
59915         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59916         be determined, test for availability of the copysignf, copysign,
59917         copysignl functions.
59918         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59919         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59920         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59921
59922 2007-04-09  Eric Blake  <ebb9@byu.net>
59923
59924         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59925         * modules/stdio (Makefile.am): Support fflush.
59926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59927         * modules/fflush: New file.
59928         * lib/fflush.c: Likewise.
59929         * m4/fflush.m4: Likewise.
59930         * modules/fflush-tests: New test.
59931         * tests/test-fflush.c: Likewise.
59932         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59933
59934 2007-04-06  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59937         (VASNPRINTF): Use signbit for faster determination whether to print a
59938         minus sign.
59939         * modules/vasnprintf (Files): Remove lib/float+.h.
59940         * modules/fprintf-posix (Depends-on): Add signbit.
59941         * modules/snprintf-posix (Depends-on): Likewise.
59942         * modules/sprintf-posix (Depends-on): Likewise.
59943         * modules/vasnprintf-posix (Depends-on): Likewise.
59944         * modules/vasprintf-posix (Depends-on): Likewise.
59945         * modules/vfprintf-posix (Depends-on): Likewise.
59946         * modules/vsnprintf-posix (Depends-on): Likewise.
59947         * modules/vsprintf-posix (Depends-on): Likewise.
59948
59949 2007-04-06  Bruno Haible  <bruno@clisp.org>
59950
59951         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59952         * tests/test-frexpl.c (main): Likewise.
59953         * tests/test-ldexpl.c (main): Likewise.
59954         * modules/frexp-tests (Depends-on): Add signbit.
59955         * modules/frexpl-tests (Depdends-on): Likewise.
59956         * modules/ldexpl-tests (Depdends-on): Likewise.
59957
59958 2007-04-06  Bruno Haible  <bruno@clisp.org>
59959
59960         * modules/signbit-tests: New file.
59961         * tests/test-signbit.c: New file.
59962
59963         * modules/signbit: New file.
59964         * lib/signbitf.c: New file.
59965         * lib/signbitd.c: New file.
59966         * lib/signbitl.c: New file.
59967         * m4/signbit.m4: New file.
59968         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59969         (signbit): New macro.
59970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59971         REPLACE_SIGNBIT.
59972         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59973         REPLACE_FREXPL into math.h.
59974
59975 2007-04-06  Bruno Haible  <bruno@clisp.org>
59976
59977         * modules/isnanf-nolibm-tests: New file.
59978         * tests/test-isnanf.c: New file.
59979
59980         * modules/isnanf-nolibm: New file.
59981         * lib/isnanf.h: New file.
59982         * lib/isnanf.c: New file.
59983         * lib/isnan.c: Consider the USE_FLOAT macro.
59984         * m4/isnanf.m4: New file.
59985
59986 2007-04-06  Bruno Haible  <bruno@clisp.org>
59987
59988         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59989         (Link): New section.
59990
59991         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59992
59993 2007-04-06  Bruno Haible  <bruno@clisp.org>
59994
59995         Assume the 'long double' type.
59996         * m4/longdouble.m4: Remove file.
59997         * config/srclist.txt: Don't mention longdouble.m4.
59998         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59999         * lib/float+.h: Likewise.
60000         * lib/frexp.c: Likewise.
60001         * lib/printf-args.h: Likewise.
60002         * lib/printf-args.c: Likewise.
60003         * lib/printf-frexp.c: Likewise.
60004         * lib/printf-parse.c: Likewise.
60005         * lib/vasnprintf.c: Likewise.
60006         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60007         * m4/intl.m4: Likewise.
60008         * m4/isnanl.m4: Likewise.
60009         * m4/printf.m4: Likewise.
60010         * m4/printf-frexpl.m4: Likewise.
60011         * m4/vasnprintf.m4: Likewise.
60012         * modules/allocsa (Files): Remove m4/longdouble.m4.
60013         * modules/gettext (Files): Likewise.
60014         * modules/relocatable-prog-wrapper (Files): Likewise.
60015         * modules/vasnprintf (Files): Likewise.
60016         * modules/isnanl (Files): Likewise.
60017         (Include): Simplify.
60018         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60019         (Include): Simplify.
60020         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60021         (Include): Simplify.
60022         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60023         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60024         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60025         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60026         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60027         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60028         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60029         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60030         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60031         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60032         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60033         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60034         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60035         * tests/test-isnanl.c: Likewise.
60036         * tests/test-snprintf-posix.h: Likewise.
60037         * tests/test-sprintf-posix.h: Likewise.
60038         * tests/test-vasnprintf-posix.c: Likewise.
60039         * tests/test-vasnprintf-posix2.c: Likewise.
60040         * tests/test-vasprintf-posix.c: Likewise.
60041
60042 2007-04-06  Bruno Haible  <bruno@clisp.org>
60043
60044         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60045         * lib/math_.h [__DECC]: Include the overridden include file through
60046         #include_next, outside the double-inclusion guard.
60047         * lib/stdio_.h [__DECC]: Likewise.
60048         * lib/stdlib_.h [__DECC]: Likewise.
60049         * lib/string_.h [__DECC]: Likewise.
60050         * lib/time_.h [__DECC]: Likewise.
60051         * lib/wchar_.h [__DECC]: Likewise.
60052         * lib/wctype_.h [__DECC]: Likewise.
60053         * lib/inttypes_.h [__DECC]: Likewise.
60054         Reported by Albert Chin <china@thewrittenword.com> in
60055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60056
60057 2007-04-04  Eric Blake  <ebb9@byu.net>
60058
60059         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60060         1.5.x.
60061
60062 2007-04-04  Bruno Haible  <bruno@clisp.org>
60063
60064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60065         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60066
60067 2007-04-04  Bruno Haible  <bruno@clisp.org>
60068
60069         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60070         results for "%010a" of Infinity and NaN.
60071         * tests/test-vasprintf-posix.c (test_function): Likewise.
60072         * tests/test-snprintf-posix.h (test_function): Likewise.
60073         * tests/test-sprintf-posix.h (test_function): Likewise.
60074         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60075         * tests/test-printf-posix.h (test_function): Likewise.
60076         * tests/test-fprintf-posix.out: Update.
60077         Needed for FreeBSD 6.1.
60078
60079 2007-04-04  Bruno Haible  <bruno@clisp.org>
60080
60081         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60082         directly used by the gnulib modules nor by gnulib-tool.
60083
60084 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60085
60086         * DEPENDENCIES: Give overall description of version dependency
60087         desirability.  Use more-typical names for apps.
60088         Add shell, coreutils, diffutils, grep, tar, gzip.
60089
60090 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60091
60092         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60093
60094 2007-04-04  Karl Berry  <karl@gnu.org>
60095
60096         * MODULES.html.sh (func_module): missing '.
60097
60098 2007-04-03  Bruno Haible  <bruno@clisp.org>
60099
60100         * modules/argmatch-tests (Makefile.am): New variable
60101         test_argmatch_LDADD.
60102         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60103         * modules/array-list-tests (Makefile.am): New variable
60104         test_array_list_LDADD.
60105         * modules/array-oset-tests (Makefile.am): New variable
60106         test_array_oset_LDADD.
60107         * modules/avltree-list-tests (Makefile.am): New variable
60108         test_avltree_list_LDADD.
60109         * modules/avltree-oset-tests (Makefile.am): New variable
60110         test_avltree_oset_LDADD.
60111         * modules/avltreehash-list-tests (Makefile.am): New variable
60112         test_avltreehash_list_LDADD.
60113         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60114         test_canonicalize_lgpl_LDADD.
60115         * modules/carray-list-tests (Makefile.am): New variable
60116         test_carray_list_LDADD.
60117         * modules/dirname-tests (Makefile.am): New variable
60118         test_dirname_LDADD.
60119         * modules/linked-list-tests (Makefile.am): New variable
60120         test_linked_list_LDADD.
60121         * modules/linkedhash-list-tests (Makefile.am): New variable
60122         test_linkedhash_list_LDADD.
60123         * modules/rbtree-list-tests (Makefile.am): New variable
60124         test_rbtree_list_LDADD.
60125         * modules/rbtree-oset-tests (Makefile.am): New variable
60126         test_rbtree_oset_LDADD.
60127         * modules/rbtreehash-list-tests (Makefile.am): New variable
60128         test_rbtreehash_list_LDADD.
60129         * modules/xvasprintf-tests (Makefile.am): New variable
60130         test_xvasprintf_LDADD.
60131         Reported by Eric Blake.
60132
60133 2007-04-03  Eric Blake  <ebb9@byu.net>
60134
60135         * DEPENDENCIES: Weaken m4 requirements.
60136
60137 2007-04-03  Bruno Haible  <bruno@clisp.org>
60138
60139         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60140         * modules/isnanl-tests (configure.ac): Likewise.
60141
60142 2007-04-03  Ben Pfaff  <blp@gnu.org>
60143
60144         * modules/iconv_open: Add $(srcdir)/ to source directory
60145         references in Makefile fragments that call gperf, to fix VPATH
60146         builds.
60147
60148 2007-04-03  Bruno Haible  <bruno@clisp.org>
60149
60150         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60151         * lib/ldexpl.c: Undo last change.
60152
60153 2007-04-03  Bruno Haible  <bruno@clisp.org>
60154
60155         * modules/printf-frexpl (Depends-on): Undo last change.
60156         (Files): Add m4/ldexpl.m4.
60157
60158 2007-04-03  Bruno Haible  <bruno@clisp.org>
60159
60160         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60161         * modules/isnanl (Link): New section.
60162
60163         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60164         * modules/frexp (Link): New section.
60165
60166         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60167         * modules/frexpl (Link): New section.
60168
60169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60170         * modules/ldexpl (Link): New section.
60171
60172 2007-04-03  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/TEMPLATE-EXTENDED: New file.
60175         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60176
60177 2007-04-03  Bruno Haible  <bruno@clisp.org>
60178
60179         * DEPENDENCIES: New file.
60180         Suggested by Simon Josefsson.
60181
60182 2007-04-03  Bruno Haible  <bruno@clisp.org>
60183
60184         * doc/gnulib.texi: Escape @.
60185
60186 2007-04-03  James Youngman  <jay@gnu.org>
60187         and Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60190         birthtime on all systems that have birthtime, not just those which
60191         use st_birthtimensec rather than st_birthtim.  Putting zero in
60192         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60193         that the birth time is not available for files on an NFS mount.
60194
60195 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60196
60197         * modules/memxor: Move back from crypto/, suggested by Bruno.
60198         * modules/crypto/hmac-sha1: Fix memxor dependency.
60199
60200         * modules/crypto/gc: Moved from ../.
60201
60202 2007-04-02  Eric Blake  <ebb9@byu.net>
60203
60204         * lib/ldexpl.c (includes): Avoid libm.
60205
60206         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60207
60208 2007-04-02  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60211         on IRIX.
60212
60213 2007-04-02  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60216         x86 or x86_64 platforms running MacOS X.
60217         Reported by Ryan Schmidt <@ryandesign.com>.
60218
60219 2007-04-02  Bruno Haible  <bruno@clisp.org>
60220
60221         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60222         i386.
60223
60224 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60225
60226         * modules/crypto/arcfour: Moved from ../.
60227         * modules/crypto/arcfour-tests: Moved from ../.
60228         * modules/crypto/arctwo: Moved from ../.
60229         * modules/crypto/arctwo-tests: Moved from ../.
60230         * modules/crypto/des: Moved from ../.
60231         * modules/crypto/des-tests: Moved from ../.
60232         * modules/crypto/gc-arcfour: Moved from ../.
60233         * modules/crypto/gc-arcfour-tests: Moved from ../.
60234         * modules/crypto/gc-arctwo: Moved from ../.
60235         * modules/crypto/gc-arctwo-tests: Moved from ../.
60236         * modules/crypto/gc-des: Moved from ../.
60237         * modules/crypto/gc-des-tests: Moved from ../.
60238         * modules/crypto/gc-hmac-md5: Moved from ../.
60239         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60240         * modules/crypto/gc-hmac-sha1: Moved from ../.
60241         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60242         * modules/crypto/gc-md2: Moved from ../.
60243         * modules/crypto/gc-md2-tests: Moved from ../.
60244         * modules/crypto/gc-md4: Moved from ../.
60245         * modules/crypto/gc-md4-tests: Moved from ../.
60246         * modules/crypto/gc-md5: Moved from ../.
60247         * modules/crypto/gc-md5-tests: Moved from ../.
60248         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60249         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60250         * modules/crypto/gc-random: Moved from ../.
60251         * modules/crypto/gc-rijndael: Moved from ../.
60252         * modules/crypto/gc-rijndael-tests: Moved from ../.
60253         * modules/crypto/gc-sha1: Moved from ../.
60254         * modules/crypto/gc-sha1-tests: Moved from ../.
60255         * modules/crypto/gc-tests: Moved from ../.
60256         * modules/crypto/hmac-md5: Moved from ../.
60257         * modules/crypto/hmac-md5-tests: Moved from ../.
60258         * modules/crypto/hmac-sha1: Moved from ../.
60259         * modules/crypto/hmac-sha1-tests: Moved from ../.
60260         * modules/crypto/md2: Moved from ../.
60261         * modules/crypto/md2-tests: Moved from ../.
60262         * modules/crypto/md4: Moved from ../.
60263         * modules/crypto/md4-tests: Moved from ../.
60264         * modules/crypto/md5: Moved from ../.
60265         * modules/crypto/md5-tests: Moved from ../.
60266         * modules/crypto/memxor: Moved from ../.
60267         * modules/crypto/rijndael: Moved from ../.
60268         * modules/crypto/rijndael-tests: Moved from ../.
60269         * modules/crypto/sha1: Moved from ../.
60270
60271 2007-03-30  James Youngman  <jay@gnu.org>
60272
60273         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60274         rename() to change the ctime of a file (because ctime is unaffected
60275         by rename on jfs2 on AIX 5.1).
60276         (main): Start by doing cleanup, in case a previous run failed leaving
60277         test files behind.
60278
60279 2007-03-31  Bruno Haible  <bruno@clisp.org>
60280
60281         Support old proprietary implementations of iconv.
60282         * modules/iconv_open: New file.
60283         * lib/iconv_.h: New file.
60284         * m4/iconv_h.m4: New file.
60285         * lib/iconv_open.c: New file.
60286         * lib/iconv_open-aix.gperf: New file.
60287         * lib/iconv_open-hpux.gperf: New file.
60288         * lib/iconv_open-irix.gperf: New file.
60289         * lib/iconv_open-osf.gperf: New file.
60290         * m4/iconv_open.m4: New file.
60291         * modules/linebreak (Depends-on): Add iconv_open.
60292         * modules/striconv (Depends-on): Likewise.
60293         * modules/striconveh (Depends-on): Likewise.
60294         * modules/unicodeio (Depends-on): Likewise.
60295         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60296         (iconv_t)(-1).
60297         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60298         conversion if cd is (iconv_t)(-1).
60299         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60300         is not possible.
60301
60302 2007-03-31  Bruno Haible  <bruno@clisp.org>
60303
60304         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60305         work on Solaris either. Protect also second use of "autodetect_jp".
60306
60307 2007-03-31  Bruno Haible  <bruno@clisp.org>
60308
60309         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60310         the function is not present.
60311
60312 2007-03-31  Bruno Haible  <bruno@clisp.org>
60313
60314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60315         the function is not present.
60316
60317 2007-03-31  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60320         a bug in HP-UX iconv_open().
60321
60322 2007-03-31  Bruno Haible  <bruno@clisp.org>
60323
60324         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60325         (Mathematics <math.h>): New section, add fpieee.
60326         (Input/output <stdio.h>): Add fseterr.
60327         (Mathematics <math.h>): New section, add printf-frexp.
60328         (Container data structures): Add sublist.
60329         (Core language properties): Add fpucw, inline.
60330         (Functions for greatest-width integer types <inttypes.h>): Add
60331         imaxabs, imaxdiv, inttypes.
60332         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60333         isnanl-nolibm, ldexp.
60334         (Mathematics <math.h>): New section, add printf-frexpl.
60335         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60336         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60337         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60338         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60339         (Unicode string functions): Add unistr/u*-mbtoucr.
60340         (Java): Add javacomp-script, javaexec-script.
60341         (C#): Add csharpcomp-script, csharpexec-script.
60342         (Support for building libraries and executables): Add havelib,
60343         relocatable-*.
60344         (Support for maintaining and releasing projects): Renamed from
60345         'Support for maintaining and release projects'. Add announce-gen.
60346
60347 2007-03-31  Bruno Haible  <bruno@clisp.org>
60348
60349         * README: Talk primarily about git.
60350         (git and CVS): Renamed from CVS.
60351         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60352         gnulib is available through git.
60353         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60354
60355 2007-03-30  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60358         * lib/poll_.h: Likewise.
60359         * lib/stat_.h: Likewise.
60360         * lib/sys_time_.h: Likewise.
60361         * lib/sysexit_.h: Likewise.
60362         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60363         * lib/stdbool_.h: Likewise.
60364         * lib/byteswap_.h: Add double-inclusion guard.
60365
60366 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60367
60368         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60369
60370 2007-03-30  Karl Berry  <karl@gnu.org>
60371
60372         * config/srclist-update: double space after USA in the license
60373         substitution, since that's how it's usually (?) written.
60374
60375 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60376
60377         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60378         reported by Bruno Haible.
60379
60380 2007-03-29  Bruno Haible  <bruno@clisp.org>
60381
60382         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60383         a bug in AIX iconv().
60384
60385 2007-03-29  Bruno Haible  <bruno@clisp.org>
60386
60387         * modules/ldexpl-tests: New file.
60388         * tests/test-ldexpl.c: New file.
60389
60390 2007-03-29  Bruno Haible  <bruno@clisp.org>
60391
60392         * lib/ldexpl.c: Include fpucw.h.
60393         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60394         multiplication.
60395         * modules/ldexpl (Depends-on): Add fpucw.
60396
60397 2007-03-29  Bruno Haible  <bruno@clisp.org>
60398
60399         * modules/ldexpl: New file.
60400         * m4/ldexpl.m4: New file.
60401         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60402         set.
60403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60404         REPLACE_LDEXPL.
60405         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60406         REPLACE_LDEXPL.
60407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60408         gl_FUNC_LDEXPL_WORKS.
60409         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60410         * modules/mathl (Files): Remove lib/ldexpl.c.
60411         (Depends-on): Add ldexpl.
60412
60413 2007-03-29  Bruno Haible  <bruno@clisp.org>
60414
60415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60416
60417 2007-03-29  Bruno Haible  <bruno@clisp.org>
60418
60419         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60420         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60421         and possibly also HP-UX.
60422         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60423         work on AIX, IRIX, HP-UX, OSF/1.
60424         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60425         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60426         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60427         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60428         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60429         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60430
60431 2007-03-29  Bruno Haible  <bruno@clisp.org>
60432
60433         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60434
60435 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60438         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60439
60440 2007-03-29  Eric Blake  <ebb9@byu.net>
60441
60442         * lib/acl-internal.h: Remove redundant include.
60443         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60444         Cygwin when a file is locked.
60445
60446 2007-03-29  Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60449         file.
60450         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60451
60452 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60455         try to remove a parent directory if the child couldn't be removed
60456         (except for the first rmdir, which could fail because the child
60457         doesn't exist).  Problem reported by Jeff Blaine in
60458         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60459
60460 2007-03-28  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/striconveh.c (utf8conv_carefully): New function.
60463         (mem_cd_iconveh_internal): Invoke it.
60464
60465 2007-03-28  Bruno Haible  <bruno@clisp.org>
60466
60467         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60468         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60469         input.
60470         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60471         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60472         unistr/u8-uctomb.
60473
60474 2007-03-28  Bruno Haible  <bruno@clisp.org>
60475
60476         * modules/unistr/u8-mbtoucr: New file.
60477         * lib/unistr/u8-mbtoucr.c: New file.
60478         * modules/unistr/u16-mbtoucr: New file.
60479         * lib/unistr/u16-mbtoucr.c: New file.
60480         * modules/unistr/u16-mbtoucr: New file.
60481         * lib/unistr/u16-mbtoucr.c: New file.
60482         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60483
60484 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60485             Bruno Haible  <bruno@clisp.org>
60486
60487         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60488         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60489         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60490
60491         * m4/stdio_h.m4: Add stubs for vasprintf too.
60492
60493         * modules/stdio: Support vasprintf in sed command.
60494
60495         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60496         vasprintf.h.  Add stdio module indicator.
60497
60498         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60499         vasprintf.h.
60500
60501         * lib/vasprintf.h: File removed.
60502
60503         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60504         * lib/vasprintf.c: Ditto.
60505         * lib/xvasprintf.c: Ditto.
60506         * tests/test-vasprintf-posix.c: Ditto.
60507         * tests/test-vasprintf.c: Ditto.
60508
60509 2007-03-27  Bruno Haible  <bruno@clisp.org>
60510
60511         Make vasnprintf multithread-safe.
60512         * lib/vasnprintf.c (decimal_point_char): New function.
60513         (VASNPRINTF): Use it.
60514         Suggested by Simon Josefsson.
60515
60516 2007-03-27  Eric Blake  <ebb9@byu.net>
60517
60518         Support sub-second birthtime on cygwin.
60519         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60520         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60521         (get_stat_birthtime): Also work with st_birthtim.
60522
60523 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60526         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60527         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60528         (get_stat_birthtime_ns): Simplify compile-time tests.
60529         (get_stat_birthtime): Change the API to look like
60530         get_stat_mtime etc., except return a negative tv_nsec on error.
60531         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60532         Don't check for "spare" fields.
60533         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60534         or for struct stat.st_birthtime, as these tests aren't used.
60535         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60536
60537 2007-03-27  Bruno Haible  <bruno@clisp.org>
60538
60539         * lib/stat-time.h: Include <sys/stat.h>.
60540
60541 2007-03-27  James Youngman  <jay@gnu.org>
60542
60543         * lib/stat-time.h (get_stat_birthtime): New function for
60544           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60545         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60546           and its variants.
60547         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60548         * modules/stat-time-test: New file.
60549         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60550
60551 2007-03-26  Bruno Haible  <bruno@clisp.org>
60552
60553         Better support of signalling NaNs.
60554         * lib/atanl.c: Include isnanl.h.
60555         (atanl): Perform test for NaN at the beginning of the function and
60556         through a call to isnanl.
60557         * lib/cosl.c: Include isnanl.h.
60558         (cosl): Perform test for NaN at the beginning of the function and
60559         through a call to isnanl.
60560         * lib/ldexpl.c: Include isnanl.h.
60561         (ldexpl): Perform test for NaN through a call to isnanl.
60562         * lib/logl.c: Include isnanl.h.
60563         (logl): Perform test for NaN at the beginning of the function and
60564         through a call to isnanl.
60565         * lib/sinl.c: Include isnanl.h.
60566         (sinl): Perform test for NaN at the beginning of the function and
60567         through a call to isnanl.
60568         * lib/sqrtl.c: Include isnanl.h.
60569         (sqrtl): Perform test for NaN at the beginning of the function and
60570         through a call to isnanl.
60571         * lib/tanl.c: Include isnanl.h.
60572         (tanl): Perform test for NaN at the beginning of the function and
60573         through a call to isnanl.
60574         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60575         * modules/mathl (Depends-on): Add isnanl.
60576
60577 2007-03-26  Eric Blake  <ebb9@byu.net>
60578
60579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60580         regression in logic sense of previous patch.
60581
60582 2007-03-26  Bruno Haible  <bruno@clisp.org>
60583
60584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60585         unportable shell command "if ! ...".
60586         Reported by Ralf Wildenhues.
60587
60588 2007-03-25  Bruno Haible  <bruno@clisp.org>
60589
60590         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60591         <sysexits.h> file, and only add EX_CONFIG.
60592         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60593         absolute file name and whether it is sufficient. Substitute also
60594         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60595         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60596         ABSOLUTE_SYSEXITS_H into sysexits.h.
60597
60598 2007-03-25  Bruno Haible  <bruno@clisp.org>
60599
60600         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60601         hints is NULL.
60602
60603 2007-03-25  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60606         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60607
60608 2007-03-25  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/vasnprintf.c: Include langinfo.h.
60611         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60612         multithread-safe.
60613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60622         Reported by Simon Josefsson.
60623
60624 2007-03-25  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60627         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60628         * modules/vasnprintf (Depends-on): Add stdint.
60629
60630 2007-03-25  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/fpieee: New file.
60633         * m4/fpieee.m4: New file.
60634         * modules/isnan-nolibm (Depends-on): Add fpieee.
60635         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60636         * modules/isnanl (Depends-on): Add fpieee.
60637
60638 2007-03-25  Bruno Haible  <bruno@clisp.org>
60639
60640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60641
60642 2007-03-25  Bruno Haible  <bruno@clisp.org>
60643
60644         Avoid test failures on IRIX 6.5.
60645         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60646         (main): Use it.
60647         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60648         macros.
60649         (main): Use them.
60650
60651 2007-03-25  Bruno Haible  <bruno@clisp.org>
60652
60653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60654         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60655         exists but doesn't work.
60656         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60657         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60659         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60660         math.h.
60661
60662 2007-03-25  Bruno Haible  <bruno@clisp.org>
60663
60664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60665         returns inf. Needed on IRIX 6.5.
60666
60667 2007-03-25  Bruno Haible  <bruno@clisp.org>
60668
60669         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60670         (main): Use isnanl instead of x != x idiom.
60671         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60672
60673         * tests/test-frexp.c: Include isnan.h.
60674         (main): Use isnan instead of x != x idiom.
60675         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60676
60677 2007-03-25  Bruno Haible  <bruno@clisp.org>
60678
60679         * tests/test-frexp.c (NaN): New function/macro.
60680         (main): Use it instead of 0.0 / 0.0.
60681         * tests/test-isnan.c (NaN): New function/macro.
60682         (main): Use it instead of 0.0 / 0.0.
60683         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60684         (test_function): Use it instead of 0.0 / 0.0.
60685         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60686         (test_function): Use it instead of 0.0 / 0.0.
60687         * tests/test-snprintf-posix.h (NaN): New function/macro.
60688         (test_function): Use it instead of 0.0 / 0.0.
60689         * tests/test-sprintf-posix.h (NaN): New function/macro.
60690         (test_function): Use it instead of 0.0 / 0.0.
60691         * tests/test-fprintf-posix.h (NaN): New function/macro.
60692         (test_function): Use it instead of 0.0 / 0.0.
60693         * tests/test-printf-posix.h (NaN): New function/macro.
60694         (test_function): Use it instead of 0.0 / 0.0.
60695
60696         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60697
60698 2007-03-25  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60701
60702 2007-03-25  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/regexec.c (merge_state_with_log): Make static.
60705
60706 2007-03-25  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/trigl.c (kernel_rem_pio2): Make static.
60709
60710 2007-03-25  Bruno Haible  <bruno@clisp.org>
60711
60712         * lib/sincosl.c (sincosl_table): Make static.
60713
60714 2007-03-25  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60717         if the compiler does not support C99.
60718
60719 2007-03-25  Bruno Haible  <bruno@clisp.org>
60720
60721         * modules/time (Makefile.am): Ensure all rule action lines start with a
60722         tab.
60723
60724 2007-03-24  Bruno Haible  <bruno@clisp.org>
60725
60726         * modules/tsearch-tests: New file.
60727         * tests/test-tsearch.sh: New file.
60728         * tests/test-tsearch.c: New file, mostly copied from glibc.
60729
60730         * modules/search-tests: New file.
60731         * tests/test-search.c: New file.
60732
60733         * modules/search: New file.
60734         * lib/search_.h: New file, incorporating lib/tsearch.h.
60735         * m4/search_h.m4: New file.
60736         * lib/tsearch.h: Remove file.
60737         * lib/tsearch.c: Include search.h instead of tsearch.h.
60738         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60739         HAVE_TSEARCH.
60740         * modules/tsearch (Files): Remove lib/tsearch.h.
60741         (Depends-on): Add search.
60742         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60743         (Include): Change tsearch.h into search.h.
60744
60745 2007-03-24  Bruno Haible  <bruno@clisp.org>
60746
60747         * modules/fpucw: New file.
60748         * lib/fpucw.h: New file.
60749         * lib/frexp.c: Include fpucw.h.
60750         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60751         (FUNC): Use them.
60752         * lib/printf-frexp.c: Include fpucw.h.
60753         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60754         (FUNC): Use them.
60755         * lib/vasnprintf.c: Include fpucw.h.
60756         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60757         'long double' calculations.
60758         * tests/test-frexpl.c: Include fpucw.h.
60759         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60760         * tests/test-printf-frexpl.c: Include fpucw.h.
60761         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60762         * modules/frexpl (Depends-on): Add fpucw.
60763         * modules/printf-frexpl (Depends-on): Likewise.
60764         * modules/fprintf-posix (Depends-on): Likewise.
60765         * modules/snprintf-posix (Depends-on): Likewise.
60766         * modules/sprintf-posix (Depends-on): Likewise.
60767         * modules/vasnprintf-posix (Depends-on): Likewise.
60768         * modules/vasprintf-posix (Depends-on): Likewise.
60769         * modules/vfprintf-posix (Depends-on): Likewise.
60770         * modules/vsnprintf-posix (Depends-on): Likewise.
60771         * modules/vsprintf-posix (Depends-on): Likewise.
60772         * modules/frexpl-tests (Depends-on): Likewise.
60773         * modules/printf-frexpl-tests (Depends-on): Likewise.
60774
60775 2007-03-24  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/float+.h: New file.
60778         * lib/isnan.c: Include float+.h.
60779         (SIZE): New macro.
60780         (FUNC): Compare only SIZE bytes of the value.
60781         * lib/vasnprintf.c: Include float+.h.
60782         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60783         SIZEOF_LDBL or SIZEOF_DBL bytes.
60784         * modules/isnan-nolibm (Files): Add lib/float+.h.
60785         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60786         * modules/isnanl (Files): Add lib/float+.h.
60787         * modules/vasnprintf (Files): Add lib/float+.h.
60788
60789 2007-03-24  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60792         include isnanl-nolibm.h.
60793
60794 2007-03-24  Bruno Haible  <bruno@clisp.org>
60795
60796         * tests/test-read-file.c (main): Don't produce spurious output for
60797         expected situations. Make the test fail if it encountered unexpected
60798         results.
60799
60800 2007-03-24  Bruno Haible  <bruno@clisp.org>
60801
60802         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60803         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60804
60805 2007-03-24  Bruno Haible  <bruno@clisp.org>
60806
60807         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60808
60809 2007-03-24  Bruno Haible  <bruno@clisp.org>
60810
60811         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60812         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60813
60814         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60815         * modules/utf8-ucs4: Turn into a symbolic link to module
60816         unistr/u8-mbtouc.
60817
60818         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60819         utf8-ucs4-unsafe.
60820         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60821         unistr/u8-mbtouc-unsafe.
60822
60823         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60824         * modules/utf16-ucs4: Turn into a symbolic link to module
60825         unistr/u16-mbtouc.
60826
60827         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60828         utf16-ucs4-unsafe.
60829         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60830         unistr/u16-mbtouc-unsafe.
60831
60832         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60833         * modules/ucs4-utf8: Turn into a symbolic link to module
60834         unistr/u8-ubtomb.
60835
60836         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60837         * modules/ucs4-utf16: Turn into a symbolic link to module
60838         unistr/u16-ubtomb.
60839
60840 2007-03-24  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60843         Enable the function only if HAVE_INLINE.
60844         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60845         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60846         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60847         Enable the function only if HAVE_INLINE.
60848         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60849         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60850         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60851         Enable the function only if HAVE_INLINE.
60852         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60853         Enable the function only if HAVE_INLINE.
60854         * modules/utf8-ucs4: Update.
60855         * modules/utf8-ucs4-unsafe: Update.
60856         * modules/utf16-ucs4: Update.
60857         * modules/utf16-ucs4-unsafe: Update.
60858         * modules/ucs4-utf8: Update.
60859         * modules/ucs4-utf16: Update.
60860
60861 2007-03-24  Bruno Haible  <bruno@clisp.org>
60862
60863         * lib/utf8-ucs4.h: Remove file.
60864         * lib/utf8-ucs4-unsafe.h: Remove file.
60865         * lib/utf16-ucs4.h: Remove file.
60866         * lib/utf16-ucs4-unsafe.h: Remove file.
60867         * lib/ucs4-utf8.h: Remove file.
60868         * lib/ucs4-utf16.h: Remove file.
60869         * lib/unistr.h: Include their previous contents.
60870         * m4/utf-ucs4.m4: Remove file.
60871         * m4/ucs4-utf.m4: Remove file.
60872         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60873         (Depends-on): Add unistr/base.
60874         (configure.ac): Remove gl_UTF_UCS4.
60875         (Makefile.am): Update.
60876         (Include): Change to unistr.h.
60877         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60878         (Depends-on): Add unistr/base.
60879         (configure.ac): Remove gl_UTF_UCS4.
60880         (Makefile.am): Update.
60881         (Include): Change to unistr.h.
60882         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60883         (Depends-on): Add unistr/base.
60884         (configure.ac): Remove gl_UTF_UCS4.
60885         (Makefile.am): Update.
60886         (Include): Change to unistr.h.
60887         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60888         (Depends-on): Add unistr/base.
60889         (configure.ac): Remove gl_UTF_UCS4.
60890         (Makefile.am): Update.
60891         (Include): Change to unistr.h.
60892         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60893         (Depends-on): Add unistr/base.
60894         (configure.ac): Remove gl_UCS4_UTF.
60895         (Makefile.am): Update.
60896         (Include): Change to unistr.h.
60897         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60898         (Depends-on): Add unistr/base.
60899         (configure.ac): Remove gl_UCS4_UTF.
60900         (Makefile.am): Update.
60901         (Include): Change to unistr.h.
60902         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60903         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60904         utf8-ucs4-unsafe.h.
60905         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60906         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60907         utf16-ucs4-unsafe.h.
60908         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60909         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60910         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60911         * lib/unistr/u8-strchr.c: Likewise.
60912         * lib/unistr/u8-strrchr.c: Likewise.
60913         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60914         * lib/unistr/u16-strchr.c: Likewise.
60915         * lib/unistr/u16-strrchr.c: Likewise.
60916         * lib/striconveh.c: Update.
60917         * lib/linebreak.c: Update.
60918
60919 2007-03-24  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60922         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60923
60924 2007-03-22  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60927
60928 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60929
60930         * MODULES.html.sh (File system functions): New module write-any-file.
60931         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60932         * m4/write-any-file.m4: New files.
60933
60934 2007-03-23  Eric Blake  <ebb9@byu.net>
60935
60936         * gnulib-tool: Rearrange space-tab sequences, since some editors
60937         like to eat them.
60938
60939 2007-03-23  Eric Blake  <ebb9@byu.net>
60940
60941         * lib/version-etc.c (version_etc_va): Update license wording to
60942         be more concise.  Recommended by Richard Stallman.
60943
60944 2007-03-22  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/poll.c (MSG_PEEK): New fallback definition.
60947
60948 2007-03-22  Bruno Haible  <bruno@clisp.org>
60949
60950         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60951         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60952         (main): Update.
60953         Fixes a compilation error on BeOS.
60954
60955 2007-03-22  Bruno Haible  <bruno@clisp.org>
60956
60957         * modules/frexpl-tests: New file.
60958         * tests/test-frexpl.c: New file.
60959
60960         * modules/frexpl: New file.
60961         * m4/frexpl.m4: New file.
60962         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60963         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60965         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60966         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60967         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60968
60969 2007-03-22  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/frexpl.c: Share code with lib/frexp.c.
60972         * modules/mathl (Files): Add lib/frexp.c.
60973         (Depends-on): Add isnanl-nolibm.
60974
60975 2007-03-22  Bruno Haible  <bruno@clisp.org>
60976
60977         * modules/printf-frexp (Files): Add m4/frexp.m4.
60978         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60979         only if the found frexp function actually works.
60980
60981 2007-03-22  Bruno Haible  <bruno@clisp.org>
60982
60983         * lib/frexp.c: Remove older implementation that uses divisions.
60984
60985 2007-03-21  Bruno Haible  <bruno@clisp.org>
60986
60987         * modules/frexp-tests: New file.
60988         * tests/test-frexp.c: New file.
60989
60990         * modules/frexp: New file.
60991         * lib/frexp.c: New file.
60992         * m4/frexp.m4: New file.
60993         * lib/math_.h (frexp): New declaration.
60994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60995         REPLACE_FREXP.
60996         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60997
60998 2007-03-21  Bruno Haible  <bruno@clisp.org>
60999
61000         * modules/isnanl-tests: New file.
61001         * tests/test-isnanl.c: New file.
61002
61003         * modules/isnanl: New file.
61004         * lib/isnanl.h: New file.
61005         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61006         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61007         gl_FUNC_ISNANL_WORKS.
61008         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61009         New macros.
61010
61011 2007-03-21  Bruno Haible  <bruno@clisp.org>
61012
61013         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61014         lib/isnanl.h.
61015         (Include): Update.
61016         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61017         * lib/vasnprintf.c: Update.
61018         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61019         tests/test-isnanl.h, remove tests/test-isnanl.c.
61020         (Makefile.am): Update.
61021         * tests/test-isnanl-nolibm.c: New file.
61022         * tests/test-isnanl.h: New file.
61023         * tests/test-isnanl.c: Remove file.
61024
61025 2007-03-21  Jim Meyering  <jim@meyering.net>
61026
61027         When trying to open ".", treat ESTALE like EACCES.
61028         * lib/savewd.c (savewd_save): Resort to forking not just upon
61029         failure with EACCES, but also when errno is ESTALE.
61030
61031 2007-03-20  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61034         Needed on AIX 5.1. Reported by Matthew Woehlke.
61035
61036 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         Suggestions by Bruno Haible:
61039         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61040         our own.
61041         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61042         * modules/acl (Depends-on): Add gettext.
61043
61044 2007-03-19  Bruno Haible  <bruno@clisp.org>
61045
61046         * modules/iconvme: Remove file.
61047         * lib/iconvme.h: Remove file.
61048         * lib/iconvme.c: Remove file.
61049         * m4/iconvme.m4: Remove file.
61050
61051 2007-03-19  Bruno Haible  <bruno@clisp.org>
61052
61053         * doc/relocatable-maint.texi: Break long shell script line.
61054         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61055
61056 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61059         handle file_has_acl.
61060         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61061         * lib/acl.c: Move header inclusions and related macro defns into
61062         lib/acl-internal.h.
61063         (S_ISLNK): Remove defn, since that's now done for us.
61064         (file_has_acl): Move to lib/file-has-acl.c.
61065         Call acl_trivial if available.  This is the crucial part of the fix.
61066         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61067         shared within the library.  Rewrite a bit, partly to make it compatible
61068         with the GNU coding style.
61069         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61070         Remove unnecessary double-quotes.
61071         Don't test for acl_to_text; the build will catch that.
61072         Replace acl_entries if it doesn't exist and it is needed.
61073         Check for -lsec and acl_trivial (as used on Solaris 10).
61074         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61075         lib/file-has-acl.c.
61076         (Depends-on): Add sys_stat, for S_ISLNK.
61077
61078 2007-03-19  Ben Pfaff  <blp@gnu.org>
61079
61080         * doc/gnulib.texi: Fix typos.
61081         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61082
61083 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61086         If size is zero here, buf must be zero.
61087
61088 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61089
61090         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61091         <bruno@clisp.org>.
61092
61093 2007-03-18  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61096         Suggested by Eric Blake.
61097
61098 2007-03-18  Ben Pfaff  <blp@gnu.org>
61099
61100         * doc/relocatable.texi: Recommend using as prefix a directory
61101         that does not exist and will never be created.  Based on
61102         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61103         and others.
61104
61105 2007-03-17  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/fchownat.c: Include lchown.h.
61108
61109 2007-03-17  Bruno Haible  <bruno@clisp.org>
61110
61111         Fix endless loop when the given allocated size was > INT_MAX.
61112         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61113         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61114         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61115         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61116         * lib/sprintf.c (sprintf): Likewise.
61117
61118 2007-03-17  Bruno Haible  <bruno@clisp.org>
61119
61120         * tests/test-argp-2.sh (func_compare): Output a context diff.
61121
61122 2007-03-17  Bruno Haible  <bruno@clisp.org>
61123
61124         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61125         locale's decimal-point character.
61126
61127 2007-03-17  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61130         before comparing it. Needed because on some platforms (e.g. x86) a
61131         'long double' occupies less bytes than sizeof (long double).
61132
61133 2007-03-17  Bruno Haible  <bruno@clisp.org>
61134
61135         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61136         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61137         * tests/test-getaddrinfo.c (simple): Likewise.
61138         * tests/test-read-file.c (main): Likewise.
61139
61140 2007-03-17  Bruno Haible  <bruno@clisp.org>
61141
61142         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61143
61144 2007-03-17  Bruno Haible  <bruno@clisp.org>
61145
61146         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61147         unused variable.
61148
61149 2007-03-17  Bruno Haible  <bruno@clisp.org>
61150
61151         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61152         * tests/test-c-strncasecmp.c: Likewise.
61153
61154 2007-03-17  Bruno Haible  <bruno@clisp.org>
61155
61156         * modules/stdlib (Depends-on): Add unistd.
61157         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61158         Needed for MacOS X 10.3.
61159
61160 2007-03-17  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61163
61164 2007-03-17  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61167
61168 2007-03-17  Bruno Haible  <bruno@clisp.org>
61169
61170         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61171         to reflect files copied from gnulib (with or without modifications).
61172         Suggested by Jim Meyering.
61173
61174 2007-03-17  Eric Blake  <ebb9@byu.net>
61175
61176         * NEWS: Document stdlib change from 2007-02-18.
61177
61178 2007-03-17  Jim Meyering  <jim@meyering.net>
61179
61180         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61181         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61182         someone uses a name containing shell meta-characters.
61183         Reported by Alfred M. Szmidt.
61184
61185         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61186
61187 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61188
61189         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61190         and copy gettext configuration files only if configure.ac contains
61191         a use of AM_GNU_GETTEXT_VERSION.
61192
61193 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61194
61195         * build-aux/bootstrap (gnulib_name): New variable.
61196         (gnulib_tool_options): Use it.
61197
61198 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61199
61200         * tests/test-des.c: Use new namespace.
61201
61202 2007-03-15  Bruno Haible  <bruno@clisp.org>
61203
61204         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61205         Reported by James Youngman <jay@gnu.org>.
61206
61207 2007-03-15  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61210         declared prototype. Needed with cc on OSF/1 5.1.
61211
61212 2007-03-15  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61215         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61216         (struct gl_list_implementation): Add dispose_fn argument to the
61217         'create_empty', 'create' methods.
61218         (struct gl_list_impl_base): Add field 'dispose_fn'.
61219         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61220         argument.
61221         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61222         dispose_fn argument.
61223         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61224         dispose_fn on the dropped values.
61225         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61226         dispose_fn argument.
61227         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61228         dropped values.
61229         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61230         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61231         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61232         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61233         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61234         argument.
61235         (gl_tree_list_free): Call dispose_fn on the dropped values.
61236         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61237         the dropped values.
61238         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61239         Add dispose_fn argument.
61240         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61241         Call dispose_fn on the dropped values.
61242         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61243         Add dispose_fn argument.
61244         (gl_sublist_create): Initialize the 'dispose_fn' field.
61245         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61246         * tests/test-array_list.c (main): Update.
61247         * tests/test-carray_list.c (main): Update.
61248         * tests/test-avltree_list.c (main): Update.
61249         * tests/test-rbtree_list.c (main): Update.
61250         * tests/test-avltreehash_list.c (main): Update.
61251         * tests/test-rbtreehash_list.c (main): Update.
61252         * tests/test-linked_list.c (main): Update.
61253         * tests/test-linkedhash_list.c (main): Update.
61254         * tests/test-array_oset.c (main): Update.
61255
61256 2007-03-15  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61259         (gl_oset_create_empty): Add dispose_fn argument.
61260         (struct gl_oset_implementation): Add dispose_fn argument to
61261         'create_empty' method.
61262         (struct gl_oset_impl_base): Add dispose_fn field.
61263         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61264         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61265         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61266         values.
61267         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61268         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61269         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61270         dropped value.
61271         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61272         dropped value.
61273         * tests/test-array_oset.c (main): Update.
61274         * tests/test-avltree_oset.c (main): Update.
61275         * tests/test-rbtree_oset.c (main): Update.
61276         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61277
61278 2007-03-13  Bruno Haible  <bruno@clisp.org>
61279
61280         * tests/test-stdbool.c (i): Update after last patch.
61281
61282 2007-03-12  Bruno Haible  <bruno@clisp.org>
61283
61284         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61285         the iswprint macro. Needed on Solaris 2.5.1.
61286
61287 2007-03-12  Bruno Haible  <bruno@clisp.org>
61288
61289         * tests/test-printf-frexp.c (main): Declare x as volatile.
61290
61291 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61292
61293         * doc/gnulib.texi (Build robot for gnulib): New section.
61294
61295 2007-03-12  Jim Meyering  <jim@meyering.net>
61296
61297         * build-aux/bootstrap: New file.
61298         * build-aux/bootstrap.conf: New file, from coreutils.
61299
61300 2007-03-11  Bruno Haible  <bruno@clisp.org>
61301
61302         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61303
61304 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61305
61306         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61307         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61308         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61309
61310 2007-03-11  Bruno Haible  <bruno@clisp.org>
61311
61312         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61313         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61314
61315 2007-03-11  Bruno Haible  <bruno@clisp.org>
61316
61317         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61318         formula. Needed for SunPRO C 5.0.
61319
61320 2007-03-11  Bruno Haible  <bruno@clisp.org>
61321
61322         * modules/long-options (Depends-on): Add getopt.
61323
61324 2007-03-11  Bruno Haible  <bruno@clisp.org>
61325
61326         * modules/modechange (Depends-on): Add stdbool.
61327
61328 2007-03-11  Bruno Haible  <bruno@clisp.org>
61329
61330         * modules/i-ring (Depends-on): Add stdbool.
61331
61332 2007-03-11  Bruno Haible  <bruno@clisp.org>
61333
61334         * modules/gc-des (Depends-on): Add stdbool.
61335
61336 2007-03-11  Bruno Haible  <bruno@clisp.org>
61337
61338         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61339
61340 2007-03-11  Bruno Haible  <bruno@clisp.org>
61341
61342         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61343
61344 2007-03-11  Bruno Haible  <bruno@clisp.org>
61345
61346         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61347
61348 2007-03-11  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/vasnprintf.c (sprintf): Undefine.
61351
61352 2007-03-11  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61355         initializers in SunPRO C and Compaq C compilers.
61356
61357 2007-03-11  Bruno Haible  <bruno@clisp.org>
61358
61359         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61360         decrementing code ANSI C compliant.
61361
61362 2007-03-11  Bruno Haible  <bruno@clisp.org>
61363
61364         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61365         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61366
61367 2007-03-11  Bruno Haible  <bruno@clisp.org>
61368
61369         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61370         <stdbool.h> substitute doesn't pass.
61371
61372 2007-03-11  Bruno Haible  <bruno@clisp.org>
61373
61374         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61375
61376 2007-03-11  Bruno Haible  <bruno@clisp.org>
61377
61378         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61379         script, for submission to autobuild.josefsson.org.
61380
61381 2007-03-10  Bruno Haible  <bruno@clisp.org>
61382
61383         * modules/canonicalize-lgpl-tests: New file.
61384         * tests/test-canonicalize-lgpl.sh: New file.
61385         * tests/test-canonicalize-lgpl.c: New file.
61386
61387         * modules/c-strcase-tests: New file.
61388         * tests/test-c-strcase.sh: New file.
61389         * tests/test-c-strcasecmp.c: New file.
61390         * tests/test-c-strncasecmp.c: New file.
61391
61392         * modules/atexit-tests: New file.
61393         * tests/test-atexit.sh: New file.
61394         * tests/test-atexit.c: New file.
61395
61396 2007-03-10  Bruno Haible  <bruno@clisp.org>
61397
61398         * tests/test-binary-io.sh: Use temporary filenames that are not so
61399         likely to clash with those of other tests (in a parallel make).
61400         * tests/test-binary-io.c: Likewise.
61401
61402 2007-03-10  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61405         fallback; use #error instead.
61406         Suggested by Simon Josefsson.
61407
61408 2007-03-10  Bruno Haible  <bruno@clisp.org>
61409
61410         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61411         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61412         first and the last.
61413
61414 2007-03-10  Bruno Haible  <bruno@clisp.org>
61415
61416         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61417
61418 2007-03-10  Bruno Haible  <bruno@clisp.org>
61419
61420         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61421         "make distcheck".
61422         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61423         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61424         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61425
61426 2007-03-10  Bruno Haible  <bruno@clisp.org>
61427
61428         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61429         variable.
61430         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61431         variable.
61432
61433 2007-03-09  Eric Blake  <ebb9@byu.net>
61434         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61435
61436         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61437         types are not being provided by gnulib.
61438         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61439         types are supported.
61440
61441 2007-03-10  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/stdio_.h (__attribute__): New macro.
61444         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61445         vsprintf): Specify __attribute__ __format__ for GCC.
61446         Suggested by Eric Blake.
61447
61448 2007-03-09  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/printf-posix-tests: New file.
61451         * tests/test-printf-posix.sh: New file.
61452         * tests/test-printf-posix.c: New file.
61453
61454         * modules/printf-posix: New file.
61455         * lib/printf.c: New file.
61456         * m4/printf-posix-rpl.m4: New file.
61457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61458         REPLACE_PRINTF.
61459         * lib/stdio_.h (printf): New declaration.
61460         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61461         ____strfmon____): New macros.
61462         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61463         REPLACE_PRINTF.
61464
61465 2007-03-09  Bruno Haible  <bruno@clisp.org>
61466
61467         * tests/test-vasnprintf-posix2.sh: New file.
61468         * tests/test-vasnprintf-posix2.c: New file.
61469         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61470         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61471         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61472
61473         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61474         a locale dependent decimal point, rather than always '.'.
61475
61476 2007-03-09  Eric Blake  <ebb9@byu.net>
61477
61478         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61479         spite of platforms like Tandem/NSK that define it to -1.
61480
61481 2007-03-08  Bruno Haible  <bruno@clisp.org>
61482
61483         * modules/vprintf-posix-tests: New file.
61484         * tests/test-vprintf-posix.sh: New file.
61485         * tests/test-vprintf-posix.c: New file.
61486         * tests/test-printf-posix.h: New file.
61487
61488         * modules/vprintf-posix: New file.
61489         * lib/vprintf.c: New file.
61490         * m4/vprintf-posix.m4: New file.
61491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61492         REPLACE_VPRINTF.
61493         * lib/stdio_.h (vprintf): New declaration.
61494         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61495         REPLACE_VPRINTF.
61496
61497 2007-03-08  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/fprintf-posix-tests: New file.
61500         * tests/test-fprintf-posix.sh: New file.
61501         * tests/test-fprintf-posix.c: New file.
61502
61503         * modules/fprintf-posix: New file.
61504         * lib/fprintf.c: New file.
61505         * m4/fprintf-posix.m4: New file.
61506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61507         REPLACE_FPRINTF.
61508         * lib/stdio_.h (fprintf): New declaration.
61509         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61510         REPLACE_FPRINTF.
61511
61512 2007-03-08  Bruno Haible  <bruno@clisp.org>
61513
61514         * modules/vfprintf-posix-tests: New file.
61515         * tests/test-vfprintf-posix.sh: New file.
61516         * tests/test-vfprintf-posix.c: New file.
61517         * tests/test-fprintf-posix.h: New file.
61518         * tests/test-fprintf-posix.out: New file.
61519
61520         * modules/vfprintf-posix: New file.
61521         * lib/vfprintf.c: New file.
61522         * m4/vfprintf-posix.m4: New file.
61523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61524         REPLACE_VFPRINTF.
61525         * lib/stdio_.h (vfprintf): New declaration.
61526         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61527         REPLACE_VFPRINTF.
61528
61529 2007-03-08  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61532
61533 2007-03-08  Bruno Haible  <bruno@clisp.org>
61534
61535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61536         instead of 'expr' invocations.
61537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61542         Suggested by Paul Eggert.
61543
61544 2007-03-08  Bruno Haible  <bruno@clisp.org>
61545
61546         * modules/fseterr-tests: New file.
61547         * tests/test-fseterr.c: New file.
61548
61549         * modules/fseterr: New file.
61550         * lib/fseterr.h: New file.
61551         * lib/fseterr.c: New file.
61552
61553 2007-03-08  Bruno Haible  <bruno@clisp.org>
61554
61555         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61556         * lib/getopt_.h: Likewise.
61557         * lib/mbswidth.h: Likewise.
61558         * lib/setenv.h: Likewise.
61559         * lib/vasnprintf.h: Likewise.
61560         * lib/vasprintf.h: Likewise.
61561         * lib/verror.h: Likewise.
61562         * lib/xsetenv.h: Likewise.
61563         * lib/xvasprintf.h: Likewise.
61564
61565 2007-03-08  Jim Meyering  <jim@meyering.net>
61566
61567         * users.txt: Add parted.
61568
61569         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61570
61571 2007-03-07  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/printf.m4: Make the shell script snippets copy&pastable.
61574
61575 2007-03-02  Bruno Haible  <bruno@clisp.org>
61576
61577         * lib/netinet_in_.h: New file.
61578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61579         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61580         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61581         (Depends-on): Add absolute-header.
61582         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61583         into netinet/in.h.
61584
61585 2007-03-03  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/sys_select_.h: New file.
61588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61589         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61590         * modules/sys_select (Files): Add lib/sys_select_.h.
61591         (Depends-on): Add absolute-header.
61592         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61593         into sys/select.h.
61594
61595 2007-03-02  Bruno Haible  <bruno@clisp.org>
61596
61597         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61598         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61599         values.
61600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61601         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61602         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61603         * modules/sys_socket (Depends-on): Add absolute-header.
61604         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61605         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61606         (Include): Remove requirement of inclusion of <sys/types.h>.
61607
61608 2007-03-02  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/byteswap_.h (bswap_32): Fix formula.
61611
61612 2007-03-06  Bruno Haible  <bruno@clisp.org>
61613
61614         * modules/sprintf-posix-tests: New file.
61615         * tests/test-sprintf-posix.c: New file.
61616
61617         * modules/sprintf-posix: New file.
61618         * lib/sprintf.c: New file.
61619         * m4/sprintf-posix.m4: New file.
61620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61621         REPLACE_SPRINTF.
61622         * lib/stdio_.h (sprintf): New declaration.
61623         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61624         REPLACE_SPRINTF.
61625
61626 2007-03-06  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/vsprintf-posix-tests: New file.
61629         * tests/test-vsprintf-posix.c: New file.
61630         * tests/test-sprintf-posix.h: New file.
61631
61632         * modules/vsprintf-posix: New file.
61633         * lib/vsprintf.c: New file.
61634         * m4/vsprintf-posix.m4: New file.
61635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61636         REPLACE_VSPRINTF.
61637         * lib/stdio_.h (vsprintf): New declaration.
61638         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61639         REPLACE_VSPRINTF.
61640
61641 2007-03-06  Bruno Haible  <bruno@clisp.org>
61642
61643         * modules/vsnprintf (Depend-on): Remove minmax.
61644
61645 2007-03-06  Bruno Haible  <bruno@clisp.org>
61646
61647         * modules/snprintf-posix-tests: New file.
61648         * tests/test-snprintf-posix.c: New file.
61649
61650         * modules/snprintf-posix: New file.
61651         * m4/snprintf-posix.m4: New file.
61652         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61653         gl_FUNC_SNPRINTF.
61654         (gl_FUNC_SNPRINTF): Invoke it.
61655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61656         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61657         is set.
61658         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61659
61660 2007-03-06  Bruno Haible  <bruno@clisp.org>
61661
61662         * modules/vsnprintf-posix-tests: New file.
61663         * tests/test-vsnprintf-posix.c: New file.
61664         * tests/test-snprintf-posix.h: New file.
61665
61666         * modules/vsnprintf-posix: New file.
61667         * m4/vsnprintf-posix.m4: New file.
61668         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61669         gl_FUNC_VSNPRINTF.
61670         (gl_FUNC_VSNPRINTF): Invoke it.
61671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61672         * lib/stdio_.h (vsnprintf): Define as a replacement if
61673         REPLACE_VSNPRINTF is set.
61674         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61675
61676 2007-03-06  Bruno Haible  <bruno@clisp.org>
61677
61678         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61680
61681 2007-03-06  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61684         (asinl): Declare also if HAVE_DECL_ASINL is set.
61685         (atanl): Declare also if HAVE_DECL_ATANL is set.
61686         (ceill): Declare also if HAVE_DECL_CEILL is set.
61687         (cosl): Declare also if HAVE_DECL_COSL is set.
61688         (expl): Declare also if HAVE_DECL_EXPL is set.
61689         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61690         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61691         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61692         (logl): Declare also if HAVE_DECL_LOGL is set.
61693         (sinl): Declare also if HAVE_DECL_SINL is set.
61694         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61695         (tanl): Declare also if HAVE_DECL_TANL is set.
61696         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61699         declaration of frexpl, ldexpl.
61700         * modules/printf-frexpl (Depends-on): Add math.
61701         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61702
61703 2007-03-05  Bruno Haible  <bruno@clisp.org>
61704
61705         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61706         frexpl and ldexpl are declared.
61707         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61708
61709 2007-03-05  Bruno Haible  <bruno@clisp.org>
61710
61711         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61712         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61713
61714 2007-03-05  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/stdio_.h: Include <stddef.h>.
61717
61718 2007-03-05  Bruno Haible  <bruno@clisp.org>
61719
61720         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61721
61722 2007-03-05  Bruno Haible  <bruno@clisp.org>
61723
61724         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61725         NetBSD 4, from Ralf Wildenhues.
61726
61727 2007-03-04  Bruno Haible  <bruno@clisp.org>
61728
61729         * lib/vasprintf.h: Update #if logic for the case when the functions
61730         exist but are overridden.
61731
61732 2007-03-04  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61735         implementations: glibc-2.4 and MacOS X 10.3.
61736         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61737         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61738         * tests/test-vasprintf-posix.c (test_function): Likewise.
61739
61740 2007-03-04  Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/vasprintf-posix-tests: New file.
61743         * tests/test-vasprintf-posix.c: New file.
61744
61745         * modules/vasprintf-posix: New file.
61746         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61747         defined.
61748         * m4/vasprintf-posix.m4: New file.
61749         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61750         gl_FUNC_VASPRINTF.
61751         (gl_FUNC_VASPRINTF): Invoke it.
61752         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61753         here.
61754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61755
61756 2007-03-04  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61759         REPLACE_GETTIMEOFDAY.
61760         * modules/sys_time (Makefile.am): Likewise.
61761         * m4/sys_time_h.m4: Likewise.
61762         * m4/gettimeofday.m4: Likewise.
61763
61764 2007-03-04  Bruno Haible  <bruno@clisp.org>
61765
61766         * modules/vasnprintf-posix-tests: New file.
61767         * tests/test-vasnprintf-posix.c: New file.
61768
61769         * modules/vasnprintf-posix: New file.
61770         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61771         printf-frexpl.h.
61772         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61773         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61774         REPLACE_VASNPRINTF is defined.
61775         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61776         gl_FUNC_VASNPRINTF.
61777         (gl_FUNC_VASNPRINTF): Invoke it.
61778         * m4/vasnprintf-posix.m4: New file.
61779         * m4/printf.m4: New file.
61780
61781 2007-03-04  Bruno Haible  <bruno@clisp.org>
61782
61783         Compile progreloc.c only if --enable-relocatable is specified.
61784         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61785         if --enable-relocatable was specified.
61786         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61787         lib_SOURCES.
61788
61789 2007-03-04  Jim Meyering  <jim@meyering.net>
61790
61791         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61792         Use it consistently, rather than enumerating errno constants.
61793
61794 2007-03-04  Bruno Haible  <bruno@clisp.org>
61795
61796         * modules/xvasprintf-tests: New file.
61797         * tests/test-xvasprintf.c: New file.
61798
61799         * modules/vasprintf-tests: New file.
61800         * tests/test-vasprintf.c: New file.
61801
61802         * modules/vasnprintf-tests: New file.
61803         * tests/test-vasnprintf.c: New file.
61804
61805         * modules/vsnprintf-tests: New file.
61806         * tests/test-vsnprintf.c: New file.
61807
61808         * modules/snprintf-tests: New file.
61809         * tests/test-snprintf.c: New file.
61810
61811 2007-03-04  Bruno Haible  <bruno@clisp.org>
61812
61813         Compile relocatable.c only if --enable-relocatable is specified.
61814         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61815         gl_RELOCATABLE_LIBRARY.
61816         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61817         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61818         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61819         gl_RELOCATABLE_LIBRARY.
61820         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61821         (Makefile.am): Remove lib_SOURCES.
61822         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61823         gl_RELOCATABLE_LIBRARY.
61824         (Makefile.am): Remove lib_SOURCES.
61825         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61826         always.
61827         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61828         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61829
61830 2007-03-04  Bruno Haible  <bruno@clisp.org>
61831
61832         * modules/argmatch-tests: New file.
61833         * tests/test-argmatch.c: New file.
61834
61835         * tests/test-allocsa.c (main): Halve the number of loop runs.
61836
61837         * modules/alloca-opt-tests: New file.
61838         * tests/test-alloca-opt.c: New file.
61839
61840 2007-03-04  Jim Meyering  <jim@meyering.net>
61841
61842         Work around difference between Linux ACLs and Solaris 10 ZFS.
61843         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61844         for EINVAL.
61845
61846 2007-03-03  Bruno Haible  <bruno@clisp.org>
61847
61848         * modules/relocatable-prog (Depends-on): Add back progreloc's
61849         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61850
61851 2007-03-03  Bruno Haible  <bruno@clisp.org>
61852
61853         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61854         * modules/relocatable-lib: New file.
61855
61856 2007-03-03  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/relocatable-prog: Renamed from modules/relocatable.
61859         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61860
61861 2007-03-03  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61864         m4/relocatable-lib.m4.
61865         (Depends-on): Remove 'relocatable'.
61866         (configure.ac): Add gl_RELOCATABLE_NOP.
61867
61868 2007-03-03  Bruno Haible  <bruno@clisp.org>
61869
61870         * modules/relocatable-prog-wrapper: New file.
61871         * modules/relocatable (Depends-on): Add it. Remove all other
61872         dependencies except progname.
61873         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61874
61875         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61876         (gl_FUNC_STRERROR): Nop.
61877         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61878
61879         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61880         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61881
61882         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61883         (gl_FUNC_READLINK): Update.
61884
61885         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61886
61887 2007-03-03  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61890         * modules/xreadlink (Depends-on): Add unistd.
61891         * modules/xreadlink-with-size (Depends-on): Likewise.
61892
61893 2007-03-03  Bruno Haible  <bruno@clisp.org>
61894
61895         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61896         extracted from gt_FUNC_SETENV.
61897         (gt_FUNC_SETENV): Remove macro.
61898         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61899         remove gt_FUNC_SETENV.
61900
61901 2007-03-03  Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61904         ENABLE_RELOCATABLE here.
61905         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61906
61907 2007-03-03  Bruno Haible  <bruno@clisp.org>
61908
61909         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61910         * tests/test-rbtreehash_list.c: Include progname.h.
61911         (main): Call set_program_name.
61912
61913         * modules/rbtree-oset-tests (Depends-on): Add progname.
61914         * tests/test-rbtree_oset.c: Include progname.h.
61915         (main): Call set_program_name.
61916
61917         * modules/rbtree-list-tests (Depends-on): Add progname.
61918         * tests/test-rbtree_list.c: Include progname.h.
61919         (main): Call set_program_name.
61920
61921         * modules/linked-list-tests (Depends-on): Add progname.
61922         * tests/test-linked_list.c: Include progname.h.
61923         (main): Call set_program_name.
61924
61925 2007-03-03  Bruno Haible  <bruno@clisp.org>
61926
61927         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61928         All uses of __restrict changed to _Restrict_.
61929         * lib/glob_.h (__restrict): Remove macro.
61930
61931 2007-03-02  Bruno Haible  <bruno@clisp.org>
61932
61933         * modules/gettext (configure.ac): Require gettext infrastructure
61934         from version 0.16.1.
61935
61936 2007-03-02  Bruno Haible  <bruno@clisp.org>
61937
61938         * modules/linkedhash-list-tests (Depends-on): Add progname.
61939         * tests/test-linkedhash_list.c: Include progname.h.
61940         (main): Call set_program_name.
61941
61942         * modules/carray-list-tests (Depends-on): Add progname.
61943         * tests/test-carray_list.c: Include progname.h.
61944         (main): Call set_program_name.
61945
61946         * modules/avltreehash-list-tests (Depends-on): Add progname.
61947         * tests/test-avltreehash_list.c: Include progname.h.
61948         (main): Call set_program_name.
61949
61950         * modules/avltree-oset-tests (Depends-on): Add progname.
61951         * tests/test-avltree_oset.c: Include progname.h.
61952         (main): Call set_program_name.
61953
61954         * modules/avltree-list-tests (Depends-on): Add progname.
61955         * tests/test-avltree_list.c: Include progname.h.
61956         (main): Call set_program_name.
61957
61958         * modules/array-oset-tests (Depends-on): Add progname.
61959         * tests/test-array_oset.c: Include progname.h.
61960         (main): Call set_program_name.
61961
61962         * modules/array-list-tests (Depends-on): Add progname.
61963         * tests/test-array_list.c: Include progname.h.
61964         (main): Call set_program_name.
61965
61966         * modules/argp-tests (Depends-on): Add progname.
61967         * tests/test-argp.c: Include argp.h first. Include progname.h.
61968         (main): Call set_program_name.
61969
61970 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * doc/gnulib-tool.texi (Initial import): Reword description of
61973         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61974         limited effect even if defined after the first system include.
61975
61976 2007-03-01  Bruno Haible  <bruno@clisp.org>
61977
61978         * build-aux/config.libpath: Update to libtool-1.5.22.
61979         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61980
61981 2007-03-01  Bruno Haible  <bruno@clisp.org>
61982
61983         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61984         foo_CFLAGS.
61985         Reported by Ralf Wildenhues.
61986
61987 2007-03-01  Bruno Haible  <bruno@clisp.org>
61988
61989         * build-aux/install-reloc: Remove object files left over by some
61990         compilers.
61991         Reported by Ralf Wildenhues.
61992
61993 2007-03-01  Bruno Haible  <bruno@clisp.org>
61994
61995         * build-aux/install-reloc: Break long lines.
61996
61997 2007-03-01  Bruno Haible  <bruno@clisp.org>
61998
61999         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62000         Reported by Ralf Wildenhues.
62001
62002 2007-03-01  Bruno Haible  <bruno@clisp.org>
62003
62004         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62005         include ordering constraints.
62006
62007 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62008
62009         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62011         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62012         as another example.
62013         * lib/time_.h: Fix misspelling.
62014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62015         Require gl_HEADER_TIME_H_DEFAULTS.
62016         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62017         * m4/time_r.m4 (gl_TIME_R): Likewise.
62018         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62019
62020 2007-03-01  Bruno Haible  <bruno@clisp.org>
62021
62022         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62023         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62024
62025 2007-03-01  Jim Meyering  <jim@meyering.net>
62026
62027         * modules/xreadlink (Maintainer): Add my name.
62028         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62029
62030 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62031             Bruno Haible  <bruno@clisp.org>
62032
62033         * build-aux/install-reloc: Compile also c-ctype.c.
62034         * build-aux/relocatable.sh.in: New file.
62035         * doc/relocatable.texi: New file.
62036         * doc/relocatable-maint.texi: New file.
62037         * doc/gnulib.texi: Include relocatable-maint.texi.
62038         * lib/progreloc.c: Include unistd.h unconditionally.
62039         * lib/relocwrapper.c: Include unistd.h unconditionally.
62040         Include c-ctype.h.
62041         (add_dotbin): Use c_tolower.
62042         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62043         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62044         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62045         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62046         to m4/relocatable-lib.m4.
62047         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62048         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62049         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62050         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62051         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62052         * modules/relocatable: New file.
62053         * modules/relocatable-lib: New file.
62054         * modules/relocatable-script: New file.
62055
62056 2007-02-28  Bruno Haible  <bruno@clisp.org>
62057
62058         Import --enable-relocatable infrastructure.
62059         * build-aux/config.libpath: New file, from GNU gettext.
62060         * build-aux/install-reloc: New file, from GNU gettext.
62061         * build-aux/reloc-ldflags: New file, from GNU gettext.
62062         * lib/relocatable.h: New file, from GNU gettext.
62063         * lib/relocatable.c: New file, from GNU gettext.
62064         * lib/relocwrapper.c: New file, from GNU gettext.
62065         * m4/relocatable.m4: New file, from GNU gettext.
62066
62067 2007-02-28  Bruno Haible  <bruno@clisp.org>
62068
62069         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62070
62071         * modules/xreadlink: New file, from GNU gettext with modifications.
62072         * lib/xreadlink.c: New file, from GNU gettext.
62073         * lib/xreadlink.h: Add comments.
62074         (xreadlink): New declaration.
62075
62076         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62077         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62078         lib/xreadlink-with-size.c.
62079         (configure.ac): Remove gl_XREADLINK invocation.
62080         (Makefile.am): Augment lib_SOURCES.
62081         * m4/xreadlink.m4: Remove file.
62082         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62083         (xreadlink_with_size): Renamed from xreadink.
62084         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62085         * modules/canonicalize (Depends-on): Replace xreadlink with
62086         xreadlink-with-size.
62087         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62088
62089 2007-02-25  Jim Meyering  <jim@meyering.net>
62090
62091         * build-aux/announce-gen: When complaining about excess arguments,
62092         list them.
62093
62094 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * README: Document signed integer overflow situation more
62097         accurately.
62098
62099 2007-02-25  Bruno Haible  <bruno@clisp.org>
62100
62101         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62102         'a' or 'A' conversion.
62103
62104 2007-02-25  Bruno Haible  <bruno@clisp.org>
62105
62106         * modules/filename: Renamed from modules/pathname.
62107         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62108         lib/concatpath.c with lib/concat-filename.c.
62109         (Makefile.am): Update.
62110         (Include): Replace pathname.h with filename.h.
62111         * lib/filename.h: Renamed from lib/pathname.h.
62112         (concatenated_filename): Renamed from concatenated_pathname.
62113         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62114         (concatenated_filename): Renamed from concatenated_pathname.
62115         * lib/findprog.c: Include filename.h instead of pathname.h.
62116         (find_in_path): Update.
62117         * lib/javacomp.c: Include filename.h instead of pathname.h.
62118         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62119         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62120         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62121         is_oldgcj_14_13_usable, is_javac_usable): Update.
62122         * lib/javaexec.c: Include filename.h instead of pathname.h.
62123         (execute_java_class): Update.
62124         * modules/findprog: Update.
62125         * modules/javacomp: Update.
62126         * modules/javaexec: Update.
62127         * MODULES.html.sh (File system functions): Add 'filename', remove
62128         'pathname'.
62129
62130 2007-02-25  Bruno Haible  <bruno@clisp.org>
62131
62132         * modules/printf-frexpl-tests: New file.
62133         * tests/test-printf-frexpl.c: New file.
62134
62135         * modules/printf-frexpl: New file.
62136         * lib/printf-frexpl.h: New file.
62137         * lib/printf-frexpl.c: New file.
62138         * m4/printf-frexpl.m4: New file.
62139
62140 2007-02-25  Bruno Haible  <bruno@clisp.org>
62141
62142         * modules/printf-frexp-tests: New file.
62143         * tests/test-printf-frexp.c: New file.
62144
62145         * modules/printf-frexp: New file.
62146         * lib/printf-frexp.h: New file.
62147         * lib/printf-frexp.c: New file.
62148         * m4/printf-frexp.m4: New file.
62149
62150 2007-02-25  Bruno Haible  <bruno@clisp.org>
62151
62152         Assume automake >= 1.10 for the tests.
62153         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62154         * modules/arctwo-tests: Likewise.
62155         * modules/argp-tests: Likewise.
62156         * modules/avltree-list-tests: Likewise.
62157         * modules/avltree-oset-tests: Likewise.
62158         * modules/avltreehash-list-tests: Likewise.
62159         * modules/carray-list-tests: Likewise.
62160         * modules/crc-tests: Likewise.
62161         * modules/des-tests: Likewise.
62162         * modules/gc-arcfour-tests: Likewise.
62163         * modules/gc-arctwo-tests: Likewise.
62164         * modules/gc-des-tests: Likewise.
62165         * modules/gc-hmac-md5-tests: Likewise.
62166         * modules/gc-hmac-sha1-tests: Likewise.
62167         * modules/gc-md2-tests: Likewise.
62168         * modules/gc-md4-tests: Likewise.
62169         * modules/gc-md5-tests: Likewise.
62170         * modules/gc-pbkdf2-sha1-tests: Likewise.
62171         * modules/gc-rijndael-tests: Likewise.
62172         * modules/gc-sha1-tests: Likewise.
62173         * modules/gc-tests: Likewise.
62174         * modules/getaddrinfo-tests: Likewise.
62175         * modules/hmac-md5-tests: Likewise.
62176         * modules/hmac-sha1-tests: Likewise.
62177         * modules/linked-list-tests: Likewise.
62178         * modules/linkedhash-list-tests: Likewise.
62179         * modules/lock-tests: Likewise.
62180         * modules/md2-tests: Likewise.
62181         * modules/md4-tests: Likewise.
62182         * modules/md5-tests: Likewise.
62183         * modules/rbtree-list-tests: Likewise.
62184         * modules/rbtree-oset-tests: Likewise.
62185         * modules/rbtreehash-list-tests: Likewise.
62186         * modules/read-file-tests: Likewise.
62187         * modules/rijndael-tests: Likewise.
62188         * modules/stdint-tests: Likewise.
62189         * modules/tls-tests: Likewise.
62190
62191 2007-02-24  Bruno Haible  <bruno@clisp.org>
62192
62193         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62194         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62195         function; instead check whether isnan with a double argument links.
62196         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62197         function; instead check whether isnan with a 'long double' argument
62198         links.
62199         Reported by Eric Blake <ebb9@byu.net>.
62200
62201 2007-02-24  Bruno Haible  <bruno@clisp.org>
62202
62203         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62204         defined.
62205         * lib/isnanl.c: Remove all code. Just include isnan.c.
62206         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62207
62208 2007-02-25  Jim Meyering  <jim@meyering.net>
62209
62210         Avoid conflicting types for 'unsetenv' on FreeBSD.
62211         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62212         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62213         in stdlib.h.
62214
62215 2007-02-24  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/isnanl-nolibm-tests: New file.
62218         * tests/test-isnanl.c: New file.
62219
62220         * modules/isnanl-nolibm: New file.
62221         * lib/isnanl.h: New file.
62222         * lib/isnanl.c: New file.
62223         * m4/isnanl.m4: New file.
62224
62225 2007-02-24  Bruno Haible  <bruno@clisp.org>
62226
62227         * modules/isnan-nolibm-tests: New file.
62228         * tests/test-isnan.c: New file.
62229
62230         * modules/isnan-nolibm: New file.
62231         * lib/isnan.h: New file.
62232         * lib/isnan.c: New file.
62233         * m4/isnan.m4: New file.
62234
62235 2007-02-24  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62238         assume that an exponent fits in 20 bits.
62239
62240 2007-02-24  Jim Meyering  <jim@meyering.net>
62241
62242         * m4/regex.m4: Update the description of the configure-time option,
62243         --without-included-regex, to state accurately what the defaults are,
62244         and perhaps to give people an idea why using this option is risky.
62245
62246 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62249         loops on small arguments.  This attempts to avoid the problem
62250         Bruno Haible reported for AIX 4.3.2 in
62251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62252
62253 2007-02-23  Bruno Haible  <bruno@clisp.org>
62254
62255         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62256         Needed for help2man.
62257
62258 2007-02-23  Karl Berry  <karl@gnu.org>
62259
62260         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62261         exists, foo.h should be cvs-ignored, not committed.
62262
62263 2007-02-23  Eric Blake  <ebb9@byu.net>
62264
62265         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62266         * lib/stat-time.h (includes): Likewise.
62267         * lib/utimecmp.c (includes): Likewise.
62268         * lib/utimens.h (includes): Likewise.
62269         * lib/getdate.y (includes): Also include "timespec.h" for use
62270         internal to the module.
62271         * modules/utimens (Depends-on): Revert yesterday's patch.
62272         * modules/nanosleep (Depends-on): Add missing dependency.
62273
62274 2007-02-22  Bruno Haible  <bruno@clisp.org>
62275
62276         * lib/glob.c: Don't include getlogin_r.h.
62277
62278 2007-02-22  Jim Meyering  <jim@meyering.net>
62279
62280         * modules/utimens (Depends-on): Add timespec, required for
62281         utimens.h's inclusion of timespec.h.
62282
62283 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62286         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62287         Schwab in
62288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62289         I'll try to think of a better way to fix the Solaris problem.
62290
62291         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62292         like glibc; on Solaris 10, it fails with errno == EINVAL.
62293         POSIX says the behavior is unspecified if the first argument is NULL,
62294         so play it safe and never pass NULL to the system getcwd.
62295
62296 2007-02-21  Jim Meyering  <jim@meyering.net>
62297
62298         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62299         of gettimeofday.  It would conflict with the one now always
62300         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62301         an IRIX 6.5 build failure.
62302
62303 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         Minor fixups to port to Solaris 10 with Sun C 5.8.
62306         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62307         * modules/getcwd (Depends-on): Add dirfd.
62308         * lib/putenv.c (putenv): #undef it.
62309         (rpl_putenv): New decl.
62310         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62311
62312 2007-02-20  Bruno Haible  <bruno@clisp.org>
62313
62314         * modules/stdio-tests: New file.
62315         * tests/test-stdio.c: New file.
62316
62317         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62318         (Depends-on): Add stdio.
62319         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62320         (Include): Use <stdio.h> instead of vsnprintf.h.
62321         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62322         HAVE_DECL_VSNPRINTF.
62323         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62324
62325         * modules/snprintf (Files): Remove lib/snprintf.h.
62326         (Depends-on): Add stdio.
62327         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62328         (Include): Use <stdio.h> instead of snprintf.h.
62329         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62330         HAVE_DECL_SNPRINTF.
62331         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62332         * lib/getaddrinfo.c: Likewise.
62333
62334         * modules/stdio: New file.
62335         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62336         * lib/snprintf.h: Remove file.
62337         * lib/vsnprintf.h: Remove file.
62338         * lib/.cppi-disable: Remove snprintf.h.
62339         * m4/stdio_h.m4: New file.
62340         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62341
62342 2007-02-20  Jim Meyering  <jim@meyering.net>
62343
62344         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62345         used by e.g., mingw.  From Bruno Haible.
62346
62347 2007-02-19  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62350         warnings.
62351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62352
62353 2007-02-19  Bruno Haible  <bruno@clisp.org>
62354
62355         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62356         from mingw users.
62357
62358 2007-02-19  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62361         warnings.
62362         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62363
62364 2007-02-19  Jim Meyering  <jim@meyering.net>
62365
62366         Don't use FD after a successful "fdopendir (fd)".
62367         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62368         Reset it by calling dirfd on the just-obtained DIR*.
62369
62370         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62371         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62372
62373 2007-02-18  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/readlink.c: Include <unistd.h>.
62376         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62377         HAVE_READLINK.
62378         * modules/readlink (Depends-on): Add unistd.
62379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62380         (Include): Add <unistd.h>.
62381
62382         * lib/getlogin_r.h: Remove file.
62383         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62384         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62385         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62386         HAVE_DECL_GETLOGIN_R.
62387         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62389         (Include): Use <unistd.h> instead of getlogin_r.h.
62390
62391         * lib/getcwd.h: Remove file.
62392         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62393         * lib/xgetcwd.c: Likewise.
62394         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62395         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62396         * modules/getcwd (Files): Remove lib/getcwd.h.
62397         (Depends-on): Add unistd.
62398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62399         (Include): Use <unistd.h> instad of getcwd.h.
62400
62401         * lib/ftruncate.c: Include <unistd.h> first.
62402         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62403         Set HAVE_FTRUNCATE.
62404         * modules/ftruncate (Depends-on): Add unistd.
62405         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62406
62407         * lib/fchdir.c: Include <unistd.h> first.
62408         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62410         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62411         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62412         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62413
62414         * lib/dup2.c: Include <unistd.h> first.
62415         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62416         HAVE_DUP2.
62417         * modules/dup2 (Depends-on): Add unistd.
62418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62419
62420         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62421         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62422         REPLACE_CHOWN. Don't define chown as a macro here.
62423         * modules/chown (Depends-on): Add unistd.
62424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62425
62426         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62427         Add definition for GL_LINK_WARNING.
62428         (chown, dup2): New declarations.
62429         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62430         link warning.
62431         (ftruncate): New declaration.
62432         (getcwd): New declaration, taken from old getcwd.h.
62433         (getlogin_r): New declaration, taken from old getlogin_r.h.
62434         (readlink): New declaration.
62435         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62436         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62437         (gl_PREREQ_UNISTD): Remove macro.
62438         (gl_UNISTD_MODULE_INDICATOR): New macro.
62439         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62440         many new variables. Don't set UNISTD_H.
62441         * modules/unistd (Description): Change.
62442         (Depends-on): Add link-warning.
62443         (configure.ac): Update.
62444         (Makefile.am): Create unistd.h always. Substitute many new variables
62445         into it.
62446
62447 2007-02-18  Bruno Haible  <bruno@clisp.org>
62448
62449         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62450         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62451         HAVE_GETSUBOPT.
62452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62453         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62454         * lib/getsubopt.h: Remove file.
62455         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62456         (Depends-on): Add stdlib.
62457         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62458         (Includes): Use <stdlib.h> instead of getsubopt.h.
62459         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62460         Set HAVE_GETSUBOPT.
62461         * lib/getsubopt.c: Don't include getsubopt.h.
62462
62463 2007-02-18  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/fchdir (Depends-on): Add dup2.
62466
62467 2007-02-18  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/stdlib_.h: Handle glibc's special invocation convention
62470         specially.
62471
62472 2007-02-18  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/stdlib-tests: New file.
62475         * tests/test-stdlib.c: New file.
62476
62477         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62478         (Depends-on): Add stdlib.
62479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62480         (Includes): Use <stdlib.h> instead of mkstemp.h.
62481         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62482         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62483         * lib/mkstemp.c: Don't include mkstemp.h.
62484         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62485         * lib/stdlib--.h: Don't include mkstemp.h.
62486
62487         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62488         (Depends-on): Add stdlib.
62489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62490         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62491         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62492         HAVE_MKDTEMP.
62493         * lib/mkdtemp.c: Don't include mkdtemp.h.
62494         * lib/clean-temp.c: Don't include mkdtemp.h.
62495
62496         * modules/exit (Files): Remove lib/exit.h.
62497         (Depends-on): Add stdlib.
62498         (Makefile.am): Remove lib_SOURCES.
62499         (Include): Use <stdlib.h> instead of exit.h.
62500         * lib/argmatch.c: Don't include exit.h.
62501         * lib/execute.c: Likewise.
62502         * lib/pagealign_alloc.c: Likewise.
62503         * lib/pipe.c: Likewise.
62504         * lib/wait-process.c: Likewise.
62505         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62506         * lib/exitfail.c: Likewise.
62507         * lib/savewd.c: Likewise.
62508         * lib/xsetenv.c: Likewise.
62509
62510         * modules/stdlib: New file.
62511         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62512         and extra comments about mkstemp().
62513         * lib/exit.h: Remove file.
62514         * lib/mkdtemp.h: Remove file.
62515         * lib/mkstemp.h: Remove file.
62516         * m4/stdlib_h.m4: New file.
62517         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62518
62519 2007-02-18  Bruno Haible  <bruno@clisp.org>
62520
62521         * modules/math-tests: New file.
62522         * tests/test-math.c: New file.
62523
62524         * modules/math: New file.
62525         * modules/mathl (Files): Remove lib/mathl.h.
62526         (Depends-on): Add math.
62527         (Makefile.am): Don't mention mathl.h.
62528         (Include): Use <math.h> instead of mathl.h.
62529         * lib/math_.h: New file.
62530         * lib/mathl.h: Remove file.
62531         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62532         mathl.h.
62533         * lib/asinl.c: Likewise.
62534         * lib/atanl.c: Likewise.
62535         * lib/ceill.c: Likewise.
62536         * lib/cosl.c: Likewise.
62537         * lib/expl.c: Likewise.
62538         * lib/floorl.c: Likewise.
62539         * lib/frexpl.c: Likewise.
62540         * lib/ldexpl.c: Likewise.
62541         * lib/logl.c: Likewise.
62542         * lib/sincosl.c: Likewise.
62543         * lib/sinl.c: Likewise.
62544         * lib/sqrtl.c: Likewise.
62545         * lib/tanl.c: Likewise.
62546         * lib/trigl.c: Likewise.
62547         * m4/math_h.m4: New file.
62548         * MODULES.html.sh (Mathematics): Add math.
62549
62550 2007-02-17  Bruno Haible  <bruno@clisp.org>
62551
62552         * modules/wctype-tests: New file.
62553         * tests/test-wctype.c: New file.
62554
62555         * modules/wchar-tests: New file.
62556         * tests/test-wchar.c: New file.
62557
62558         * modules/unistd-tests: New file.
62559         * tests/test-unistd.c: New file.
62560
62561         * modules/time-tests: New file.
62562         * tests/test-time.c: New file.
62563
62564         * modules/sysexits-tests: New file.
62565         * tests/test-sysexits.c: New file.
62566
62567         * modules/sys_time-tests: New file.
62568         * tests/test-sys_time.c: New file.
62569
62570         * modules/sys_stat-tests: New file.
62571         * tests/test-sys_stat.c: New file.
62572
62573         * modules/sys_socket-tests: New file.
62574         * tests/test-sys_socket.c: New file.
62575
62576         * modules/sys_select-tests: New file.
62577         * tests/test-sys_select.c: New file.
62578
62579         * modules/string-tests: New file.
62580         * tests/test-string.c: New file.
62581
62582         * modules/stdbool-tests: New file.
62583         * tests/test-stdbool.c: New file.
62584
62585         * modules/netinet_in-tests: New file.
62586         * tests/test-netinet_in.c: New file.
62587
62588         * modules/inttypes-tests: New file.
62589         * tests/test-inttypes.c: New file.
62590
62591         * modules/fcntl-tests: New file.
62592         * tests/test-fcntl.c: New file.
62593
62594         * modules/byteswap-tests: New file.
62595         * tests/test-byteswap.c: New file.
62596
62597         * modules/arpa_inet-tests: New file.
62598         * tests/test-arpa_inet.c: New file.
62599
62600 2007-02-17  Bruno Haible  <bruno@clisp.org>
62601
62602         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62603         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62604         if the corresponding module is not enabled. Emit link warnings if
62605         the function is used nevertheless.
62606         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62607         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62608         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62609         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62610         * modules/inttypes (Depends-on): Add link-warning.
62611         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62612         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62613         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62614         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62615         * modules/imaxdiv (configure.ac): Likewise.
62616         * modules/strtoimax (configure.ac): Likewise.
62617         * modules/strtoumax (configure.ac): Likewise.
62618
62619 2007-02-17  Bruno Haible  <bruno@clisp.org>
62620
62621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62622         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62623         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62624         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62625
62626 2007-02-17  Bruno Haible  <bruno@clisp.org>
62627
62628         * modules/link-warning: New file.
62629         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62630         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62631         * modules/string (Depends-on): Add link-warning.
62632         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62633         string.h.
62634         * MODULES.html.sh (Support for building libraries and executables): Add
62635         link-warning.
62636
62637 2007-02-17  Bruno Haible  <bruno@clisp.org>
62638
62639         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62640         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62641         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62642         long lines.
62643
62644 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62645             Bruno Haible  <bruno@clisp.org>
62646
62647         * modules/tmpfile: New file.
62648         * lib/tmpfile.c: New file.
62649         * m4/tmpfile.m4: New file.
62650         * MODULES.html.sh (func_all_modules): New section "Input/output".
62651
62652 2007-02-15  Bruno Haible  <bruno@clisp.org>
62653
62654         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62655         (supports_delete_on_close): New function.
62656         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62657
62658 2007-02-14  Bruno Haible  <bruno@clisp.org>
62659
62660         * modules/mbspcasecmp-tests: New file.
62661         * tests/test-mbspcasecmp.sh: New file.
62662         * tests/test-mbspcasecmp.c: New file.
62663
62664         New module mbspcasecmp.
62665         * modules/mbspcasecmp: New file.
62666         * lib/mbspcasecmp.c: New file.
62667         * lib/string_.h (strncasecmp): Change warning message.
62668         (mbspcasecmp): New declaration.
62669         * m4/mbspcasecmp.m4: New file.
62670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62671         GNULIB_MBSPCASECMP.
62672         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62673         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62674
62675 2007-02-14  Bruno Haible  <bruno@clisp.org>
62676
62677         * modules/mbsncasecmp-tests: New file.
62678         * tests/test-mbsncasecmp.sh: New file.
62679         * tests/test-mbsncasecmp.c: New file.
62680
62681         New module mbsncasecmp.
62682         * modules/mbsncasecmp: New file.
62683         * lib/mbsncasecmp.c: New file.
62684         * lib/string_.h (mbsncasecmp): New declaration.
62685         * m4/mbsncasecmp.m4: New file.
62686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62687         GNULIB_MBSNCASECMP.
62688         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62689         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62690
62691 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62694         Verify that it doesn't overlap with our flags.
62695         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62696         do not have the desired effect in multibyte locales; instead, use
62697         mbscasecmp.
62698         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62699         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62700         we don't require GNU fnmatch ourselves (if our users require it, they
62701         should do so explicitly).
62702
62703         Fix regex code so it doesn't rely on strcasecmp.
62704         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62705         Otherwise, include gnulib's langinfo.h.
62706         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62707         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62708         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62709         * modules/regex (FILES): Remove m4/codeset.m4.
62710         (Depends-on): Add localcharset.  Remove strcase.
62711
62712 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62713
62714         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62715         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62716
62717 2007-02-13  Bruno Haible  <bruno@clisp.org>
62718
62719         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62721
62722 2007-02-12  Bruno Haible  <bruno@clisp.org>
62723
62724         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62725         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62726         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62727         time warning rather than a link error.
62728
62729 2007-02-12  Bruno Haible  <bruno@clisp.org>
62730
62731         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62732         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62734
62735 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62738         args, not 2.
62739
62740 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62741
62742         New module 'time', so that apps can include <time.h> as per
62743         POSIX and GNU instead of separate include files like time_r.h
62744         and timegm.h.  This implementation tries out a simpler approach
62745         for replacing decls in standard include files (as compared to
62746         the string module), somewhat as an experiment.
62747
62748         * config/srclist.txt: Comment out mktime.c for now.
62749         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62750         since it doesn't apply any more.  Use generic wording instead.
62751         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62752         'time'.
62753         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62754         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62755         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62756         Don't include <sys/types.h>; no longer needed since we assume C89.
62757         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62758         * lib/strftime.c: Likewise.
62759         * lib/time_r.c: Likewise.
62760         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62761         * lib/nanosleep.c: Include <time.h> first, to check interface.
62762         * lib/strptime.c: Likewise.
62763         * lib/time_r.c: Likewise.
62764         * lib/timegm.c: Likewise.
62765         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62766         needed.
62767         * lib/timegm.c: Don't include timegm.h; no longer needed.
62768         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62769         time.h now handles any problems in that area.
62770         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62771         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62772         that time.h defines struct timespec.
62773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62774         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62775         handles that.
62776         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62777         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62778         needed.  Set REPLACE_LOCALTIME.
62779         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62780         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62781         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62782         nanosleep; time_h.m4 now does that.  Don't require
62783         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62784         module handles this now.
62785         * modules/getdate (Depends-on): Remove timespec.  Add time.
62786         * modules/nanosleep (Depends-on): Likewise.
62787         * modules/stat-time (Depends-on): Likewise.
62788         * modules/nanosleep (Include): Include time.h, not timespec.h.
62789         * modules/strptime (Files): Remove lib/strptime.h.
62790         (Depends-on): Add extensions, time.
62791         (Include): Include time.h, not strptime.h.
62792         * modules/time_r (Files): Remove lib/time_r.h.
62793         (Depends-on): Add time.
62794         (Include): Include time.h, not time_r.h.
62795         * modules/timegm: Likewise.
62796         * modules/timespec (Description): Now does timespec-related decls
62797         of our own, instead of struct timespec itself.
62798         (Depends-on): Add time; remove extensions.
62799         (Maintainer): Add self.
62800         * modules/utimecmp (Depends-on): Add time; remove timespec.
62801         * modules/utimens (Depends-on): Likewise.
62802         * modules/xnanosleep (Depends-on): Likewise.
62803
62804 2007-02-11  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/c-strstr.c: Include allocsa.h.
62807         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62808         * lib/c-strcasestr.c: Include allocsa.h.
62809         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62810         * lib/strcasestr.c: Include allocsa.h.
62811         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62812         * lib/mbsstr.c: Include allocsa.h.
62813         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62814         allocsa/freesa instead of malloc/free.
62815         * lib/mbscasestr.c: Include allocsa.h.
62816         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62817         allocsa/freesa instead of malloc/free.
62818         * modules/c-strstr (Depends-on): Add allocsa.
62819         * modules/c-strcasestr (Depends-on): Likewise.
62820         * modules/strcasestr (Depends-on): Likewise.
62821         * modules/mbsstr (Depends-on): Likewise.
62822         * modules/mbscasestr (Depends-on): Likewise.
62823
62824 2007-02-11  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62827
62828         * modules/mbsspn-tests: New file.
62829         * tests/test-mbsspn.sh: New file.
62830         * tests/test-mbsspn.c: New file.
62831
62832 2007-02-11  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62835
62836         * modules/mbspbrk-tests: New file.
62837         * tests/test-mbspbrk.sh: New file.
62838         * tests/test-mbspbrk.c: New file.
62839
62840 2007-02-11  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62843         unneeded cast.
62844
62845         * modules/mbscspn-tests: New file.
62846         * tests/test-mbscspn.sh: New file.
62847         * tests/test-mbscspn.c: New file.
62848
62849 2007-02-11  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/mbscasecmp-tests: New file.
62852         * tests/test-mbscasecmp.sh: New file.
62853         * tests/test-mbscasecmp.c: New file.
62854
62855 2007-02-11  Bruno Haible  <bruno@clisp.org>
62856
62857         Ensure O(n) worst-case complexity of mbscasestr.
62858         * lib/mbscasestr.c: Include stdbool.h.
62859         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62860         functions.
62861         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62862         the bookkeeping indicates that it's worth it.
62863         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62864
62865         * modules/mbscasestr-tests: New file.
62866         * tests/test-mbscasestr1.c: New file.
62867         * tests/test-mbscasestr2.sh: New file.
62868         * tests/test-mbscasestr2.c: New file.
62869         * tests/test-mbscasestr3.sh: New file.
62870         * tests/test-mbscasestr3.c: New file.
62871         * tests/test-mbscasestr4.sh: New file.
62872         * tests/test-mbscasestr4.c: New file.
62873         * m4/locale-tr.m4: New file.
62874
62875 2007-02-11  Bruno Haible  <bruno@clisp.org>
62876
62877         Ensure O(n) worst-case complexity of mbsstr.
62878         * lib/mbsstr.c: Include stdbool.h.
62879         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62880         functions.
62881         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62882         bookkeeping indicates that it's worth it.
62883         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62884
62885         * modules/mbsstr-tests: New file.
62886         * tests/test-mbsstr1.c: New file.
62887         * tests/test-mbsstr2.sh: New file.
62888         * tests/test-mbsstr2.c: New file.
62889         * tests/test-mbsstr3.sh: New file.
62890         * tests/test-mbsstr3.c: New file.
62891         * m4/locale-fr.m4: New file.
62892
62893 2007-02-11  Bruno Haible  <bruno@clisp.org>
62894
62895         * lib/mbsrchr.c (mbsrchr): Fix bug.
62896
62897         * modules/mbsrchr-tests: New file.
62898         * tests/test-mbsrchr.sh: New file.
62899         * tests/test-mbsrchr.c: New file.
62900
62901 2007-02-11  Bruno Haible  <bruno@clisp.org>
62902
62903         * lib/mbschr.c (mbschr): Fix bug.
62904
62905         * modules/mbschr-tests: New file.
62906         * tests/test-mbschr.sh: New file.
62907         * tests/test-mbschr.c: New file.
62908         * m4/locale-zh.m4: New file.
62909
62910 2007-02-11  Bruno Haible  <bruno@clisp.org>
62911
62912         Support for copying multibyte string iterators.
62913         * lib/mbiter.h: Include <string.h>.
62914         (mbiter_multi_copy): New function.
62915         (mbi_copy): New macro.
62916         * lib/mbuiter.h: Include <string.h>.
62917         (mbuiter_multi_copy): New function.
62918         (mbui_copy): New macro.
62919
62920 2007-02-11  Bruno Haible  <bruno@clisp.org>
62921
62922         New module mbslen.
62923         * modules/mbslen: New file.
62924         * lib/mbslen.c: New file.
62925         * lib/string_.h (mbslen): New declaration.
62926         * m4/mbslen.m4: New file.
62927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62928         GNULIB_MBSLEN.
62929         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62930         * MODULES.html.sh (Internationalization functions): Add mbslen.
62931
62932 2007-02-11  Bruno Haible  <bruno@clisp.org>
62933
62934         Ensure O(n) worst-case complexity of strcasestr substitute.
62935         * lib/strcasestr.c: Include stdbool.h.
62936         (knuth_morris_pratt): New function.
62937         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62938         bookkeeping indicates that it's worth it.
62939         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62940
62941         * modules/strcasestr-tests: New file.
62942         * tests/test-strcasestr.c: New file.
62943
62944 2007-02-11  Bruno Haible  <bruno@clisp.org>
62945
62946         Ensure O(n) worst-case complexity of c_strcasestr.
62947         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62948         (knuth_morris_pratt): New function.
62949         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62950         the bookkeeping indicates that it's worth it.
62951         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62952
62953         * modules/c-strcasestr-tests: New file.
62954         * tests/test-c-strcasestr.c: New file.
62955
62956 2007-02-11  Bruno Haible  <bruno@clisp.org>
62957
62958         Ensure O(n) worst-case complexity of c_strstr.
62959         * lib/c-strstr.c: Include stdbool.h, string.h.
62960         (knuth_morris_pratt): New function.
62961         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62962         bookkeeping indicates that it's worth it.
62963         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62964
62965         * lib/c-strstr.c: Complete rewrite for maintainability.
62966
62967         * modules/c-strstr-tests: New file.
62968         * tests/test-c-strstr.c: New file.
62969
62970 2007-02-11  Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62973         5.2.1 and earlier, whereby \055 was treated just like the range
62974         delimiter '-'.
62975         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62976
62977 2007-02-08  Bruno Haible  <bruno@clisp.org>
62978
62979         * modules/regex (Depends-on): Add stdbool.
62980         Reported by Dalibor Topic <robilad@kaffe.org>.
62981
62982 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62985         Prefer returning from main to exiting from it.
62986         Remove unnecessary parens after sizeof.
62987
62988 2007-02-05  Bruno Haible  <bruno@clisp.org>
62989
62990         New module mbssep.
62991         * modules/mbssep: New file.
62992         * lib/mbssep.c: New file.
62993         * lib/string_.h (strsep): Add a conditional link warning.
62994         (mbssep): New declaration.
62995         * m4/mbssep.m4: New file.
62996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62997         GNULIB_MBSSEP.
62998         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62999         * MODULES.html.sh (Internationalization functions): Add mbssep.
63000
63001 2007-02-05  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63004         Optimize search in case of 1 delimiter.
63005
63006 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63007
63008         * lib/acl.h: Include sys/types.h before sys/acl.h.
63009
63010 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63011
63012         Merge upstream fix for glibc bugzilla #3957:
63013
63014         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63015
63016         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63017         bit for RE_HAT_LISTS_NOT_NEWLINE.
63018         (build_charclass_op): Remove bogus comment.
63019
63020 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63021
63022         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63023
63024 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63027         * lib/memmem.c [!defined _LIBC]: Include config.h.
63028
63029 2007-02-04  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63032         warning message.
63033
63034 2007-02-04  Bruno Haible  <bruno@clisp.org>
63035
63036         New module mbstok_r.
63037         * modules/mbstok_r: New file.
63038         * lib/mbstok_r.c: New file.
63039         * lib/string_.h (strtok_r): Change argument names to match the
63040         comments. Add a conditional link warning.
63041         (mbstok_r): New declaration.
63042         * m4/mbstok_r.m4: New file.
63043         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63044         GNULIB_MBSTOK_R.
63045         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63046         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63047
63048 2007-02-04  Bruno Haible  <bruno@clisp.org>
63049
63050         New module mbsspn.
63051         * modules/mbsspn: New file.
63052         * lib/mbsspn.c: New file.
63053         * lib/string_.h (strspn): Add a conditional link warning.
63054         (mbsspn): New declaration.
63055         * m4/mbsspn.m4: New file.
63056         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63057         GNULIB_MBSSPN.
63058         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63059         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63060
63061 2007-02-04  Bruno Haible  <bruno@clisp.org>
63062
63063         New module mbspbrk.
63064         * modules/mbspbrk: New file.
63065         * lib/mbspbrk.c: New file.
63066         * lib/string_.h (strpbrk): Add a conditional link warning.
63067         (mbspbrk): New declaration.
63068         * m4/mbspbrk.m4: New file.
63069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63070         GNULIB_MBSPBRK.
63071         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63072         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63073
63074 2007-02-04  Bruno Haible  <bruno@clisp.org>
63075
63076         New module mbscspn.
63077         * modules/mbscspn: New file.
63078         * lib/mbscspn.c: New file.
63079         * lib/string_.h (strcspn): Add a conditional link warning.
63080         (mbscspn): New declaration.
63081         * m4/mbscspn.m4: New file.
63082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63083         GNULIB_MBSCSPN.
63084         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63085         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63086
63087 2007-02-04  Bruno Haible  <bruno@clisp.org>
63088
63089         New module mbscasestr, reduced goal of strcasestr.
63090         * modules/mbscasestr: New file.
63091         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63092         (mbscasestr): Renamed from strcasestr.
63093         * lib/strcasestr.c: Don't include mbuiter.h.
63094         (strcasestr): Remove support for multibyte locales.
63095         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63096         Change the conditional link warning.
63097         (mbscasestr): New declaration.
63098         * m4/mbscasestr.m4: New file.
63099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63100         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63101         REPLACE_STRCASESTR.
63102         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63104         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63105         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63106         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63107         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63108         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63109         (Depends-on): Remove mbuiter.
63110         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63111
63112 2007-02-04  Bruno Haible  <bruno@clisp.org>
63113
63114         Simplify handling of strncasecmp.
63115         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63116         the conditional link warning.
63117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63118         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63119         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63120         * modules/strcase (configure.ac): Don't invoke
63121         gl_STRING_MODULE_INDICATOR.
63122         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63123
63124 2007-02-04  Bruno Haible  <bruno@clisp.org>
63125
63126         New module mbscasecmp, reduced goal of strcasecmp.
63127         * modules/mbscasecmp: New file.
63128         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63129         (mbscasecmp): Renamed from strcasecmp.
63130         * lib/strcasecmp.c: Don't include mbuiter.h.
63131         (strcasecmp): Remove support for multibyte locales.
63132         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63133         Change the conditional link warning.
63134         (mbscasecmp): New declaration.
63135         * m4/mbscasecmp.m4: New file.
63136         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63137         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63138         REPLACE_STRCASECMP.
63139         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63141         GNULIB_MBSCASECMP.
63142         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63143         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63144         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63145         (Depends-on): Remove mbuiter.
63146         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63147
63148 2007-02-04  Bruno Haible  <bruno@clisp.org>
63149
63150         New module mbsstr. Remove module strstr.
63151         * modules/mbsstr: New file.
63152         * modules/strstr: Remove file.
63153         * lib/mbsstr.c: Renamed from lib/strstr.c.
63154         (mbsstr): Renamed from strstr.
63155         * lib/string_.h (strstr): Remove declaration. Change the conditional
63156         link warning.
63157         (mbsstr): New declaration.
63158         * m4/mbsstr.m4: New file.
63159         * m4/strstr.m4: Remove file.
63160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63161         REPLACE_STRSTR.
63162         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63163         Don't initialize GNULIB_STRSTR.
63164         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63165         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63166         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63167         (Support for systems lacking ANSI C 89): Remove strstr.
63168
63169 2007-02-04  Bruno Haible  <bruno@clisp.org>
63170
63171         New module mbsrchr.
63172         * modules/mbsrchr: New file.
63173         * lib/mbsrchr.c: New file.
63174         * lib/string_.h (strrchr): Add a conditional link warning.
63175         (mbsrchr): New declaration.
63176         * m4/mbsrchr.m4: New file.
63177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63178         GNULIB_MBSRCHR.
63179         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63180         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63181
63182 2007-02-04  Bruno Haible  <bruno@clisp.org>
63183
63184         New module mbschr.
63185         * modules/mbschr: New file.
63186         * lib/mbschr.c: New file.
63187         * lib/string_.h (strchr): Add a conditional link warning.
63188         (mbschr): New declaration.
63189         * m4/mbschr.m4: New file.
63190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63191         GNULIB_MBSCHR.
63192         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63193         * MODULES.html.sh (Internationalization functions): Add mbschr.
63194
63195 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63198
63199         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63200
63201 2007-02-04  Bruno Haible  <bruno@clisp.org>
63202
63203         New module description section 'configure.ac-early'.
63204         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63205         (func_get_autoconf_early_snippet): New function.
63206         (func_import, func_create_testdir): Use it. Remove special cases for
63207         modules 'extensions' and 'lock'.
63208         * modules/extensions (configure.ac-early): Require
63209         gl_USE_SYSTEM_EXTENSIONS.
63210         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63211
63212 2007-02-04  Bruno Haible  <bruno@clisp.org>
63213
63214         Make use of gcj-4.3's -fsource and -ftarget option.
63215         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63216         and if so try the options -fsource and -ftarget.
63217         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63218         source_version, ftarget_option, target_version arguments.
63219         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63220         (is_envjavac_oldgcj_14_14_usable): Renamed from
63221         is_envjavac_gcj_14_14_usable.
63222         (is_envjavac_oldgcj_14_13_usable): Renamed from
63223         is_envjavac_gcj_14_13_usable.
63224         (is_gcj_present): Update.
63225         (is_gcj_43, is_gcj43_usable): New functions.
63226         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63227         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63228         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63229         try the options -fsource and -ftarget.
63230
63231 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63234         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63235         larger value.
63236
63237 2007-02-03  Jim Meyering  <jim@meyering.net>
63238
63239         Give tools a better chance to allocate space for very large buffers.
63240         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63241
63242         Make pwd and readlink work also when run with an unreadable parent dir
63243         on systems with openat support.
63244         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63245         provided getcwd function, even when we have openat support.
63246         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63247
63248 2007-02-02  Bruno Haible  <bruno@clisp.org>
63249
63250         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63251         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63252         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63253         portability problems if one of these functions is only used on specific
63254         platforms.
63255         Reported by Paul Eggert.
63256
63257 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63260         is causing more trouble than it's curing.
63261         * lib/regex_internal.h (__mempcpy): Remove.
63262         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63263         (and make the code a tad smaller to boot).
63264         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63265
63266 2007-02-02  Jim Meyering  <jim@meyering.net>
63267
63268         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63269         section, not in the Makefile.am: one.
63270
63271 2007-02-02  Eric Blake  <ebb9@byu.net>
63272
63273         * lib/strchrnul.c: Always include config.h first.
63274
63275         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63276         gnulib strstr is not necessary here.
63277
63278 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63279
63280         * m4/socklen.m4: Fix typo.
63281
63282 2007-02-02  Eric Blake  <ebb9@byu.net>
63283
63284         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63285         * modules/netinet_in (Makefile.am): Likewise.
63286
63287 2007-02-01  Bruno Haible  <bruno@clisp.org>
63288
63289         * lib/string_.h (GL_LINK_WARNING): New macro.
63290         (strcasecmp, strstr, strcasestr): If provided by the system,
63291         conditionally define as a macro that leads to a warning instead of to
63292         an error.
63293         (strncasecmp): Conditionally define as a macro that leads to a warning.
63294
63295 2007-02-01  Karl Berry  <karl@gnu.org>
63296
63297         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63298
63299 2007-02-01  Bruno Haible  <bruno@clisp.org>
63300
63301         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63302         renamings.
63303
63304 2007-02-01  Eric Blake  <ebb9@byu.net>
63305
63306         * modules/regex (Depends-on): Revert dependence on mempcpy.
63307         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63308         module's definition of mempcpy.
63309         Reported by Paul Eggert.
63310
63311 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63314         the symbol XYZ before redefining it.  This fixes a problem with
63315         programs that don't use XYZ, when compiled on systems that define
63316         XYZ to something else.
63317
63318 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63321         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63322         writeable to group or other and (2) is intended to have a special
63323         mode bit that is set or cleared.  In such a case, the directory
63324         should be neither group- nor other-writeable until the special
63325         mode bits are right.
63326
63327 2007-01-31  Eric Blake  <ebb9@byu.net>
63328
63329         * modules/mountlist (Depends-on): Add strstr.
63330
63331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63332         bug.
63333         * modules/string (Makefile.am): Remove redundant replacement.
63334         * modules/regex (Depends-on): Add mempcpy.
63335
63336 2007-01-31  Bruno Haible  <bruno@clisp.org>
63337
63338         New module description field 'Link'.
63339         * gnulib-tool (func_usage): Document --extract-link-directive.
63340         (sed_extract_prog): Recognize 'Link' directive.
63341         (func_get_link_directive): New function.
63342         (func_import): Show summary of link directives.
63343         Handle --extract-link-directive option.
63344         * modules/acl (Link): New section.
63345         * modules/clock-time (Link): New section.
63346         * modules/euidaccess (Link): New section.
63347         * modules/gettext (Link): New section.
63348         * modules/iconv (Link): New section.
63349         * modules/lock (Link): New section.
63350         * modules/nanosleep (Link): New section.
63351         * modules/readline (Link): New section.
63352
63353 2007-01-27  Bruno Haible  <bruno@clisp.org>
63354
63355         Enforce the use of gnulib modules for unportable <string.h> functions.
63356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63357         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63358         (gl_HEADER_STRING_H_BODY): Require it.
63359         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63360         the symbol XYZ to one that gives a link error.
63361         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63362         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63363         * modules/mempcpy (configure.ac): Likewise.
63364         * modules/memrchr (configure.ac): Likewise.
63365         * modules/stpcpy (configure.ac): Likewise.
63366         * modules/stpncpy (configure.ac): Likewise.
63367         * modules/strcase (configure.ac): Likewise.
63368         * modules/strcasestr (configure.ac): Likewise.
63369         * modules/strchrnul (configure.ac): Likewise.
63370         * modules/strdup (configure.ac): Likewise.
63371         * modules/strndup (configure.ac): Likewise.
63372         * modules/strnlen (configure.ac): Likewise.
63373         * modules/strpbrk (configure.ac): Likewise.
63374         * modules/strsep (configure.ac): Likewise.
63375         * modules/strstr (configure.ac): Likewise.
63376         * modules/strtok_r (configure.ac): Likewise.
63377
63378 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63379
63380         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63381
63382 2007-01-30  Jim Meyering  <jim@meyering.net>
63383
63384         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63385
63386 2007-01-29  Bruno Haible  <bruno@clisp.org>
63387
63388         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63389         * lib/execute.c: Likewise.
63390         * lib/pipe.c: Likewise.
63391         * lib/printf-args.h: Likewise.
63392         * lib/printf-args.c: Likewise.
63393         * lib/printf-parse.c: Likewise.
63394         * lib/vasnprintf.c: Likewise.
63395
63396 2007-01-29  Eric Blake  <ebb9@byu.net>
63397
63398         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63399         declaration.
63400
63401 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * lib/strptime.h (strptime): Use 'restrict' for args where
63404         POSIX requires this.
63405         * lib/strptime.c (strptime): Likewise.
63406         Change license notice from LGPL to GPL, since gnulib-tool will
63407         change this as needed.
63408         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63409         defined.
63410         Include "strptime.h" first, to check interface.
63411         Do not #undef _LIBC and _NL_CURRENT.
63412         Do not include <stdlib.h>; no longer needed.
63413         Include "time_r.h" and declare ptime_locale_status
63414         only if _LIBC is not defined.
63415         (__P): Remove unused macro.
63416         (match_string): Bring back glibc version, but use it only if _LIBC
63417         is defined.
63418         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63419         Remove unnecessary assertion and abort() call.
63420         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63421         * m4/strptime.m4: Fix serial number comment.
63422         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63423         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63424         (Depends-on): Add time_r.
63425
63426 2007-01-29  Bruno Haible  <bruno@clisp.org>
63427
63428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63429         strptime.
63430         * modules/strptime (Depends-on): Add stdbool.
63431         * lib/strptime.h: Include <time.h> always. Add comments.
63432
63433 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63434
63435         * modules/strptime: New file.
63436         * lib/strptime.h: New file.
63437         * lib/strptime.c: New file.
63438         * m4/strptime.m4: New file.
63439
63440 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * MODULES.html.sh: New module mpsort.
63443         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63444
63445         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63446         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63448         All uses changed.
63449         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63450         All uses changed.
63451         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63452         to _Restrict_.
63453         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63454         the parameter matches the prototype.
63455
63456 2007-01-28  Jim Meyering  <jim@meyering.net>
63457
63458         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63459         sys/time.h here, reverting that part of the previous patch:
63460         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63461
63462 2007-01-28  Bruno Haible  <bruno@clisp.org>
63463
63464         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63465         value of $(SYS_TIME_H).
63466         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63467         remove it conditionally, too. [added by Jim Meyering]
63468         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63470         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63471         GETTIMEOFDAY_REPLACEMENT to 1.
63472
63473 2007-01-28  Bruno Haible  <bruno@clisp.org>
63474
63475         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63476         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63478         Set UNISTD_H instead of UNISTD_H2.
63479         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63480
63481 2007-01-28  Bruno Haible  <bruno@clisp.org>
63482
63483         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63484         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63485
63486 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63487
63488         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63489         (func_create_testdir): Ensure C locale for `grep' and `tr'
63490         character ranges.
63491         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63492         ACLOCAL_AMFLAGS parsing state machine.
63493
63494 2007-01-27  Bruno Haible  <bruno@clisp.org>
63495
63496         * modules/unistr/base: Update.
63497
63498 2007-01-27  Bruno Haible  <bruno@clisp.org>
63499
63500         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63501         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63502         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63503         modules/unistr/u32-mbtouc.
63504         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63505         * lib/unistr.h: Update.
63506         * lib/linebreak.c: Update.
63507         * modules/unistr/u32-mbtouc: Renamed from
63508         modules/unistr/u32-mbtouc-safe.
63509         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63510         * lib/unistr.h: Update.
63511         * lib/unistr/u32-to-u8.c: Update.
63512         * lib/unistr/u32-to-u16.c: Update.
63513
63514 2007-01-27  Bruno Haible  <bruno@clisp.org>
63515
63516         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63517         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63518         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63519         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63520         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63521         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63522         modules/unistr/u16-mbtouc.
63523         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63524         * lib/unistr.h: Update.
63525         * lib/linebreak.c: Update.
63526         * modules/linebreak: Update.
63527         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63528         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63529         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63530         * modules/unistr/u16-mbtouc: Renamed from
63531         modules/unistr/u16-mbtouc-safe.
63532         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63533         * lib/unistr.h: Update.
63534         * lib/unistr/u16-to-u8.c: Update.
63535         * modules/unistr/u16-to-u8: Update.
63536         * lib/unistr/u16-to-u32.c: Update.
63537         * modules/unistr/u16-to-u32: Update.
63538
63539 2007-01-27  Bruno Haible  <bruno@clisp.org>
63540
63541         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63542         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63543         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63544         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63545         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63546         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63547         modules/unistr/u8-mbtouc.
63548         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63549         * lib/unistr.h: Update.
63550         * lib/striconveh.c: Update.
63551         * modules/striconveh: Update.
63552         * lib/linebreak.c: Update.
63553         * modules/linebreak: Update.
63554         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63555         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63556         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63557         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63558         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63559         * lib/unistr.h: Update.
63560         * lib/striconveh.c: Update.
63561         * modules/striconveh: Update.
63562         * lib/unistr/u8-to-u16.c: Update.
63563         * modules/unistr/u8-to-u16: Update.
63564         * lib/unistr/u8-to-u32.c: Update.
63565         * modules/unistr/u8-to-u32: Update.
63566
63567 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63568
63569         Sync from Libtool.
63570         * lib/argz.c: Do not include strings.h nor memory.h, include
63571         string.h unconditionally.  Patch by Simon Josefsson.
63572
63573 2007-01-27  Bruno Haible  <bruno@clisp.org>
63574
63575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63576         from gl_HEADER_STRING_H_BODY.
63577         (gl_HEADER_STRING_H_BODY): Require it.
63578         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63579         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63580         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63581         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63582         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63583         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63585         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63586         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63588         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63589         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63590         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63591         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63592         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63593
63594 2007-01-27  Bruno Haible  <bruno@clisp.org>
63595
63596         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63597         check_PROGRAMS into noinst_PROGRAMS.
63598         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63599         check_PROGRAMS in this case.
63600         (func_import): Set for_test to false.
63601         (func_create_testdir): Set for_test to true.
63602
63603 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63604             Bruno Haible  <bruno@clisp.org>
63605
63606         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63607         (Depends-on): Add string.
63608         (Includes): Use <string.h> instead of strcasestr.h.
63609         * modules/string (Makefile.am): Also substitute the value of
63610         REPLACE_STRCASESTR.
63611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63612         assume strcasestr is declared in <string.h> not <strings.h>. Also
63613         set REPLACE_STRCASESTR.
63614         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63615         REPLACE_STRCASESTR.
63616         * lib/strcasestr.h: Remove file.
63617         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63618         * lib/string_.h (strcasestr): New declaration.
63619
63620 2007-01-27  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/string_.h: Use 'extern'.
63623
63624 2007-01-27  Jim Meyering  <jim@meyering.net>
63625
63626         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63627         of set-but-not-used local, "q".
63628
63629         * lib/mempcpy.c: Include <config.h> before <string.h>.
63630         This fixes a compilation error on HP-UX, due to the system's
63631         "restrict"-using mempcpy prototype.
63632
63633 2007-01-26  Bruno Haible  <bruno@clisp.org>
63634
63635         Small optimization.
63636         * lib/javacomp.c: Include c-strstr.h.
63637          (is_envjavac_gcj): Use c_strstr instead of strstr.
63638         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63639
63640 2007-01-26  Bruno Haible  <bruno@clisp.org>
63641
63642         * MODULES.html.sh (Unicode string functions): Add the new modules.
63643
63644         * modules/uniconv/u32-strconv-to-locale: New file.
63645         * lib/uniconv/u32-strconv-to-locale.c: New file.
63646
63647         * modules/uniconv/u16-strconv-to-locale: New file.
63648         * lib/uniconv/u16-strconv-to-locale.c: New file.
63649
63650         * modules/uniconv/u8-strconv-to-locale: New file.
63651         * lib/uniconv/u8-strconv-to-locale.c: New file.
63652
63653         * modules/uniconv/u32-strconv-from-locale: New file.
63654         * lib/uniconv/u32-strconv-from-locale.c: New file.
63655
63656         * modules/uniconv/u16-strconv-from-locale: New file.
63657         * lib/uniconv/u16-strconv-from-locale.c: New file.
63658
63659         * modules/uniconv/u8-strconv-from-locale: New file.
63660         * lib/uniconv/u8-strconv-from-locale.c: New file.
63661
63662         * modules/uniconv/u32-strconv-to-enc: New file.
63663         * lib/uniconv/u32-strconv-to-enc.c: New file.
63664         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63665         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63666
63667         * modules/uniconv/u16-strconv-to-enc: New file.
63668         * lib/uniconv/u16-strconv-to-enc.c: New file.
63669         * lib/uniconv/u-strconv-to-enc.h: New file.
63670         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63671         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63672
63673         * modules/uniconv/u8-strconv-to-enc: New file.
63674         * lib/uniconv/u8-strconv-to-enc.c: New file.
63675         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63676         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63677
63678         * modules/uniconv/u32-strconv-from-enc: New file.
63679         * lib/uniconv/u32-strconv-from-enc.c: New file.
63680         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63681         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63682
63683         * modules/uniconv/u16-strconv-from-enc: New file.
63684         * lib/uniconv/u16-strconv-from-enc.c: New file.
63685         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63686         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63687
63688         * modules/uniconv/u8-strconv-from-enc: New file.
63689         * lib/uniconv/u8-strconv-from-enc.c: New file.
63690         * lib/uniconv/u-strconv-from-enc.h: New file.
63691         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63692         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63693
63694         * modules/uniconv/u32-conv-from-enc: New file.
63695         * lib/uniconv/u32-conv-from-enc.c: New file.
63696         * modules/uniconv/u32-conv-from-enc-tests: New file.
63697         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63698
63699         * modules/uniconv/u16-conv-from-enc: New file.
63700         * lib/uniconv/u16-conv-from-enc.c: New file.
63701         * lib/uniconv/u-conv-from-enc.h: New file.
63702         * modules/uniconv/u16-conv-from-enc-tests: New file.
63703         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63704
63705         * modules/uniconv/u8-conv-from-enc: New file.
63706         * lib/uniconv/u8-conv-from-enc.c: New file.
63707         * modules/uniconv/u8-conv-from-enc-tests: New file.
63708         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63709
63710         * modules/uniconv/base: New file.
63711         * lib/uniconv.h: New file.
63712
63713 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63714
63715         * doc/gnulib-tool.texi (Initial import): Update to match current
63716         behavior with strdup module.
63717         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63718         * lib/memmem.h: Remove; all uses removed.  This is now done
63719         by <string.h>.
63720         * lib/mempcpy.h: Likewise.
63721         * lib/memrchr.h: Likewise.
63722         * lib/stpcpy.h: Likewise.
63723         * lib/stpncpy.h: Likewise.
63724         * lib/strcase.h: Likewise.
63725         * lib/strchrnul.h: Likewise.
63726         * lib/strdup.h: Likewise.
63727         * lib/strndup.h: Likewise.
63728         * lib/strnlen.h: Likewise.
63729         * lib/strpbrk.h: Likewise.
63730         * lib/strsep.h: Likewise.
63731         * lib/strstr.h: Likewise.
63732         * lib/strtok_r.h: Likewise.
63733         * lib/string_.h: New file.
63734         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63735         Rely on <string.h> instead.
63736         * lib/canon-host.c: Likewise.
63737         * lib/chdir-long.c: Likewise.
63738         * lib/concatpath.c: Likewise.
63739         * lib/exclude.c: Likewise.
63740         * lib/fchdir.c: Likewise.
63741         * lib/getaddrinfo.c: Likewise.
63742         * lib/getcwd.c: Likewise.
63743         * lib/getsubopt.c: Likewise.
63744         * lib/glob.c: Likewise.
63745         * lib/hard-locale.c: Likewise.
63746         * lib/iconvme.c: Likewise.
63747         * lib/javacomp.c: Likewise.
63748         * lib/mempcpy.c: Likewise.
63749         * lib/memrchr.c: Likewise.
63750         * lib/regex_internal.h: Likewise.
63751         * lib/stpncpy.c: Likewise.
63752         * lib/strcasecmp.c: Likewise.
63753         * lib/strchrnul.c: Likewise.
63754         * lib/strdup.c: Likewise.
63755         * lib/striconv.c: Likewise.
63756         * lib/striconveh.c: Likewise.
63757         * lib/striconveha.c: Likewise.
63758         * lib/strncasecmp.c: Likewise.
63759         * lib/strndup.c: Likewise.
63760         * lib/strnlen.c: Likewise.
63761         * lib/strsep.c: Likewise.
63762         * lib/strstr.c: Likewise.
63763         * lib/strtok_r.c: Likewise.
63764         * lib/userspec.c: Likewise.
63765         * lib/w32spawn.h: Likewise.
63766         * lib/xstrndup.c: Likewise.
63767         * lib/mountlist.c (strstr): Remove decl.
63768         * m4/string_h.m4: New file.
63769         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63770         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63771         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63772         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63773         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63774         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63775         Set REPLACE_STRCASECMP if necessary.
63776         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63777         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63778         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63780         HAVE_DECL_STRDUP if necessary.
63781         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63782         since gl_FUNC_STRNDUP does that now.
63783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63784         Check for decl here...
63785         (gl_PREREQ_STRNLEN): ... not here.
63786         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63787         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63788         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63789         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63790         necessary.
63791         * modules/string: New file.
63792         * modules/memmem (Files): Remove special-purpose include file.
63793         (Depends-on): Add string.
63794         (Include): Include <string.h>, not the removed file.
63795         * modules/mempcpy: Likewise.
63796         * modules/memrchr: Likewise.
63797         * modules/stpcpy: Likewise.
63798         * modules/stpncpy: Likewise.
63799         * modules/strcase: Likewise.
63800         * modules/strchrnul: Likewise.
63801         * modules/strdup: Likewise.
63802         * modules/strndup: Likewise.
63803         * modules/strnlen: Likewise.
63804         * modules/strpbrk: Likewise.
63805         * modules/strsep: Likewise.
63806         * modules/strstr: Likewise.
63807         * modules/strtok_r: Likewise.
63808         * tests/test-dirname.c: Don't include "strdup.h", since
63809         <string.h> now suffices.
63810         * tests/test-memmem.c: Don't include "memmem.h", since
63811         <string.h> now suffices.
63812
63813 2007-01-25  Bruno Haible  <bruno@clisp.org>
63814
63815         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63816         *resultp is 0.
63817
63818         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63819         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63820         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63821         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63822
63823         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63824         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63825         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63826         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63827         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63828         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63829
63830 2007-01-24  Bruno Haible  <bruno@clisp.org>
63831
63832         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63834         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63835         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63836         gl_FUNC_FTS_CORE.
63837         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63838         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63839         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63840         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63841         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63842         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63843         gl_FUNC_FCHOWNAT.
63844         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63845         gl_FUNC_STRFTIME.
63846         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63847         Reported by Ralf Wildenhues.
63848
63849 2007-01-24  Bruno Haible  <bruno@clisp.org>
63850
63851         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63852         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63853         gl_GETADDRINFO.
63854         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63855         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63856         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63857
63858 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63861         Don't use 'exit'; just return from 'main'.
63862         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63863
63864         * lib/fnmatch_.h: Readjust white space and comments to match
63865         glibc, to avoid spurious diffs.
63866
63867 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63870         2004-12-01 change by Jakub Jelinek, since this code won't compile
63871         if !LIBC.  Problem reported by Bob Proulx.
63872
63873 2007-01-23  Bruno Haible  <bruno@clisp.org>
63874
63875         * lib/striconveh.c: Include c-strcaseeq.h.
63876         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63877         * modules/striconveh (Depends-on): Add c-strcaseeq.
63878
63879 2007-01-23  Bruno Haible  <bruno@clisp.org>
63880
63881         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63882
63883         * modules/c-strcaseeq: New file.
63884         * lib/c-strcaseeq.h: New file.
63885
63886         * modules/streq: New file.
63887         * lib/streq.h: New file.
63888
63889 2007-01-23  Bruno Haible  <bruno@clisp.org>
63890
63891         * modules/striconveha-tests: New file.
63892         * tests/test-striconveha.c: New file.
63893
63894         * lib/striconveha.h: Include <stdbool.h>.
63895         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63896         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63897         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63898         (mem_iconveha): New function.
63899         (str_iconveha_notranslit): Renamed from str_iconveha.
63900         (str_iconveha): New function.
63901         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63902         c-strcase.
63903
63904 2007-01-23  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63907         encodings without forgiving before trying any encoding with handler.
63908         (str_iconveha): Try all encodings without forgiving before trying any
63909         encoding with handler.
63910
63911 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         Import the following changes from libc.
63914
63915         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63916
63917         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63918
63919         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63920
63921         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63922         normal_bracket label.
63923
63924         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63925
63926         [BZ #361]
63927         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63928         to normal_bracket after fetching the next character.
63929
63930 2007-01-22  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63933         argument.
63934         * lib/striconveh.c (iconv_carefully_1): New function.
63935         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63936         argument.
63937         (str_cd_iconveh): Update.
63938         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63939         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63940         * tests/test-striconveh.c (MAGIC): New macro.
63941         (new_offsets): New function.
63942         (main): Test call with and without offsets.
63943
63944 2007-01-22  Bruno Haible  <bruno@clisp.org>
63945
63946         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63947         * modules/sys_select (Makefile.am): Likewise.
63948         * modules/sys_socket (Makefile.am): Likewise.
63949         * modules/sys_time (Makefile.am): Likewise.
63950
63951 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63952
63953         * modules/gettimeofday (License): Change from GPL to LGPL, since
63954         gettimeofday is a library function.
63955
63956 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63957
63958         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63959
63960 2007-01-21  Bruno Haible  <bruno@clisp.org>
63961
63962         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63963
63964 2007-01-21  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/striconveha: New file.
63967         * lib/striconveha.h: New file.
63968         * lib/striconveha.c: New file.
63969         * MODULES.html.sh (Internationalization functions): Add striconveha.
63970         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63971         string.
63972         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63973
63974 2007-01-21  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63977         * lib/striconveh.c (str_iconveh): Likewise.
63978
63979 2007-01-21  Bruno Haible  <bruno@clisp.org>
63980
63981         * lib/striconveh.h (mem_iconveh): New declaration.
63982         * lib/striconveh.c (mem_iconveh): New function.
63983         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63984
63985 2007-01-21  Bruno Haible  <bruno@clisp.org>
63986
63987         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63988
63989         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63990         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63991         original result buffer.
63992         (str_cd_iconveh): Update.
63993         * tests/test-striconveh.c (main): Update.
63994
63995         * lib/striconv.h (mem_cd_iconv): Change specification.
63996         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63997         result buffer.
63998         (str_cd_iconv): Update.
63999         * tests/test-striconv.c (main): Update.
64000
64001 2007-01-21  Bruno Haible  <bruno@clisp.org>
64002
64003         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64004
64005 2007-01-20  Jim Meyering  <jim@meyering.net>
64006
64007         * lib/userspec.c (parse_with_separator): If a user or group string
64008         starts with "+", skip the corresponding name-to-ID look-up, since
64009         such a look-up must fail: user and group names may not include "+".
64010
64011 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64014         since we now assume the sys_time module.
64015         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64016         check for sys/time.h; no longer needed.
64017         * modules/poll (Depends-on): Depend on sys_time.
64018
64019 2007-01-18  Bruno Haible  <bruno@clisp.org>
64020
64021         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64022         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64023
64024         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64025         gettimeofday.
64026
64027         * tests/test-gettimeofday.c: Include <time.h>.
64028         (dummy): Remove variable.
64029
64030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64031         gl_HEADER_SYS_TIME_H.
64032         (gl_HEADER_SYS_TIME_H): New macro.
64033
64034         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64035         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64036         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64037         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64038         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64040         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64041         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64042         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64043         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64044         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64045
64046         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64047         last change; it caused a compilation error when cross-compiling to
64048         Cygwin.
64049
64050 2007-01-18  Jim Meyering  <jim@meyering.net>
64051
64052         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64053         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64054         than the race-prone "test -d sys || mkdir sys".
64055         (configure.ac): Use AC_PROG_MKDIR_P.
64056         * modules/sys_select: Likewise.
64057         * modules/sys_socket: Likewise.
64058         * modules/sys_time: Likewise.
64059
64060 2007-01-18  Eric Blake  <ebb9@byu.net>
64061
64062         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64063         replace gettimeofday.
64064         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64065         name, to avoid infinite recursion.
64066
64067 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64070         module sys_time.
64071         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64072         assume timespec.h defines struct timeval.
64073         * lib/settime.c: Likewise.
64074         * lib/utimens.c: Likewise.
64075         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64076         since we now assume the gettimeofday module.
64077         * lib/tempname.c (__gen_tempname): Likewise.
64078         * lib/gettimeofday.h: Remove.
64079         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64080         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64081         Include <time.h>, for 'time()'.
64082         (localtime_buffer_addr): Also use this workaround if
64083         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64084         to simplify the uses.  All uses changed.
64085         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64086         that #undef is inside {}, and 'const' follows type name consistently.
64087         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64088         (gettimeofday): Do not use the maximum possible value for
64089         tv->tv_usec, since that might break usages other than ls.c.
64090         Instead, we'll leave ls.c alone.  This undoes today's patch
64091         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64092         we've never observed the problem but might as well keep the
64093         canary.
64094         * lib/nanosleep.c: Include timespec.h first, for interface check.
64095         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64096         now assume the sys_time module.
64097         * lib/tempname.c: Likewise.
64098         * lib/timespec.h: Likewise.
64099         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64100         needed.
64101         * lib/strftime.c: Likewise.
64102         * lib/timespec.h: Likewise.
64103         * lib/posixtm.c: Include posixtm.h first, for interface check.
64104         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64105         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64106         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64107         * lib/sys_time_.h: New file.
64108         * lib/timespec.h (struct timespec): Use long int, not long.
64109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64110         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64111         Remove obsolescent call to AC_HEADER_TIME.
64112         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64114         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64115         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64116         Likewise.
64117         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64118         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64120         into the sys_time module.  Check for gettimeofday just once.
64121         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64122         for gettimeofday signature to just check the signature.  Merely
64123         compile it, since linking doesn't test signature.  Improve test for
64124         whether gettimeofday.o is actually needed.
64125         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64126         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64127         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64128         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64129         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64130         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64131         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64132         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64133         than worrying about sys/time.h.
64134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64135         Don't bother worrying about TIME_WITH_SYS_TIME.
64136         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64137         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64138         * m4/sys_time_h.m4: New file.
64139         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64140         Don't include sys/time.h.  Return from main rather than exiting.
64141         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64142         all uses changed.
64143         * modules/gethrxtime (Depends-on): Add sys_time.
64144         * modules/gettime (Depends-on): Likewise.
64145         * modules/gettimeofday (Depends-on): Likewise.
64146         * modules/nanosleep (Depends-on): Likewise.
64147         * modules/settime (Depends-on): Likewise.
64148         * modules/tempname (Depends-on): Likewise.
64149         * modules/utimens (Depends-on): Likewise.
64150         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64151         (Include): Change back to <sys/time.h>.
64152         (Maintainer): Add self.
64153         * modules/sys_time: New file.
64154         * modules/tempname (Depends-on): Add gettimeofday.
64155         * tests/test-gettimeofday.c: Include <sys/time.h>
64156         rather than gettimeofday.h.
64157
64158 2007-01-17  Bruno Haible  <bruno@clisp.org>
64159
64160         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64161         the license default to GPL.
64162         (func_create_testdir): Don't complain if a module is LGPL and its
64163         tests module depends on GPLed modules.
64164
64165 2007-01-17  Bruno Haible  <bruno@clisp.org>
64166
64167         * lib/gettimeofday.c (gettimeofday): Add code for the case
64168         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64169         maximum possible value for tv->tv_usec, rather than the minimum one.
64170
64171 2005-10-08  Martin Lambers  <marlam@marlam.de>
64172 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64173 2007-01-16  Bruno Haible  <bruno@clisp.org>
64174
64175         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64176         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64177         gl_FUNC_GETTIMEOFDAY.
64178         (Include): Add gettimeofday.h.
64179         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64180         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64181         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64182         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64183         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64184         * lib/gettimeofday.h: New file.
64185         * lib/gettimeofday.c: Include <sys/timeb.h>.
64186         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64187         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64188         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64189         fall back on time().
64190
64191         * tests/test-gettimeofday.c: New file.
64192         * modules/gettimeofday-tests: New file.
64193
64194 2007-01-16  Eric Blake  <ebb9@byu.net>
64195
64196         * modules/fnmatch (Depends-on): Depend on wchar.
64197         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64198         * m4/fnmatch.m4: Likewise.
64199         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64200         * m4/mbchar.m4: Likewise.
64201         * modules/mbswidth (Depends-on): Depend on wchar.
64202         * lib/mbswidth.c: Assume <wchar.h>.
64203         * m4/mbswidth.m4: Likewise.
64204         * modules/quotearg (Depends-on): Depend on wchar.
64205         * lib/quotearg.c: Assume <wchar.h>.
64206         * m4/quotearg.m4: Likewise.
64207         * modules/regex (Depends-on): Depend on wchar.
64208         * lib/regex_internal.h: Assume <wchar.h>.
64209         * m4/regex.m4: Likewise.
64210         * modules/stdint (Depends-on): Depend on wchar.
64211         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64212         * m4/stdint.m4: Likewise.
64213         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64214         * modules/strftime (Depends-on): Depend on wchar.
64215         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64216         * modules/strtol (Depends-on): Depend on wchar.
64217         * lib/strtol.c: Assume <wchar.h>.
64218         * modules/wcwidth (Depends-on): Depend on wchar.
64219         * lib/wcwidth.h: Assume <wchar.h>.
64220         * m4/wcwidth.m4: Likewise.
64221
64222 2007-01-16  Bruno Haible  <bruno@clisp.org>
64223
64224         * modules/csharpexec-script: New, created from...
64225         * modules/csharpexec: ... this.
64226
64227 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64228
64229         * modules/javaexec-script: New, created from...
64230         * modules/javaexec: ... this.
64231
64232 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64233
64234         * modules/poll (Dependencies): Add sys_select.
64235
64236 2007-01-15  Jim Meyering  <jim@meyering.net>
64237
64238         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64239         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64240         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64241         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64242
64243 2007-01-15  Bruno Haible  <bruno@clisp.org>
64244
64245         * modules/striconveh: New file.
64246         * lib/striconveh.h: New file.
64247         * lib/striconveh.c: New file.
64248         * MODULES.html.sh (Internationalization functions): Add striconveh.
64249
64250         * modules/striconveh-tests: New file.
64251         * tests/test-striconveh.c: New file.
64252
64253 2007-01-15  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64256         not from GNU libiconv or GNU libc.
64257
64258 2007-01-15  Bruno Haible  <bruno@clisp.org>
64259
64260         * doc/gnulib-intro.texi (Copyright): Explain the different license
64261         terms for module descriptions, autoconf macros, tests, documentation.
64262
64263 2007-01-14  Bruno Haible  <bruno@clisp.org>
64264
64265         * modules/striconv-tests: New file.
64266         * tests/test-striconv.c: New file.
64267
64268 2007-01-14  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/iconv-tests: New file.
64271         * tests/test-iconv.c: New file.
64272
64273 2007-01-14  Bruno Haible  <bruno@clisp.org>
64274
64275         * gnulib-tool (func_get_license): For test modules, use the license of
64276         the main module.
64277
64278 2007-01-14  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64281         if iconv is found to exist.
64282
64283 2007-01-14  Bruno Haible  <bruno@clisp.org>
64284
64285         * modules/c-ctype-tests: New file.
64286         * tests/test-c-ctype.c: New file.
64287
64288 2007-01-14  Bruno Haible  <bruno@clisp.org>
64289
64290         * modules/binary-io-tests: New file.
64291         * tests/test-binary-io.sh: New file.
64292         * tests/test-binary-io.c: New file.
64293
64294 2007-01-14  Bruno Haible  <bruno@clisp.org>
64295
64296         * modules/array-oset-tests: New file.
64297         * tests/test-array_oset.c: New file.
64298
64299 2007-01-14  Bruno Haible  <bruno@clisp.org>
64300
64301         * modules/array-list-tests: New file.
64302         * tests/test-array_list.c: New file.
64303
64304 2007-01-14  Bruno Haible  <bruno@clisp.org>
64305
64306         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64307         and make.
64308         Reported by Simon Josefsson in
64309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64310
64311 2007-01-14  Bruno Haible  <bruno@clisp.org>
64312
64313         * modules/allocsa-tests: New file.
64314         * tests/test-allocsa.c: New file.
64315
64316 2007-01-14  Bruno Haible  <bruno@clisp.org>
64317
64318         * modules/fchdir (Depends-on): Add absolute-header.
64319         * modules/unistd (Depends-on): Likewise.
64320
64321 2006-12-30  Bruno Haible  <bruno@clisp.org>
64322
64323         * modules/fchdir: New file.
64324         * modules/unistd (Files): Add lib/unistd_.h.
64325         (Makefile.am): Generate unistd.h from unistd_.h.
64326         * lib/fchdir.c: New file.
64327         * lib/dirent_.h: New file.
64328         * lib/unistd_.h: New file.
64329         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64330         * m4/fchdir.m4: New file.
64331         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64332         (gl_HEADER_UNISTD): Invoke it.
64333         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64334         function.
64335         * lib/backupfile.c (opendir, closedir): Undefine.
64336         * lib/chown.c (open, close): Undefine.
64337         * lib/clean-temp.c (open, close): Undefine.
64338         * lib/copy-file.c (open, close): Undefine.
64339         * lib/execute.c (open, close): Undefine.
64340         * lib/fsusage.c (open, close): Undefine.
64341         * lib/gc-gnulib.c (open, close): Undefine.
64342         * lib/getcwd.c (opendir, closedir): Undefine.
64343         * lib/glob.c (opendir, closedir): Undefine.
64344         * lib/javacomp.c (open, close): Undefine.
64345         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64346         * lib/openat-proc.c (open, close): Undefine.
64347         * lib/pagealign_alloc.c (open, close): Undefine.
64348         * lib/pipe.c (open, close): Undefine.
64349         * lib/progreloc.c (open, close): Undefine.
64350         * lib/savedir.c (opendir, closedir): Undefine.
64351         * lib/utime.c (open, close): Undefine.
64352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64353
64354 2007-01-10  Bruno Haible  <bruno@clisp.org>
64355
64356         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64357
64358 2007-01-12  Eric Blake  <ebb9@byu.net>
64359
64360         Provide a robust <wchar.h>.  Further simplifications are now
64361         possible in other modules, but not included here.
64362         * modules/wchar: New module.
64363         * m4/wchar.m4: New file.
64364         * lib/wchar_.h: Likewise.
64365         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64366         of the new module.
64367         * MODULES.html.sh (Extended multibyte and wide character utilities):
64368         New section.
64369
64370 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64371
64372         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64373         to a reasonable default for memory allocation.
64374         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64375         file system that reports garbage st_size values for symlinks.
64376         Problem reported by Liyang Hu.
64377
64378 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64379
64380         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64381         Emacs .#* auto-save files).
64382
64383 2007-01-11  Bruno Haible  <bruno@clisp.org>
64384
64385         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64386         directory.
64387
64388 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         Use @...@ consistently in lib/wctype_.h.
64391         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64392         on it being set to 1 or 0.
64393         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64394         go back to AC_SUBSTing it.
64395         * modules/wctype (Makefile.am): Undo previous change.
64396
64397 2007-01-10  Eric Blake  <ebb9@byu.net>
64398
64399         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64400         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64401         * modules/wctype (Makefile.am): Likewise.
64402         Reported by Chris McGuire.
64403
64404 2007-01-10  Jim Meyering  <jim@meyering.net>
64405
64406         fts.c: a small readability/maintainability improvement
64407         * lib/fts.c (fts_read): Make this code slightly more readable and
64408         maintainable by hoisting the "sp->fts_cur = p" assignments to
64409         immediately follow the statements that set P.  Derived from
64410         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64411
64412 2007-01-10  Eric Blake  <ebb9@byu.net>
64413
64414         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64415         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64417         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64418         Reported by Chris McGuire.
64419
64420 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64421
64422         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64423         in sed script.
64424
64425 2007-01-09  Bruno Haible  <bruno@clisp.org>
64426
64427         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64428         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64429         variables.
64430         (func_module): Use them.
64431
64432 2007-01-09  Bruno Haible  <bruno@clisp.org>
64433
64434         * modules/unistr/base: New file.
64435         * lib/unistr.h: New file.
64436
64437         * modules/unistr/u8-to-u16: New file.
64438         * lib/unistr/u8-to-u16.c: New file.
64439
64440         * modules/unistr/u8-to-u32: New file.
64441         * lib/unistr/u8-to-u32.c: New file.
64442
64443         * modules/unistr/u16-to-u8: New file.
64444         * lib/unistr/u16-to-u8.c: New file.
64445
64446         * modules/unistr/u16-to-u32: New file.
64447         * lib/unistr/u16-to-u32.c: New file.
64448
64449         * modules/unistr/u32-to-u8: New file.
64450         * lib/unistr/u32-to-u8.c: New file.
64451
64452         * modules/unistr/u32-to-u16: New file.
64453         * lib/unistr/u32-to-u16.c: New file.
64454
64455         * modules/unistr/u8-check: New file.
64456         * modules/unistr/u16-check: New file.
64457         * modules/unistr/u32-check: New file.
64458         * lib/unistr/u8-check.c: New file.
64459         * lib/unistr/u16-check.c: New file.
64460         * lib/unistr/u32-check.c: New file.
64461
64462         * modules/unistr/u8-chr: New file.
64463         * modules/unistr/u16-chr: New file.
64464         * modules/unistr/u32-chr: New file.
64465         * lib/unistr/u8-chr.c: New file.
64466         * lib/unistr/u16-chr.c: New file.
64467         * lib/unistr/u32-chr.c: New file.
64468
64469         * modules/unistr/u8-cmp: New file.
64470         * modules/unistr/u16-cmp: New file.
64471         * modules/unistr/u32-cmp: New file.
64472         * lib/unistr/u8-cmp.c: New file.
64473         * lib/unistr/u16-cmp.c: New file.
64474         * lib/unistr/u32-cmp.c: New file.
64475
64476         * modules/unistr/u8-cpy: New file.
64477         * modules/unistr/u16-cpy: New file.
64478         * modules/unistr/u32-cpy: New file.
64479         * lib/unistr/u8-cpy.c: New file.
64480         * lib/unistr/u16-cpy.c: New file.
64481         * lib/unistr/u32-cpy.c: New file.
64482         * lib/unistr/u-cpy.h: New file.
64483
64484         * modules/unistr/u8-cpy-alloc: New file.
64485         * modules/unistr/u16-cpy-alloc: New file.
64486         * modules/unistr/u32-cpy-alloc: New file.
64487         * lib/unistr/u8-cpy-alloc.c: New file.
64488         * lib/unistr/u16-cpy-alloc.c: New file.
64489         * lib/unistr/u32-cpy-alloc.c: New file.
64490         * lib/unistr/u-cpy-alloc.h: New file.
64491
64492         * modules/unistr/u8-endswith: New file.
64493         * modules/unistr/u16-endswith: New file.
64494         * modules/unistr/u32-endswith: New file.
64495         * lib/unistr/u8-endswith.c: New file.
64496         * lib/unistr/u16-endswith.c: New file.
64497         * lib/unistr/u32-endswith.c: New file.
64498         * lib/unistr/u-endswith.h: New file.
64499
64500         * modules/unistr/u8-mblen: New file.
64501         * modules/unistr/u16-mblen: New file.
64502         * modules/unistr/u32-mblen: New file.
64503         * lib/unistr/u8-mblen.c: New file.
64504         * lib/unistr/u16-mblen.c: New file.
64505         * lib/unistr/u32-mblen.c: New file.
64506
64507         * modules/unistr/u8-mbtouc: New file.
64508         * modules/unistr/u16-mbtouc: New file.
64509         * modules/unistr/u32-mbtouc: New file.
64510         * lib/unistr/u8-mbtouc.c: New file.
64511         * lib/unistr/u16-mbtouc.c: New file.
64512         * lib/unistr/u32-mbtouc.c: New file.
64513
64514         * modules/unistr/u8-mbtouc-safe: New file.
64515         * modules/unistr/u16-mbtouc-safe: New file.
64516         * modules/unistr/u32-mbtouc-safe: New file.
64517         * lib/unistr/u8-mbtouc-safe.c: New file.
64518         * lib/unistr/u16-mbtouc-safe.c: New file.
64519         * lib/unistr/u32-mbtouc-safe.c: New file.
64520
64521         * modules/unistr/u8-move: New file.
64522         * modules/unistr/u16-move: New file.
64523         * modules/unistr/u32-move: New file.
64524         * lib/unistr/u8-move.c: New file.
64525         * lib/unistr/u16-move.c: New file.
64526         * lib/unistr/u32-move.c: New file.
64527         * lib/unistr/u-move.h: New file.
64528
64529         * modules/unistr/u8-next: New file.
64530         * modules/unistr/u16-next: New file.
64531         * modules/unistr/u32-next: New file.
64532         * lib/unistr/u8-next.c: New file.
64533         * lib/unistr/u16-next.c: New file.
64534         * lib/unistr/u32-next.c: New file.
64535
64536         * modules/unistr/u8-prev: New file.
64537         * modules/unistr/u16-prev: New file.
64538         * modules/unistr/u32-prev: New file.
64539         * lib/unistr/u8-prev.c: New file.
64540         * lib/unistr/u16-prev.c: New file.
64541         * lib/unistr/u32-prev.c: New file.
64542
64543         * modules/unistr/u8-set: New file.
64544         * modules/unistr/u16-set: New file.
64545         * modules/unistr/u32-set: New file.
64546         * lib/unistr/u8-set.c: New file.
64547         * lib/unistr/u16-set.c: New file.
64548         * lib/unistr/u32-set.c: New file.
64549         * lib/unistr/u-set.h: New file.
64550
64551         * modules/unistr/u8-startswith: New file.
64552         * modules/unistr/u16-startswith: New file.
64553         * modules/unistr/u32-startswith: New file.
64554         * lib/unistr/u8-startswith.c: New file.
64555         * lib/unistr/u16-startswith.c: New file.
64556         * lib/unistr/u32-startswith.c: New file.
64557         * lib/unistr/u-startswith.h: New file.
64558
64559         * modules/unistr/u8-stpcpy: New file.
64560         * modules/unistr/u16-stpcpy: New file.
64561         * modules/unistr/u32-stpcpy: New file.
64562         * lib/unistr/u8-stpcpy.c: New file.
64563         * lib/unistr/u16-stpcpy.c: New file.
64564         * lib/unistr/u32-stpcpy.c: New file.
64565         * lib/unistr/u-stpcpy.h: New file.
64566
64567         * modules/unistr/u8-stpncpy: New file.
64568         * modules/unistr/u16-stpncpy: New file.
64569         * modules/unistr/u32-stpncpy: New file.
64570         * lib/unistr/u8-stpncpy.c: New file.
64571         * lib/unistr/u16-stpncpy.c: New file.
64572         * lib/unistr/u32-stpncpy.c: New file.
64573         * lib/unistr/u-stpncpy.h: New file.
64574
64575         * modules/unistr/u8-strcat: New file.
64576         * modules/unistr/u16-strcat: New file.
64577         * modules/unistr/u32-strcat: New file.
64578         * lib/unistr/u8-strcat.c: New file.
64579         * lib/unistr/u16-strcat.c: New file.
64580         * lib/unistr/u32-strcat.c: New file.
64581         * lib/unistr/u-strcat.h: New file.
64582
64583         * modules/unistr/u8-strchr: New file.
64584         * modules/unistr/u16-strchr: New file.
64585         * modules/unistr/u32-strchr: New file.
64586         * lib/unistr/u8-strchr.c: New file.
64587         * lib/unistr/u16-strchr.c: New file.
64588         * lib/unistr/u32-strchr.c: New file.
64589
64590         * modules/unistr/u8-strcmp: New file.
64591         * modules/unistr/u16-strcmp: New file.
64592         * modules/unistr/u32-strcmp: New file.
64593         * lib/unistr/u8-strcmp.c: New file.
64594         * lib/unistr/u16-strcmp.c: New file.
64595         * lib/unistr/u32-strcmp.c: New file.
64596
64597         * modules/unistr/u8-strcpy: New file.
64598         * modules/unistr/u16-strcpy: New file.
64599         * modules/unistr/u32-strcpy: New file.
64600         * lib/unistr/u8-strcpy.c: New file.
64601         * lib/unistr/u16-strcpy.c: New file.
64602         * lib/unistr/u32-strcpy.c: New file.
64603         * lib/unistr/u-strcpy.h: New file.
64604
64605         * modules/unistr/u8-strcspn: New file.
64606         * modules/unistr/u16-strcspn: New file.
64607         * modules/unistr/u32-strcspn: New file.
64608         * lib/unistr/u8-strcspn.c: New file.
64609         * lib/unistr/u16-strcspn.c: New file.
64610         * lib/unistr/u32-strcspn.c: New file.
64611         * lib/unistr/u-strcspn.h: New file.
64612
64613         * modules/unistr/u8-strdup: New file.
64614         * modules/unistr/u16-strdup: New file.
64615         * modules/unistr/u32-strdup: New file.
64616         * lib/unistr/u8-strdup.c: New file.
64617         * lib/unistr/u16-strdup.c: New file.
64618         * lib/unistr/u32-strdup.c: New file.
64619         * lib/unistr/u-strdup.h: New file.
64620
64621         * modules/unistr/u8-strlen: New file.
64622         * modules/unistr/u16-strlen: New file.
64623         * modules/unistr/u32-strlen: New file.
64624         * lib/unistr/u8-strlen.c: New file.
64625         * lib/unistr/u16-strlen.c: New file.
64626         * lib/unistr/u32-strlen.c: New file.
64627         * lib/unistr/u-strlen.h: New file.
64628
64629         * modules/unistr/u8-strmblen: New file.
64630         * modules/unistr/u16-strmblen: New file.
64631         * modules/unistr/u32-strmblen: New file.
64632         * lib/unistr/u8-strmblen.c: New file.
64633         * lib/unistr/u16-strmblen.c: New file.
64634         * lib/unistr/u32-strmblen.c: New file.
64635
64636         * modules/unistr/u8-strmbtouc: New file.
64637         * modules/unistr/u16-strmbtouc: New file.
64638         * modules/unistr/u32-strmbtouc: New file.
64639         * lib/unistr/u8-strmbtouc.c: New file.
64640         * lib/unistr/u16-strmbtouc.c: New file.
64641         * lib/unistr/u32-strmbtouc.c: New file.
64642
64643         * modules/unistr/u8-strncat: New file.
64644         * modules/unistr/u16-strncat: New file.
64645         * modules/unistr/u32-strncat: New file.
64646         * lib/unistr/u8-strncat.c: New file.
64647         * lib/unistr/u16-strncat.c: New file.
64648         * lib/unistr/u32-strncat.c: New file.
64649         * lib/unistr/u-strncat.h: New file.
64650
64651         * modules/unistr/u8-strncmp: New file.
64652         * modules/unistr/u16-strncmp: New file.
64653         * modules/unistr/u32-strncmp: New file.
64654         * lib/unistr/u8-strncmp.c: New file.
64655         * lib/unistr/u16-strncmp.c: New file.
64656         * lib/unistr/u32-strncmp.c: New file.
64657
64658         * modules/unistr/u8-strncpy: New file.
64659         * modules/unistr/u16-strncpy: New file.
64660         * modules/unistr/u32-strncpy: New file.
64661         * lib/unistr/u8-strncpy.c: New file.
64662         * lib/unistr/u16-strncpy.c: New file.
64663         * lib/unistr/u32-strncpy.c: New file.
64664         * lib/unistr/u-strncpy.h: New file.
64665
64666         * modules/unistr/u8-strnlen: New file.
64667         * modules/unistr/u16-strnlen: New file.
64668         * modules/unistr/u32-strnlen: New file.
64669         * lib/unistr/u8-strnlen.c: New file.
64670         * lib/unistr/u16-strnlen.c: New file.
64671         * lib/unistr/u32-strnlen.c: New file.
64672         * lib/unistr/u-strnlen.h: New file.
64673
64674         * modules/unistr/u8-strpbrk: New file.
64675         * modules/unistr/u16-strpbrk: New file.
64676         * modules/unistr/u32-strpbrk: New file.
64677         * lib/unistr/u8-strpbrk.c: New file.
64678         * lib/unistr/u16-strpbrk.c: New file.
64679         * lib/unistr/u32-strpbrk.c: New file.
64680         * lib/unistr/u-strpbrk.h: New file.
64681
64682         * modules/unistr/u8-strrchr: New file.
64683         * modules/unistr/u16-strrchr: New file.
64684         * modules/unistr/u32-strrchr: New file.
64685         * lib/unistr/u8-strrchr.c: New file.
64686         * lib/unistr/u16-strrchr.c: New file.
64687         * lib/unistr/u32-strrchr.c: New file.
64688
64689         * modules/unistr/u8-strspn: New file.
64690         * modules/unistr/u16-strspn: New file.
64691         * modules/unistr/u32-strspn: New file.
64692         * lib/unistr/u8-strspn.c: New file.
64693         * lib/unistr/u16-strspn.c: New file.
64694         * lib/unistr/u32-strspn.c: New file.
64695         * lib/unistr/u-strspn.h: New file.
64696
64697         * modules/unistr/u8-strstr: New file.
64698         * modules/unistr/u16-strstr: New file.
64699         * modules/unistr/u32-strstr: New file.
64700         * lib/unistr/u8-strstr.c: New file.
64701         * lib/unistr/u16-strstr.c: New file.
64702         * lib/unistr/u32-strstr.c: New file.
64703         * lib/unistr/u-strstr.h: New file.
64704
64705         * modules/unistr/u8-strtok: New file.
64706         * modules/unistr/u16-strtok: New file.
64707         * modules/unistr/u32-strtok: New file.
64708         * lib/unistr/u8-strtok.c: New file.
64709         * lib/unistr/u16-strtok.c: New file.
64710         * lib/unistr/u32-strtok.c: New file.
64711         * lib/unistr/u-strtok.h: New file.
64712
64713         * modules/unistr/u8-uctomb: New file.
64714         * modules/unistr/u16-uctomb: New file.
64715         * modules/unistr/u32-uctomb: New file.
64716         * lib/unistr/u8-uctomb.c: New file.
64717         * lib/unistr/u16-uctomb.c: New file.
64718         * lib/unistr/u32-uctomb.c: New file.
64719
64720         * MODULES.html.sh (Unicode string functions): Add the new modules.
64721
64722 2007-01-08  Bruno Haible  <bruno@clisp.org>
64723
64724         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64725         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64726         subdirectories.
64727
64728 2007-01-08  Karl Berry  <karl@gnu.org>
64729
64730         * doc/error.texi: mention that main() fns must set program_name
64731         when progname is used.
64732
64733 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64734
64735         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64736         WCTYPE_H is empty, for the benefit of builds from non-distclean
64737         directories.  Problem reported by Eric Blake in
64738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64739
64740 2007-01-08  Bruno Haible  <bruno@clisp.org>
64741
64742         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64743         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64744         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64745         PROVIDE_CANONICALIZE_FILENAME_MODE.
64746         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64747
64748 2007-01-08  Bruno Haible  <bruno@clisp.org>
64749
64750         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64751         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64752         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64753         * lib/fts.c: Likewise.
64754         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64755
64756 2006-12-25  Bruno Haible  <bruno@clisp.org>
64757
64758         * modules/utf8-ucs4-safe: New file.
64759         * lib/utf8-ucs4-safe.h: New file.
64760         * lib/unistr/utf8-ucs4-safe.c: New file.
64761
64762         * modules/utf16-ucs4-safe: New file.
64763         * lib/utf16-ucs4-safe.h: New file.
64764         * lib/unistr/utf16-ucs4-safe.c: New file.
64765
64766         * MODULES.html.sh (Unicode string functions): Add the new modules.
64767
64768 2007-01-08  Bruno Haible  <bruno@clisp.org>
64769
64770         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64771         (Depends-on): Add unitypes.
64772         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64773         (u8_mbtouc_aux): Move out to separate file.
64774         (u8_mbtouc): Use ucs4_t, uint8_t types.
64775         * lib/unistr/utf8-ucs4.c: New file.
64776
64777         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64778         (Depends-on): Add unitypes.
64779         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64780         (u16_mbtouc_aux): Move out to separate file.
64781         (u16_mbtouc): Use ucs4_t, uint16_t types.
64782         * lib/unistr/utf16-ucs4.c: New file.
64783
64784         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64785         (Depends-on): Add unitypes.
64786         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64787         (u8_uctomb_aux): Move out to separate file.
64788         (u8_uctomb): Use ucs4_t, uint8_t types.
64789         * lib/unistr/ucs4-utf8.c: New file.
64790
64791         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64792         (Depends-on): Add unitypes.
64793         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64794         (u16_uctomb_aux): Move out to separate file.
64795         (u16_uctomb): Use ucs4_t, uint16_t types.
64796         * lib/unistr/ucs4-utf16.c: New file.
64797
64798 2006-12-25  Bruno Haible  <bruno@clisp.org>
64799
64800         * modules/unitypes: New file.
64801         * lib/unitypes.h: New file.
64802         * MODULES.html.sh (func_all_modules): New section "Unicode string
64803         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64804         this section. Add unitypes.
64805
64806 2007-01-08  Bruno Haible  <bruno@clisp.org>
64807
64808         Avoid variable names that conflict with those from libtool.
64809         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64810         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64811         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64812         library_names_spec to acl_library_names_spec, hardcode_* to
64813         acl_hardcode_*.
64814         Reported by Ralf Wildenhues.
64815
64816 2007-01-08  Bruno Haible  <bruno@clisp.org>
64817
64818         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64819         definition.
64820         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64821         definition.
64822         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64823         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64824         definition.
64825         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64826         definition.
64827         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64828         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64829         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64830         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64831         definition.
64832         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64833         definition.
64834         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64835         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64836         GC_USE_<algorithm>.
64837         * lib/gc-libgcrypt.c: Likewise.
64838         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64839         * modules/gc-arctwo (configure.ac): Likewise.
64840         * modules/gc-des (configure.ac): Likewise.
64841         * modules/gc-hmac-md5 (configure.ac): Likewise.
64842         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64843         * modules/gc-md2 (configure.ac): Likewise.
64844         * modules/gc-md4 (configure.ac): Likewise.
64845         * modules/gc-md5 (configure.ac): Likewise.
64846         * modules/gc-random (configure.ac): Likewise.
64847         * modules/gc-rijndael (configure.ac): Likewise.
64848         * modules/gc-sha1 (configure.ac): Likewise.
64849
64850 2007-01-08  Bruno Haible  <bruno@clisp.org>
64851
64852         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64853         macro definition.
64854         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64855         definition.
64856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64857         definition.
64858         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64859         * modules/fcntl-safer (configure.ac): Likewise.
64860         * modules/fopen-safer (configure.ac): Likewise.
64861         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64862         GNULIB_FWRITEERROR macro definition.
64863
64864 2007-01-08  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/gnulib-common.m4: New file.
64867         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64868         (func_get_filelist): Add m4/gnulib-common.m4.
64869
64870 2007-01-08  Bruno Haible  <bruno@clisp.org>
64871
64872         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64873         command.
64874
64875 2007-01-08  Jim Meyering  <jim@meyering.net>
64876
64877         Use a more robust test for a "can't happen" condition.
64878         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64879         narrowed the st_size value.  Presuming the "can't happen" condition
64880         is true, that narrowing could conceivably convert an invalid st_size
64881         value into a valid one.  Instead, use a change based on Matthew
64882         Woehlke's original patch.
64883
64884         Slight readability improvement: use an assert-like macro
64885         in place of literal "abort ()" uses.
64886         * lib/fts.c (fts_assert): Define.
64887         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64888         Use this macro instead of a bare 'abort'.
64889
64890 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64893         simply work around them.
64894         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64895         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64896         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64897         declaring.
64898         Don't bother to define as macros, since the standard doesn't require it.
64899         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64900         longer worry about IRIX 5.3.
64901         (HAVE_WCTYPE_CTMP_BUG): Remove.
64902
64903 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64906         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64907         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64908         Problems reported by Georg Schwarz for IRIX 5.3.
64909
64910         * gnulib-tool (autoconf_minversion): Take the maximum version number
64911         found, not the minimum.  Problem reported by James Youngman.
64912
64913 2007-01-03  Karl Berry  <karl@gnu.org>
64914
64915         * doc/error.texi: new file, explaining interaction with progname.
64916         * doc/gnulib.texi: include it.  Update copyright.
64917
64918 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64919
64920         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64921         AC_CANONICAL_HOST, to improve autobuild outputs.
64922
64923 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64924             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64925
64926         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64927         sockets, server sockets, and other file descriptors.  Count errors
64928         to compute the return value.  Reorder the code a bit to be easier
64929         to follow.  Don't set event bits that were not requested (except
64930         POLLERR and POLLHUP).
64931
64932 2007-01-01  Bruno Haible  <bruno@clisp.org>
64933
64934         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64935
64936 2007-01-03  Jim Meyering  <jim@meyering.net>
64937
64938         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64939
64940 2007-01-02  Bruno Haible  <bruno@clisp.org>
64941
64942         * modules/settime (Include): Require timespec.h.
64943         * modules/nanosleep (Include): Likewise.
64944
64945 2007-01-01  Bruno Haible  <bruno@clisp.org>
64946
64947         * gnulib-tool (func_emit_copyright_notice): Bump year.
64948         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64949
64950 2007-01-01  Bruno Haible  <bruno@clisp.org>
64951
64952         Improve support for OpenBSD.
64953         * build-aux/config.rpath (libname_spec): Export.
64954         (library_names_spec): New variable. Export.
64955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64956         library_names_spec from the config.rpath output. Locate shared library
64957         through the name pattern in library_names_spec.
64958
64959 2007-01-01  Eric Blake  <ebb9@byu.net>
64960
64961         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64962
64963 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64966         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64967         assume the C locale, and avoid an "eval" that could cause trouble.
64968         Problem with SORT reported by Bob Proulx.
64969
64970         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64971         Define.  Trivial patch from Henning Nielsen Lund, originally
64972         sent to bug-grep@gnu.org today.
64973
64974 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64977         struct stat.  Problem reported by Henning Nielsen Lund.
64978         * lib/acl.c: Include acl.h first, to check interface.  Don't
64979         bother to include sys/types.h and sys/stat.h again.
64980
64981 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         Import the following change from libc; problem reported by
64984         Sven Verdoolaege.
64985
64986         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64987
64988         [BZ #1373]
64989         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64990
64991 2006-12-28  Jim Meyering  <jim@meyering.net>
64992
64993         * build-aux/announce-gen: Do not assume that the package
64994         builds any of tar.gz, tar.bz2, and .xdelta files.
64995         Suggestion from Simon Josefsson.
64996
64997 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64998
64999         * modules/announce-gen: New file.
65000
65001 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65004         handles its gotchas now.
65005         * lib/mbswidth.c: Likewise.
65006         * lib/wcwidth.h: Likewise.
65007         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65008         and iswcntrl; the wctype module does this stuff now.
65009         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65011         * modules/mbchar (Depends-on): Add wctype.
65012         * modules/mbswidth (Depends-on): Likewise.
65013         * modules/wcwidth (Depends-on): Likewise.
65014
65015 2006-12-27  Eric Blake  <ebb9@byu.net>
65016
65017         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65018         module uses more than what <wctype.h> is required to provide.
65019
65020 2006-12-26  Eric Blake  <ebb9@byu.net>
65021
65022         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65023
65024 2006-12-26  Eric Blake  <ebb9@byu.net>
65025
65026         * modules/absolute-header: New module.
65027         * modules/fcntl (Depends-on): Depend on it.
65028         * modules/inttypes (Depends-on): Likewise.
65029         * modules/stdint (Depends-on): Likewise.
65030         * modules/sys_stat (Depends-on): Likewise.
65031         * modules/wctype (Depends-on): Likewise.
65032         * MODULES.html.sh (Support for building libraries and
65033         executables): Document it.
65034
65035 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65036
65037         * gnulib-tool (SED): Remove, undoing previous change.
65038         The problem was that it broke coreutils on Solaris, because
65039         "sed --posix" leaked into a makefile.
65040         (sed): New alias, if 'alias' and GNU sed.
65041
65042 2006-12-24  Jim Meyering  <jim@meyering.net>
65043
65044         Work around an fchownat bug in glibc-2.4:
65045         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65046         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65047         in spite of the -P option.
65048         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65049         New macros.
65050         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65051         * modules/openat (Files): Add lib/fchownat.c.
65052         * lib/openat.c (fchownat): Don't define here.  Move to...
65053         * lib/fchownat.c: ...this new file.
65054
65055 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65056
65057         Fix bug reported by Bruno Haible in
65058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65059         where quotearg.c didn't compile on Mac OS X 10.2 because it
65060         lacks <wchar.h> and wint_t.
65061         * lib/wctype_.h (__wctype_wint_t): New type.
65062         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65063         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65064         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65065         Arg is now of type __wctype_wint_t, not wint_t.
65066         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65067         substitute HAVE_WINT_T.
65068         * modules/wctype (Files): Add m4/wint_t.m4.
65069         (wctype.h): Substitute HAVE_WINT_T.
65070
65071 2006-12-23  Bruno Haible  <bruno@clisp.org>
65072
65073         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65074
65075 2006-12-23  Bruno Haible  <bruno@clisp.org>
65076
65077         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65078         S_ISLNK.
65079         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65080         mingw.
65081
65082 2006-12-22  Bruno Haible  <bruno@clisp.org>
65083
65084         * lib/copy-file.c: Include acl.h.
65085         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65086         Close the file descriptors only after being done with copy_acl.
65087         * modules/copy-file (Depends-on): Add acl.
65088
65089 2006-12-22  Bruno Haible  <bruno@clisp.org>
65090
65091         * gnulib-tool (SED): New variable.
65092         Use $SED instead of sed everywhere.
65093
65094 2006-12-22  Bruno Haible  <bruno@clisp.org>
65095
65096         * modules/no-c++: New file.
65097         * m4/no-c++.m4: New file.
65098         * MODULES.html.sh (Support for building libraries and executables):
65099         Add no-c++.
65100
65101 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65102
65103         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65104         Include <limits.h>, and use its INT_MAX to rewrite the
65105         j loop so that it does not overflow 'int'.  Problem reported by
65106         Ralf Wildenhues in
65107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65108         Play it safe by shifting left by 1 rather than multiplying by 2,
65109         as GCC is less likely to optimize this away when the value
65110         is signed (when it assumes overflow leads to undefined behavior).
65111         Also, don't assume time_t uses two's complement.
65112
65113 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * MODULES.html.sh: New module wctype.
65116         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65117         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65118         <wctype.h>, since the new wctype module should fix this.
65119         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65120         the wctype module should arrange for it.
65121         * lib/regex_internal.h: Likewise.
65122         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65123         since the wctype module should handle this now.
65124         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65125         * modules/fnmatch (Depends-on): Add wctype.
65126         * modules/quotearg (Depends-on): Likewise.
65127         * modules/regex (Depends-on): Likewise.
65128
65129 2006-12-19  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65132         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65133
65134 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65135
65136         * modules/savewd (Depends-on): Fix dependency on fcntl.
65137
65138 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65141         conforms to C99, rather than relying on the user's environment
65142         setting of STDINT_H.
65143
65144 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65145         and Eric Blake  <ebb9@byu.net>
65146
65147         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65148         This is more consistent with the other defines here.
65149         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65150         Port to z/OS.  Problem reported by Paul Gilmartin.
65151         Change local vars to use gl_ prefix rather than ac_.
65152         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65153         with other defines.
65154         * modules/double-slash-root: New module.
65155         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65156         (Depends-on): Add double-slash-root.
65157         * MODULES.html.sh (File system functions): Mention new module.
65158
65159 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65162         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65163         This is for the benefit of gzip, which doesn't do i18n.
65164
65165 2006-12-12  Jim Meyering  <jim@meyering.net>
65166
65167         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65168         Reported by Andreas Schwab <schwab@suse.de>.
65169
65170 2006-12-12  Bruno Haible  <bruno@clisp.org>
65171
65172         Merge these changes.
65173         2006-09-05  Bruno Haible  <bruno@clisp.org>
65174         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65175         iconv_alloc succeeded.
65176         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65177         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65178         test for " && dest " at the end - dest is always != NULL there. Call
65179         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65180         with 2xNULL arguments, also to flush the state storage. Handle the
65181         IRIX iconv behaviour. Realloc the final result, to throw away unused
65182         memory.
65183
65184 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65187         and fchmodat unconditionally, since glibc 2.4 has them.
65188         Problem reported by Arkadiusz Miskiewicz.
65189
65190 2006-12-10  Bruno Haible  <bruno@clisp.org>
65191
65192         * gnulib-tool (func_import): Show the include files only for those
65193         modules that are copied and specified.
65194         Reported by Karl Berry.
65195
65196 2006-12-08  Jim Meyering  <jim@meyering.net>
65197
65198         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65199         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65200
65201         * build-aux/announce-gen: Add two new options, both optional:
65202         --bootstrap-tools=TOOL_LIST
65203               a comma-separated list of tools, e.g.,
65204               autoconf,automake,bison,gnulib
65205         --gnulib-snapshot-date=DATE
65206               if gnulib is in the bootstrap tool list,
65207               then report this as the snapshot date.
65208               If not specified, use the current date/time.
65209               If you specify a date here, be sure it's UTC.
65210
65211 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65212
65213         * tests/test-argp-2.sh: Fix test to match actual output.
65214         (func_compare): Fix sed script to be portable.
65215
65216 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65219         workaround for this case.  It is not autoconfigured now; offhand
65220         it's hard to see how to autoconfigure it.
65221
65222 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65225         a directory that is about to be chowned.  Such a directory's
65226         initial file permissions should permit the owner only and this
65227         should not be changed until after the chown, since the group and
65228         other bits would be incorrect if they granted permission before
65229         the chown.
65230
65231         Fix porting problem for iswctype reported by Georg Schwarz in:
65232         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65233         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65234         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65235         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65236         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65237
65238 2006-12-03  Jim Meyering  <jim@meyering.net>
65239
65240         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65241         p->fts_statp may not yet be defined.
65242         (fts_read): Instead, set it in the caller, once p->fts_statp is
65243         sure to be defined, and corresponds to a top-level directory.
65244         This bug made du -x fail.  Here's the coreutils test case:
65245         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65246         Reported by Mike Frysinger.
65247
65248 2006-12-01  Jim Meyering  <jim@meyering.net>
65249
65250         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65251         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65252         Reported by Simon Josefsson.
65253
65254 2006-11-30  Jim Meyering  <jim@meyering.net>
65255
65256         * m4/warning.m4: Use the all-permissive copyright notice
65257         recommended by RMS (rather than LGPL).
65258         * m4/vararrays.m4: Likewise.
65259         * m4/flexmember.m4: Likewise.
65260
65261 2006-11-29  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65264         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65265         using +=.
65266         Reported by Simon Josefsson <simon@josefsson.org>.
65267
65268 2006-11-28  James Youngman <jay@gnu.org>
65269
65270         * README: Advise users that they might find the bug-gnulib@gnu.org
65271         and autotools-announce@gnu.org mailing lists useful.
65272
65273 2006-11-28  Bruno Haible  <bruno@clisp.org>
65274
65275         * m4/ptrdiff_max.m4: Remove file.
65276
65277 2006-11-21  Bruno Haible  <bruno@clisp.org>
65278
65279         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65280         _AC_COMPUTE_INT.
65281         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65282         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65283         _AC_COMPUTE_INT.
65284         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65285         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65286         _AC_COMPUTE_INT.
65287         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65288
65289 2006-11-28  Jim Meyering  <jim@meyering.net>
65290
65291         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65292         warning from "gcc -Wshadow" about shadowing the builtin.
65293
65294 2006-11-27  Bruno Haible  <bruno@clisp.org>
65295
65296         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65297         _AC_COMPUTE_INT.
65298         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65299
65300 2006-11-27  Bruno Haible  <bruno@clisp.org>
65301             Paul Eggert  <eggert@cs.ucla.edu>
65302
65303         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65304
65305 2006-11-26  Bruno Haible  <bruno@clisp.org>
65306
65307         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65308         noinst_LTLIBRARIES.
65309
65310 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65311             Bruno Haible  <bruno@clisp.org>
65312
65313         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65314         if compiling with "gcc -ansi".
65315
65316 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         Fix some incompatibilities with gcc -ansi -pedantic.
65319         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65320         if compiling pedantically with GCC, unless it's C99 or later.
65321         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65322         it mishandles gcc -ansi -pedantic as well.
65323         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65324         if gcc -pedantic.
65325         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65326         initializers for struct if -pedantic, unless it's C99 or later.
65327
65328 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65329
65330         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65331         Don't close an fd more than once. Identical atimes indicate
65332         success, not failure.
65333
65334 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65335
65336         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65337
65338 2006-11-23  Jim Meyering  <jim@meyering.net>
65339
65340         * build-aux/announce-gen: New file.  From coreutils.
65341
65342 2006-11-22  Jim Meyering  <jim@meyering.net>
65343
65344         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65345         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65346         (fts_read): Use a temporary to narrow the overused st_size member
65347         before using it in a switch statement.  Reported by Matthew Woehlke.
65348
65349         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65351
65352 2006-11-20  Bruno Haible  <bruno@clisp.org>
65353
65354         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65355         changequote instead of pairs of brackets.
65356         Reported by Andreas Schwab <schwab@suse.de>.
65357
65358 2006-11-21  Jim Meyering  <jim@meyering.net>
65359
65360         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65361         so as to remain compatible with older compilers.
65362         Patch from Michael Deutschmann.
65363
65364 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         * MODULES.html.sh (File system functions): Add openat.
65367
65368         * lib/openat.h (rpl_fstatat): New macro, if
65369         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65370         (fstatat): Define to rpl_fstatat under the same conditions,
65371         unless COMPILING_FSTATAT.
65372         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65373         seems to have the bug.
65374         * lib/fstatat.c: New file.
65375         * modules/openat (Files): Add it.
65376
65377 2006-11-20  Bruno Haible  <bruno@clisp.org>
65378
65379         * Makefile: New file.
65380
65381 2006-11-20  Jim Meyering  <jim@meyering.net>
65382
65383         The beginnings of syntax-related checks for gnulib.
65384         * lib/Makefile: New file.
65385         * lib/t-idcache: New script.  Ensure that the two halves of
65386         idcache.c stay in sync.
65387
65388         * lib/idcache.c: Adjust comments in user- and group- portions to
65389         be more accurate, and to be consistent with one another.
65390
65391 2006-11-20  Jim Meyering  <jim@meyering.net>
65392
65393         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65394         continue using the flexible array member (thus, this module performs
65395         half as many malloc calls), with the addition that...
65396         (getgroup, getuser): Consistently record a non-match via an empty
65397         "name" string, and map an empty string match to a NULL return value.
65398         * modules/idcache (Depends-on): Re-add flexmember.
65399
65400         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65401         (getuidbyname, getgroup, getgidbyname): Likewise.
65402
65403         Use cleaner syntax: NULL rather than 0.
65404         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65405
65406 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65409         It mishandled the case where the group was missing.
65410         Problem reported by Greg Schafer.
65411         * modules/idcache: Likewise.
65412
65413 2006-11-18  Jim Meyering  <jim@meyering.net>
65414
65415         * check-module (%exempt_header): Add exception for some
65416         conditionally-included headers.
65417
65418         * modules/i-ring (Depends-on): Add verify.
65419         (License): Change to LGPL.
65420
65421 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65424         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65425         and inttostr.h.  Use snprintf rather than uinttostr, so that
65426         LGPLed code doesn't depend on GPLed.
65427
65428 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65429
65430         * modules/inline (License): Change from GPL to LGPL.
65431
65432 2006-11-17  Jim Meyering  <jim@meyering.net>
65433
65434         * modules/d-type (License): Switch to LGPL.
65435
65436 2006-11-15  Bruno Haible  <bruno@clisp.org>
65437
65438         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65439
65440 2006-11-15  Eric Blake  <ebb9@byu.net>
65441
65442         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65443         the module dependency.
65444
65445 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65446             Bruno Haible  <bruno@clisp.org>
65447
65448         * gnulib-tool (func_create_testdir): Add license consistency check.
65449
65450 2006-11-15  Eric Blake  <ebb9@byu.net>
65451
65452         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65453         random "(cached)" in configure output.
65454
65455 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65456
65457         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65458         test for conforming inttypes.h is both announced and cached.
65459
65460         * MODULES.html.sh (seen_modules, seen_files): New variables.
65461         (func_module): Rewrite to use a few less gnulib-tool and sed
65462         invocations.  Avoid a couple of quadratic algorithms for ...
65463         (missed_modules, missed_files): ... these, with ...
65464         (func_append, func_tmpdir): ... these new functions, from
65465         gnulib-tool.  Analogously, install traps for cleanup.
65466
65467         * tests/test-gc.c (main): Remove unused variables.
65468         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65469
65470 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         * modules/inttostr (License): Change to LGPL.
65473
65474 2006-11-14  Eric Blake  <ebb9@byu.net>
65475
65476         * modules/tempname (License): Change to LGPL.
65477
65478 2006-11-14  Eric Blake  <ebb9@byu.net>
65479
65480         * doc/functions.texi (Function Portability): *printf functions on
65481         Cygwin now understand all POSIX size specifiers.
65482
65483 2006-11-14  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/c-ctype (License): Change to LGPL.
65486
65487 2006-11-12  Bruno Haible  <bruno@clisp.org>
65488
65489         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65490         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65491         for GNOME libraries, for which the include files are installed in
65492         subdirectories of $prefix/include.
65493
65494 2006-11-12  Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/lib-link.m4: Require at least autoconf-2.54.
65497         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65498         name to underscores for the --with option.
65499
65500 2006-11-13  Bruno Haible  <bruno@clisp.org>
65501
65502         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65503         the tests directory.
65504         Reported by Ralf Wildenhues.
65505
65506 2006-11-13  Bruno Haible  <bruno@clisp.org>
65507
65508         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65509         (func_emit_initmacro_end): Undo the override here.
65510         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65511         Works around the famous automake error in coreutils.
65512
65513 2006-11-13  Eric Blake  <ebb9@byu.net>
65514
65515         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65516         element, not its node.
65517
65518 2006-11-12  Bruno Haible  <bruno@clisp.org>
65519
65520         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65521         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65522
65523 2006-11-12  Bruno Haible  <bruno@clisp.org>
65524
65525         * gnulib-tool: New option --local-symlink.
65526         (func_usage): Document it.
65527         (lsymbolic): New variable.
65528         (func_import, func_create_testdir): If --symlink was not specified,
65529         test whether --local-symlink was specified and the file comes from
65530         the local_gnulib_dir.
65531
65532 2006-11-12  Bruno Haible  <bruno@clisp.org>
65533
65534         * gnulib-tool (func_ln): New function.
65535         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65536
65537 2006-11-12  Bruno Haible  <bruno@clisp.org>
65538
65539         Finish support for source files in subdirectories.
65540         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65541         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65542         AUTOMAKE_OPTIONS.
65543         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65544
65545 2006-11-12  Bruno Haible  <bruno@clisp.org>
65546
65547         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65548         EXTRA_lib_SOURCES augmentation.
65549         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65550
65551 2006-11-12  Jim Meyering  <jim@meyering.net>
65552
65553         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65554         file descriptors.  This also averts a failure on systems with
65555         native openat support when a traversed directory lacks "x" access.
65556         * lib/fts_.h: Include "i-ring.h"
65557         (struct FTS) [fts_fd_ring]: New member.
65558         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65559         (FCHDIR): Add parentheses.
65560         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65561         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65562         When descending, rather than simply closing the previous
65563         fts_cwd_fd value, push that file descriptor onto the ring.
65564         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65565         (fts_open): Initialize the new fd_ring member.
65566         (fts_close): Clear the ring.
65567         (fts_safe_changedir): When possible, use our new fd_ring to skip
65568         the diropen and fstat and dev/ino comparison that would normally
65569         accompany a virtual `chdir ("..")'.
65570
65571         * modules/fts (Depends-on): Add i-ring.
65572         * modules/i-ring: New module.
65573         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65574         * m4/i-ring.m4: New file.
65575
65576 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65577
65578         * gnulib-tool (func_create_testdir): Fix replacement of
65579         `build-aux' in configure.ac.  Run autotools in gltests
65580         subdirectory.
65581         (func_create_testdir, func_create_megatestdir, test): There is
65582         no need for '--force' in most autotool invocations in a new
65583         tree.  Actually fail the whole test if any of the tools, or the
65584         configure or make stages fail.
65585
65586         Sync from Automake.
65587         * build-aux/gnupload: Revert last change.  Add pointer to upload
65588         instructions of the GNU Maintenance Instructions.
65589         Suggestion by Karl Berry.
65590
65591 2006-11-10  Jim Meyering  <jim@meyering.net>
65592
65593         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65594
65595 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65598         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65599         (bind_textdomain_codeset) [! ENABLE_NLS]:
65600         Evaluate all the arguments.  That way, callers get compatible behavior
65601         if the arguments have side effects.  Also, it avoids some GCC
65602         diagnostics in some cases; Joel E. Denny reported problems when Bison
65603         was configured with --enable-gcc-warnigs.
65604
65605 2006-11-10  Jim Meyering  <jim@meyering.net>
65606
65607         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65608         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65609         account.
65610
65611 2006-11-10  Jim Meyering  <jim@meyering.net>
65612
65613         * modules/inline: New file/module.
65614         * modules/xalloc (Files): Remove m4/inline.m4.
65615         (Depends-on): Add inline, instead.
65616         * modules/oset: Likewise.
65617         * modules/list: Likewise.
65618
65619 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65622         Problem reported by Matthew Woehlke.
65623
65624 2006-11-09  Bruno Haible  <bruno@clisp.org>
65625
65626         * lib/tempname.c (gen_tempname): Remove variant that invokes
65627         __gen_tempname.
65628         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65629         __gen_tempname.
65630
65631 2006-11-08  Bruno Haible  <bruno@clisp.org>
65632
65633         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65634         to 'yes' instead of 'cross-compiling'.
65635
65636 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         * lib/quotearg.h (quotearg_free): New decl.
65639         * lib/quotearg.c (quotearg_free): New function.
65640         (slot0, nslots, slotvec0, slotvec):
65641         Now file-scope so that quotearg_free can get at them.
65642
65643 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65644
65645         Sync from Automake.
65646         * build-aux/gnupload: Add missing 'gnu' to example URL.
65647         Report by Karl Berry.
65648
65649 2006-11-08  Bruno Haible  <bruno@clisp.org>
65650
65651         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65652         Suggested by Paul Eggert.
65653
65654 2006-11-08  Jim Meyering  <jim@meyering.net>
65655
65656         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65657         It's already included if !_LIBC.
65658         (fts_safe_changedir): Add a comment.
65659
65660 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65661
65662         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65663         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65664         Matthew Woehlke.
65665
65666         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65667         definitions up, to avoid colliding with change below.
65668         (static_inline) [HAVE_INLINE]: New macro.
65669         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65670         Provide extern decls when !HAVE_INLINE.  Do not define unless
65671         static_inline is defined, either by us or by xmalloc.c.  Use
65672         static_inline rather than static inline.
65673         (XCALLOC): Optimize sizeof(T) = 1 case.
65674         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65675
65676 2006-11-07  Bruno Haible  <bruno@clisp.org>
65677
65678         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65679         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65680         AC_C_INLINE.
65681         * modules/xalloc (Files): Add m4/inline.m4.
65682
65683 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65684
65685         * README: Fix typo.
65686         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65687         (Miscellanous Notes): ...from this.
65688
65689 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65692         Mention that offsetof should be used instead of sizeof.
65693         From Bruno Haible.
65694
65695 2006-11-07  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65698
65699 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65702         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65703         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65704         (gl_tree_add_before, gl_tree_add_after):
65705         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65706         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65707         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65708         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65709         (gl_linked_add_after, gl_linked_add_at): Likewise.
65710         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65711         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65712         (gl_tree_add_before, gl_tree_add_after): Likewise.
65713         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65714         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65715         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65716
65717 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65718
65719         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65720
65721 2006-11-06  Bruno Haible  <bruno@clisp.org>
65722
65723         * m4/inline.m4: New file.
65724         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65725         * modules/list (Files): Add m4/inline.m4.
65726         * modules/oset (Files): Likewise.
65727
65728 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         * lib/idcache.c: Include <stddef.h>, for offsetof.
65731         (struct userid.name): Change from char * to a flexible array member.
65732         All uses changed.
65733         * modules/idcache (Depends-on): Add flexmember.
65734
65735         * MODULES.html.sh (Core language properties): New module flexmember.
65736         * modules/flexmember, m4/flexmember.m4: New files.
65737
65738         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65739         inline functions that are identical with the old xnmalloc_inline,
65740         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65741         that we can avoid some unnecessary integer multiplications and
65742         divisions in the common case where the element size is known at
65743         compile time.
65744         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65745         needed.
65746         (xnboundedmalloc): Remove.
65747         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65748         arguments, for consistency with rest of this header.
65749         (xcharalloc): Rewrite using XNMALLOC.
65750         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65751         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65752         versions have been moved to lib/xalloc.h and renamed to be the
65753         non-*_inline versions.
65754         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65755         and xnrealloc functions, since those functions are now inline and
65756         now call us.
65757         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65758         renaming described above.
65759         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65760         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65761         captures the dependency in AC_C_INLINE.
65762
65763         New module canonicalize-lgpl, proposed by Charles Wilson in
65764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65765         with a few small changes afterwards.
65766         * MODULES.html.sh (File system functions): New module
65767         canonicalize-lgpl.
65768         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65769         and canonicalize_file_name.
65770         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65771         * modules/canonicalize-lgpl: New files.
65772
65773 2006-11-05  Bruno Haible  <bruno@clisp.org>
65774
65775         * gnulib-tool (func_import, func_create_testdir): Create directories
65776         also for files in subdirectories of lib/.
65777
65778 2006-11-05  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65781         ANSI C compliant.
65782
65783 2006-11-03  Bruno Haible  <bruno@clisp.org>
65784
65785         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65786         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65787         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65788         (xnboundedmalloc): New inline function.
65789         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65790         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65791         xmalloc.
65792         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65793         xmalloc.
65794         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65795         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65796         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65797         xmalloc.
65798         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65799         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65800         xmalloc.
65801         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65802         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65803         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65804         xmalloc.
65805         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65806         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65807         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65808         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65809         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65810         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65811         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65812
65813 2006-11-03  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/c-ctype.h [C++]: Define functions without name mangling.
65816         * lib/fwriteerror.h [C++]: Likewise.
65817         * lib/gcd.h [C++]: Likewise.
65818         * lib/linebreak.h [C++]: Likewise.
65819
65820 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65823         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65824         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65825         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65826         Check for functions and headers just once.
65827         Check for declaration of canonicalize_file_name.
65828         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65829
65830 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65831
65832         * gnulib-tool (func_import): Fix typo in actioncmd.
65833
65834 2006-11-02  Bruno Haible  <bruno@clisp.org>
65835
65836         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65837         newline sequence in the Makefile.am snippet as a space, like "make"
65838         does.
65839         Reported by Roger Persson <perrog@gmail.com>.
65840
65841 2006-11-01  Bruno Haible  <bruno@clisp.org>
65842
65843         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65844         already declared in <string.h>.
65845         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65846
65847 2006-11-01  Bruno Haible  <bruno@clisp.org>
65848
65849         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65850         * lib/strcase.h: Include <string.h>.
65851         (strcasecmp): Define to rpl_strcasecmp here.
65852
65853 2006-11-01  Bruno Haible  <bruno@clisp.org>
65854
65855         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65856
65857 2006-11-01  Eric Blake  <ebb9@byu.net>
65858
65859         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65860
65861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65862
65863 2006-10-29  Bruno Haible  <bruno@clisp.org>
65864
65865         Make it compile in C++ mode.
65866         * lib/full-write.c (full_rw): Add a cast.
65867
65868 2006-11-01  Bruno Haible  <bruno@clisp.org>
65869
65870         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65871         be POSIX compliant.
65872         Reported by Roger Persson <perrog@gmail.com>.
65873
65874 2006-11-01  Eric Blake  <ebb9@byu.net>
65875
65876         * lib/getopt_.h: Fix comments.
65877
65878 2006-10-31  Eric Blake  <ebb9@byu.net>
65879
65880         * modules/tmpdir (Depends-on): Add sys_stat.
65881         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65882         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65883         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65884         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65885         tempname.
65886
65887 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         Avoid some C++ diagnostics reported by Bruno Haible.
65890         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65891         xmalloc.
65892         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65893         (struct slotvec): Move to top level.
65894         (quotearg_n_options): Rewrite to avoid xmalloc.
65895         * lib/xalloc.h (xcharalloc): New function.
65896         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65897         [defined __cplusplus]: Add function template that provides result
65898         type propagation.  This part of the change is from Bruno Haible.
65899
65900 2006-10-29  Bruno Haible  <bruno@clisp.org>
65901
65902         Make it compile in C++ mode.
65903         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65904         * lib/strnlen1.c (strnlen1): Cast memchr result.
65905         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65906         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65907         (create_temp_dir): Rename local variable 'template'.
65908         (compile_csharp_using_sscli): Add cast.
65909         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65910         * lib/findprog.c (find_in_path): Likewise.
65911         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65912         * lib/wait-process.c (register_slave_subprocess): Likewise.
65913
65914 2006-10-22  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/tsearch: New file.
65917         * lib/tsearch.h: New file.
65918         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65919         * m4/tsearch.m4: New file.
65920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65921
65922 2006-10-29  Eric Blake  <ebb9@byu.net>
65923
65924         * lib/arcfour.c: Assume config.h.
65925         * lib/arctwo.c: Likewise.
65926         * lib/base64.c: Likewise.
65927         * lib/check-version.c: Likewise.
65928         * lib/crc.c: Likewise.
65929         * lib/des.c: Likewise.
65930         * lib/gc-gnulib.c: Likewise.
65931         * lib/gc-libgcrypt.c: Likewise.
65932         * lib/gc-pbkdf2-sha1.c: Likewise.
65933         * lib/getaddrinfo.c: Likewise.
65934         * lib/getdelim.c: Likewise.
65935         * lib/getline.c: Likewise.
65936         * lib/hmac-md5.c: Likewise.
65937         * lib/hmac-sha1.c: Likewise.
65938         * lib/iconvme.c: Likewise.
65939         * lib/md2.c: Likewise.
65940         * lib/md4.c: Likewise.
65941         * lib/memxor.c: Likewise.
65942         * lib/read-file.c: Likewise.
65943         * lib/readline.c: Likewise.
65944         * lib/rijndael-alg-fst.c: Likewise.
65945         * lib/rijndael-api-fst.c: Likewise.
65946         * lib/xgetdomainname.c: Likewise.
65947
65948 2006-10-28  Eric Blake  <ebb9@byu.net>
65949
65950         * lib/xstrndup.c: Assume config.h.
65951
65952 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65955         stat-macros.h is now for our own macros, whereas stat_h is for
65956         macros in the <sys/stat.h> name space.
65957         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65958         (STAT_MACROS_H): Remove.
65959         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65960         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65961         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65962         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65963         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65964         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65965         Move these macros to ...
65966         * lib/stat_.h: here.  Don't include stat-macros.h.
65967         * lib/canonicalize.c: Don't include stat-macros.h.
65968         * lib/chown.c: Likewise.
65969         * lib/euidaccess.c: Likewise.
65970         * lib/file-type.c: Likewise.
65971         * lib/filemode.c: Likewise.
65972         * lib/glob.c: Likewise.
65973         * lib/isapipe.c: Likewise.
65974         * lib/lchown.c: Likewise.
65975         * lib/lstat.c: Likewise.
65976         * lib/mkdir-p.c: Likewise.
65977         * lib/rmdir.c: Likewise.
65978         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65979         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65980         unless mkdir isn't declared, to speed up 'configure'.
65981         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65982         would define all the S_* symbols.
65983         * modules/canonicalize (Depends-on):
65984         Depend on sys_stat, not stat-macros.
65985         * modules/chown: Likewise.
65986         * modules/euidaccess: Likewise.
65987         * modules/filemode: Likewise.
65988         * modules/file-type: Likewise.
65989         * modules/glob: Likewise.
65990         * modules/isapipe: Likewise.
65991         * modules/lchown: Likewise.
65992         * modules/lstat: Likewise.
65993         * modules/mkancesdirs: Likewise.
65994         * modules/rmdir: Likewise.
65995         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65996         * modules/modechange: Likewise.
65997         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65998         (configure.ac): Remove gl_STAT_MACROS.
65999         * modules/sys_stat (Depends-on): Remove stat-macros.
66000
66001 2006-10-27  Bruno Haible  <bruno@clisp.org>
66002
66003         * m4/signed.m4: Remove file.
66004         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66005         invocation.
66006         * modules/vasnprintf (Files): Remove m4/signed.m4.
66007
66008 2006-10-27  Bruno Haible  <bruno@clisp.org>
66009
66010         Update to GNU gettext 0.16.
66011         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66012         m4/inttypes-h.m4, m4/signed.m4.
66013         * m4/gettext.m4: Update to GNU gettext 0.16.
66014         * m4/intl.m4: New file, from GNU gettext.
66015         * m4/intldir.m4: New file, from GNU gettext.
66016         * config/srclist.txt: Update
66017
66018 2006-10-27  Eric Blake  <ebb9@byu.net>
66019
66020         * MODULES.html.sh: Document tempname.
66021         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66022         dependencies.
66023         (Files): Move lib/tempname.c...
66024         * modules/tempname: ...to this new module.
66025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66026         (gl_PREREQ_TEMPNAME): Move...
66027         * m4/tempname.m4: ...to this new file.
66028         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66029         * modules/sys_stat (Depends-on): Add stat-macros.
66030         * lib/stat_.h (includes): Pick up stat macros.
66031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66032         if stat macros are broken.
66033         * lib/tempname.c (includes): No need to include "stat-macros.h".
66034         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66035         (direxists, __path_search) [!_LIBC]: Don't compile these in
66036         gnulib; the tmpdir module covers that.
66037         * lib/tempname.h: New file.
66038
66039 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * COPYING: Explain how gnulib-tool converts licence headers.
66042         Almost all wording by Eric Blake.
66043
66044 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66045
66046         * lib/mbchar.h (is_basic_table): Make read-only.
66047         * lib/mbchar.c (is_basic_table): Likewise.
66048         Reported by John Darrington.
66049
66050 2006-10-25  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/progname.h (set_program_name): Undefine before defining.
66053
66054 2006-10-25  Bruno Haible  <bruno@clisp.org>
66055
66056         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66057         false for non-gcc C++ compilers.
66058         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66059
66060 2006-10-24  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66063         iconv implementations like Irix iconv.
66064
66065 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * modules/vararrays: New file.
66068         * m4/vararrays.m4: New file, taken from diffutils.
66069         * MODULES.html.sh: New module vararrays.
66070
66071 2006-10-24  Karl Berry  <karl@gnu.org>
66072
66073         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66074         Don't call GNU Unix.
66075
66076 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66077
66078         * users.txt: Add Libtool.
66079
66080         Sync from Libtool:
66081
66082         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66085         to gnulib's policy of including config.h unconditionally.
66086
66087 2006-10-24  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/wcwidth (Files): Add m4/wint_t.m4.
66090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66091         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66092
66093 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66096         to pacify GCC with some -W flags enabled.  Problem reported by
66097         Bruno Haible.
66098
66099 2006-10-24  Jim Meyering  <jim@meyering.net>
66100
66101         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66102         Reported by Karl Berry.
66103
66104 2006-10-23  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66107
66108 2006-10-24  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/gl_list.h: Use C comment style, not C++ comment style.
66111
66112 2006-10-23  Eric Blake  <ebb9@byu.net>
66113
66114         * lib/getaddrinfo.c (includes): Add missing include.
66115
66116 2006-10-23  Bruno Haible  <bruno@clisp.org>
66117             Paul Eggert  <eggert@cs.ucla.edu>
66118
66119         Ability to rename obstack_free.
66120         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66121         obstack_free.
66122         (obstack_free): Invoke the __obstack_free macro.
66123         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66124
66125 2006-10-23  Bruno Haible  <bruno@clisp.org>
66126             Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66129         __argc, __argv from the declaration. (They are defined as macros on
66130         mingw.)
66131
66132 2006-10-22  Bruno Haible  <bruno@clisp.org>
66133
66134         * doc/gnulib-intro.texi: New file.
66135         * doc/gnulib.texi: Include it.
66136
66137 2006-10-21  Bruno Haible  <bruno@clisp.org>
66138
66139         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66140         "Introduction", "Miscellanous Notes", "Particular Modules".
66141
66142 2006-10-21  Bruno Haible  <bruno@clisp.org>
66143
66144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66145         Change mostlyclean-local rule to avoid sh syntax error from bash
66146         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66147
66148 2006-10-23  Jim Meyering  <jim@meyering.net>
66149
66150         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66151         in place of snprintf.
66152
66153         * modules/inttostr (Files): Add lib/uinttostr.c.
66154         * lib/uinttostr.c (inttostr): New file/function.
66155         * lib/inttostr.h (uinttostr): Declare.
66156         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66157         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66158         Add uinttostr.
66159         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66160
66161 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * lib/canonicalize.c (ELOOP): Define if not already defined.
66164         Problem reported by Bruno Haible in
66165         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66166
66167 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66170         Problem reported by Perry Smith and Ville Laurikari.
66171
66172         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66173         uses.
66174
66175 2006-10-19  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66178         for mingw.
66179
66180 2006-10-19  Bruno Haible  <bruno@clisp.org>
66181
66182         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66183         Needed for mingw.
66184
66185 2006-10-19  Bruno Haible  <bruno@clisp.org>
66186
66187         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66188
66189 2006-10-19  Bruno Haible  <bruno@clisp.org>
66190
66191         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66192         it.
66193
66194 2006-10-19  Bruno Haible  <bruno@clisp.org>
66195
66196         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66197         invocation.
66198
66199 2006-10-19  Bruno Haible  <bruno@clisp.org>
66200
66201         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66202         mountlist by default.
66203
66204 2006-10-16  Bruno Haible  <bruno@clisp.org>
66205
66206         * lib/c-strstr.c: Include c-strstr.h.
66207
66208 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66209
66210         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66211         in a slash.
66212
66213 2006-10-18  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/lock.h [C++]: Wrap definitions in extern "C".
66216
66217 2006-10-18  Bruno Haible  <bruno@clisp.org>
66218
66219         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66220         gl_LIBOBJS list.
66221
66222 2006-10-18  Bruno Haible  <bruno@clisp.org>
66223
66224         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66225
66226 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * lib/xstrtol.h: Include gettext.h.
66229         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66230         Problem reported by Eric Blake.
66231         * modules/xstrtol (Depends-on): Add gettext-h.
66232
66233 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66234
66235         * lib/strftime.c (advance): New macro.
66236         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66237         incomplete type, so you can't add 0 to it.  Problem and patch
66238         reported by Eelco Dolstra for dietlibc.
66239
66240 2006-10-18  Jim Meyering  <jim@meyering.net>
66241
66242         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66243         type for a local, and rename it: s/up/user_proc/.
66244
66245 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66246
66247         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66248         READ_UTMP_USER_PROCESS.
66249         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66250
66251 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66254         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66255
66256 2006-10-17  Eric Blake  <ebb9@byu.net>
66257
66258         * lib/sigprocmask.c (sigprocmask): Fix typo.
66259
66260         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66261
66262         * modules/clean-temp (Makefile.am): Don't add to make output...
66263         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66264         config.h.
66265
66266 2006-10-17  Bruno Haible  <bruno@clisp.org>
66267
66268         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66269         differently if DEFAULT_TEXT_DOMAIN is set.
66270
66271 2006-10-16  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/clean-temp.c: Include fwriteerror.h.
66274
66275 2006-10-16  Bruno Haible  <bruno@clisp.org>
66276
66277         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66278
66279 2006-10-16  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66282         * lib/sigprocmask.h: Include <sys/types.h>.
66283         (sigset_t): Use the system's definition if present.
66284
66285 2006-10-17  Eric Blake  <ebb9@byu.net>
66286
66287         * lib/xvasprintf.c (includes): Assume config.h.
66288         * lib/xasprintf.c (includes): Likewise.
66289
66290 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66293         at least as wide as intmax_t.
66294
66295 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66296
66297         (Imported from Automake.)
66298         * build-aux/gnupload: Update to version 1.1 of directive file.
66299
66300 2006-10-16  Eric Blake  <ebb9@byu.net>
66301
66302         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66303         match Automake 1.10a.
66304
66305 2006-10-14  Bruno Haible  <bruno@clisp.org>
66306
66307         * modules/sigprocmask: New file.
66308         * lib/sigprocmask.h: New file.
66309         * lib/sigprocmask.c: New file.
66310         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66311         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66312         request sigprocmask.o.
66313         (gl_PREREQ_SIGPROCMASK): New macro.
66314         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66315         (Depends-on): Add sigprocmask.
66316         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66317         gt_SIGNALBLOCKING. Test for 'raise' only once.
66318         * lib/fatal-signal.c: Include sigprocmask.h.
66319         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66320         unblock_fatal_signals): Define always.
66321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66322         sigprocmask.
66323
66324 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66325
66326         Sync from Automake.
66327         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66328         which incorrectly sets the mode of an existing destination
66329         directory.  In some cases the unpatched install-sh could do the
66330         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66331         system.  We hope this is rare in practice, but it's clearly worth
66332         fixing.  Problem reported by Alex Unleashed in
66333         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66334         Also, don't bother to check for -m bugs unless we're using -m;
66335         suggested by Stepan Kasal.
66336
66337 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66338
66339         Sync from Automake.
66340         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66341         `-c' flag, so they appear at the same position as in %FASTDEP%
66342         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66343         which ignores unknown options only after the first non-option.
66344         Bug report against M4 by Nelson H. F. Beebe.
66345
66346 2006-10-13  Jim Meyering  <jim@meyering.net>
66347
66348         Fix a bug in yesterday's change.
66349         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66350         p->fts_statp->st_dev would be used uninitialized.
66351         Ensures that we always call fts_stat on the very first entry.
66352         Miklos Szeredi reported that find -xdev stopped working.
66353
66354 2006-10-12  Bruno Haible  <bruno@clisp.org>
66355
66356         * gnulib-tool (func_get_automake_snippet): Append an automatically
66357         computed EXTRA_DIST augmentation.
66358         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66359         * modules/alloca-opt (Makefile.am): Likewise.
66360         * modules/allocsa (Makefile.am): Likewise.
66361         * modules/arcfour (Makefile.am): Likewise.
66362         * modules/arctwo (Makefile.am): Likewise.
66363         * modules/argmatch (Makefile.am): Likewise.
66364         * modules/argz (Makefile.am): Likewise.
66365         * modules/atexit (Makefile.am): Likewise.
66366         * modules/backupfile (Makefile.am): Likewise.
66367         * modules/byteswap (Makefile.am): Likewise.
66368         * modules/c-strtod (Makefile.am): Likewise.
66369         * modules/c-strtold (Makefile.am): Likewise.
66370         * modules/calloc (Makefile.am): Likewise.
66371         * modules/canon-host (Makefile.am): Likewise.
66372         * modules/canonicalize (Makefile.am): Likewise.
66373         * modules/chdir-long (Makefile.am): Likewise.
66374         * modules/chdir-safer (Makefile.am): Likewise.
66375         * modules/check-version (Makefile.am): Likewise.
66376         * modules/chown (Makefile.am): Likewise.
66377         * modules/cloexec (Makefile.am): Likewise.
66378         * modules/close-stream (Makefile.am): Likewise.
66379         * modules/closeout (Makefile.am): Likewise.
66380         * modules/crc (Makefile.am): Likewise.
66381         * modules/csharpexec (Makefile.am): Likewise.
66382         * modules/cycle-check (Makefile.am): Likewise.
66383         * modules/des (Makefile.am): Likewise.
66384         * modules/dev-ino (Makefile.am): Likewise.
66385         * modules/dirfd (Makefile.am): Likewise.
66386         * modules/dirname (Makefile.am): Likewise.
66387         * modules/dup2 (Makefile.am): Likewise.
66388         * modules/eealloc (Makefile.am): Likewise.
66389         * modules/error (Makefile.am): Likewise.
66390         * modules/euidaccess (Makefile.am): Likewise.
66391         * modules/exclude (Makefile.am): Likewise.
66392         * modules/exitfail (Makefile.am): Likewise.
66393         * modules/fcntl-safer (Makefile.am): Likewise.
66394         * modules/fcntl (Makefile.am): Likewise.
66395         * modules/file-type (Makefile.am): Likewise.
66396         * modules/fileblocks (Makefile.am): Likewise.
66397         * modules/filemode (Makefile.am): Likewise.
66398         * modules/filenamecat (Makefile.am): Likewise.
66399         * modules/fnmatch (Makefile.am): Likewise.
66400         * modules/fopen-safer (Makefile.am): Likewise.
66401         * modules/fpending (Makefile.am): Likewise.
66402         * modules/fprintftime (Makefile.am): Likewise.
66403         * modules/free (Makefile.am): Likewise.
66404         * modules/fsusage (Makefile.am): Likewise.
66405         * modules/ftruncate (Makefile.am): Likewise.
66406         * modules/fts (Makefile.am): Likewise.
66407         * modules/gc-arcfour (Makefile.am): Likewise.
66408         * modules/gc-des (Makefile.am): Likewise.
66409         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66410         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66411         * modules/gc-md4 (Makefile.am): Likewise.
66412         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66413         * modules/gc-sha1 (Makefile.am): Likewise.
66414         * modules/gc (Makefile.am): Likewise.
66415         * modules/getaddrinfo (Makefile.am): Likewise.
66416         * modules/getcwd (Makefile.am): Likewise.
66417         * modules/getdelim (Makefile.am): Likewise.
66418         * modules/getdomainname (Makefile.am): Likewise.
66419         * modules/getgroups (Makefile.am): Likewise.
66420         * modules/gethostname (Makefile.am): Likewise.
66421         * modules/gethrxtime (Makefile.am): Likewise.
66422         * modules/getline (Makefile.am): Likewise.
66423         * modules/getloadavg (Makefile.am): Likewise.
66424         * modules/getlogin_r (Makefile.am): Likewise.
66425         * modules/getndelim2 (Makefile.am): Likewise.
66426         * modules/getopt (Makefile.am): Likewise.
66427         * modules/getpagesize (Makefile.am): Likewise.
66428         * modules/getpass-gnu (Makefile.am): Likewise.
66429         * modules/getpass (Makefile.am): Likewise.
66430         * modules/getsubopt (Makefile.am): Likewise.
66431         * modules/gettime (Makefile.am): Likewise.
66432         * modules/gettimeofday (Makefile.am): Likewise.
66433         * modules/getugroups (Makefile.am): Likewise.
66434         * modules/getusershell (Makefile.am): Likewise.
66435         * modules/glob (Makefile.am): Likewise.
66436         * modules/group-member (Makefile.am): Likewise.
66437         * modules/hard-locale (Makefile.am): Likewise.
66438         * modules/hash (Makefile.am): Likewise.
66439         * modules/hmac-md5 (Makefile.am): Likewise.
66440         * modules/hmac-sha1 (Makefile.am): Likewise.
66441         * modules/human (Makefile.am): Likewise.
66442         * modules/idcache (Makefile.am): Likewise.
66443         * modules/imaxabs (Makefile.am): Likewise.
66444         * modules/imaxdiv (Makefile.am): Likewise.
66445         * modules/inet_ntop (Makefile.am): Likewise.
66446         * modules/inet_pton (Makefile.am): Likewise.
66447         * modules/intprops (Makefile.am): Likewise.
66448         * modules/inttostr (Makefile.am): Likewise.
66449         * modules/inttypes (Makefile.am): Likewise.
66450         * modules/isapipe (Makefile.am): Likewise.
66451         * modules/javaversion (Makefile.am): Likewise.
66452         * modules/lchmod (Makefile.am): Likewise.
66453         * modules/lchown (Makefile.am): Likewise.
66454         * modules/localcharset (Makefile.am): Likewise.
66455         * modules/long-options (Makefile.am): Likewise.
66456         * modules/lstat (Makefile.am): Likewise.
66457         * modules/malloc (Makefile.am): Likewise.
66458         * modules/mathl (Makefile.am): Likewise.
66459         * modules/mbchar (Makefile.am): Likewise.
66460         * modules/md2 (Makefile.am): Likewise.
66461         * modules/md4 (Makefile.am): Likewise.
66462         * modules/md5 (Makefile.am): Likewise.
66463         * modules/memcasecmp (Makefile.am): Likewise.
66464         * modules/memchr (Makefile.am): Likewise.
66465         * modules/memcmp (Makefile.am): Likewise.
66466         * modules/memcoll (Makefile.am): Likewise.
66467         * modules/memcpy (Makefile.am): Likewise.
66468         * modules/memmem (Makefile.am): Likewise.
66469         * modules/memmove (Makefile.am): Likewise.
66470         * modules/mempcpy (Makefile.am): Likewise.
66471         * modules/memrchr (Makefile.am): Likewise.
66472         * modules/memset (Makefile.am): Likewise.
66473         * modules/memxor (Makefile.am): Likewise.
66474         * modules/mkancesdirs (Makefile.am): Likewise.
66475         * modules/mkdir-p (Makefile.am): Likewise.
66476         * modules/mkdir (Makefile.am): Likewise.
66477         * modules/mkdtemp (Makefile.am): Likewise.
66478         * modules/mkstemp (Makefile.am): Likewise.
66479         * modules/mktime (Makefile.am): Likewise.
66480         * modules/modechange (Makefile.am): Likewise.
66481         * modules/mountlist (Makefile.am): Likewise.
66482         * modules/nanosleep (Makefile.am): Likewise.
66483         * modules/obstack (Makefile.am): Likewise.
66484         * modules/openat (Makefile.am): Likewise.
66485         * modules/pagealign_alloc (Makefile.am): Likewise.
66486         * modules/pathmax (Makefile.am): Likewise.
66487         * modules/physmem (Makefile.am): Likewise.
66488         * modules/poll (Makefile.am): Likewise.
66489         * modules/posixtm (Makefile.am): Likewise.
66490         * modules/posixver (Makefile.am): Likewise.
66491         * modules/putenv (Makefile.am): Likewise.
66492         * modules/quote (Makefile.am): Likewise.
66493         * modules/quotearg (Makefile.am): Likewise.
66494         * modules/raise (Makefile.am): Likewise.
66495         * modules/read-file (Makefile.am): Likewise.
66496         * modules/readline (Makefile.am): Likewise.
66497         * modules/readlink (Makefile.am): Likewise.
66498         * modules/readtokens (Makefile.am): Likewise.
66499         * modules/readutmp (Makefile.am): Likewise.
66500         * modules/realloc (Makefile.am): Likewise.
66501         * modules/regex (Makefile.am): Likewise.
66502         * modules/rename-dest-slash (Makefile.am): Likewise.
66503         * modules/rename (Makefile.am): Likewise.
66504         * modules/rijndael (Makefile.am): Likewise.
66505         * modules/rmdir (Makefile.am): Likewise.
66506         * modules/rpmatch (Makefile.am): Likewise.
66507         * modules/safe-read (Makefile.am): Likewise.
66508         * modules/safe-write (Makefile.am): Likewise.
66509         * modules/same-inode (Makefile.am): Likewise.
66510         * modules/same (Makefile.am): Likewise.
66511         * modules/save-cwd (Makefile.am): Likewise.
66512         * modules/savedir (Makefile.am): Likewise.
66513         * modules/setenv (Makefile.am): Likewise.
66514         * modules/settime (Makefile.am): Likewise.
66515         * modules/sha1 (Makefile.am): Likewise.
66516         * modules/sig2str (Makefile.am): Likewise.
66517         * modules/snprintf (Makefile.am): Likewise.
66518         * modules/stat-macros (Makefile.am): Likewise.
66519         * modules/stat-time (Makefile.am): Likewise.
66520         * modules/stdbool (Makefile.am): Likewise.
66521         * modules/stdint (Makefile.am): Likewise.
66522         * modules/stdlib-safer (Makefile.am): Likewise.
66523         * modules/stpcpy (Makefile.am): Likewise.
66524         * modules/stpncpy (Makefile.am): Likewise.
66525         * modules/strcase (Makefile.am): Likewise.
66526         * modules/strcasestr (Makefile.am): Likewise.
66527         * modules/strchrnul (Makefile.am): Likewise.
66528         * modules/strcspn (Makefile.am): Likewise.
66529         * modules/strdup (Makefile.am): Likewise.
66530         * modules/strerror (Makefile.am): Likewise.
66531         * modules/strftime (Makefile.am): Likewise.
66532         * modules/strndup (Makefile.am): Likewise.
66533         * modules/strnlen (Makefile.am): Likewise.
66534         * modules/strpbrk (Makefile.am): Likewise.
66535         * modules/strsep (Makefile.am): Likewise.
66536         * modules/strstr (Makefile.am): Likewise.
66537         * modules/strtod (Makefile.am): Likewise.
66538         * modules/strtoimax (Makefile.am): Likewise.
66539         * modules/strtok_r (Makefile.am): Likewise.
66540         * modules/strtol (Makefile.am): Likewise.
66541         * modules/strtoll (Makefile.am): Likewise.
66542         * modules/strtoul (Makefile.am): Likewise.
66543         * modules/strtoull (Makefile.am): Likewise.
66544         * modules/strtoumax (Makefile.am): Likewise.
66545         * modules/strverscmp (Makefile.am): Likewise.
66546         * modules/sys_socket (Makefile.am): Likewise.
66547         * modules/sys_stat (Makefile.am): Likewise.
66548         * modules/sysexits (Makefile.am): Likewise.
66549         * modules/time_r (Makefile.am): Likewise.
66550         * modules/timegm (Makefile.am): Likewise.
66551         * modules/timespec (Makefile.am): Likewise.
66552         * modules/tmpfile-safer (Makefile.am): Likewise.
66553         * modules/trim (Makefile.am): Likewise.
66554         * modules/unistd-safer (Makefile.am): Likewise.
66555         * modules/unlinkdir (Makefile.am): Likewise.
66556         * modules/unlocked-io (Makefile.am): Likewise.
66557         * modules/userspec (Makefile.am): Likewise.
66558         * modules/utime (Makefile.am): Likewise.
66559         * modules/utimecmp (Makefile.am): Likewise.
66560         * modules/utimens (Makefile.am): Likewise.
66561         * modules/vasnprintf (Makefile.am): Likewise.
66562         * modules/vasprintf (Makefile.am): Likewise.
66563         * modules/vsnprintf (Makefile.am): Likewise.
66564         * modules/xalloc (Makefile.am): Likewise.
66565         * modules/xgetcwd (Makefile.am): Likewise.
66566         * modules/xnanosleep (Makefile.am): Likewise.
66567         * modules/xreadlink (Makefile.am): Likewise.
66568         * modules/xstrtod (Makefile.am): Likewise.
66569         * modules/xstrtol (Makefile.am): Likewise.
66570         * modules/xstrtold (Makefile.am): Likewise.
66571         * modules/yesno (Makefile.am): Likewise.
66572         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66573
66574 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66575
66576         * modules/error (Makefile.am): Distribute files through
66577         EXTRA_DIST, not lib_SOURCES.
66578
66579 2006-10-12  Eric Blake  <ebb9@byu.net>
66580
66581         * modules/error (Makefile.am): Distribute files in /lib.
66582         * modules/obstack (Makefile.am): Likewise.
66583
66584 2006-10-12  Bruno Haible  <bruno@clisp.org>
66585
66586         * modules/acl (Makefile.am): Distribute all files in lib/ through
66587         EXTRA_DIST.
66588         * modules/arcfour (Makefile.am): Likewise.
66589         * modules/arctwo (Makefile.am): Likewise.
66590         * modules/argmatch (Makefile.am): Likewise.
66591         * modules/argz (Makefile.am): Likewise.
66592         * modules/atexit (Makefile.am): Likewise.
66593         * modules/backupfile (Makefile.am): Likewise.
66594         * modules/c-strtod (Makefile.am): Likewise.
66595         * modules/c-strtold (Makefile.am): Likewise.
66596         * modules/calloc (Makefile.am): Likewise.
66597         * modules/canon-host (Makefile.am): Likewise.
66598         * modules/canonicalize (Makefile.am): Likewise.
66599         * modules/chdir-long (Makefile.am): Likewise.
66600         * modules/chdir-safer (Makefile.am): Likewise.
66601         * modules/check-version (Makefile.am): Likewise.
66602         * modules/chown (Makefile.am): Likewise.
66603         * modules/cloexec (Makefile.am): Likewise.
66604         * modules/close-stream (Makefile.am): Likewise.
66605         * modules/closeout (Makefile.am): Likewise.
66606         * modules/crc (Makefile.am): Likewise.
66607         * modules/cycle-check (Makefile.am): Likewise.
66608         * modules/des (Makefile.am): Likewise.
66609         * modules/dirfd (Makefile.am): Likewise.
66610         * modules/dirname (Makefile.am): Likewise.
66611         * modules/dup2 (Makefile.am): Likewise.
66612         * modules/euidaccess (Makefile.am): Likewise.
66613         * modules/exclude (Makefile.am): Likewise.
66614         * modules/exitfail (Makefile.am): Likewise.
66615         * modules/fcntl-safer (Makefile.am): Likewise.
66616         * modules/file-type (Makefile.am): Likewise.
66617         * modules/fileblocks (Makefile.am): Likewise.
66618         * modules/filemode (Makefile.am): Likewise.
66619         * modules/filenamecat (Makefile.am): Likewise.
66620         * modules/fnmatch (Makefile.am): Likewise.
66621         * modules/fopen-safer (Makefile.am): Likewise.
66622         * modules/fpending (Makefile.am): Likewise.
66623         * modules/fprintftime (Makefile.am): Likewise.
66624         * modules/free (Makefile.am): Likewise.
66625         * modules/fsusage (Makefile.am): Likewise.
66626         * modules/ftruncate (Makefile.am): Likewise.
66627         * modules/fts (Makefile.am): Likewise.
66628         * modules/gc (Makefile.am): Likewise.
66629         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66630         * modules/getaddrinfo (Makefile.am): Likewise.
66631         * modules/getcwd (Makefile.am): Likewise.
66632         * modules/getdelim (Makefile.am): Likewise.
66633         * modules/getdomainname (Makefile.am): Likewise.
66634         * modules/getgroups (Makefile.am): Likewise.
66635         * modules/gethostname (Makefile.am): Likewise.
66636         * modules/gethrxtime (Makefile.am): Likewise.
66637         * modules/getline (Makefile.am): Likewise.
66638         * modules/getloadavg (Makefile.am): Likewise.
66639         * modules/getlogin_r (Makefile.am): Likewise.
66640         * modules/getopt (Makefile.am): Likewise.
66641         * modules/getpass (Makefile.am): Likewise.
66642         * modules/getpass-gnu (Makefile.am): Likewise.
66643         * modules/getsubopt (Makefile.am): Likewise.
66644         * modules/gettime (Makefile.am): Likewise.
66645         * modules/gettimeofday (Makefile.am): Likewise.
66646         * modules/getugroups (Makefile.am): Likewise.
66647         * modules/getusershell (Makefile.am): Likewise.
66648         * modules/glob (Makefile.am): Likewise.
66649         * modules/group-member (Makefile.am): Likewise.
66650         * modules/hard-locale (Makefile.am): Likewise.
66651         * modules/hash (Makefile.am): Likewise.
66652         * modules/hmac-md5 (Makefile.am): Likewise.
66653         * modules/hmac-sha1 (Makefile.am): Likewise.
66654         * modules/human (Makefile.am): Likewise.
66655         * modules/idcache (Makefile.am): Likewise.
66656         * modules/imaxabs (Makefile.am): Likewise.
66657         * modules/imaxdiv (Makefile.am): Likewise.
66658         * modules/inet_ntop (Makefile.am): Likewise.
66659         * modules/inet_pton (Makefile.am): Likewise.
66660         * modules/inttostr (Makefile.am): Likewise.
66661         * modules/isapipe (Makefile.am): Likewise.
66662         * modules/lchown (Makefile.am): Likewise.
66663         * modules/long-options (Makefile.am): Likewise.
66664         * modules/lstat (Makefile.am): Likewise.
66665         * modules/malloc (Makefile.am): Likewise.
66666         * modules/mathl (Makefile.am): Likewise.
66667         * modules/mbchar (Makefile.am): Likewise.
66668         * modules/md2 (Makefile.am): Likewise.
66669         * modules/md4 (Makefile.am): Likewise.
66670         * modules/md5 (Makefile.am): Likewise.
66671         * modules/memcasecmp (Makefile.am): Likewise.
66672         * modules/memchr (Makefile.am): Likewise.
66673         * modules/memcmp (Makefile.am): Likewise.
66674         * modules/memcoll (Makefile.am): Likewise.
66675         * modules/memcpy (Makefile.am): Likewise.
66676         * modules/memmem (Makefile.am): Likewise.
66677         * modules/memmove (Makefile.am): Likewise.
66678         * modules/mempcpy (Makefile.am): Likewise.
66679         * modules/memrchr (Makefile.am): Likewise.
66680         * modules/memset (Makefile.am): Likewise.
66681         * modules/memxor (Makefile.am): Likewise.
66682         * modules/mkancesdirs (Makefile.am): Likewise.
66683         * modules/mkdir (Makefile.am): Likewise.
66684         * modules/mkdir-p (Makefile.am): Likewise.
66685         * modules/mkdtemp (Makefile.am): Likewise.
66686         * modules/mkstemp (Makefile.am): Likewise.
66687         * modules/mktime (Makefile.am): Likewise.
66688         * modules/modechange (Makefile.am): Likewise.
66689         * modules/mountlist (Makefile.am): Likewise.
66690         * modules/nanosleep (Makefile.am): Likewise.
66691         * modules/openat (Makefile.am): Likewise.
66692         * modules/pagealign_alloc (Makefile.am): Likewise.
66693         * modules/physmem (Makefile.am): Likewise.
66694         * modules/poll (Makefile.am): Likewise.
66695         * modules/posixtm (Makefile.am): Likewise.
66696         * modules/posixver (Makefile.am): Likewise.
66697         * modules/putenv (Makefile.am): Likewise.
66698         * modules/quote (Makefile.am): Likewise.
66699         * modules/quotearg (Makefile.am): Likewise.
66700         * modules/raise (Makefile.am): Likewise.
66701         * modules/read-file (Makefile.am): Likewise.
66702         * modules/readline (Makefile.am): Likewise.
66703         * modules/readlink (Makefile.am): Likewise.
66704         * modules/readtokens (Makefile.am): Likewise.
66705         * modules/readutmp (Makefile.am): Likewise.
66706         * modules/realloc (Makefile.am): Likewise.
66707         * modules/regex (Makefile.am): Likewise.
66708         * modules/rename (Makefile.am): Likewise.
66709         * modules/rename-dest-slash (Makefile.am): Likewise.
66710         * modules/rijndael (Makefile.am): Likewise.
66711         * modules/rmdir (Makefile.am): Likewise.
66712         * modules/rpmatch (Makefile.am): Likewise.
66713         * modules/safe-read (Makefile.am): Likewise.
66714         * modules/safe-write (Makefile.am): Likewise.
66715         * modules/same (Makefile.am): Likewise.
66716         * modules/save-cwd (Makefile.am): Likewise.
66717         * modules/savedir (Makefile.am): Likewise.
66718         * modules/setenv (Makefile.am): Likewise.
66719         * modules/settime (Makefile.am): Likewise.
66720         * modules/sha1 (Makefile.am): Likewise.
66721         * modules/sig2str (Makefile.am): Likewise.
66722         * modules/snprintf (Makefile.am): Likewise.
66723         * modules/stdlib-safer (Makefile.am): Likewise.
66724         * modules/stpcpy (Makefile.am): Likewise.
66725         * modules/stpncpy (Makefile.am): Likewise.
66726         * modules/strcase (Makefile.am): Likewise.
66727         * modules/strcasestr (Makefile.am): Likewise.
66728         * modules/strchrnul (Makefile.am): Likewise.
66729         * modules/strcspn (Makefile.am): Likewise.
66730         * modules/strdup (Makefile.am): Likewise.
66731         * modules/strerror (Makefile.am): Likewise.
66732         * modules/strftime (Makefile.am): Likewise.
66733         * modules/strndup (Makefile.am): Likewise.
66734         * modules/strnlen (Makefile.am): Likewise.
66735         * modules/strpbrk (Makefile.am): Likewise.
66736         * modules/strsep (Makefile.am): Likewise.
66737         * modules/strstr (Makefile.am): Likewise.
66738         * modules/strtod (Makefile.am): Likewise.
66739         * modules/strtoimax (Makefile.am): Likewise.
66740         * modules/strtok_r (Makefile.am): Likewise.
66741         * modules/strtol (Makefile.am): Likewise.
66742         * modules/strtoll (Makefile.am): Likewise.
66743         * modules/strtoul (Makefile.am): Likewise.
66744         * modules/strtoull (Makefile.am): Likewise.
66745         * modules/strtoumax (Makefile.am): Likewise.
66746         * modules/strverscmp (Makefile.am): Likewise.
66747         * modules/time_r (Makefile.am): Likewise.
66748         * modules/timegm (Makefile.am): Likewise.
66749         * modules/tmpfile-safer (Makefile.am): Likewise.
66750         * modules/unistd-safer (Makefile.am): Likewise.
66751         * modules/unlinkdir (Makefile.am): Likewise.
66752         * modules/userspec (Makefile.am): Likewise.
66753         * modules/utime (Makefile.am): Likewise.
66754         * modules/utimecmp (Makefile.am): Likewise.
66755         * modules/utimens (Makefile.am): Likewise.
66756         * modules/vasnprintf (Makefile.am): Likewise.
66757         * modules/vasprintf (Makefile.am): Likewise.
66758         * modules/vsnprintf (Makefile.am): Likewise.
66759         * modules/xalloc (Makefile.am): Likewise.
66760         * modules/xgetcwd (Makefile.am): Likewise.
66761         * modules/xnanosleep (Makefile.am): Likewise.
66762         * modules/xreadlink (Makefile.am): Likewise.
66763         * modules/xstrtod (Makefile.am): Likewise.
66764         * modules/xstrtol (Makefile.am): Likewise.
66765         * modules/xstrtold (Makefile.am): Likewise.
66766         * modules/yesno (Makefile.am): Likewise.
66767
66768 2006-10-12  Jim Meyering  <jim@meyering.net>
66769
66770         * m4/getloadavg.m4: Revert the change below.
66771
66772         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66773         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66774         fail with a symlink, which is what coreutils' ./bootstrap now
66775         creates by default.
66776
66777 2006-10-12  Bruno Haible  <bruno@clisp.org>
66778
66779         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66780         mingw.
66781         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66782         MSVC and mingw explicitly.
66783
66784 2006-10-11  Simon Josefsson  <jas@extundo.com>
66785             Bruno Haible  <bruno@clisp.org>
66786
66787         Add support for multiple gnulib-tool invocations in the scope of a
66788         single configure.ac file.
66789         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66790         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66791         with the same contents as the _LIBADD variable.
66792         (func_emit_initmacro_start, func_emit_initmacro_end,
66793         func_emit_initmacro_done): New functions.
66794         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66795         gl_LIBOBJS and gl_LTLIBOBJS.
66796
66797 2006-10-11  Bruno Haible  <bruno@clisp.org>
66798
66799         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66800         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66801         autoreconf. Instead, invoke autopoint explicitly but move back the
66802         *.m4 files from gnulib.
66803
66804 2006-10-11  Bruno Haible  <bruno@clisp.org>
66805
66806         * gnulib-tool (func_usage): Make module names after --create-testdir
66807         optional.
66808         (func_create_testdir): If no module was specified, use nearly all
66809         modules.
66810
66811 2006-10-12  Jim Meyering  <jim@meyering.net>
66812
66813         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66814         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66815         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66816         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66817         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66818         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66819         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66820         (fts_set_stat_required): New function.
66821         (fts_open): Defer the calls to fts_stat, if possible or requested.
66822         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66823         into fts_stat itself.
66824         (fts_read): Perform any required (deferred) fts_stat call.
66825         (fts_build): Likewise, for the directory we're about to open and read.
66826         In the readdir loop, carefully decide whether each entry will require
66827         an eventual call to fts_stat, using dirent.d_type info if available.
66828         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66829         a command line argument into this function.  Update all callers.
66830         Map a return value of FTS_DOT to FTS_D for a command line argument.
66831         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66832         Thanks to Miklos Szeredi for his tenacity and for the initial
66833         bug report about "find" failing on a FUSE-based file system.
66834
66835         * lib/fts.c (fts_open): Use consistent indentation.
66836
66837 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66840         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66841         reported by Jim Meyering.  All uses of cache variables renamed
66842         to match Autoconf's.
66843         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66844         the other one.
66845
66846         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66847         Fix misspelling in diagnostic.
66848
66849 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66850
66851         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66852         defined.  Problem reported by Matthew Woehlke.
66853
66854         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66855         Add support for Tandem NonStop R series.
66856         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66857         Use new macro.
66858
66859         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66860         (has_trailing_slash): Omit size arg; all callers changed.
66861         Omit 'inline', since it doesn't help performance and we'd
66862         need to configure it.
66863         Don't count //, ///, etc. as having a trailing slash.
66864         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66865         (rpl_rename_dest_slash): On failure, use rename's errno rather
66866         than (in some cases) an incorrect or junk errno.
66867         Simplify code by removing need to compute length; this does
66868         cause it to make two passes instead of one over the file name,
66869         but it's worth it.
66870
66871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66872         change, since Autoconf's version may no longer be appropriate now
66873         that we are using CVS Autoconf's version.  Add support for Tandem.
66874
66875 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66876             Bruno Haible  <bruno@clisp.org>
66877
66878         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66879         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66880         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66881         gl_AC_TYPE_LONG_LONG.
66882
66883         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66884         instead of HAVE_LONG_LONG.
66885         * lib/printf-args.c (printf_fetchargs): Likewise.
66886         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66887         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66888         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66889         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66890         gl_AC_TYPE_LONG_LONG.
66891
66892 2006-10-11  Bruno Haible  <bruno@clisp.org>
66893
66894         * m4/longlong.m4: Add comments.
66895         * m4/ulonglong.m4: Likewise.
66896
66897 2006-10-10  Bruno Haible  <bruno@clisp.org>
66898
66899         Make it possible to #define stpcpy, strdup to aliases.
66900         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66901         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66902
66903 2006-10-10  Bruno Haible  <bruno@clisp.org>
66904
66905         Make it possible to #define gcd to an alias.
66906         * lib/gcd.c: Include config.h.
66907
66908 2006-10-10  Bruno Haible  <bruno@clisp.org>
66909
66910         Make it possible to #define c_isascii to an alias.
66911         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66912         defined. Undefine the macros before defining them, to avoid gcc
66913         warnings.
66914         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66915         define NO_C_CTYPE_MACROS early.
66916
66917 2006-10-10  Bruno Haible  <bruno@clisp.org>
66918
66919         Make it possible to #define set_program_name to an alias.
66920         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66921         ENABLE_RELOCATABLE early.
66922
66923 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66926         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66927         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66928         More generally, don't assume that 64-bit signed int is available
66929         if unsigned int is, and vice versa.
66930         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66931         unsigned symbols, not on their signed counterparts.
66932         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66933         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66934         (UINT64_C, UINTMAX_C):
66935         Likewise.
66936         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66937         unsigned counterparts.
66938         (Have_long_long, Unsigned): New macros.
66939         (Int): Renamed from INT.
66940         (strtoimax): Use the new macros.
66941         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66942         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66943         * modules/inttypes (inttypes.h): Substitute
66944         HAVE_UNSIGNED_LONG_LONG_INT.
66945         * modules/stdint (stdint.h): Likewise.
66946         (Files): Add m4/ulonglong.m4.
66947
66948 2006-10-10  Bruno Haible  <bruno@clisp.org>
66949
66950         Fix a gcc -Wshadow warning.
66951         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66952         to 'bucket'.
66953         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66954         gl_linked_indexof_from_to): Likewise.
66955         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66956         Likewise.
66957         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66958         Likewise.
66959         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66960         Reported by Eric Blake.
66961
66962 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66965         for NetBSD.  Problem reported by Bruno Haible.
66966
66967 2006-10-09  Jim Meyering  <jim@meyering.net>
66968
66969         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66970         Patch from Bruno Haible.
66971
66972 2006-10-09  Jim Meyering  <jim@meyering.net>
66973
66974         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66975         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66976         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66977
66978 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         Don't include <config.h> twice; this doesn't work in some cases,
66981         e.g., when config.h has "#define intmax_t long long int" and
66982         we include <config.h>, <inttypes.h>, <config.h> in that order.
66983         Problem reported by Matthew Woehlke in:
66984         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66985         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66986         * lib/fts-cycle.c: Don't include config.h.
66987         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66988         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66989         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66990         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66991         inttypes.h.
66992         * lib/xstrtoumax.c: Likewise.
66993         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66994         __strtol and the like, so that this module is more like its siblings.
66995         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66996         Remove; no longer needed now that we assume gnulib inttypes.h.
66997
66998 2006-10-08  Bruno Haible  <bruno@clisp.org>
66999
67000         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67001         option.
67002
67003 2006-10-07  Jim Meyering  <jim@meyering.net>
67004
67005         * modules/inttypes (inttypes.h): Revert what seems to have been
67006         an inadvertent part of today's change: use "|", not "/" in the
67007         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67008
67009 2006-10-07  Bruno Haible  <bruno@clisp.org>
67010
67011         * modules/sublist: New file.
67012
67013 2006-10-07  Bruno Haible  <bruno@clisp.org>
67014
67015         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67016         * modules/argz (argz.h): Likewise.
67017         * modules/arpa_inet (arpa/inet.h): Likewise.
67018         * modules/byteswap (byteswap.h): Likewise.
67019         * modules/configmake (configmake.h): Likewise.
67020         * modules/fcntl (fcntl.h): Likewise.
67021         * modules/fnmatch (fnmatch.h): Likewise.
67022         * modules/getopt (getopt.h): Likewise.
67023         * modules/glob (glob.h): Likewise.
67024         * modules/inttypes (inttypes.h): Likewise.
67025         * modules/netinet_in (netinet/in.h): Likewise.
67026         * modules/poll (poll.h): Likewise.
67027         * modules/stdbool (stdbool.h): Likewise.
67028         * modules/stdint (stdint.h): Likewise.
67029         * modules/sys_select (sys/select.h): Likewise.
67030         * modules/sys_socket (sys/socket.h): Likewise.
67031         * modules/sys_stat (sys/stat.h): Likewise.
67032         * modules/sysexits (sysexits.h): Likewise.
67033         * modules/unistd (unistd.h): Likewise.
67034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67035         Add a "DO NOT EDIT" comment to the generated file.
67036         (func_import): Likewise for gnulib-comp.m4.
67037
67038 2006-10-07  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/gl_sublist.h: New file.
67041         * lib/gl_sublist.c: New file.
67042
67043 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67044
67045         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67046         name (relative to the original working directory) and the file
67047         name component (relative to the temporary working directory).  All
67048         callers changed.
67049         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67050         * lib/mkdir-p.c (make_dir_parents): Likewise.
67051         * lib/mkdir-p.h (make_dir_parents): Likewise.
67052
67053 2006-10-06  Eric Blake  <ebb9@byu.net>
67054
67055         Define several macros for use by the clean-temp module.
67056         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67057         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67058         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67059
67060         * lib/clean-temp.h (close_stream_temp): New declaration.
67061         * lib/clean-temp.c (includes): Pull in headers according to what
67062         other modules are in use.
67063         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67064
67065 2006-10-06  Bruno Haible  <bruno@clisp.org>
67066
67067         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67068         instead of fopen, fwriteerror.
67069
67070 2006-10-06  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67073         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67074         int.
67075         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67076         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67077         Return an error indicator.
67078         Suggested by Eric Blake.
67079
67080 2006-10-06  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67083         Reported by Eric Blake.
67084
67085 2006-10-06  Bruno Haible  <bruno@clisp.org>
67086
67087         * modules/closeout (Description): Mention stderr too.
67088
67089 2006-10-06  Bruno Haible  <bruno@clisp.org>
67090         and Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/closeout.c (close_stdout): Also close stderr.
67093         * lib/closeout.h: Update comment.
67094
67095 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67098         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67099         * lib/dirchownmod.c: Include lchown.h.
67100         * lib/lchown.c: Don't include files that lchown.h now includes.
67101         Don't declare chown, since lchown.h now does that.
67102         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67103         (lchown): Define to rpl_chown if lchown is declared but
67104         does not exist.  Declare using a prototype if lchown is not
67105         declared.  Add a copyright notice.
67106         * lib/mkstemp.h: Include <unistd.h>.
67107         * lib/openat.c: Include lchown.h.
67108
67109         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67110         we now test for that separately.
67111         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67112         rather than O_NOFOLLOW, when testing whether it's possible to
67113         avoid a race condition reliably.
67114         * lib/savewd.c (savewd_chdir): Likewise.
67115
67116         Remove macros that are no longer needed now that stdint.h is
67117         reliable.
67118         * lib/fsusage.c (UINTMAX_MAX): Remove.
67119         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67120         * lib/utimecmp.c (SIZE_MAX): Remove.
67121
67122         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67123
67124         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67125         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67126         O_NOATIME works.
67127
67128 2006-10-05  Bruno Haible  <bruno@clisp.org>
67129
67130         * lib/gl_list.h (gl_sortedlist_search_from_to,
67131         gl_sortedlist_indexof_from_to): New declarations.
67132         (gl_list_implementation): New fields sortedlist_search_from_to,
67133         sortedlist_indexof_from_to.
67134         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67135         inline functions.
67136         * lib/gl_list.c (gl_sortedlist_search_from_to,
67137         gl_sortedlist_indexof_from_to): New functions.
67138         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67139         function.
67140         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67141         (gl_array_sortedlist_search_from_to): New function.
67142         (gl_array_list_implementation): Update.
67143         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67144         function.
67145         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67146         (gl_carray_sortedlist_search_from_to): New function.
67147         (gl_carray_list_implementation): Update.
67148         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67149         gl_linked_sortedlist_indexof_from_to): New functions.
67150         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67151         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67152         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67153         gl_tree_sortedlist_indexof_from_to): New functions.
67154         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67155         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67156         Update.
67157         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67158         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67159         Update.
67160
67161 2006-10-05  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67164         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67165         (struct gl_list_implementation): Add fields search_from_to,
67166         indexof_from_to. Remove fields search, indexof.
67167         (gl_list_search): Use the search_from_to method.
67168         (gl_list_search_from, gl_list_search_from_to): New functions.
67169         (gl_list_indexof): Use the indexof_from_to method.
67170         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67171         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67172         (gl_list_search_from, gl_list_search_from_to): New functions.
67173         (gl_list_indexof): Use the indexof_from_to method.
67174         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67175         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67176         gl_array_indexof. Add start_index, end_index arguments.
67177         (gl_array_search_from_to): Renamed from gl_array_search. Add
67178         start_index, end_index arguments.
67179         (gl_array_remove, gl_array_list_implementation): Update.
67180         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67181         gl_carray_indexof. Add start_index, end_index arguments.
67182         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67183         start_index, end_index arguments.
67184         (gl_carray_remove, gl_carray_list_implementation): Update.
67185         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67186         gl_linked_search. Add start_index, end_index arguments.
67187         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67188         start_index, end_index arguments.
67189         (gl_linked_remove): Update.
67190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67192         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67193         field to 'size_t'.
67194         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67195         gl_tree_search. Add start_index, end_index arguments.
67196         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67197         start_index, end_index arguments.
67198         (gl_tree_remove): Update.
67199         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67200         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67201         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67202         function.
67203         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67204         gl_tree_search. Add start_index, end_index arguments.
67205         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67206         start_index, end_index arguments.
67207         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67208         Update.
67209         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67210
67211 2006-10-05  Bruno Haible  <bruno@clisp.org>
67212
67213         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67214
67215         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67216         fwriteerror_temp): New declarations.
67217         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67218         (descriptors): New variable.
67219         (cleanup): First, close the descriptors.
67220         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67221         fclose_temp, fwriteerror_temp): New functions.
67222
67223 2006-10-04  Jim Meyering  <jim@meyering.net>
67224
67225         * lib/fts.c (fts_open): Tiny comment change.
67226
67227 2006-10-04  Bruno Haible  <bruno@clisp.org>
67228
67229         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67230         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67231         gl_LOCK_BODY.
67232         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67233         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67234         gl_LOCK_EARLY_BODY.
67235         (gl_LOCK): Require gl_LOCK_BODY.
67236
67237 2006-10-04  Bruno Haible  <bruno@clisp.org>
67238
67239         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67240         (gl_oset_search_atleast): New declaration.
67241         (struct gl_oset_implementation): Add field 'search_atleast'.
67242         (gl_oset_search_atleast): New inline function.
67243         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67244         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67245         (gl_array_oset_implementation): Update.
67246         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67247         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67248         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67249
67250 2006-10-04  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67253
67254 2006-10-03  Bruno Haible  <bruno@clisp.org>
67255
67256         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67257         from gl_avltreehash_list_implementation.
67258
67259 2006-10-03  Bruno Haible  <bruno@clisp.org>
67260
67261         * lib/gl_oset.c (gl_oset_add): Fix return type.
67262
67263 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67264
67265         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67266
67267 2006-10-02  Eric Blake  <ebb9@byu.net>
67268
67269         * modules/strnlen (Depends-on): Add extensions.
67270
67271 2006-10-02  Eric Blake  <ebb9@byu.net>
67272
67273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67274         definition in 2.60+.
67275
67276 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67277
67278         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67279         checks.
67280
67281 2006-10-02  Bruno Haible  <bruno@clisp.org>
67282
67283         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67284         to the AUTOMAKE_OPTIONS.
67285         Reported by Jim Meyering.
67286
67287 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         Work around bug in Solaris 10 /proc file system:
67290         /proc/self/fd/NNN/.. isn't the parent directory of
67291         the directory whose file descriptor is NNN.  This needs to
67292         be worked around at run time, not compile time, since a
67293         program might be built on Solaris 8, where things work, and
67294         run on Solaris 10.
67295         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67296         to use the following interface instead:
67297         (OPENAT_BUFFER_SIZE): New macro.
67298         (openat_proc_name): New function.
67299         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67300         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67301         Likewise.
67302         * lib/openat-proc.c: New file.
67303         * modules/openat (Files): Add lib/openat-proc.c.
67304         (Depends-on): Add same-inode, stdbool.
67305         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67306
67307 2006-09-29  Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67310         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67311         argument. Set stdout_closed before testing for ferror, not after.
67312         (fwriteerror, fwriteerror_no_ebadf): New functions.
67313
67314 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67315
67316         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67317
67318 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67319
67320         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67321         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67322
67323 2006-09-28  Jim Meyering  <jim@meyering.net>
67324
67325         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67326         Include <unistd.h>.
67327
67328 2006-09-28  Bruno Haible  <bruno@clisp.org>
67329
67330         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67331         * modules/linkedhash-list (Depends-on): Likewise.
67332         * modules/rbtreehash-list (Depends-on): Likewise.
67333
67334 2006-09-28  Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/strndup.h: Simplify the redefinition of strndup.
67337         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67339
67340 2006-09-28  Bruno Haible  <bruno@clisp.org>
67341
67342         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67343         * lib/gl_linkedhash_list.c: Likewise.
67344         * lib/gl_rbtreehash_list.c: Likewise.
67345
67346 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67349         getaddrinfo.
67350
67351         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67352         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67353         it causes <stdio_ext.h> to cause a compile-time error.
67354         Problem reported by Nelson H. F. Beebe.
67355         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67356         of HAVE_DECL___PENDING.
67357
67358         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67359         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67360         declaration.
67361
67362 2006-09-27  Jim Meyering  <jim@meyering.net>
67363
67364         This file could end up with a definition for a function
67365         named __strndup, rather than rpl_strndup on a system with
67366         incomplete weak_alias support.
67367         * lib/strndup.c (strndup): Rename from __strndup.
67368         Remove #defines that used to map __strndup to strndup.
67369         Don't use K&R prototypes.
67370         Remove LIBC-related code, since this file is not sync'd with glibc.
67371         * lib/strndup.h: Revamp, accordingly.
67372         * m4/strndup.m4: Modernize.
67373
67374 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * modules/savewd (Depends-on): Add 'raise'.
67377         * lib/savewd.c: Include <signal.h>, for 'raise'.
67378
67379 2006-09-26  Jim Meyering  <jim@meyering.net>
67380
67381         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67382         when we detect Darwin 8.7.0's acl_get_file bug.
67383         Rearrange to perform the new (below) run-test while $LIBS
67384         contains any acl-related library.  Set USE_ACL at the end.
67385         (gl_ACL_GET_FILE): New function.
67386
67387 2006-09-26  Eric Blake  <ebb9@byu.net>
67388
67389         * lib/verror.c: Include <config.h> unconditionally.
67390
67391 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * modules/clock-time (Maintainer): Add self.
67394         * modules/getlogin_r (Depends-on): Add extensions.
67395
67396 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67397
67398         * modules/clock-time: New module.
67399         * modules/nanosleep (Depends-on): Add clock-time.
67400         * modules/gethrxtime (Depends-on): Likewise.
67401         * modules/gettime (Depends-on): Likewise.
67402         * modules/settime (Depends-on): Likewise.
67403
67404         * modules/fts-lgpl: Depend on openat.
67405         * modules/mkancesdirs: Depend on savewd.
67406         * modules/mkdir-p: Likewise.
67407
67408 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67409
67410         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67411
67412         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67413         `gl_have_arbitrary_file_name_length_limit' to
67414         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67415         actually works between configure runs.
67416
67417 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67418             Bruno Haible  <bruno@clisp.org>
67419
67420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67421
67422 2006-09-25  Jim Meyering  <jim@meyering.net>
67423
67424         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67425         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67426
67427 2006-09-25  Eric Blake  <ebb9@byu.net>
67428
67429         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67430         exec's in 2006-09-18 patch when shuffling fds.
67431
67432 2006-09-25  Bruno Haible  <bruno@clisp.org>
67433
67434         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67435         Reported by Jim Meyering.
67436
67437 2006-09-24  Jim Meyering  <jim@meyering.net>
67438
67439         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67440         compare a pointer against a literal "0".  That caused failures with
67441         at least HP-UX's hpcc.
67442
67443 2006-09-22  Simon Josefsson  <jas@extundo.com>
67444
67445         * modules/gc-sha1:
67446         * modules/gc-md4:
67447         * modules/gc-hmac-sha1:
67448         * modules/gc-hmac-md5:
67449         * modules/gc-des:
67450         * modules/gc-arcfour: Distribute more files.
67451
67452 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67453
67454         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67455         (gl_linked_iterator_from_to): Initialize struct completely.
67456         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67457         (gl_tree_iterator_from_to): Likewise
67458         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67459         * lib/gl_array_list.c [lint] (gl_array_iterator)
67460         (gl_array_iterator_from_to): Likewise.
67461         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67462         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67463         (gl_carray_iterator_from_to): Likewise.
67464
67465         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67466         * lib/md4.c (md4_process_block): Remove unused variable.
67467         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67468         parentheses for clarity.
67469
67470 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67471
67472         * modules/bison-i18n (Depends-on): Add gettext.
67473
67474 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67475
67476         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67477         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67478         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67479         also add missing comma that caused broken test.
67480         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67481         stdlib.h, for `abort'.
67482         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67483         variables.
67484         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67485         include unistd.h if present, for `rmdir'.
67486         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67487         variables.
67488         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67489         in the process include standard headers for prototypes.
67490         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67491         gets declared on GNU/Linux.
67492         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67493         unistd.h, for `rmdir'.
67494         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67495
67496         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67497         always true.
67498         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67499
67500         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67501
67502 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67503
67504         * gnulib-tool (func_version): Create output all at once.  This
67505         may help avoid triggering unnecessary SIGPIPEs, and at any
67506         rate it doesn't hurt.
67507
67508 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67509             Bruno Haible  <bruno@clisp.org>
67510
67511         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67512         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67513         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67514
67515         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67516         (gl_FUNC_VASPRINTF): Invoke it.
67517
67518 2006-09-22  Bruno Haible  <bruno@clisp.org>
67519
67520         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67521         getloadavg.c as first argument.
67522
67523 2006-09-22  Bruno Haible  <bruno@clisp.org>
67524
67525         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67526         at the beginning of the gl_INIT macro.
67527         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67528         gl_GETLOADAVG.
67529
67530 2006-09-22  Bruno Haible  <bruno@clisp.org>
67531
67532         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67533         module.
67534         Suggested by Ralf Wildenhues.
67535
67536 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         Import this patch from libc:
67539
67540         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67541
67542         * lib/regex_internal.c (re_string_reconstruct): Handle
67543         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67544         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67545         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67546         re_string_context_at.
67547
67548         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67549         now requires it.
67550         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67551         gl_REGEX now does it for us.
67552         (gl_REGEX): Add test taken from
67553         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67554
67555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67556         Check that large offsets work.  Modernize Autoconf usages.
67557         Prefer "yes" to mean a good thing rather than a bad.
67558         Don't put "#define mkstemp" in config.h, as this might interfere
67559         with standard system headers that "#define mkstemp mkstemp64".
67560
67561         * modules/mkstemp (Depends-on): Add extensions, so that
67562         mkstemp is visible on some platforms.
67563         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67564         (Include): Change to "mkstemp.h" from <stdlib.h>.
67565         (Files): Add mkstemp.h.
67566
67567         * lib/mkstemp.h: New file, since some standard headers
67568         #define mkstemp.
67569         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67570         Include "mkstemp.h".
67571         Make the _LIBC code resemble glibc original more,
67572         e.g., use K&R style.
67573         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67574         (mkstemp): Remove, since mkstemp.h does this for us.
67575         * lib/stdlib--.h: Include mkstemp.h.
67576
67577         Import this patch from libc:
67578
67579         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67580
67581         * lib/tempname.c (__gen_tempname): Change attempts_min
67582         into a macro.  Use preprocessor to decide how to initialize
67583         attempts [Coverity CID 67].
67584
67585 2006-09-20  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/mkdtemp.c: Import from libc.
67588         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67589                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67590                 attempts_min into a macro.  Use preprocessor to decide how to
67591                 initialize attempts [Coverity CID 67].
67592         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67593                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67594                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67595
67596 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67597
67598         * gnulib-tool (func_exit): New function, to allow to pass the
67599         exit status portably through the trap.  Use everywhere.
67600         (--help, --version): Signal a write error.
67601         (trap): catch SIGPIPE, for write errors.
67602         Exit at the end of the trap, with the correct exit status.
67603
67604 2006-09-19  Karl Berry  <karl@gnu.org>
67605
67606         * doc/gnulib.texi: note about the license texinfo files.
67607
67608 2006-09-19  Eric Blake  <ebb9@byu.net>
67609
67610         * gnulib-tool: Avoid space-tab.
67611
67612 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67615         that prevented coreutils 6.1 from building.  Problem reported
67616         by Petter Reinholdtsen.
67617
67618 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67619
67620         * gnulib-tool (avoidlist): Fix typo that broke options like
67621         --avoid=lock that are used by coreutils bootstrap.
67622
67623 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67624
67625         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67626         more systematically.
67627
67628 2006-09-18  Jim Meyering  <jim@meyering.net>
67629
67630         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67631
67632 2006-09-18  Bruno Haible  <bruno@clisp.org>
67633
67634         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67635
67636 2006-09-18  Bruno Haible  <bruno@clisp.org>
67637
67638         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67639         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67640         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67641         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67642         * m4/gettext.m4: Require autoconf >= 2.52.
67643         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67644         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67645         of gl_cv_header_inttypes_h.
67646
67647 2006-09-18  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/javaversion.c: Include configmake.h.
67650
67651 2006-09-18  Bruno Haible  <bruno@clisp.org>
67652
67653         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67654         avoid that the while loops be executed in a subshell.
67655
67656 2006-09-18  Bruno Haible  <bruno@clisp.org>
67657
67658         * MODULES.html.sh (func_module): Break long lines.
67659         Suggested by Bruce Korb <bkorb@gnu.org>.
67660
67661 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67662
67663         Speed up by a factor of 1.12.
67664         * gnulib-tool (nl): New variable.
67665         (func_import): Rewrite include directive extraction to only read each
67666         directive once.
67667
67668 2006-09-17  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/javaversion (Makefile.am): Remove DEFS setting.
67671         (Depends-on): Add configmake, for PKGDATADIR definition.
67672
67673 2006-09-17  Bruno Haible  <bruno@clisp.org>
67674
67675         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67676
67677 2006-09-17  Bruno Haible  <bruno@clisp.org>
67678
67679         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67680         (func_modules_transitive_closure, func_modules_add_dummy,
67681         func_modules_to_filelist, func_import, func_create_testdir,
67682         func_create_megatestdir, ...): Use it wherever possible.
67683         Suggested by Ralf Wildenhues.
67684
67685 2006-09-16  Karl Berry  <karl@gnu.org>
67686
67687         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67688         to avoid sectioning errors.
67689         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67690         [ifinfo]: blank line after @center-ed titles.
67691         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67692         Spell FSF address consistently with others.
67693         (These changes approved by rms.)
67694
67695 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67696
67697         Speed up by a factor of 1.61.
67698         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67699         already checked module names again.
67700
67701 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67702
67703         Speed up by a factor of 1.13.
67704         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67705         for new_files, and the input to func_add_or_update.
67706
67707 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67708
67709         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67710         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67711
67712 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67713
67714         * modules/mkancesdirs (Depends-on): Add fcntl.
67715         * modules/savewd: New file.
67716         * MODULES.html.sh (File system functions): Add savewd.
67717
67718         * modules/configmake (Makefile.am): Add support for the
67719         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67720
67721 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67722
67723         * m4/savewd.m4: New file.
67724
67725 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67728         (dirchownmod): New arg FD.  All callers changed.
67729         Use FD rather than opening the directory ourself, as opening is
67730         now the caller's responsibility.
67731         * lib/dirchownmod.h: Likewise.
67732         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67733         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67734         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67735         (test_dir): Remove.
67736         (mkancesdirs): Return length of prefix of FILE that has already
67737         been made, or -2 if there is a child doing the work.  Redo
67738         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67739         ".", and treat ".." specially since it might stray back into
67740         already-created areas.  Use a subprocess if necessary.  New arg
67741         WD; all users changed.  MAKE_DIR function should now return 1
67742         if it creates a directory that is not readable.  Return -2 if
67743         a child process is spun off.
67744         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67745         Adjust signature to match code.
67746         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67747         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67748         all users changed.
67749         * lib/savewd.c, lib/savewd.h: New files.
67750
67751 2006-09-15  Jim Meyering  <jim@meyering.net>
67752
67753         * modules/rename-dest-slash: New module.
67754         * MODULES.html.sh (posix_compat): Add it here.
67755
67756         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67757
67758 2006-09-15  Jim Meyering  <jim@meyering.net>
67759
67760         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67761         file.
67762
67763         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67764
67765 2006-09-15  Jim Meyering  <jim@meyering.net>
67766
67767         * lib/rename-dest-slash.c (has_trailing_slash): Use
67768         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67769         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67770         test before testing whether SRC is a directory.
67771         Suggestions from Bruno Haible.
67772
67773         Avoid a warning about an unused variable.
67774         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67775         into the #ifdef block where it's used.
67776
67777         * lib/rename-dest-slash.c: New file.
67778
67779 2006-09-14  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/allocsa.c: Include <config.h> unconditionally.
67782         * lib/asnprintf.c: Likewise.
67783         * lib/asprintf.c: Likewise.
67784         * lib/c-strcasecmp.c: Likewise.
67785         * lib/c-strcasestr.c: Likewise.
67786         * lib/c-strncasecmp.c: Likewise.
67787         * lib/c-strstr.c: Likewise.
67788         * lib/classpath.c: Likewise.
67789         * lib/clean-temp.c: Likewise.
67790         * lib/concatpath.c: Likewise.
67791         * lib/copy-file.c: Likewise.
67792         * lib/csharpcomp.c: Likewise.
67793         * lib/csharpexec.c: Likewise.
67794         * lib/execute.c: Likewise.
67795         * lib/fatal-signal.c: Likewise.
67796         * lib/findprog.c: Likewise.
67797         * lib/fwriteerror.c: Likewise.
67798         * lib/gl_array_list.c: Likewise.
67799         * lib/gl_array_oset.c: Likewise.
67800         * lib/gl_avltree_list.c: Likewise.
67801         * lib/gl_avltree_oset.c: Likewise.
67802         * lib/gl_avltreehash_list.c: Likewise.
67803         * lib/gl_carray_list.c: Likewise.
67804         * lib/gl_linked_list.c: Likewise.
67805         * lib/gl_linkedhash_list.c: Likewise.
67806         * lib/gl_list.c: Likewise.
67807         * lib/gl_oset.c: Likewise.
67808         * lib/gl_rbtree_list.c: Likewise.
67809         * lib/gl_rbtree_oset.c: Likewise.
67810         * lib/gl_rbtreehash_list.c: Likewise.
67811         * lib/imaxabs.c: Likewise.
67812         * lib/imaxdiv.c: Likewise.
67813         * lib/javacomp.c: Likewise.
67814         * lib/javaexec.c: Likewise.
67815         * lib/javaversion.c: Likewise.
67816         * lib/linebreak.c: Likewise.
67817         * lib/localcharset.c: Likewise.
67818         * lib/lock.c: Likewise.
67819         * lib/mbchar.c: Likewise.
67820         * lib/mbswidth.c: Likewise.
67821         * lib/mkdtemp.c: Likewise.
67822         * lib/pipe.c: Likewise.
67823         * lib/printf-args.c: Likewise.
67824         * lib/printf-parse.c: Likewise.
67825         * lib/progname.c: Likewise.
67826         * lib/progreloc.c: Likewise.
67827         * lib/readlink.c: Likewise.
67828         * lib/sh-quote.c: Likewise.
67829         * lib/stpcpy.c: Likewise.
67830         * lib/stpncpy.c: Likewise.
67831         * lib/strcasecmp.c: Likewise.
67832         * lib/strcasestr.c: Likewise.
67833         * lib/strcspn.c: Likewise.
67834         * lib/striconv.c: Likewise.
67835         * lib/strncasecmp.c: Likewise.
67836         * lib/strnlen1.c: Likewise.
67837         * lib/strstr.c: Likewise.
67838         * lib/strtok_r.c: Likewise.
67839         * lib/tls.c: Likewise.
67840         * lib/tmpdir.c: Likewise.
67841         * lib/unicodeio.c: Likewise.
67842         * lib/unsetenv.c: Likewise.
67843         * lib/vasnprintf.c: Likewise.
67844         * lib/vasprintf.c: Likewise.
67845         * lib/wait-process.c: Likewise.
67846         * lib/xallocsa.c: Likewise.
67847         * lib/xsetenv.c: Likewise.
67848         * lib/xstriconv.c: Likewise.
67849
67850 2006-09-13  Simon Josefsson  <jas@extundo.com>
67851
67852         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67853         that internally, suggested by Ralf Wildenhues
67854         <Ralf.Wildenhues@gmx.de>.
67855
67856 2006-09-13  Simon Josefsson  <jas@extundo.com>
67857
67858         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67859         @LIBOBJS@.
67860         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67861
67862 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67865         longer worry about uses that don't define HAVE_CONFIG_H.
67866         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67867         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67868         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67869         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67870         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67871         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67872         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67873         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67874         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67875         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67876         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67877         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67878         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67879         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67880         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67881         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67882         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67883         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67884         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67885         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67886         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67887         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67888         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67889         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67890         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67891         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67892         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67893         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67894         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67895         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67896         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67897         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67898         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67899         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67900         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67901         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67902         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67903         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67904         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67905         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67906         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67907         Likewise.
67908
67909 2006-09-13  Eric Blake  <ebb9@byu.net>
67910
67911         * lib/getopt.c: Fix typo in last commit.
67912
67913 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67914
67915         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67916         dgettext.
67917
67918 2006-09-12  Jim Meyering  <jim@meyering.net>
67919
67920         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67921         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67922         Reported by Nelson H. F. Beebe.
67923
67924 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67925
67926         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67927         program_invocation_name and program_invocation_short_name are
67928         initialized.
67929         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67930         and program_invocation_short_name to argp.h, so they are visible
67931         to user programs.
67932         * lib/argp.h: Likewise
67933
67934 2006-09-10  Bruno Haible  <bruno@clisp.org>
67935
67936         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67937         m4/inttypes_h.m4, m4/uintmax_t.m4.
67938
67939 2006-09-10  Bruno Haible  <bruno@clisp.org>
67940
67941         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67942         gl_AC_TYPE_UINTMAX_T.
67943
67944 2006-09-10  Bruno Haible  <bruno@clisp.org>
67945
67946         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67947
67948 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67949
67950         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67951         convention.  Text proposed by Bruno Haible.
67952         (struct argp_option): Document the use of N_() wrappers.
67953
67954         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67955         '\v', and translate the two parts separately, instead of feeding
67956         the whole string to gettext.  This allows to exclude
67957         '\v' from the strings visible to the translator by writing doc
67958         strings as N_("..") "\v" N_("..").
67959
67960 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * config/srclist.txt: Undo latest change; the bug was fixed.
67963
67964 2006-09-09  Bruno Haible  <bruno@clisp.org>
67965
67966         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67967         assignments if building a library without libtool.
67968         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67969         in func_emit_lib_Makefile_am.
67970         (func_import): When building a static library libfoo.a, arrange to
67971         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67972         (func_create_testdir): Likewise.
67973         * modules/gc (configure.ac, Makefile.am): If building statically,
67974         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67975         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67976         * modules/striconv (configure.ac, Makefile.am): Likewise.
67977         Based on a suggestion by Ralf Wildenhues.
67978
67979 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67980
67981         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67982         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67983         Also:
67984
67985         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67986         Add year_2050_test to catch glibc bug 2821
67987         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67988
67989         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67990         Prefer #ifdef to #if.
67991
67992         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67993         Return from 'main' instead of calling 'exit'.
67994
67995 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67998         returned the maximum time_t value rather than (time_t) -1.
67999         Problem originally reported by William Bardwell
68000         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68001
68002         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68003         Moved to here ...
68004         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68005         ... from here.
68006
68007 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68010         2821 is fixed.
68011
68012 2006-09-08  Jim Meyering  <jim@meyering.net>
68013
68014         Don't make generated files read-only.  That would bother too many
68015         people.  However, do retain the ability to work when targets are
68016         read-only: remove the destination and temporary files before writing
68017         them (when generated via sed or echo), or by using the -f option for
68018         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68019         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68020         * modules/byteswap, modules/configmake, modules/fcntl:
68021         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68022         * modules/localcharset, modules/netinet_in, modules/poll:
68023         * modules/stdbool, modules/stdint, modules/sys_select:
68024         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68025
68026 2006-09-08  Jim Meyering  <jim@meyering.net>
68027
68028         Avoid new build failure on FreeBSD 6.0.
68029         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68030         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68031         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68032
68033 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68034
68035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68036
68037 2006-09-07  Jim Meyering  <jim@meyering.net>
68038
68039         Fix global typo in last change: use chmod u-w, not chmod u-x.
68040         Spotted by Paul Eggert and Bruce Korb.
68041         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68042         * modules/byteswap, modules/configmake, modules/fcntl:
68043         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68044         * modules/localcharset, modules/netinet_in, modules/poll:
68045         * modules/stdbool, modules/stdint, modules/sys_select:
68046         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68047
68048 2006-09-06  Jim Meyering  <jim@meyering.net>
68049
68050         Make generated files be read-only.
68051         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68052         Ensure that each generated file is now read-only.
68053         * modules/argz: Likewise.
68054         * modules/arpa_inet: Likewise.
68055         * modules/byteswap: Likewise.
68056         * modules/configmake: Likewise.
68057         * modules/fcntl: Likewise.
68058         * modules/fnmatch: Likewise.
68059         * modules/getopt: Likewise.
68060         * modules/glob: Likewise.
68061         * modules/inttypes: Likewise.
68062         * modules/netinet_in: Likewise.
68063         * modules/poll: Likewise.
68064         * modules/stdbool: Likewise.
68065         * modules/stdint: Likewise.
68066         * modules/sys_select: Likewise.
68067         * modules/sys_socket: Likewise.
68068         * modules/sys_stat: Likewise.
68069         * modules/sysexits: Likewise.
68070         * modules/localcharset: Same as above, but continue using temporary
68071         file named "t-$@" (why different?) rather than the "$@-t" used
68072         everywhere else.
68073
68074         * modules/sysexits (Makefile.am): Replace literal occurrences
68075         of "sysexit.h" more readable, and more consistent, "$@".
68076
68077 2006-09-06  Bruno Haible  <bruno@clisp.org>
68078
68079         * modules/striconv: New file.
68080         * modules/xstriconv: New file.
68081         * MODULES.html.sh (Internationalization functions): Add striconv,
68082         xstriconv.
68083
68084 2006-09-06  Bruno Haible  <bruno@clisp.org>
68085
68086         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68087         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68088         not using libtool correctly.
68089
68090 2006-09-06  Bruno Haible  <bruno@clisp.org>
68091
68092         * lib/striconv.h: New file.
68093         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68094         iconvstring.c.
68095         * lib/xstriconv.h: New file.
68096         * lib/xstriconv.c: New file.
68097
68098 2006-09-06  Bruno Haible  <bruno@clisp.org>
68099
68100         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68101         lib_..._LDFLAGS.
68102
68103 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68104
68105         * lib/argz_.h: Sync from Libtool.
68106
68107         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68108                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68109
68110         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68111
68112 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68113
68114         * modules/trim: New file.
68115
68116 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68117
68118         * lib/trim.h: New file.
68119         * lib/trim.c: New file.
68120
68121 2006-09-05  Bruno Haible  <bruno@clisp.org>
68122
68123         * MODULES.html.sh (String handling): Add trim.
68124
68125 2006-09-04  Karl Berry  <karl@gnu.org>
68126
68127         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68128         until next release.
68129
68130 2006-09-03  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68133         correctly.
68134
68135 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68138         not gl_GETLOADAVG.  Omit unneeded semicolons.
68139         Problems reported by Ralf Wildenhues in
68140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68141         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68142         at the end, which is the usual gnulib style.
68143
68144         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68145         of doing all the work ourselves.
68146         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68147         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68148
68149 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68152         Problem reported by Ralf Wildenhues in
68153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68154
68155         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68156         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68157
68158 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68159
68160         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68161         yesterday's patch by changing test -n to test -z.
68162
68163 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68166         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68167         the former is now obsolescent.
68168
68169         * modules/chdir-long (Depends-on): Add fcntl.
68170
68171 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68172
68173         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68174         obsolescent, and programs should use gnulib instead.
68175         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68176         but with prefixes changed.
68177
68178 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68181         or stdbool.h, because they might not exist while configuring.
68182
68183         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68184         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68185         does that for us.
68186         (O_DIRECTORY): Remove.
68187
68188 2006-08-31  Eric Blake  <ebb9@byu.net>
68189
68190         * gnulib-tool: Don't let emacs change spaces to TAB.
68191
68192 2006-08-31  Bruno Haible  <bruno@clisp.org>
68193
68194         * gnulib-tool: When calling func_import more than once, do it in a
68195         subshell.
68196         Reported by Eric Blake <ebb9@byu.net>.
68197
68198 2006-08-31  Bruno Haible  <bruno@clisp.org>
68199
68200         * gnulib-tool (nl): Remove variable.
68201         (sed_transform_lib_file): Use more robust test for config-h module.
68202         (func_import): Fix typo in 2006-08-25 patch.
68203
68204 2006-08-31  Bruno Haible  <bruno@clisp.org>
68205
68206         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68207         specified, augment Makefile.am variables instead of assigning them.
68208
68209 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         Work around a bug in both the Linux and SunOS 64-bit kernels:
68212         nanosleep mishandles sleeps for longer than 2**31 seconds.
68213         Problem reported by Frank v Waveren in
68214         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68216         Check for nanosleep bug.
68217         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68218
68219 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68220
68221         Work around a bug in both the Linux and SunOS 64-bit kernels:
68222         nanosleep mishandles sleeps for longer than 2**31 seconds.
68223         Problem reported by Frank v Waveren in
68224         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68225         * lib/nanosleep.c (BILLION): New constant.
68226         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68227         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68228         implementation.
68229
68230 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * modules/nanosleep (Depends-on): Add gettime.
68233
68234 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68235         and Simon Josefsson  <jas@extundo.com>
68236         and Oskar Liljeblad  <oskar@osk.mine.nu>
68237
68238         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68239         * gnulib-tool (func_import): New license type 'unmodifiable license
68240         text'.
68241         * modules/fdl: Use it.  Longer description.
68242         * module/gpl, module/lgpl: New files.
68243
68244 2006-08-30  Jim Meyering  <jim@meyering.net>
68245
68246         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68247         shadowing the parameter.
68248
68249 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68250
68251         Sync from Libtool:
68252
68253         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68254
68255         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68256         sharing with gnulib.  Report by Eric Blake.
68257
68258 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68259
68260         * modules/isapipe: New file.
68261         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68262
68263 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * modules/configmake (Makefile.am): Add a comment, and omit
68266         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68267         by Bruno Haible.
68268
68269 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * m4/isapipe.m4: New file.
68272
68273 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         * lib/isapipe.c, lib/isapipe.h: New files.
68276
68277 2006-08-29  Jim Meyering  <jim@meyering.net>
68278
68279         * modules/configmake (Makefile.am): Make configmake.h depend on
68280         Makefile.  Otherwise, a stale configmake.h could hang around.
68281
68282 2006-08-29  Eric Blake  <ebb9@byu.net>
68283
68284         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68285         resolution of upstream bug 3044.
68286
68287 2006-08-29  Bruno Haible  <bruno@clisp.org>
68288
68289         * modules/localcharset (Depends-on): Add configmake.
68290         (Makefile.am): Remove setting of LIBDIR through DEFS.
68291
68292 2006-08-29  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68295         defined.
68296
68297 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68298
68299         * modules/fcntl: New file.
68300         * modules/chdir-safer (Depends-on): Add fcntl.
68301         * modules/fts: Likewise.
68302         * modules/mkdir-p: Likewise.
68303
68304         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68305         This undoes the most recent change, since we're now addressing the
68306         problem in a different way.
68307
68308         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68309         into output, since the output might be called Makefile.am even
68310         if $makefile_name is something different.
68311         (func_import): Use $makefile_am rather than
68312         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68313         empty.
68314
68315         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68316
68317 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68320         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68321         recent change to stdint.m4, since we're now addressing the problem in a
68322         different way.
68323
68324 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * m4/fcntl_h.m4: New file.
68327
68328 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * lib/fcntl_.h: New file.
68331         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68332         the fcntl module.
68333         * lib/dirchownmod.c: Likewise.
68334         * lib/fts.c: Likewise.
68335
68336         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68337         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68338         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68339         just before including <inttypes.h>, to avoid circular inclusion.
68340
68341 2006-08-28  Jim Meyering  <jim@meyering.net>
68342
68343         * doc/visibility.texi: Actually read and correct the grammar of the
68344         sentence affected by yesterday's change.
68345
68346 2006-08-28  Eric Blake  <ebb9@byu.net>
68347
68348         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68349         needs wrapper.
68350
68351 2006-08-28  Eric Blake  <ebb9@byu.net>
68352
68353         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68354
68355 2006-08-28  Eric Blake  <ebb9@byu.net>
68356
68357         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68358
68359 2006-08-28  Bruno Haible  <bruno@clisp.org>
68360
68361         * modules/c-strstr: New file, from GNU gettext.
68362         * MODULES.html.sh (String handling): Add c-strstr.
68363
68364 2006-08-28  Bruno Haible  <bruno@clisp.org>
68365
68366         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68367         macros.
68368         Reported by Eric Blake.
68369
68370 2006-08-28  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68373         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68374         * lib/vasprintf.c: Include errno.h, limits.h.
68375         (EOVERFLOW): New fallback definition.
68376         (vasprintf): Test here whether the string length is > INT_MAX.
68377         * lib/vsnprintf.c: Include errno.h, limits.h.
68378         (EOVERFLOW): New fallback definition.
68379         (vsnprintf): Fix bug when generated string was too long for the buffer.
68380         Test here whether the string length is > INT_MAX.
68381
68382 2006-08-28  Bruno Haible  <bruno@clisp.org>
68383
68384         * lib/inttypes_.h (SCNX*): Remove definitions.
68385         Reported by Eric Blake.
68386
68387 2006-08-28  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/c-strstr.h: New file, from GNU gettext.
68390         * lib/c-strstr.c: New file, from GNU gettext.
68391
68392 2006-08-28  Bruno Haible  <bruno@clisp.org>
68393
68394         * gnulib-tool: Reorder some statements.
68395
68396 2006-08-28  Bruno Haible  <bruno@clisp.org>
68397
68398         * gnulib-tool: New option --makefile-name.
68399         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68400         $makefile_name.
68401         (func_import): Write $makefile_name to the cache file, and read it from
68402         there unless explicitly specified. Use $makefile_name as file name
68403         instead of Makefile.am. Adjust the recommendations accordingly.
68404
68405 2006-08-28  Bruno Haible  <bruno@clisp.org>
68406
68407         * gnulib-tool (func_verify_module): Check against misapplying patch.
68408
68409 2006-08-28  Bruno Haible  <bruno@clisp.org>
68410
68411         * gnulib-tool (func_relativize, func_relconcat): New functions.
68412         Give an error if --local-dir is given with --update.
68413         Remove trailing slashes from $local_gnulib_dir.
68414         (func_import): Store the relativized $local_gnulib_dir in
68415         gnulib-cache.m4, and read it from there if not specified explicitly.
68416
68417 2006-08-28  Bruno Haible  <bruno@clisp.org>
68418
68419         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68420         is the current directory. Respect also $local_gnulib_dir.
68421
68422 2006-08-28  Bruno Haible  <bruno@clisp.org>
68423             Simon Josefsson  <jas@extundo.com>
68424
68425         BeOS portability.
68426         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68427
68428 2006-08-27  Jim Meyering  <jim@meyering.net>
68429
68430         * doc/visibility.texi: Remove duplicate word: "pointer".
68431
68432 2006-08-26  Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68435         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68436         (Makefile.am): Create inttypes.h from inttypes_.h.
68437         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68438
68439         * modules/imaxabs: New file.
68440
68441         * modules/imaxdiv: New file.
68442
68443 2006-08-26  Bruno Haible  <bruno@clisp.org>
68444
68445         * m4/inttypes.m4: New file.
68446         * m4/_inttypes_h.m4: Remove file.
68447         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68448         PRI_MACROS_BROKEN.
68449         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68450
68451         * m4/imaxabs.m4: New file.
68452
68453         * m4/imaxdiv.m4: New file.
68454
68455 2006-08-26  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/inttypes_.h: New file.
68458         * lib/inttypes.h: Remove file.
68459         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68460
68461         * lib/imaxabs.c: New file.
68462
68463         * lib/imaxdiv.c: New file.
68464
68465 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         New config-h module, so that "make" output needn't be cluttered
68468         by -DHAVE_CONFIG_H.
68469         * MODULES.html.sh (Support for building libraries and executables):
68470         Add config-h.
68471         * modules/config-h: New file.
68472         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68473         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68474         the config-h module is used.
68475
68476         New configmake module, so that "make" output needn't be cluttered
68477         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68478         * MODULES.html.sh (Support for building libraries and executables):
68479         Add configmake.
68480         * modules/configmake: New file.
68481
68482 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * m4/config-h.m4: New file.
68485
68486 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * config/srclist.txt: Add elisp-comp.
68489
68490 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68491
68492         * MODULES.html.sh (Support for building libraries and executables):
68493         Add elisp-comp.
68494         * build-aux/elisp-comp: New file.
68495         * modules/elisp-comp: New file.
68496
68497 2006-08-24  Bruno Haible  <bruno@clisp.org>
68498
68499         * gnulib-tool (func_create_testdir): Use non-default values of
68500         sourcebase and m4base.
68501
68502 2006-08-24  Bruno Haible  <bruno@clisp.org>
68503
68504         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68505         HTML structure.
68506
68507 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         * modules/openat (Depends-on): Add lchown.
68510
68511 2006-08-23  Bruno Haible  <bruno@clisp.org>
68512
68513         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68514         of gl_LOCK_EARLY instead of gl_LOCK.
68515
68516 2006-08-23  Bruno Haible  <bruno@clisp.org>
68517
68518         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68519         on OSF/1 to no.
68520         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68521
68522 2006-08-23  Bruno Haible  <bruno@clisp.org>
68523
68524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68525         as unusable.
68526
68527         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68528         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68529         (gl_LOCK): New macro.
68530
68531 2006-08-22  Simon Josefsson  <jas@extundo.com>
68532
68533         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68534         to md5 module.
68535
68536 2006-08-22  Simon Josefsson  <jas@extundo.com>
68537
68538         * MODULES.html.sh: Add "Support for maintaining and release
68539         projects".
68540
68541         * build-aux/gnupload: New file, from coreutils.
68542
68543 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         Avoid the need for AC_LIBSOURCES in m4 macros.
68546         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68547         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68548         * modules/check-version (EXTRA_DIST): Add check-version.h.
68549         * modules/crc (EXTRA_DIST): Add crc.h.
68550         * modules/des (EXTRA_DIST): Add des.h.
68551         * modules/gc (EXTRA_DIST): Add gc.h.
68552         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68553         * modules/getline (EXTRA_DIST): Add getline.h.
68554         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68555         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68556         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68557         * modules/md2 (EXTRA_DIST): Add md2.h.
68558         * modules/md4 (EXTRA_DIST): Add md4.h.
68559         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68560         * modules/read-file (EXTRA_DIST): Add read-file.h.
68561         * modules/readline (EXTRA_DIST): Add readline.h.
68562         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68563         rijndael-api-fst.h.
68564
68565 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * m4/rijndael.m4 (gl_ARCFOUR):
68568         * m4/arctwo.m4 (gl_ARCTWO):
68569         * m4/check-version.m4 (gl_CHECK_VERSION):
68570         * m4/crc.m4 (gl_CRC):
68571         * m4/des.m4 (gl_DES):
68572         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68573         * m4/gc.m4 (gl_GC):
68574         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68575         * m4/getline.m4 (gl_FUNC_GETLINE):
68576         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68577         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68578         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68579         * m4/md2.m4 (gl_MD2):
68580         * m4/md4.m4 (gl_MD4):
68581         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68582         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68583         * m4/readline.m4 (gl_FUNC_READLINE):
68584         * m4/rijndael.m4 (gl_RIJNDAEL):
68585         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68586         to get the necessary .h files and whatnot.
68587
68588 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68591         gnulib rather than the other way around.
68592         * config/srclistvars.sh (COREUTILS): Remove.
68593
68594 2006-08-22  Jim Meyering  <jim@meyering.net>
68595
68596         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68597
68598         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68599
68600 2006-08-22  Eric Blake  <ebb9@byu.net>
68601
68602         * modules/regexprops-generic: New file.
68603         * MODULES.html.sh (Support for building documentation): List it.
68604
68605 2006-08-22  Eric Blake  <ebb9@byu.net>
68606
68607         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68608         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68609         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68610         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68611
68612 2006-08-22  Bruno Haible  <bruno@clisp.org>
68613
68614         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68615         and lib_LTLIBRARIES like the other lib_* variables.
68616
68617 2006-08-22  Bruno Haible  <bruno@clisp.org>
68618
68619         * build-aux/x-to-1.in: New file, from GNU gettext.
68620
68621 2006-08-22  Bruno Haible  <bruno@clisp.org>
68622
68623         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68624         <utmpx.h> exists.
68625
68626 2006-08-22  Bruno Haible  <bruno@clisp.org>
68627
68628         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68629         <utmpx.h> exists.
68630
68631 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         BeOS portability.
68634         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68635         exist.
68636         Problem reported by Bruno Haible.
68637
68638 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         Avoid the need for AC_LIBSOURCES in m4 macros.
68641         * modules/acl (EXTRA_DIST): Add acl.h.
68642         * modules/argmatch (Files): Add m4/argmatch.m4.
68643         (configure.ac): Add gl_ARGMATCH.
68644         (EXTRA_DIST): Renamed from lib_SOURCES, for
68645         consistency with the other modules.  Remove argmatch.c.
68646         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68647         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68648         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68649         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68650         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68651         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68652         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68653         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68654         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68655         * modules/closeout (EXTRA_DIST): Add closeout.h.
68656         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68657         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68658         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68659         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68660         dirname.h; remove basename.c and stripslash.c.
68661         * modules/exclude (EXTRA_DIST): Add exclude.h.
68662         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68663         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68664         * modules/file-type (EXTRA_DIST): Add file-type.h.
68665         * modules/filemode (EXTRA_DIST): Add filemode.h.
68666         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68667         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68668         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68669         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68670         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68671         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68672         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68673         * modules/getdate (EXTRA_DIST): Add getdate.c.
68674         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68675         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68676         * modules/getpass (EXTRA_DIST): Add getpass.h.
68677         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68678         * modules/group-member (EXTRA_DIST): Add group-member.h.
68679         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68680         * modules/hash (EXTRA_DIST): Add hash.h.
68681         * modules/human (EXTRA_DIST): Add human.h.
68682         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68683         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68684         * modules/lchown (EXTRA_DIST): Add lchown.h.
68685         * modules/long-options (EXTRA_DIST): Add long-options.h.
68686         * modules/lstat (EXTRA_DIST): Add lstat.h.
68687         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68688         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68689         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68690         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68691         * modules/memxor (EXTRA_DIST): Add memxor.h.
68692         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68693         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68694         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68695         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68696         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68697         * modules/physmem (EXTRA_DIST): Add physmem.h.
68698         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68699         * modules/posixver (EXTRA_DIST): Add posixver.h.
68700         * modules/quote (EXTRA_DIST): Add quote.h.
68701         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68702         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68703         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68704         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68705         regex_internal.h regexec.c.
68706         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68707         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68708         * modules/same (EXTRA_DIST): Add same.h.
68709         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68710         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68711         * modules/savedir (EXTRA_DIST): Add savedir.h.
68712         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68713         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68714         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68715         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68716         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68717         * modules/strdup (EXTRA_DIST): Add strdup.h.
68718         * modules/strftime (EXTRA_DIST): Add strftime.h.
68719         * modules/strndup (EXTRA_DIST): Add strndup.h.
68720         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68721         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68722         * modules/time_r (EXTRA_DIST): Add time_r.h.
68723         * modules/timespec (EXTRA_DIST): Add timespec.h.
68724         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68725         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68726         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68727         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68728         * modules/userspec (EXTRA_DIST): Add userspec.h.
68729         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68730         * modules/utimens (EXTRA_DIST): Add utimens.h.
68731         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68732         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68733         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68734         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68735         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68736         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68737         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68738         * modules/yesno (EXTRA_DIST): Add yesno.h.
68739
68740 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68743
68744         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68745         * m4/dev-ino.m4, same-inode.m4: Remove.
68746
68747         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68748         * m4/acl.m4 (AC_FUNC_ACL):
68749         * m4/backupfile.m4 (gl_BACKUPFILE):
68750         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68751         * m4/canon-host.m4 (gl_CANON_HOST):
68752         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68753         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68754         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68755         * m4/cloexec.m4 (gl_CLOEXEC):
68756         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68757         * m4/closeout.m4 (gl_CLOSEOUT):
68758         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68759         * m4/dirname.m4 (gl_DIRNAME):
68760         * m4/exclude.m4 (gl_EXCLUDE):
68761         * m4/exitfail.m4 (gl_EXITFAIL):
68762         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68763         * m4/file-type.m4 (gl_FILE_TYPE):
68764         * m4/filemode.m4 (gl_FILEMODE):
68765         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68766         * m4/fpending.m4 (gl_FUNC_FPENDING):
68767         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68768         * m4/fts.m4 (gl_FUNC_FTS):
68769         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68770         * m4/getdate.m4 (gl_GETDATE):
68771         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68772         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68773         * m4/getpass.m4 (gl_FUNC_GETPASS):
68774         * m4/gettime.m4 (gl_GETTIME):
68775         * m4/getugroups.m4 (gl_GETUGROUPS):
68776         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68777         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68778         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68779         * m4/hash.m4 (gl_HASH):
68780         * m4/idcache.m4 (gl_IDCACHE):
68781         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68782         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68783         * m4/long-options.m4 (gl_LONG_OPTIONS):
68784         * m4/lstat.m4 (gl_FUNC_LSTAT):
68785         * m4/md5.m4 (gl_MD5):
68786         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68787         * m4/memcoll.m4 (gl_MEMCOLL):
68788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68790         * m4/memxor.m4 (gl_MEMXOR):
68791         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68792         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68793         * m4/modechange.m4 (gl_MODECHANGE):
68794         * m4/mountlist.m4 (gl_MOUNTLIST):
68795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68796         * m4/openat.m4 (gl_FUNC_OPENAT):
68797         * m4/pathmax.m4 (gl_PATHMAX):
68798         * m4/physmem.m4 (gl_PHYSMEM):
68799         * m4/posixtm.m4 (gl_POSIXTM):
68800         * m4/posixver.m4 (gl_POSIXVER):
68801         * m4/quote.m4 (gl_QUOTE):
68802         * m4/quotearg.m4 (gl_QUOTEARG):
68803         * m4/readtokens.m4 (gl_READTOKENS):
68804         * m4/readutmp.m4 (gl_READUTMP):
68805         * m4/regex.m4 (gl_REGEX):
68806         * m4/safe-read.m4 (gl_SAFE_READ):
68807         * m4/safe-write.m4 (gl_SAFE_WRITE):
68808         * m4/same.m4 (gl_SAME):
68809         * m4/save-cwd.m4 (gl_SAVE_CWD):
68810         * m4/savedir.m4 (gl_SAVEDIR):
68811         * m4/settime.m4 (gl_SETTIME):
68812         * m4/sha1.m4 (gl_SHA1):
68813         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68814         * m4/stat-macros.m4 (gl_STAT_MACROS):
68815         * m4/stat-time.m4 (gl_STAT_TIME):
68816         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68817         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68818         * m4/strdup.m4 (gl_FUNC_STRDUP):
68819         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68820         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68821         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68822         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68823         * m4/time_r.m4 (gl_TIME_R):
68824         * m4/timespec.m4 (gl_TIMESPEC):
68825         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68826         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68827         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68828         * m4/userspec.m4 (gl_USERSPEC):
68829         * m4/utimecmp.m4 (gl_UTIMECMP):
68830         * m4/utimens.m4 (gl_UTIMENS):
68831         * m4/xalloc.m4 (gl_XALLOC):
68832         * m4/xgetcwd.m4 (gl_XGETCWD):
68833         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68834         * m4/xreadlink.m4 (gl_XREADLINK):
68835         * m4/xstrtod.m4 (gl_XSTRTOD):
68836         * m4/yesno.m4 (gl_YESNO):
68837         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68838         to get the necessary .h files and whatnot.
68839
68840 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68841             Bruno Haible  <bruno@clisp.org>
68842
68843         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68844         /bin/sh understanding of '!' conditional negation.
68845
68846 2006-08-21  Jim Meyering  <jim@meyering.net>
68847
68848         * modules/openat (Depends-on): Really alphabetize.
68849
68850         * modules/acl (Depends-on): Add error and quote.
68851
68852         * check-module (find_included_lib_files): Add at-func.c to the
68853         ok-to-include-more-than-once white list.
68854
68855         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68856
68857 2006-08-21  Bruno Haible  <bruno@clisp.org>
68858
68859         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68860         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68861         Reported by Martin Lambers <marlam@marlam.de>.
68862
68863 2006-08-21  Bruno Haible  <bruno@clisp.org>
68864
68865         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68866         specify an installation location, don't emit a noinst_LIBRARIES or
68867         noinst_LTLIBRARIES assignment.
68868
68869 2006-08-21  Bruno Haible  <bruno@clisp.org>
68870
68871         BeOS portability.
68872         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68873         BeOS has mbrtowc() but no <wctype.h>.
68874
68875 2006-08-21  Bruno Haible  <bruno@clisp.org>
68876
68877         BeOS portability.
68878         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68879         exist.
68880
68881 2006-08-21  Bruno Haible  <bruno@clisp.org>
68882
68883         BeOS portability.
68884         * lib/mbchar.h: Include <wctype.h> only if it exists.
68885
68886 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         Remove files that are no longer needed by their respective modules.
68889         * m4/obstack.m4: Remove.
68890         * m4/strerror_r.m4: Remove.
68891         * m4/uint32_t.m4: Remove.
68892         * m4/uintptr_t.m4: Remove.
68893         * m4/ullong_max.m4: Remove.
68894         * m4/xstrtoimax.m4: Remove.
68895         * m4/xstrtoumax.m4: Remove.
68896
68897         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68898         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68899         dependencies now capture this.
68900
68901         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68902         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68903         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68904         * m4/human.m4 (gl_HUMAN): Likewise.
68905         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68906         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68907
68908         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68909
68910         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68911         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68912         stdint.
68913         * m4/human.m4 (gl_HUMAN): Likewise.
68914         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68915         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68916         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68917         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68918         * m4/xstrtol (gl_XSTRTOL): Likewise.
68919
68920         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68921         AC_TYPE_LONG_LONG_INT.
68922         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68923         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68924         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68925         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68926
68927         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68928         on stdbool.
68929
68930         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68931         (gl_PREREQ_XSTRTOUL): Remove.
68932
68933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68934
68935         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68936         mode.
68937
68938 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68939
68940         Add and change modules to make it easier for coreutils to use
68941         gnulib-tool.
68942         * modules/backupfile (Files): Remove m4/d-ino.m4.
68943         (Depends-on): Add d-ino.
68944         * modules/cycle-check (Depends-on): Add stdint.
68945         (lib_SOURCES): Add cycle-check.h.
68946         * modules/d-ino: New module.
68947         * modules/d-type: New module.
68948         * modules/error (Files): Remove m4/strerror_r.m4.
68949         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68950         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68951         m4/inttypes_h.m4, m4/uintmax_t.m4.
68952         (Depends-on): Add stdint.
68953         (lib_SOURCES): Add fsusage.h.
68954         * modules/getcwd (Files): Remove d-ino.m4.
68955         (Depends-on): Add d-ino.
68956         * modules/getndelim2 (Depends-on): Add stdint.
68957         * modules/glob (Files): Remove m4/d-type.m4.
68958         (Depends-on): Add d-type.
68959         * modules/host-os: New module.
68960         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68961         m4/inttypes_h.m4, m4/uintmax_t.m4.
68962         * Depends-on: Add stdint.
68963         (lib_SOURCES): Add human.h.
68964         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68965         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68966         m4/uintmax_t.m4, m4/ulonglong.m4.
68967         (Depends-on): Add stdint.
68968         (EXTRA_DIST): Add inttostr.h.
68969         * modules/lchmod: New module.
68970         * modules/link-follow: New module.
68971         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68972         (Depends-on): Add lchmod.
68973         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68974         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68975         (Depends-on): Add stdint.
68976         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68977         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68978         (Depends-on): Add stdint.
68979         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68980         * modules/perl: New module.
68981         * modules/regex (Depends-on): Add stdint.
68982         * modules/rmdir-errno: New module.
68983         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68984         m4/intmax_t.m4.
68985         (Depends-on): Add stdint.
68986         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68987         m4/uintmax_t.m4.
68988         (Depends-on): Add stdint.
68989         * modules/unlink-busy: New module.
68990         * modules/utimecmp (Depends-on): Add stdint.
68991         * modules/uptime: New module.
68992         * modules/winsz-ioctl: New module.
68993         * modules/winsz-termios: New module.
68994         * modules/xnanosleep (Depends-on): Add nanosleep.
68995         * modules/ullong_max: Remove.
68996         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68997         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68998         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68999         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69000         (Depends-on): Add inttypes.
69001         (lib_SOURCES): Add xstrtol.h.
69002         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69003         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69004         * MODULES.html.sh: Move 'assert' into the assert section.
69005         Move 'dummy' into the linking section.
69006         Remove ullong_max.
69007         Add section for compatibility checks for POSIX:2001 functions,
69008         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69009         winsz-ioctl, and winsz-termios into it.
69010         Add lchmod.
69011         Add top-level Misc section and put host-os, perl, and uptime
69012         into it.
69013
69014 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69017         now assume the stdint module.  Do not include inttypes.h.
69018         * lib/fsusage.h: Likewise.
69019         * lib/getndelim2.c: Likewise.
69020         * lib/human.h: Likewise.
69021         * lib/inttostr.h: Likewise.
69022         * lib/obstack.c: Likewise.
69023         * lib/regex_internal.h: Likewise.
69024         * lib/tempname.c: Likewise.
69025         * lib/utimecmp.c: Likewise.
69026         * lib/xstrtol.h: Likewise.
69027
69028         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69029
69030         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69031         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69032         * lib/xtime.h: Likewise.
69033
69034 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * modules/openat (Files): Add lib/fchmodat.c.
69037         Fixes problem reported by Jay Youngman.
69038
69039 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69042         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69043
69044 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69045             Bruno Haible  <bruno@clisp.org>
69046
69047         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69048         and is a script that invokes bison. Tighten the code. Add comments.
69049
69050 2006-08-18  Jim Meyering  <jim@meyering.net>
69051
69052         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69053         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69054         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69055         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69056
69057 2006-08-18  Bruno Haible  <bruno@clisp.org>
69058
69059         * modules/bison-i18n: New file.
69060         * MODULES.html.sh (Internationalization functions): Add it.
69061
69062 2006-08-18  Bruno Haible  <bruno@clisp.org>
69063
69064         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69065         sys/statvfs.h. When getmntinfo was found, check its declaration and
69066         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69067
69068 2006-08-18  Bruno Haible  <bruno@clisp.org>
69069
69070         * m4/bison-i18n.m4: New file, from bison.
69071
69072 2006-08-18  Bruno Haible  <bruno@clisp.org>
69073
69074         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69075         (ME_DUMMY): Treat "kernfs" as a dummy.
69076         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69077
69078 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         Update from coreutils.
69081
69082         2006-08-15  Jim Meyering  <jim@meyering.net>
69083
69084         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69085
69086         2006-01-17  Jim Meyering  <jim@meyering.net>
69087
69088         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69089
69090         2006-01-11  Jim Meyering  <jim@meyering.net>
69091
69092         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69093         Check for the lchmod function.
69094
69095 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69096
69097         Update from coreutils.
69098
69099         * lib/__fpending.h: Add copyright notice.
69100         * lib/fprintftime.h: Likewise.
69101         * lib/savedir.c: Use (C) in copyright notice.
69102         * lib/savedir.h: Likewise.
69103
69104         2006-08-15  Jim Meyering  <jim@meyering.net>
69105
69106         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69107         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69108         in support of the EXPECTED_ERRNO macro.
69109         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69110         definitions.  Instead, define the appropriate symbols and include
69111         "at-func.c".
69112         * lib/mkdirat.c (mkdirat): Likewise.
69113         * lib/fchmodat.c (fchmodat): Likewise.
69114         (ENOSYS): Remove definition.
69115         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69116         it.  Don't include "unistd--.h" -- it wasn't ever used.
69117
69118         2006-01-17  Jim Meyering  <jim@meyering.net>
69119
69120         Rewrite fts.c not to change the current working directory,
69121         by using openat, fstatat, fdopendir, etc..
69122
69123         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69124         (HAVE_OPENAT_SUPPORT): Define.
69125         [_LIBC] (fchdir): Don't undef or define; no longer used.
69126         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69127         Now, this `function' always succeeds, and consumes its file descriptor
69128         parameter -- so callers must not close such FDs.  Update callers.
69129         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69130         (diropen): Add parameter, SP.  Adjust all callers.
69131         Implement using diropen_fd, rather than open.
69132         (fts_open): Initialize new member, fts_cwd_fd.
69133         Remove fts_rft-setting code.
69134         (fts_close): Close fts_cwd_fd, if necessary.
69135         (__opendir2): Define in terms of opendir or opendirat,
69136         depending on whether the FST_NOCHDIR flag is set.
69137         (fts_build): Since fts_safe_changedir consumes its FD, and since
69138         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69139         and close the dup'd file descriptor upon failure.
69140         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69141         (fts_safe_changedir): Tweak semantics to reflect that this function
69142         now calls cwd_advance_fd and hence consumes its FD argument.
69143         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69144         [struct FTS] (fts_rft): Remove now-unused member.
69145         [struct FTS] (fts_cycle.state): Improve comment.
69146
69147         * lib/openat.c (openat_needs_fchdir): New function.
69148         * lib/openat.h (openat_needs_fchdir): Declare it.
69149
69150 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69151
69152         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69153         Problem and fix reported by Pádraig Brady in
69154         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69155
69156 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69157
69158         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69159
69160 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69161
69162         * lib/memcoll.c (memcoll): Optimize for the common case where the
69163         arguments are bytewise equal.
69164
69165 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69166
69167         * doc/regexprops-generic.texi: Add a copyright notice.
69168
69169 2006-08-15  Bruno Haible  <bruno@clisp.org>
69170
69171         * modules/tmpdir (License): Change to LGPL.
69172
69173 2006-08-15  Bruno Haible  <bruno@clisp.org>
69174
69175         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69176         module.
69177
69178 2006-08-14  Simon Josefsson  <jas@extundo.com>
69179
69180         * config/srclist.txt: Add gnupload.
69181
69182 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69183
69184         Change copyright notice from LGPL 2 to GPL 2, since that's the
69185         standard form used in the gnulib repository.
69186         * tests/test-lock.c: Likewise.
69187         * tests/test-stdint.c: Likewise.
69188         * tests/test-tls.c: Likewise.
69189
69190         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69191         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69192         Add copyright notice.
69193
69194         * check-module: Add copyright notice.  Output a copyright
69195         notice if "--version" is specified.
69196         * modules/COPYING: New file.
69197         * tests/test-getaddrinfo.c: Add copyright notice.
69198         * tests/test-verify.c: Likewise.
69199
69200 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         Change copyright notice from LGPL 2 to GPL 2, since that's the
69203         standard form used in the gnulib repository.
69204         * lib/lock.c: LGPL -> GPL.
69205         * lib/lock.h: Likewise.
69206         * lib/strnlen1.c: Likewise.
69207         * lib/strnlen1.h: Likewise.
69208         * lib/tls.c: Likewise.
69209         * lib/tls.h: Likewise.
69210         * lib/tmpdir.c: Likewise.
69211
69212         * lib/TODO: Remove; this belongs only in coreutils.
69213
69214 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         Add copyright notices to long-enough files that lack them, since
69217         otherwise the files aren't clearly free.  Use the same notice that
69218         getdate.texi already uses.
69219         * doc/alloca-opt.texi: Add copyright notice.
69220         * doc/alloca.texi: Likewise.
69221         * doc/ctime.texi: Likewise.
69222         * doc/functions.texi: Likewise.
69223         * doc/gcd.texi: Likewise.
69224         * doc/gnulib-tool.texi: Likewise.
69225         * doc/inet_ntoa.texi: Likewise.
69226         * doc/visibility.texi: Likewise.
69227
69228         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69229         * doc/quote.texi: Add copyright notice.
69230
69231         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69232         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69233         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69234         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69235         is now obsolete, and give a pointer to the Sun list.
69236         Add copyright notice.
69237
69238 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * config/srclistvars.sh: Add copyright notice.
69241
69242 2006-08-14  Eric Blake  <ebb9@byu.net>
69243
69244         Import the following change from libc:
69245
69246         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69247
69248         Upstream bug 2997.
69249         * lib/misc/error.c: Add space between program name and message if file
69250         name is missing.
69251
69252 2006-08-12  Karl Berry  <karl@gnu.org>
69253
69254         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69255         remove, these originate in gnulib now.
69256
69257 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69258
69259         * doc/Makefile (standards.info standards.html standards.dvi):
69260         Also depend on make-stds.texi.
69261
69262 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69263
69264         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69265         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69266
69267         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69268         in wchar_t.  Problem reported by Eric Blake.
69269
69270         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69271         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69272         Also, help the compiler to keep LEN in a register.
69273
69274 2006-08-11  Eric Blake  <ebb9@byu.net>
69275
69276         * users.txt: Sort.  Add tar.
69277
69278 2006-08-11  Bruno Haible  <bruno@clisp.org>
69279
69280         * users.txt: New file.
69281
69282 2006-08-11  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69285         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69286
69287 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69288
69289         * modules/snprintf (Depends-on): Remove minmax.
69290         (Maintainer): Add self and Bruno.
69291
69292 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69295         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69296         (EOVERFLOW): Define if the system does not.
69297         Do not include "minmax.h"; it wasn't used.
69298         (snprintf): Don't assume size_t promotes to an unsigned type.
69299         Fix bug when generated string was too long for the buffer: the
69300         buffer's contents are supposed to be the initial prefix of the
69301         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69302         exceeds INT_MAX; do the check ourselves.
69303
69304         Import the following changes from libc:
69305
69306         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69307
69308         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69309         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69310         set wc to the byte which couldn't be converted.
69311         (re_string_reconstruct): Don't clear valid_raw_len before calling
69312         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69313         tip_context using re_string_context_at.
69314
69315         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69316
69317         * lib/posix/regex.h: g++ still cannot handled [restrict].
69318
69319         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69320
69321         * lib/posix/regex.h: Remove special handling for VMS.
69322
69323 2006-08-10  Jim Meyering  <jim@meyering.net>
69324
69325         * modules/same-inode: New module.
69326         * modules/dev-ino: New module.
69327         * modules/cycle-check: Depend on these modules, rather than simply
69328         including their .h files.
69329         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69330         required via m4/cycle-check.m4.
69331         * modules/same: Depend on new same-inode module, rather than
69332         including same-inode.h.
69333         * modules/chdir-safer: New file.
69334
69335         * modules/chown (Depends-on): Add stat-macros.
69336
69337 2006-08-10  Jim Meyering  <jim@meyering.net>
69338
69339         * m4/cycle-check.m4: New file.
69340         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69341         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69342
69343 2006-08-10  Eric Blake  <ebb9@byu.net>
69344
69345         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69346         in from original proposal.
69347
69348 2006-08-10  Eric Blake  <ebb9@byu.net>
69349         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69350
69351         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69352         namespace.
69353
69354 2006-08-10  Bruno Haible  <bruno@clisp.org>
69355
69356         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69357         as well.
69358
69359 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         Sync from coreutils.
69362
69363         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69364
69365         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69366         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69367
69368 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69369
69370         * modules/restrict: Remove; no longer needed now that we assume
69371         Autoconf 2.59 or later.
69372         * MODULES.html.sh: Remove 'restrict'.
69373         * modules/argp (Depends-on): Remove 'restrict'.
69374         * modules/base64 (Depends-on): Likewise.
69375         * modules/gc (Depends-on): Likewise.
69376         * modules/getaddrinfo (Depends-on): Likewise.
69377         * modules/glob (Depends-on): Likewise.
69378         * modules/inet_ntop (Depends-on): Likewise.
69379         * modules/inet_pton (Depends-on): Likewise.
69380         * modules/memxor (Depends-on): Likewise.
69381         * modules/regex (Depends-on): Likewise.
69382         * modules/strtok_r (Depends-on): Likewise.
69383         * modules/time_r (Depends-on): Likewise.
69384
69385 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69388         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69389         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69390         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69391         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69392         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69393         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69394         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69395
69396         Merge from coreutils.
69397         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69398         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69399         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69400         * m4/time_r.m4 (gl_TIME_R): Likewise.
69401
69402 2006-08-09  Karl Berry  <karl@gnu.org>
69403
69404         * config/srclist.txt: no more gettext-tools, per Bruno.
69405
69406 2006-08-08  Eric Blake  <ebb9@byu.net>
69407
69408         * modules/verror: New module.
69409         * MODULES.html.sh: Document it.
69410
69411 2006-08-08  Eric Blake  <ebb9@byu.net>
69412
69413         * lib/verror.h, lib/verror.c: New files.
69414
69415 2006-08-08  Eric Blake  <ebb9@byu.net>
69416
69417         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69418         verror_at_line output complies with GNU Coding Standards even when
69419         file is NULL.
69420
69421 2006-08-07  Bruno Haible  <bruno@clisp.org>
69422
69423         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69424         versions of AIX.
69425         Reported by Ralf Wildenhues.
69426
69427 2006-08-07  Bruno Haible  <bruno@clisp.org>
69428
69429         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69430         in an AC_DEFUN. Needed so that the autoconf snippets can use
69431         AC_REQUIRE.
69432
69433 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69434
69435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69436         Initialize pkgdata_DATA.
69437         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69438         overriding it.
69439
69440 2006-08-06  Eric Blake  <ebb9@byu.net>
69441
69442         * lib/error.h: Fold in some upstream changes from glibc.
69443         * lib/error.c: Likewise.
69444
69445 2006-08-04  Bruno Haible  <bruno@clisp.org>
69446
69447         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69448         Make the mostlyclean-local rule depend on mostlyclean-generic.
69449         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69450
69451 2006-07-31  Bruno Haible  <bruno@clisp.org>
69452
69453         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69454         <stdlib.h>, <string.h>.
69455
69456 2006-07-30  Bruno Haible  <bruno@clisp.org>
69457
69458         * modules/readlink (License): Change to LGPL.
69459
69460 2006-07-30  Bruno Haible  <bruno@clisp.org>
69461
69462         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69463         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69464         set PKGDATADIR to point to it.
69465
69466 2006-07-30  Bruno Haible  <bruno@clisp.org>
69467
69468         * modules/csharpexec (configure.ac): Comment out macro invocation.
69469         * modules/javaexec (configure.ac): Likewise.
69470         * modules/javacomp-script (configure.ac): Likewise.
69471
69472         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69473
69474 2006-07-30  Bruno Haible  <bruno@clisp.org>
69475
69476         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69477         linked-list.
69478
69479 2006-07-30  Bruno Haible  <bruno@clisp.org>
69480
69481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69482
69483 2006-07-30  Bruno Haible  <bruno@clisp.org>
69484
69485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69486         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69487         get removed.
69488
69489 2006-07-29  Bruno Haible  <bruno@clisp.org>
69490
69491         Make it possible for gnulib-tool to work with locally modified or
69492         augmented gnulib repositories.
69493         * gnulib-tool (func_usage): Document --local-dir option.
69494         (local_gnulib_dir): New variable.
69495         Handle --local-dir option.
69496         (func_lookup_file): New function.
69497         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69498         (func_get_description, func_get_filelist, func_get_description,
69499         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69500         func_get_automake_snippet, func_get_include_directive,
69501         func_get_license, func_get_maintainer): Use func_lookup_file.
69502         (func_import, func_create_testdir): Use func_lookup_file.
69503
69504 2006-07-29  Bruno Haible  <bruno@clisp.org>
69505
69506         * modules/setenv (Depends-on): Add unistd.
69507
69508 2006-07-29  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69511
69512 2006-07-29  Bruno Haible  <bruno@clisp.org>
69513
69514         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69515
69516 2006-07-29  Bruno Haible  <bruno@clisp.org>
69517
69518         * gnulib-tool (import, update): If there is no Makefile.am, look at
69519         aclocal.m4, instead of bailing out.
69520
69521 2006-07-29  Bruno Haible  <bruno@clisp.org>
69522
69523         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69524         Categorize the options by when they are useful.
69525
69526 2006-07-29  Bruno Haible  <bruno@clisp.org>
69527
69528         * gnulib-tool (func_usage): Document option --no-libtool.
69529         Handle option --no-libtool.
69530         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69531         for changed semantics of $libtool variable.
69532         (func_import): Likewise. If libtool is not used, show this through
69533         an option --no-libtool.
69534         (func_create_testdir): Update.
69535
69536 2006-07-29  Bruno Haible  <bruno@clisp.org>
69537
69538         * gnulib-tool (func_import): Extend error message about missing
69539         --doc-base.
69540
69541 2006-07-29  Bruno Haible  <bruno@clisp.org>
69542
69543         * gnulib-tool (func_import): Don't create the $docbase directory if
69544         there is no file to store there.
69545
69546 2006-07-29  Bruno Haible  <bruno@clisp.org>
69547
69548         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69549         relevant, look for configure.ac there, not in the current directory.
69550         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69551
69552 2006-07-29  Bruno Haible  <bruno@clisp.org>
69553
69554         * gnulib-tool (SORT): New variable.
69555         (func_usage): Undocument --assume-autoconf option.
69556         Remove --assume-autoconf option handling.
69557         (autoconf_minversion): Determine from the contents of configure.ac.
69558         (func_import): Remove autoconf_minversion handling.
69559         Suggested by Eric Blake.
69560
69561 2006-07-29  Bruno Haible  <bruno@clisp.org>
69562
69563         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69564
69565 2006-07-29  Bruno Haible  <bruno@clisp.org>
69566
69567         * config/srclist.txt (*setenv.[ch]): Remove rules.
69568
69569 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69570
69571         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69572
69573 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69574
69575         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69576         arpa/inet.h.
69577
69578 2006-07-28  Simon Josefsson  <jas@extundo.com>
69579
69580         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69581         * modules/inet_pton (Depends-on): Likewise.
69582
69583 2006-07-28  Simon Josefsson  <jas@extundo.com>
69584
69585         * m4/netinet_in_h.m4: New file.
69586
69587 2006-07-28  Simon Josefsson  <jas@extundo.com>
69588
69589         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69590         #include's.
69591
69592 2006-07-28  Simon Josefsson  <jas@extundo.com>
69593
69594         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69595         #include's.
69596
69597 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69600         setgid on directories only if they set these bits.
69601         * lib/modechange.h: Remove obsolete comment about masks.
69602
69603 2006-07-28  Eric Blake  <ebb9@byu.net>
69604
69605         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69606         macro expansion.
69607
69608 2006-07-28  Bruno Haible  <bruno@clisp.org>
69609
69610         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69611
69612 2006-07-28  Bruno Haible  <bruno@clisp.org>
69613
69614         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69615
69616 2006-07-28  Bruno Haible  <bruno@clisp.org>
69617
69618         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69619         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69620         Define fallbacks.
69621         Avoids link error on FreeBSD 4.x.
69622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69623
69624         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69625         encoding.
69626         * lib/mbswidth.c (iswcntrl): Likewise.
69627
69628 2006-07-27  Bruno Haible  <bruno@clisp.org>
69629
69630         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69631         test.
69632
69633 2006-07-27  Bruno Haible  <bruno@clisp.org>
69634
69635         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69636         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69637         defined.
69638
69639 2006-07-26  Eric Blake  <ebb9@byu.net>
69640
69641         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69642
69643 2006-07-26  Eric Blake  <ebb9@byu.net>
69644
69645         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69646         like mingw that lack mkstemp.
69647         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69648         avoid compilation warning on mingw.
69649
69650 2006-07-26  Bruno Haible  <bruno@clisp.org>
69651
69652         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69653         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69654         INT_FAST*_MIN, INTPTR_MIN.
69655
69656 2006-07-25  Bruno Haible  <bruno@clisp.org>
69657
69658         * modules/version-etc (Depends-on): Add stdarg.
69659
69660 2006-07-25  Bruno Haible  <bruno@clisp.org>
69661
69662         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69663         complex commands.
69664
69665 2006-07-25  Bruno Haible  <bruno@clisp.org>
69666
69667         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69668         defined in <stdarg.h> or config.h.
69669
69670 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69673         (gl_STDIO_SAFER): Remove.
69674
69675 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * MODULES.html.sh (File stream based Input/Output):
69678         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69679         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69680         * modules/fopen-safer, modules/tmpfile-safer: New files.
69681         * modules/stdio-safer: Remove.
69682
69683 2006-07-24  Bruno Haible  <bruno@clisp.org>
69684
69685         * modules/tmpdir: New file.
69686         * MODULES.html.sh (File system functions): Add it.
69687
69688 2006-07-24  Bruno Haible  <bruno@clisp.org>
69689
69690         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69691         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69692
69693 2006-07-24  Bruno Haible  <bruno@clisp.org>
69694
69695         * modules/clean-temp: New file.
69696
69697 2006-07-24  Bruno Haible  <bruno@clisp.org>
69698
69699         * m4/tmpdir.m4: New file, from GNU gettext.
69700
69701 2006-07-24  Bruno Haible  <bruno@clisp.org>
69702
69703         * lib/tmpdir.h: New file, from GNU gettext.
69704         * lib/tmpdir.c: New file, from GNU gettext.
69705
69706 2006-07-24  Bruno Haible  <bruno@clisp.org>
69707
69708         * lib/clean-temp.h: New file, from GNU gettext.
69709         * lib/clean-temp.c: New file, from GNU gettext.
69710
69711 2006-07-23  Eric Blake  <ebb9@byu.net>
69712
69713         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69714         (Depends-on): Add binary-io.
69715
69716 2006-07-23  Eric Blake  <ebb9@byu.net>
69717
69718         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69719
69720 2006-07-23  Eric Blake  <ebb9@byu.net>
69721
69722         * lib/tmpfile-safer.c: New file.
69723         * lib/stdio-safer.h (fopen_safer): Add prototype.
69724         * lib/stdio--.h (tmpfile): Make safer.
69725
69726 2006-07-23  Bruno Haible  <bruno@clisp.org>
69727
69728         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69729         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69730         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69731         gl_linked_remove_at): Use it.
69732
69733 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69734         and Simon Josefsson <jas@extundo.com>
69735
69736         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69737
69738         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69739
69740 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * modules/close-stream: New file.
69743         * modules/closeout (Description): Make it clear that it exits
69744         with a diagnostic on error.
69745         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69746         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69747
69748 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69749
69750         * m4/close-stream.m4: New file.
69751
69752 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/close-stream.c, lib/close-stream.h: New files.
69755
69756 2006-07-22  Bruno Haible  <bruno@clisp.org>
69757
69758         Merge from GNU gettext 0.15.
69759
69760         2006-05-01  Bruno Haible  <bruno@clisp.org>
69761
69762                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69763
69764         2006-07-22  Bruno Haible  <bruno@clisp.org>
69765
69766                 * modules/javaversion: New file.
69767                 * MODULES.html.sh (Java): Add javaversion.
69768
69769         2006-03-12  Bruno Haible  <bruno@clisp.org>
69770
69771                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69772
69773         2005-12-04  Bruno Haible  <bruno@clisp.org>
69774
69775                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69776                 (untested).
69777
69778         2006-06-21  Bruno Haible  <bruno@clisp.org>
69779
69780                 Avoid warnings from recent versions of mcs.
69781                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69782                 -o, -L, -r any more. Use options documented since mcs-1.0
69783                 instead. Similarly for -g.
69784
69785         2005-12-04  Bruno Haible  <bruno@clisp.org>
69786
69787                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69788                 .resources, not .resource.
69789
69790         2005-07-09  Bruno Haible  <bruno@clisp.org>
69791
69792                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69793                 add a .dll suffix.
69794                 Reported by Mark Junker <mjscod@gmx.de>.
69795
69796         2006-07-22  Bruno Haible  <bruno@clisp.org>
69797
69798                 * modules/gettext: Upgrade to gettext-0.15.
69799                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69800                 m4/visibility.m4.
69801                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69802
69803 2006-07-22  Bruno Haible  <bruno@clisp.org>
69804
69805         Merge from GNU gettext 0.15.
69806
69807         2006-03-25  Bruno Haible  <bruno@clisp.org>
69808
69809                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69810
69811         2006-07-21  Bruno Haible  <bruno@clisp.org>
69812
69813                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69814                 "1.1".
69815
69816         2006-05-09  Bruno Haible  <bruno@clisp.org>
69817
69818                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69819                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69820                 for the conftestver execution.
69821
69822         2006-05-01  Bruno Haible  <bruno@clisp.org>
69823
69824                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69825                 optional target-version argument. Verify that the compiler
69826                 groks source of the specified source-version, or add -source
69827                 option as necessary. Verify that the compiler produces
69828                 bytecode in the specified target-version, or add -target and
69829                 -source options as necessary. Make the result of the test
69830                 available as variable CONF_JAVAC. Also log error output in
69831                 config.log.
69832
69833         2006-03-11  Bruno Haible  <bruno@clisp.org>
69834
69835                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69836
69837         2006-05-09  Bruno Haible  <bruno@clisp.org>
69838
69839                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69840                 CLASSPATH_SEPARATOR to a semicolon.
69841
69842         2006-03-12  Bruno Haible  <bruno@clisp.org>
69843
69844                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69845                 available as variable CONF_JAVA, for subsequent autoconf
69846                 tests. Also log error output in config.log.
69847
69848         2006-07-19  Bruno Haible  <bruno@clisp.org>
69849
69850                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69851                 that getline works on glibc2 systems. Needed to avoid trouble
69852                 in relocatable.c.
69853                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69854
69855         2005-12-04  Bruno Haible  <bruno@clisp.org>
69856
69857                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69858                 launcher (untested).
69859
69860         2005-12-04  Bruno Haible  <bruno@clisp.org>
69861
69862                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69863
69864         2006-07-22  Bruno Haible  <bruno@clisp.org>
69865
69866                 * gettext.m4: Update from GNU gettext-0.15.
69867                 * nls.m4: Likewise.
69868                 * po.m4: Likewise.
69869                 * inttypes-pri.m4: Likewise.
69870                 * inttypes-h.m4: Renamed from inttypes.m4.
69871                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69872
69873 2006-07-22  Bruno Haible  <bruno@clisp.org>
69874
69875         Merge from GNU gettext 0.15.
69876
69877         2005-07-05  Bruno Haible  <bruno@clisp.org>
69878
69879                 * printf-args.c (printf_fetchargs): Work around broken
69880                 definition of wint_t on mingw.
69881
69882         2005-02-12  Bruno Haible  <bruno@clisp.org>
69883
69884                 * xallocsa.h: Add extern "C" for C++.
69885
69886         2006-05-17  Bruno Haible  <bruno@clisp.org>
69887
69888                 Cygwin portability.
69889                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69890
69891         2006-04-30  Bruno Haible  <bruno@clisp.org>
69892
69893                 * progreloc.c: Include <mach-o/dyld.h> if available.
69894                 (find_executable): Use _NSGetExecutablePath when possible.
69895
69896         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69897
69898                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69899                 function.
69900
69901         2005-12-29  Bruno Haible  <bruno@clisp.org>
69902
69903                 * progreloc.c (set_program_name_and_installdir): Fix
69904                 compilation error.
69905
69906         2005-12-04  Bruno Haible  <bruno@clisp.org>
69907
69908                 Cygwin portability.
69909                 * progreloc.c: Include <windows.h> also on Cygwin.
69910                 (find_executable): Add support for Cygwin.
69911                 (set_program_name_and_installdir): Handle also platforms with
69912                 nonempty EXEEXT.
69913
69914         2006-07-11  Bruno Haible  <bruno@clisp.org>
69915
69916                 * javacomp.c: Fix a comment.
69917                 Reported by Jim Meyering.
69918
69919         2006-04-30  Bruno Haible  <bruno@clisp.org>
69920
69921                 * javacomp.h (compile_java_class): Add source_version,
69922                 target_version arguments.
69923                 * javacomp.c: Rewritten to choose only a compiler that
69924                 respects the specified source_version and target_version.
69925
69926         2006-06-27  Bruno Haible  <bruno@clisp.org>
69927
69928                 Assume correct S_ISDIR macro.
69929                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69930
69931         2006-07-22  Bruno Haible  <bruno@clisp.org>
69932
69933                 * javaversion.h: New file, from GNU gettext.
69934                 * javaversion.c: New file, from GNU gettext.
69935                 * javaversion.java: New file, from GNU gettext.
69936                 * javaversion.class: New file, from GNU gettext.
69937
69938         2006-05-17  Bruno Haible  <bruno@clisp.org>
69939
69940                 Cygwin portability.
69941                 * javaexec.c (execute_java_class): Test for jview program
69942                 also on Cygwin.
69943
69944         2006-04-09  Bruno Haible  <bruno@clisp.org>
69945
69946                 * fatal-signal.c: Don't include string.h.
69947                 (at_fatal_signal): Use a copying loop instead of memcpy.
69948
69949         2005-12-04  Bruno Haible  <bruno@clisp.org>
69950
69951                 * csharpexec.c: Add support for 'clix' launcher (untested).
69952                 (execute_csharp_using_sscli): New function.
69953                 (execute_csharp_program): Call it.
69954
69955         2006-06-21  Bruno Haible  <bruno@clisp.org>
69956
69957                 Avoid warnings from recent versions of mcs.
69958                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69959                 -o, -L, -r any more. Use options documented since mcs-1.0
69960                 instead. Similarly for -g.
69961
69962         2005-07-09  Bruno Haible  <bruno@clisp.org>
69963
69964                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69965                 add a .dll suffix.
69966                 Reported by Mark Junker <mjscod@gmx.de>.
69967
69968         2006-06-17  Bruno Haible  <bruno@clisp.org>
69969
69970                 * config.charset: Update for NetBSD 3.0.
69971
69972         2006-05-17  Bruno Haible  <bruno@clisp.org>
69973
69974                 Cygwin portability.
69975                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69976
69977         2006-05-16  Bruno Haible  <bruno@clisp.org>
69978
69979                 * localcharset.c [CYGWIN]: Include <windows.h>.
69980                 (get_charset_aliases): For Cygwin, return the same CPxxx
69981                 aliases list as under WIN32.
69982                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69983                 the environment variables. Fall back to GetACP().
69984
69985         2006-04-05  Bruno Haible  <bruno@clisp.org>
69986
69987                 * config.charset: Update Juan Manuel Guerrero's address.
69988
69989         2005-02-12  Bruno Haible  <bruno@clisp.org>
69990
69991                 * allocsa.h: Add extern "C" for C++.
69992
69993         2005-02-10  Bruno Haible  <bruno@clisp.org>
69994
69995                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69996                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69997
69998         2006-07-22  Bruno Haible  <bruno@clisp.org>
69999
70000                 * gettext.h: Update to GNU gettext-0.15.
70001
70002 2006-07-22  Bruno Haible  <bruno@clisp.org>
70003
70004         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70005         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70006         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70007
70008 2006-07-21  Eric Blake  <ebb9@byu.net>
70009
70010         * modules/stdlib-safer: New file.
70011         * MODULES.html.sh (File stream based Input/Output): Add
70012         stdlib-safer.
70013
70014 2006-07-21  Eric Blake  <ebb9@byu.net>
70015
70016         * lib/stdlib-safer.h: New file from coreutils, required by
70017         stdlib--.h.
70018
70019 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70020
70021         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70022
70023 2006-07-20  Bruno Haible  <bruno@clisp.org>
70024
70025         * gnulib-tool: Recognize new option --assume-autoconf.
70026         (autoconf_minversion): New variable.
70027         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70028
70029 2006-07-20  Bruno Haible  <bruno@clisp.org>
70030
70031         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70032
70033 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70034
70035         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70036         Reindent and repaginate.
70037
70038 2006-07-19  Derek Price  <derek@ximbiot.com>
70039
70040         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70041         Correct grammar.
70042
70043 2006-07-17  Bruno Haible  <bruno@clisp.org>
70044
70045         * modules/list: New file.
70046         * modules/array-list: New file.
70047         * modules/carray-list, modules/carray-list-tests: New files.
70048         * modules/linked-list, modules/linked-list-tests: New files.
70049         * modules/avltree-list, modules/avltree-list-tests: New files.
70050         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70051         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70052         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70053         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70054         * modules/oset: New file.
70055         * modules/array-oset: New file.
70056         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70057         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70058         * tests/test-carray_list.c: New file.
70059         * tests/test-linked_list.c: New file.
70060         * tests/test-avltree_list.c: New file.
70061         * tests/test-rbtree_list.c: New file.
70062         * tests/test-linkedhash_list.c: New file.
70063         * tests/test-avltreehash_list.c: New file.
70064         * tests/test-rbtreehash_list.c: New file.
70065         * tests/test-avltree_oset.c: New file.
70066         * tests/test-rbtree_oset.c: New file.
70067         * MODULES.html.sh (Container data structures): New section.
70068
70069 2006-07-17  Bruno Haible  <bruno@clisp.org>
70070
70071         * m4/gl_list.m4: New file.
70072
70073 2006-07-17  Bruno Haible  <bruno@clisp.org>
70074
70075         * lib/gl_list.h: New file.
70076         * lib/gl_list.c: New file.
70077         * lib/gl_array_list.h: New file.
70078         * lib/gl_array_list.c: New file.
70079         * lib/gl_carray_list.h: New file.
70080         * lib/gl_carray_list.c: New file.
70081         * lib/gl_linked_list.h: New file.
70082         * lib/gl_linked_list.c: New file.
70083         * lib/gl_anylinked_list1.h: New file.
70084         * lib/gl_anylinked_list2.h: New file.
70085         * lib/gl_avltree_list.h: New file.
70086         * lib/gl_avltree_list.c: New file.
70087         * lib/gl_anyavltree_list1.h: New file.
70088         * lib/gl_anyavltree_list2.h: New file.
70089         * lib/gl_rbtree_list.h: New file.
70090         * lib/gl_rbtree_list.c: New file.
70091         * lib/gl_anyrbtree_list1.h: New file.
70092         * lib/gl_anyrbtree_list2.h: New file.
70093         * lib/gl_anytree_list1.h: New file.
70094         * lib/gl_anytree_list2.h: New file.
70095         * lib/gl_linkedhash_list.h: New file.
70096         * lib/gl_linkedhash_list.c: New file.
70097         * lib/gl_anyhash_list1.h: New file.
70098         * lib/gl_anyhash_list2.h: New file.
70099         * lib/gl_avltreehash_list.h: New file.
70100         * lib/gl_avltreehash_list.c: New file.
70101         * lib/gl_rbtreehash_list.h: New file.
70102         * lib/gl_rbtreehash_list.c: New file.
70103         * lib/gl_anytreehash_list1.h: New file.
70104         * lib/gl_anytreehash_list2.h: New file.
70105
70106         * lib/gl_oset.h: New file.
70107         * lib/gl_oset.c: New file.
70108         * lib/gl_array_oset.h: New file.
70109         * lib/gl_array_oset.c: New file.
70110         * lib/gl_avltree_oset.h: New file.
70111         * lib/gl_avltree_oset.c: New file.
70112         * lib/gl_rbtree_oset.h: New file.
70113         * lib/gl_rbtree_oset.c: New file.
70114         * lib/gl_anytree_oset.h: New file.
70115
70116 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70117
70118         * m4/mkancesdirs.m4: New file.
70119         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70120         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70121         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70122         it.
70123
70124 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70125
70126         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70127         * lib/mkancesdirs.h: New files.
70128         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70129         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70130         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70131         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70132         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70133         callers changed.  Revamp internals significantly, by not
70134         attempting to create directories that are temporarily more
70135         permissive than the final results.  Do not attempt to use
70136         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70137         This removes some race conditions, fixes some bugs, and simplifies
70138         things.  Use new dirchownmod function to do owner and mode changes.
70139         * lib/mkdir-p.h: Likewise.
70140         * lib/modechange.c (octal_to_mode): New function.
70141         (struct mode_change): New member mentioned.
70142         (make_node_op_equals): New arg mentioned.  All callers changed.
70143         (mode_compile): Keep track of which mode bits the user has explicitly
70144         mentioned.
70145         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70146         New arg PMODE_BITS, to keep track of which mode bits the user
70147         mentioned; it treats S_ISUID and S_ISGID speciall.
70148         All callers changed.
70149         * lib/modechange.h: Likewise.
70150
70151 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * MODULES.html.sh: Add mkancestors.
70154         * modules/mkancesdirs: New module.
70155         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70156         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70157         The chdir-safer and afs files are now orphans; I'll remove them
70158         unless someone speaks up.
70159         Add lib/dirchownmod.c, lib/dirchownmod.h.
70160         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70161         Add lchown, mkancesdirs.
70162         (Maintainer): Add self.
70163
70164 2006-07-15  Karl Berry  <karl@gnu.org>
70165
70166         * gnulib-tool: help message wording/arrangement.
70167
70168 2006-07-14  Simon Josefsson  <jas@extundo.com>
70169
70170         * doc/gnulib.texi (Libtool and Windows): New section.
70171
70172 2006-07-12  Simon Josefsson  <jas@extundo.com>
70173
70174         * modules/gendocs (License): Fix license, approved by Karl.
70175
70176 2006-07-12  Eric Blake  <ebb9@byu.net>
70177
70178         * MODULES.html.sh: Add gendocs.
70179
70180 2006-07-11  Eric Blake  <ebb9@byu.net>
70181
70182         * modules/fdl: New module, to install doc/fdl.texi.
70183         * MODULES.html.sh: Add new section for documentation modules.
70184         * gnulib-tool: Avoid space-tab.
70185         (--doc-base): New option, to manage files from doc.
70186
70187 2006-07-11  Eric Blake  <ebb9@byu.net>
70188
70189         * m4/absolute-header.m4: Fix comments to match recent change.
70190
70191 2006-07-11  Eric Blake  <ebb9@byu.net>
70192
70193         * gnulib-tool: List --doc-base before --tests-base.
70194
70195 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70196
70197         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70198
70199 2006-07-11  Bruno Haible  <bruno@clisp.org>
70200
70201         * README: Mention where to put documentation.
70202
70203 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70204
70205         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70206
70207 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70210         to stdint.m4.
70211
70212 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70215         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70216         "no/such/file/stdint.h" when there is no such file, so that
70217         the resulting C code can be parsed by dodgy compilers.
70218         Problems reported by Bob Proulx.
70219
70220 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70221
70222         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70223         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70224         macros into the GNU _D_EXACT_NAMLEN.
70225         * lib/savedir.c:  Likewise.
70226         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70227
70228 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70229         and Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70232         * m4/savedir.m4:
70233         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70234         macros into the GNU _D_EXACT_NAMLEN.
70235
70236 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70237
70238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70239         around the absolute name, to work around a problem with the HP-UX
70240         11.23 native C compiler, reported by Bob Proulx.
70241
70242 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * doc/maintain.texi, make-stds.texi: Sync from
70245         <http://savannah.gnu.org/projects/gnustandards>.
70246
70247 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70250
70251 2006-07-09  Jim Meyering  <jim@meyering.net>
70252
70253         * m4/glob.m4: Remove a doubled word in a comment.
70254
70255 2006-07-09  Jim Meyering  <jim@meyering.net>
70256
70257         * lib/argp-pv.c: Remove a doubled word in a comment.
70258         * lib/check-version.c (check_version): Likewise.
70259         * lib/javacomp.c (compile_java_class): Likewise.
70260
70261 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70262
70263         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70264         for the benefit of people using Autoconf 2.60.  If you want to
70265         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70266         (or m4/onceonly.m4, if pre-2.57) manually.
70267
70268 2006-07-08  Jim Meyering  <jim@meyering.net>
70269
70270         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70271         comment.
70272         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70273         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70274         comment.
70275
70276 2006-07-08  Jim Meyering  <jim@meyering.net>
70277
70278         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70279
70280 2006-07-07  Simon Josefsson  <jas@extundo.com>
70281
70282         * tests/test-crc.c: Change expected crc value, the test vector
70283         were probably computed using the old broken crc.c?
70284
70285 2006-07-06  Simon Josefsson  <jas@extundo.com>
70286
70287         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70288         now the canonical place for the M4 file).
70289
70290         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70291         from the sys_socket dependency now.
70292
70293         * modules/inet_pton (Files): Ditto.
70294
70295         * modules/inet_ntop (Files): Ditto.
70296
70297 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70298
70299         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70300         not gl_PREREQ_GETUSERSHELL.
70301
70302 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70303
70304         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70305         with only one argument, for Autoconf 2.60.
70306         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70307         expand to nothing, so add a shell command to avoid syntax error.
70308         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70309
70310 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70311
70312         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70313
70314 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70317         no longer needed.  Check for isblank decl.
70318         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70319         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70320         of existence.
70321
70322 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * lib/getloadavg.c: Use __VMS, not VMS.
70325         * lib/getopt.c: Likewise.
70326         * lib/getpagesize.h: Likewise.
70327         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70328         and probably does not work.
70329
70330 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70331
70332         * lib/.cppi-disable: Add wcwidth.
70333         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70334         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70335         (ISGRAPH): Remove.  All uses changed to isgraph.
70336         (FOLD) [!defined _LIBC]: Remove special case.
70337         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70338         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70339         HAVE_ISBLANK.
70340         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70341         case.
70342
70343 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70344
70345         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70346         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70347         brackets.  Other minor changes to suppress some compiler
70348         warnings.
70349
70350 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70351         and Paul Eggert  <eggert@cs.ucla.edu>
70352
70353         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70354         of invoking obsolescent AC_HEADER_DIRENT macro.
70355         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70356         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70357         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70359         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70360         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70361         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70362         * m4/readdir.m4: Remove; no longer needed.
70363
70364 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70365         and Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70368         Don't worry about this obsolete case any more.
70369         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70370         directories.
70371         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70372         worry about this obsolete case any more.
70373         * lib/fts.c: Likewise.
70374         * lib/getcwd.c: Likewise.
70375         * lib/glob.h: Likewise.
70376         * lib/savedir.c: Likewise.
70377
70378 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70381         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70382         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70383         needed.
70384         All uses removed.
70385         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70386         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70387         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70388         needed.
70389         * m4/getdate.m4 (gl_GETDATE): Likewise.
70390         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70391         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70392         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70393         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70394         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70395         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70396         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70397         needed.
70398
70399 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * lib/memcasecmp.c: Include <limits.h>.
70402         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70403         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70404         Don't assume isdigit succeeds only on '0' through '9'.
70405
70406 2006-07-05  Eric Blake  <ebb9@byu.net>
70407
70408         * modules/getaddrinfo (Depends-on): Add snprintf.
70409
70410 2006-07-05  Eric Blake  <ebb9@byu.net>
70411
70412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70413         to avoid 'header present but could not be compiled' on cygwin.
70414
70415 2006-07-05  Eric Blake  <ebb9@byu.net>
70416
70417         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70418         missing from netdb.h.
70419         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70420
70421 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70422
70423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70424         no longer needed.
70425         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70426         * m4/getdate.m4 (gl_GETDATE): Likewise.
70427         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70428         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70430         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70431         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70432
70433 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70434
70435         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70436         All uses of is_space replaced by isspace.
70437         * lib/exit.h: Don't talk about STDC_HEADERS.
70438         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70439         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70440         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70441         replaced by isprint etc.
70442         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70443         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70444         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70445         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70446         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70447         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70448
70449 2006-07-05  Bruno Haible  <bruno@clisp.org>
70450
70451         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70452         the function exists, before testing against AIX.
70453         Reported by Martin Lambers <marlam@marlam.de>.
70454
70455 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70458         From Mark D. Baushke.
70459
70460 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70461
70462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70463         to the absolute name, not just one, to bypass Sun C 5.8's
70464         "warning: #include of /usr/include/... may be non-portable".
70465
70466 2006-07-04  Eric Blake  <ebb9@byu.net>
70467
70468         * modules/dirname-tests: New test module.
70469         * tests/test-dirname.c: New file, replacing dirname.c
70470         TEST_DIRNAME section that was recently deleted.
70471
70472 2006-07-04  Bruno Haible  <bruno@clisp.org>
70473
70474         Assume ANSI C header files and <ctype.h> functions.
70475         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70476         (mbsnwidth): Use isprint, iscntrl instead.
70477
70478 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         Merge from coreutils.
70481         * MODULES.html.sh: Add xstrtold.
70482         * modules/xstrtold: New file.
70483         * modules/cycle-check (Files): Add lib/same-inode.h.
70484         * modules/dirname (Files): Add m4/double-slash-root.m4.
70485         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70486         * modules/mkdir-p (Files): Add lib/same-inode.h.
70487         * modules/same (Files): Add lib/same-inode.h.
70488
70489 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70492         This is to keep the terminology clean; POSIX talks about
70493         "absolute pathnames", not "full pathnames", but the GNU
70494         Coding Standards say to use "path" for something else;
70495         so use "absolute" to keep both sides happy.
70496         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70497         Set gl_absolute_header, not gl_full_header_path.
70498         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70499         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70500         All uses changed.
70501
70502         Merge from coreutils.
70503
70504         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70505
70506         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70507         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70508         want to require the building of c-strtod.o.
70509         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70510         needs -lm directly.
70511         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70512
70513         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70516         --as-needed option if available.  Problem reported by Albert Chin in
70517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70518         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70519         cc merely issues a bunch of annoying warnings for --as-needed
70520         (this problem was reported by Bob Proulx).  Also, try linking with
70521         -lm to detect a bug in binutils 2.16 (this problem was reported
70522         by Ralf Wildenhues).
70523
70524         2006-06-18  Jim Meyering  <jim@meyering.net>
70525
70526         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70527         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70528         macro.
70529         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70530         also check for glibc-2.4's abort-inducing bug.
70531
70532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70533         Low-probability clean-up should be to use rmdir to get rid of
70534         the just-created directory, not unlink.
70535
70536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70537         configure fail, and request a bug report to inform us about it.
70538         Add a comment that, barring reports to the contrary, in 2007 we'll
70539         assume ftruncate is universally available.
70540
70541         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70544
70545         2006-03-12  Jim Meyering  <jim@meyering.net>
70546
70547         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70548         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70549         * m4/same.m4 (gl_SAME): Likewise.
70550         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70551
70552         2006-03-11  Eric Blake  <ebb9@byu.net>
70553
70554         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70555         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70556         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70557         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70558
70559 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70562         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70563         reported by Mark D. Baushke, one in
70564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70565
70566         Merge from coreutils.
70567
70568         * lib/.cppi-disable: Add stdint_.h.
70569         * lib/.cvsignore: Add stdint.h.
70570
70571         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70574         both double and long double versions.
70575         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70576         * lib/xstrtold.c: New file.
70577         * lib/xstrtod.h (xstrtold): New decl.
70578
70579         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * lib/filemode.c (setst): Remove.
70582         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70583         (arguably) clearer, and the generated code is a bit smaller on my
70584         Debian GNU/Linux stable x86 host.
70585
70586         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70589         Assume that filemode.h includes sys/types.h and sys/stat.h.
70590         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70591         (ftypelet): Reorder to put common cases first, for efficiency.
70592         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70593         to do 'M'.
70594         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70595         of 10, for compatibility with FreeBSD.  All callers changed.
70596         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70597         types that can't be deduced solely from st_mode.  First arg is now a
70598         const pointer.
70599         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70600         (strmode): Renamed from mode_string.
70601         (filemodestring): New decl.
70602         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70603         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70604         needed.
70605         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70606
70607         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70610         fsusage.h now does that.  Include fsusage.h first, to test interface.
70611         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70612         at most one method (the old code could have generated decls that
70613         didn't conform to C89, not that this was ever exercised).
70614         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70615
70616         2006-03-19  Jim Meyering  <jim@meyering.net>
70617
70618         Work even in a chroot where d_ino values for entries in "/"
70619         don't match the stat.st_ino values for the same names.
70620         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70621         number, iterate through all entries again, using lstat instead.
70622         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70623         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70624
70625         * lib/getcwd.c (__getcwd): Clarify a comment.
70626         Use memcpy in place of a call to strcpy.
70627
70628         2006-03-12  Jim Meyering  <jim@meyering.net>
70629
70630         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70631         matches that of the current directory (which we're about to chdir ".."
70632         out of), then save the dev-ino of the parent, instead.
70633
70634         * lib/same-inode.h (SAME_INODE): New file/macro.
70635         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70636         Include "same-inode.h", instead.
70637         * lib/same.c: Likewise.
70638         * lib/cycle-check.h: Include "same-inode.h".
70639         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70640         * lib/cycle-check.c (SAME_INODE): Remove definition.
70641         * lib/root-dev-ino.h: Include "same-inode.h".
70642
70643         2006-03-11  Eric Blake  <ebb9@byu.net>
70644
70645         * lib/same.c (same_name): s/base_name/last_component/
70646         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70647         * lib/filenamecat.c (file_name_concat): Likewise.
70648
70649         2006-03-11  Eric Blake  <ebb9@byu.net>,
70650                     Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70653         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70654         drive prefix.
70655         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70656         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70657         (last_component): New method.
70658         * lib/dirname.c (dir_len): Determine when drive letters need a
70659         subsequent slash.  Preserve // when it is special.
70660         (dir_name): Don't append dot when drive letter is absolute.
70661         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70662         * lib/basename.c (base_name): New semantics - malloc the result.
70663         Preserve // when it is special.  Preserve relative files that look
70664         like drive letters.
70665         (base_len): Preserve // when it is special.
70666         (last_component): New method, similar to old base_name semantics.
70667         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70668         base_name.  Strip redundant slashes from ///.
70669
70670 2006-07-03  Jim Meyering  <jim@meyering.net>
70671
70672         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70673         macro is used before the first cycle_check call.
70674
70675 2006-07-03  Eric Blake  <ebb9@byu.net>
70676
70677         * modules/dirname (Depends-on): Add xstrndup.
70678
70679 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70682         test cases, so that config.log is a bit easier to follow.
70683
70684 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70687         both are 64 bits, since this seems to be the tradition, and this
70688         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70689         we ever run into a host that prefers long long to long in this
70690         case, we'll need another configure-time test.  Problem reported by
70691         Jim Meyering.
70692
70693 2006-07-02  Eric Blake  <ebb9@byu.net>
70694
70695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70696
70697 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * modules/inttypes (Depends-on): No longer depends on stdint.
70700         * modules/stdint (Description): Say more about assumptions.
70701         Say that the fast types might differ.  Say macros are used.
70702         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70703         (Makefile.am): Revise list of substituted symbols to match
70704         new stdint.m4.
70705         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70706         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70707         * tests/test-stdint.c (verify_same_types)
70708         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70709         the code conforms to C99/C89.
70710         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70711         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70712
70713 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70716         but fix a bug, by requiring at least 64 bits.
70717         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70718         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70719         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70720         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70721
70722         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70723         changes.  Make 2.59 a prerequisite.  Check and substitute for
70724         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70725         inttypes.h.  Do not use special include files; just use the
70726         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70727         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70728         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70729         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70730         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70731         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70732         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70733         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70734         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70735         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70736         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70737         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70738         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70739         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70740         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70741         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70742         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70743         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70744         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70745         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70746         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70747         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70748         not check for things that C99 does not require, e.g., int8_t.  If
70749         a test isn't needed unless <stdint.h> isn't working, and is
70750         unlikely to be needed for any other reason, then don't do it
70751         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70752         size_t, since we assume C89 freestanding at least.  Do not check
70753         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70754         the right thing even if the types are not defined.  Instead use:
70755         (gl_STDINT_TYPE_PROPERTIES): New macro.
70756         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70757         testing whether <sys/types.h> clashes, as Autoconf does this for
70758         us now.  All uses removed.
70759         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70760         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70761         (gl_CHECK_TYPE_SAME):
70762         Remove; no longer needed.
70763         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70764         exists, since we'll return 0 anyway in that case.
70765         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70766
70767 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70770         possible collision with system files.
70771         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70772         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70773         WCHAR_MIN and WCHAR_MAX in this case.
70774         (<stddef.h>): Do not include; no longer needed.
70775         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70776         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70777         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70778         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70779         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70780         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70781         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70782         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70783         !defined(__c99))]: Include in this case too, since it's harmless
70784         now.
70785         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70786         dangerous to do so.
70787         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70788         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70789         (_STDINT_MIN, _STDINT_MAX): New macros.
70790         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70791         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70792         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70793         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70794         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70795         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70796         macros, not typedefs; this simplifies things quite a bit.
70797         Use long int for all types narrower than int64_t.
70798         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70799         Define in terms of long long int or int64_t or long int,
70800         not int64_t or int32_t.  This saves some compile-time testing.
70801         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70802         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70803         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70804         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70805         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70806         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70807         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70808         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70809         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70810         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70811         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70812         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70813         undef any previous version and define our own version, for
70814         simplicity and consistency with the new macros for types.
70815         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70816         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70817         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70818         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70819         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70820         @WINT_T_SUFFIX@ to keep things simple here.
70821         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70822         Simplify by assuming typical 8/16/32/64 host, since we're
70823         already doing that elsewhere anyway.
70824         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70825         and assume long long int is 64 bits if available.  This
70826         speeds up 'configure'.
70827
70828 2006-07-01  Eric Blake  <ebb9@byu.net>
70829
70830         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70831         Reported by Andreas Buening.
70832
70833 2006-07-01  Eric Blake  <ebb9@byu.net>
70834
70835         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70836
70837 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70838
70839         * lib/getaddrinfo.c: fixed typo
70840
70841 2006-06-29  Jim Meyering  <jim@meyering.net>
70842
70843         * modules/strftime (Maintainer): Add my name, since with the
70844         FPRINTFTIME changes strftime.c has forked from glibc.
70845
70846 2006-06-29  Eric Blake  <ebb9@byu.net>
70847
70848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70849
70850 2006-06-29  Eric Blake  <ebb9@byu.net>
70851
70852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70853
70854 2006-06-29  Eric Blake  <ebb9@byu.net>
70855
70856         * lib/stat_.h: New file.
70857
70858 2006-06-29  Eric Blake  <ebb9@byu.net>
70859
70860         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70861         unused static function.
70862
70863 2006-06-29  Eric Blake  <ebb9@byu.net>
70864
70865         * doc/functions.texi (Function Portability): Document missing lstat
70866         on mingw.
70867
70868 2006-06-29  Eric Blake  <ebb9@byu.net>
70869
70870         * MODULES.html.sh: Add sys_stat.
70871         * modules/sys_stat: New module.
70872         * modules/mkstemp (Depends-on): Add sys_stat.
70873
70874 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70875
70876         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70877
70878 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70879
70880         * m4/c-bs-a.m4: Removed.
70881
70882 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70883
70884         * lib/strftime.c: Assume strftime() exists.
70885
70886 2006-06-29  Derek Price  <derek@ximbiot.com>
70887
70888         * modules/c-bs-a: Removed - \a is C89.
70889         * MODULES.html.sh: Remove c-bs-a.
70890
70891 2006-06-29  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/wcwidth (License): Change to LGPL.
70894
70895 2006-06-28  Simon Josefsson  <jas@extundo.com>
70896
70897         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70898         on _WIN32.
70899
70900         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70901         getnameinfo.
70902
70903 2006-06-28  Simon Josefsson  <jas@extundo.com>
70904
70905         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70906
70907 2006-06-28  Simon Josefsson  <jas@extundo.com>
70908
70909         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70910         functions there.  It will succeed on Windows XP, but on Windows
70911         2000 and (presumably) earlier, it will fail, and use the internal
70912         re-implementation.
70913         (use_win32_p): New function.
70914         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70915         Support AI_NUMERICSERV to disable getservbyname.
70916         (getnameinfo): New function, only supports
70917         NI_NUMERICHOST|NI_NUMERICSERV for now.
70918
70919         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70920         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70921         getnameinfo.
70922
70923 2006-06-28  Eric Blake  <ebb9@byu.net>
70924
70925         * modules/wcwidth: New file.
70926         * modules/mbchar (Depends-on): Add wcwidth.
70927         * modules/mbswidth (Depends-on): Add wcwidth.
70928         * MODULES.html.sh: Add wcwidth.
70929
70930 2006-06-28  Eric Blake  <ebb9@byu.net>
70931
70932         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70934
70935 2006-06-28  Eric Blake  <ebb9@byu.net>
70936
70937         * lib/xvasprintf.h: Fix comments.
70938
70939 2006-06-28  Eric Blake  <ebb9@byu.net>
70940
70941         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70942         * lib/mbswidth.c (wcwidth): Move from here...
70943         * lib/wcwidth.h: ...to this new file.
70944
70945 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70946
70947         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70948
70949         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70950         it's obsolete.
70951         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70952
70953 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70954
70955         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70956         Autoconf 2.60 says this stuff was obsolete.
70957
70958 2006-06-28  Bruno Haible  <bruno@clisp.org>
70959
70960         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70961
70962 2006-06-28  Bruno Haible  <bruno@clisp.org>
70963
70964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70965         gt_TYPE_WCHAR_T.
70966
70967 2006-06-28  Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70970         declaration for wcwidth.
70971         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70972
70973 2006-06-28  Bruno Haible  <bruno@clisp.org>
70974
70975         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70976         (mkdir): Define using _mkdir.
70977
70978 2006-06-28  Bruno Haible  <bruno@clisp.org>
70979
70980         * lib/getaddrinfo.h: Fix POSIX URL.
70981         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70982         _WIN32.
70983         (use_win32_p): Make static.
70984         (getaddrinfo): Reject service name if it is empty or does not consist
70985         solely of decimal digits, or if its value is > 65535.
70986         (getnameinfo): Remove useless casts.
70987
70988 2006-06-27  Simon Josefsson  <jas@extundo.com>
70989
70990         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70991         Eggert and Martin Lambers.
70992
70993 2006-06-27  Simon Josefsson  <jas@extundo.com>
70994
70995         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70996         Eggert and Martin Lambers.
70997
70998 2006-06-27  Bruno Haible  <bruno@clisp.org>
70999
71000         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71001         result to 0, not to empty.
71002         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71003
71004 2006-06-27  Bruno Haible  <bruno@clisp.org>
71005
71006         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71007
71008 2006-06-26  Simon Josefsson  <jas@extundo.com>
71009
71010         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71011         present.
71012
71013 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71014
71015         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71016         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71018
71019 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71020
71021         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71022
71023 2006-06-26  Bruno Haible  <bruno@clisp.org>
71024
71025         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71026
71027 2006-06-26  Bruno Haible  <bruno@clisp.org>
71028
71029         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71030
71031 2006-06-26  Bruno Haible  <bruno@clisp.org>
71032
71033         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71034         SGI C compiler in pre-C99 mode.
71035         Suggested by Mark D. Baushke and Larry Jones.
71036
71037 2006-06-26  Bruno Haible  <bruno@clisp.org>
71038
71039         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71040         WCHAR_MAX.
71041         Reported by Mark D. Baushke and Larry Jones.
71042
71043 2006-06-26  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71046         in pre-C99 mode.
71047         Suggested by Mark D. Baushke and Larry Jones.
71048
71049 2006-06-23  Simon Josefsson  <jas@extundo.com>
71050             Bruno Haible  <bruno@clisp.org>
71051
71052         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71053         Emit mostlyclean-local rule.
71054         (func_emit_tests_Makefile_am): Likewise.
71055         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71056
71057 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71058
71059         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71060
71061 2006-06-23  Bruno Haible  <bruno@clisp.org>
71062
71063         * tests/test-stdint.c: Update to match ISO C 99 Technical
71064         Corrigendum 1.
71065
71066 2006-06-23  Bruno Haible  <bruno@clisp.org>
71067
71068         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71069
71070 2006-06-23  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/stdint_.h: Treat IRIX like OpenBSD.
71073
71074 2006-06-23  Bruno Haible  <bruno@clisp.org>
71075
71076         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71077         ISO C 99 Technical Corrigendum 1.
71078
71079 2006-06-22  Simon Josefsson  <jas@extundo.com>
71080
71081         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71082         MinGW.
71083
71084 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71087         needed.  Some compiler complained about some of them.  Problem reported
71088         by Larry Jones in
71089         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71090
71091 2006-06-21  Simon Josefsson  <jas@extundo.com>
71092
71093         * tests/test-getaddrinfo.c: New file.
71094
71095         * modules/getaddrinfo-tests: New file.
71096
71097         * MODULES.html.sh: Add inet_pton.
71098
71099         * modules/inet_pton: New file.
71100
71101 2006-06-21  Simon Josefsson  <jas@extundo.com>
71102
71103         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71104         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71105         of using the (limited) gnulib implementation on Windows XP.
71106
71107         * m4/inet_pton.m4: New file.
71108
71109 2006-06-21  Simon Josefsson  <jas@extundo.com>
71110
71111         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71112         variable.
71113
71114         * lib/socket_.h: Don't define WINVER.
71115
71116         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71117         slightly modified to work in gnulib.
71118
71119 2006-06-21  Simon Josefsson  <jas@extundo.com>
71120
71121         * doc/gnulib.texi (Windows sockets): Add.
71122
71123 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71124
71125         * lib/read-file.c (fread_file): Start with buffer allocation of
71126         0 bytes rather than 1 byte; this simplifies the code.
71127         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71128         code to free buffer and save/restore errno.
71129         (internal_read_file): Remove unused local.
71130
71131 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71134         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71135         Problem reported by Denis Excoffier in
71136         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71137
71138 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71139
71140         * modules/sys_socket, modules/socklen: Include sys/types since
71141         FreeBSD 4.x's sys/socket.h needs it.
71142
71143 2006-06-19  Simon Josefsson  <jas@extundo.com>
71144
71145         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71146
71147 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71150
71151 2006-06-19  Bruno Haible  <bruno@clisp.org>
71152
71153         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71154         and FULL_PATH_INTTYPES_H in angle brackets.
71155         Reported by Mark D. Baushke <mdb@gnu.org>.
71156
71157 2006-06-17  Eric Blake  <ebb9@byu.net>
71158
71159         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71160         errno.
71161
71162 2006-06-17  Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71165         <sys/inttypes.h>.
71166
71167 2006-06-17  Bruno Haible  <bruno@clisp.org>
71168
71169         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71170         whether errno is declared. Assume <errno.h> declares errno.
71171
71172 2006-06-17  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71175
71176 2006-06-17  Bruno Haible  <bruno@clisp.org>
71177
71178         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71179         problem on Solaris 2.5.1.
71180
71181 2006-06-16  Eric Blake  <ebb9@byu.net>
71182
71183         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71184         * lib/unicodeio.c [!defined errno]: Likewise.
71185         * lib/strtol.c [!defined errno]: Likewise.
71186         * lib/strtod.c [!defined errno]: Likewise.
71187
71188 2006-06-15  Eric Blake  <ebb9@byu.net>
71189
71190         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71191
71192 2006-06-15  Eric Blake  <ebb9@byu.net>
71193
71194         * config/srclist.txt (ssize_t.m4): Lose sync.
71195
71196 2006-06-15  Bruno Haible  <bruno@clisp.org>
71197
71198         * modules/stdint (Files): Include m4/full-header-path.m4,
71199         m4/size_max.m4, m4/wchar_t.m4.
71200         (Makefile.am): Many more substitutions.
71201         * modules/stdint-tests: New file.
71202         * tests/test-stdint.c: New file.
71203
71204 2006-06-15  Bruno Haible  <bruno@clisp.org>
71205
71206         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71207         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71208         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71209         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71210         gl_CHECK_TYPE_SAME): New macros.
71211
71212 2006-06-15  Bruno Haible  <bruno@clisp.org>
71213
71214         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71215
71216 2006-06-15  Bruno Haible  <bruno@clisp.org>
71217
71218         * lib/stdint_.h: Rewritten to be fully auto-configured.
71219         Fixes bug on HP-UX/IA64.
71220
71221 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * lib/getdate.y (__attribute__): Don't define if already defined.
71224         Problem reported by Larry Jones.
71225         * lib/utimens.c (__attribute__): Likewise.
71226
71227 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71228
71229         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71230         reported by Andreas Schwab.
71231
71232 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71233             Bruno Haible  <bruno@clisp.org>
71234
71235         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71236         check for the declaration of strnlen and a run test that exposes the
71237         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71238         rpl_strndup.
71239
71240 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71241             Bruno Haible  <bruno@clisp.org>
71242
71243         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71244
71245 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71246
71247         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71248         compile test, for Tru64 4.0D.
71249
71250 2006-05-28  Karl Berry  <karl@gnu.org>
71251
71252         * config/srclist.txt (printf-args.c): lose sync.
71253
71254 2006-05-26  Martin Lambers  <marlam@marlam.de>
71255
71256         * lib/getpass.c: Updates the test for the native W32 API, and adds
71257         missing includes, thus fixing compilation warnings.
71258
71259 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71260
71261         * lib/exclude.c (exclude_fnmatch): New function.
71262         (excluded_file_name): Call exclude_fnmatch.
71263         * lib/exclude.h (excluded_file_name): New prototype
71264
71265 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * lib/tempname.c (small_open, large_open): New macros.
71268         (__open, __open64) [!_LIBC]: Remove.
71269         (__gen_tempname): Use small_open and large_open instead of __open
71270         and __open64.  This fixes a portability bug on HP-UX 11.11i
71271         reported by Simon Wing-Tang in
71272         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71273
71274 2006-05-24  Bruno Haible  <bruno@clisp.org>
71275
71276         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71277         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71278         Reported by Thorsten Maerz <torte@netztorte.de> via
71279         Aaron Stone <aaron@serendipity.cx>.
71280
71281 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71284         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71285         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71286         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71287         not really conditional on the cache.
71288         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71289
71290 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71291
71292         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71293         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71294         (my_usleep): Don't mishandle maximum value.
71295
71296 2006-05-19  Jim Meyering  <jim@meyering.net>
71297
71298         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71299
71300 2006-05-17  Bruno Haible  <bruno@clisp.org>
71301
71302         Cygwin portability.
71303         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71304
71305 2006-05-17  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/stdint_.h: Fix recognition of Cygwin.
71308
71309 2006-05-15  Bruno Haible  <bruno@clisp.org>
71310
71311         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71312         on libtool patch by Ralf Wildenhues.
71313
71314 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71315
71316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71317         test for C99 conformance; (bool) 0.5 is an integer constant
71318         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71319         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71320
71321 2006-05-11  Simon Josefsson  <jas@extundo.com>
71322
71323         * m4/xvasprintf.m4: Fix obvious typo.
71324
71325 2006-05-11  Jim Meyering  <jim@meyering.net>
71326
71327         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71328         James Lemley.
71329
71330 2006-05-10  Simon Josefsson  <jas@extundo.com>
71331
71332         * lib/md4.c: Typo fix, update copyright years.
71333         (K1, K2): Don't use L because it turn computations into 64-bit on
71334         64-bit platforms.
71335
71336 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71339         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71340         unwanted sign propagation, e.g., on hosts with 64-bit int.
71341         There still are some problems with reeelly weird theoretical hosts
71342         (e.g., 33-bit int) but it's not worth worrying about now.
71343         * lib/sha1.c (rol): Likewise.
71344         (K1, K2, K3, K4): Remove unnecessary L suffix.
71345
71346 2006-05-10  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/des.c: Cast to avoid warnings.
71349
71350 2006-05-09  Bruno Haible  <bruno@clisp.org>
71351
71352         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71353         (Depends-on): Depend also on xsize, stdarg.
71354         (configure.ac): Add gl_XVASPRINTF.
71355
71356 2006-05-09  Bruno Haible  <bruno@clisp.org>
71357
71358         * m4/xvasprintf.m4: New file.
71359
71360 2006-05-09  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71363         (EOVERFLOW): Define fallback value.
71364         (xstrcat): New function.
71365         (xvasprintf): Recognize the special case of a string concatenation.
71366
71367 2006-05-08  Eric Blake  <ebb9@byu.net>
71368
71369         * gnulib-tool (func_version): Base copyright year on CVS date.
71370         (func_emit_copyright_notice): New function.
71371         (func_emit_lib_Makefile_am): Use it.
71372         (func_emit_tests_Makefile_am): Likewise.
71373         (func_import): Likewise.
71374
71375 2006-05-08  Bruno Haible  <bruno@clisp.org>
71376
71377         * modules/stdarg: New file.
71378         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71379
71380 2006-05-08  Bruno Haible  <bruno@clisp.org>
71381
71382         * m4/stdarg.m4: New file, from GNU gettext.
71383
71384 2006-05-08  Bruno Haible  <bruno@clisp.org>
71385
71386         * config/srclist.txt (build-aux/config.rpath): different from latest
71387         release.
71388
71389 2006-05-08  Bruno Haible  <bruno@clisp.org>
71390
71391         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71392
71393 2006-05-05  Jim Meyering  <jim@meyering.net>
71394
71395         * m4/warning.m4: New file, derived from bison's file by the same name.
71396
71397 2006-05-03  Bruno Haible  <bruno@clisp.org>
71398
71399         * lib/stdint_.h: Shorter URL.
71400         * lib/inttypes.h: Likewise.
71401
71402 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71405
71406 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * lib/verify.h: Document the internals better.  Most of this change
71409         was written by Bruno Haible.
71410
71411 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * doc/verify.texi: New file, partly based on a proposal by
71414         Bruno Haible.
71415
71416 2006-05-02  Bruno Haible  <bruno@clisp.org>
71417
71418         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71419         test from here...
71420         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71421
71422 2006-04-29  Bruno Haible  <bruno@clisp.org>
71423
71424         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71425         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71426
71427 2006-04-29  Bruno Haible  <bruno@clisp.org>
71428
71429         * gnulib-tool: Make --update option actually work.
71430
71431 2006-04-29  Bruno Haible  <bruno@clisp.org>
71432
71433         * doc/gcd.texi: New file.
71434         * doc/gnulib.texi: Include it.
71435
71436 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * lib/getdate.y (get_date): When adding relative date, start with the
71439         initial time, not with the result of the first mktime call.
71440
71441 2006-04-25  Bruno Haible  <bruno@clisp.org>
71442
71443         * gnulib-tool (func_import): Output the include directives in three
71444         blocks, sorted separately.
71445         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71446
71447 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71450         to define main with arguments, for C++.  Reported by Eric Blake.
71451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71452         Prefer 'int main ()' to 'int main (void)', for C++.
71453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71455         for 'main', for C99 and C++.
71456
71457 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71460         Don't assume that exit status -1 is valid.
71461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71462         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71463         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71464         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71465         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71466         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71467         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71468         functions can be used without declaring them, or that you can
71469         exit with status -1.
71470         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71471
71472 2006-04-24  Karl Berry  <karl@gnu.org>
71473
71474         * config/srclist.txt (longdouble.m4): sync lost.
71475
71476 2006-04-24  Eric Blake  <ebb9@byu.net>
71477
71478         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71479
71480 2006-04-24  Bruno Haible  <bruno@clisp.org>
71481
71482         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71483         poll() implementation in AIX.
71484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71485
71486 2006-04-24  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71489         assigned exactly once.
71490
71491 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71492             Bruno Haible  <bruno@clisp.org>
71493
71494         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71495         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71496         for AM_CPPFLAGS.
71497
71498 2006-04-23  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/copy-file: Depend on unistd.
71501         * modules/execute: Likewise.
71502         * modules/fatal-signal: Likewise.
71503         * modules/findprog: Likewise.
71504         * modules/mkdtemp : Likewise.
71505         * modules/pipe: Likewise.
71506         * modules/wait-process: Likewise.
71507
71508 2006-04-23  Bruno Haible  <bruno@clisp.org>
71509
71510         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71511         condition was already detected.
71512         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71513
71514 2006-04-23  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/copy-file.c: Include <unistd.h> unconditionally.
71517         * lib/execute.c: Likewise.
71518         * lib/fatal-signal.c: Likewise.
71519         * lib/findprog.c: Likewise.
71520         * lib/mkdtemp.c: Likewise.
71521         * lib/pipe.h: Likewise.
71522         * lib/pipe.c: Likewise.
71523         * lib/wait-process.h: Likewise.
71524
71525 2006-04-23  Bruno Haible  <bruno@clisp.org>
71526
71527         * gnulib-tool (func_usage): Fix --import description. Document
71528         --update.
71529         (func_import): Create temporary file in a temporary directory, if
71530         --dry-run is specified. Silence errors from 'grep' when there are no
71531         m4 files in $m4dir.
71532         (func_create_testdir): Silence errors from 'grep' when there are no
71533         m4 files in $m4dir.
71534         Reported by Karl Berry <karl@freefriends.org>.
71535
71536 2006-04-20  Bruno Haible  <bruno@clisp.org>
71537
71538         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71539         one argument, so that the code will be portable to Autoconf 2.60.
71540         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71541         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71542         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71543
71544 2006-04-19  Derek Price  <derek@ximbiot.com>
71545             Eric Blake  <ebb9@byu.net>
71546
71547         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71548         rather than "/full/path.h".  Update comment to match.  Shorten &
71549         generalize m4_translit call via AS_TR_CPP.
71550
71551 2006-04-19  Derek Price  <derek@ximbiot.com>
71552             Eric Blake  <ebb9@byu.net>
71553
71554         * lib/inttypes.h: Correct grammar in comment.
71555
71556 2006-04-18  Derek Price  <derek@ximbiot.com>
71557             Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         * modules/inttypes: New file.
71560         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71561
71562 2006-04-18  Derek Price  <derek@ximbiot.com>
71563             Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71566         New files.
71567
71568 2006-04-18  Derek Price  <derek@ximbiot.com>
71569             Paul Eggert  <eggert@cs.ucla.edu>
71570
71571         * lib/inttypes.h: New file.
71572         * lib/strtoimax.c: Assume <inttypes.h>.
71573
71574 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71577         isn't mounted.  Problem reported by Kir Kolyshkin.
71578
71579 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71582         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71583         Derek R. Price.
71584         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71585         implementation.
71586
71587 2006-04-12  Eric Blake  <ebb9@byu.net>
71588
71589         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71590         is now done automatically by the corresponding Autoconf macro.
71591
71592 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71595         time_r.h.
71596
71597 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         Merge regex changes from libc, removing some of our
71600         POSIX-conformance changes that were rejected and redoing them in a
71601         less-intrusive way.
71602
71603         * lib/regcomp.c (re_compile_internal, init_dfa):
71604         Length arg is now size_t, not Idx.  All uses changed.
71605         (peek_token): Forward decl now says internal_function.
71606         (__re_error_msgid, __re_error_msgid_idx):
71607         Now static rather than extern with attribute_hidden.
71608         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71609         For some reason libc prefers K&R style defns for external functions.
71610         (regerror) [!defined _LIBC]: Likewise.
71611         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71612         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71613         (build_range_exp, build_collating_symbol):
71614         Use K&R-style defn.
71615         (re_compile_fastmap): Use '\0' to memset, not 0.
71616         (utf8_sb_map): Make the calculations more obvious.
71617         (init_dfa, parse_bracket_exp, build_charclass_op):
71618         Call calloc and cast result, as glibc does.
71619         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71620         (build_range_exp, build_collating_symbol):
71621         Now internal functions.
71622
71623         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71624
71625         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71626         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71627         Don't depend on VMS; depend on __VMS instead, for POSIX
71628         namespace cleanness.
71629         (regoff_t): Define to ssize_t, not long int.
71630
71631         Remove the REG_ macros named below.  Instead, make the old names
71632         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71633         __USE_GNU_REGEX.
71634         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71635         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71636         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71637         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71638         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71639         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71640         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71641         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71642         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71643         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71644         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71645         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71646         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71647         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71648         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71649         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71650         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71651         (REG_NREGS):
71652         Remove.  All uses replaced by the old RE_* names.
71653         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71654         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71655         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71656         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71657         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71658         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71659         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71660         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71661         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71662         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71663         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71664         Don't bother having these macros be independent of each others'
71665         values, since they no longer exist in the POSIX name space.
71666
71667         Rename the following member names back to their old names,
71668         unless !__USE_GNU_REGEX.  All uses changed back.
71669         (buffer): Renamed from re_buffer.
71670         (allocated): Renamed from re_allocated.
71671         (used): Renamed from re_used.
71672         (syntax): Renamed from re_syntax.
71673         (fastmap): Renamed from re_fastmap.
71674         (translate): Renamed from re_translate.
71675         (can_be_null): Renamed from re_can_be_null.
71676         (regs_allocated): Renamed from re_regs_allocated.
71677         (fastmap_accurate): Renamed from re_fastmap_accurate.
71678         (no_sub): Renamed from re_no_sub.
71679         (not_bol): Renamed from re_not_bol.
71680         (not_eol): Renamed from re_not_eol.
71681         (newline_anchor): Renamed from re_newline_anchor.
71682         (num_regs): Renamed from rm_num_regs.
71683         (start): Renamed from rm_start.
71684         (end): Renamed from rm_end.
71685
71686         (free_state): Move up a bit.
71687
71688         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71689         #define to be empty.
71690         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71691         when that is what is intended.
71692         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71693         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71694         (MAX): New macro.
71695         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71696         All uses changed back to re_malloc, etc.  It's now the caller's
71697         responsibility to check for overflow; all callers changed.
71698         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71699         (re_x2nrealloc): Remove.
71700         (free_state): Remove decl.
71701
71702         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71703         (re_set_registers, re_exec):
71704         Use K&R-style defn.
71705
71706         2006-01-31  Roland McGrath  <roland@redhat.com>
71707
71708         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71709         Reported by Mike Frysinger <vapier@gentoo.org>.
71710
71711         2006-01-15  Andreas Jaeger  <aj@suse.de>
71712
71713         [BZ #1950]
71714         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71715         build_wcs_upper_buffer change.
71716         (build_wcs_upper_buffer): Change return type.
71717
71718         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71719
71720         * lib/regex_internal.h: Include <stdint.h> if available.
71721
71722         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71723
71724         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71725
71726         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71727
71728         * lib/regcomp.c: Adjust for changed secondary hash function.
71729
71730         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71731
71732         * lib/regex.h: Pretty printing.
71733         Clean up namespace a bit.
71734
71735         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71736
71737         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71738         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71739
71740         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71741                     Ulrich Drepper  <drepper@redhat.com>
71742
71743         [BZ #1302]
71744         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71745         changed.
71746         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71747
71748         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71749
71750         [BZ #281]
71751         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71752         * lib/regcomp.c: Remove unnecessary uses of
71753         unsigned RE_TRANSLATE_TYPE.
71754         * lib/regex_internal.h: Likewise.
71755         * lib/regex_internal.c: Likewise.
71756         * lib/regexec.c: Likewise.
71757         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71758
71759         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71760
71761         * lib/regexec.c (find_recover_state): Remove unnecessary
71762         initialization.
71763         (transit_state_bkref): Make DFA a const pointer.
71764         (get_subexp): Likewise.
71765         (check_arrival): Likewise.
71766         (update_cur_sifted_state): Likewise.
71767         (re_search_internal): Likewise.
71768         (prune_impossible_nodes): Likewise.
71769         (acquire_init_state_context): Likewise.
71770         (proceed_next_node): Likewise.
71771         (set_regs): Likewise.
71772         (free_fail_stack_return): Likewise.
71773         (check_arrival_expand_ecl): Mark DFA parameter as const.
71774         (check_arrival_expand_ecl_sub): Likewise.
71775         (check_subexp_limits): Likewise.
71776         (sub_epsilon_src_nodes):  Likewise.
71777         (add_epsilon_src_nodes):  Likewise.
71778         (merge_state_array): Likewise.
71779         (update_regs): Likewise.
71780         (build_trtable): Likewise.
71781         (sift_states_backward): Mark MCTX parameter as const.
71782         (build_sifted_states): Likewise.
71783         (update_cur_sifted_state): Likewise.
71784         (sift_states_mkref): Likewise.
71785         (check_arrival_expand_ecl): Mark eclosure as const.
71786         (check_dst_limits_calc_pos_1): Likewise.
71787         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71788         pointer.
71789
71790         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71791
71792         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71793         (transit_state_sb): Likewise.
71794         (transit_state_mb): Likewise.
71795         (sift_states_iter_mb): Likewise.
71796         (check_arrival_add_next_nodes): Likewise.
71797         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71798         [_LIBC] (re_search_2_stub): Use mempcpy.
71799
71800         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71801         mbrtowc for very simple UTF-8 case.
71802
71803         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71804         a pointer-to-const.
71805         (re_acquire_state_context): Likewise.
71806         * lib/regex_internal.h: Adjust prototypes.
71807
71808         * lib/regex.c: Prevent using C++ compilers.
71809
71810         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71811         (re_acquire_state_context): Likewise.
71812
71813 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * modules/regex (Depends-on): Add ssize_t.
71816
71817 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71820         translation table.
71821
71822 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71825
71826 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71827             Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71830         <sys/types.h> and <inttypes.h>.
71831
71832 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71833
71834         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71835         `__error_t_defined', so argp.h will not typedef the former.
71836
71837 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71840         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71841         glibc names.  Even if glibc is changed to conform to POSIX, the
71842         traditional names will be available anyway, since regex depends on
71843         the extensions module.  Also, fix a longstanding typo in the
71844         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71845         reported by Emanuele Giaquinta.  Also, change sense of cached
71846         variable, so that the message makes sense.
71847
71848 2006-03-24  Simon Josefsson  <jas@extundo.com>
71849
71850         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71851         including some doc fixes.
71852         (base64_encode_alloc): Fix +1 bug on allocation failures.
71853
71854 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71855
71856         * lib/base64.c (base64_encode): Do not read past end of array with
71857         unsanitized input on systems with CHAR_BIT > 8.
71858
71859 2006-03-24  Eric Blake  <ebb9@byu.net>
71860
71861         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71862
71863 2006-03-22  Karl Berry  <karl@gnu.org>
71864
71865         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71866         * config/srclistvars.sh (COREUTILS): new var.
71867
71868 2006-03-17  Jim Meyering  <jim@meyering.net>
71869
71870         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71871         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71872
71873 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71876         no longer needs it.  Instead, check that regoff_t is as least
71877         as wide as ptrdiff_t.
71878
71879         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71880         so that our regex.h stays compatible with the installed regex.
71881         This is helpful for installers who configure --without-included-regex.
71882         Problem reported by Emanuele Giaquinta.
71883
71884 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71887         Typedef to long int, not to off_, as POSIX will likely change
71888         in that direction.
71889
71890 2006-03-15  Eric Blake  <ebb9@byu.net>
71891
71892         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71893
71894 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71895
71896         * lib/argp-help.c (validate_uparams): Fix typo
71897         * lib/argp-parse.c (argp_default_options): Consistently begin help
71898         messages with a lowercase letter.
71899
71900 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71903         overrun buffers and shouldn't be used (much as gets shouldn't be
71904         used).
71905         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71906
71907 2006-03-08  Simon Josefsson  <jas@extundo.com>
71908
71909         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71910         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71911
71912 2006-03-08  Simon Josefsson  <jas@extundo.com>
71913
71914         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71915         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71916
71917 2006-03-08  Simon Josefsson  <jas@extundo.com>
71918
71919         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71920         signal that configure disabled the device.
71921
71922 2006-03-08  Simon Josefsson  <jas@extundo.com>
71923
71924         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71925         languages.
71926
71927 2006-03-07  Simon Josefsson  <jas@extundo.com>
71928
71929         * modules/getopt (Depends-on): Add unistd.
71930
71931         * modules/unistd: New file.
71932
71933 2006-03-07  Simon Josefsson  <jas@extundo.com>
71934
71935         * modules/gc-random: New file.
71936
71937 2006-03-07  Simon Josefsson  <jas@extundo.com>
71938
71939         * m4/unistd_h.m4: New file.
71940
71941 2006-03-07  Simon Josefsson  <jas@extundo.com>
71942
71943         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71944         test to be side-effect free by storing the result in the cache
71945         variable gl_cv_lib_readline, and moving the assignment of
71946         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71947         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71948
71949 2006-03-07  Simon Josefsson  <jas@extundo.com>
71950
71951         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71952         error on missing devices (the functions will return an error).
71953
71954         * m4/gc.m4: Move random stuff to gc-random.m4
71955
71956 2006-03-07  Simon Josefsson  <jas@extundo.com>
71957
71958         * lib/unistd_.h: New file.
71959
71960 2006-03-07  Simon Josefsson  <jas@extundo.com>
71961
71962         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71963
71964 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71967         Problem reported by Juan Manuel Guerrero.
71968
71969 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71972         the unistd module.
71973         * lib/getlogin_r.c: Likewise.
71974         * lib/getlogin_r.h: Likewise.
71975         * lib/glob.c: Likewise.
71976         * lib/pagealign_alloc.c: Likewise.
71977         * lib/unistd_.h: Remove; no longer needed.
71978
71979 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71982         Add unistd.
71983         * modules/c-stack (Depends-on): Add unistd.
71984         * modules/getlogin_r: Likewise.
71985         * modules/glob: Likewise.
71986         * modules/pagealign_alloc: Likewise.
71987         * modules/unistd (Files): Remove lib/unistd_.h.
71988         (EXTRA_DIST): Remove.
71989         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71990         need unistd_.h.
71991         (MOSTLYCLEANFILES): Remove unistd.h-t.
71992
71993 2006-03-03  Simon Josefsson  <jas@extundo.com>
71994
71995         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71996
71997 2006-03-03  Simon Josefsson  <jas@extundo.com>
71998
71999         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72000         libidn and bison.
72001
72002 2006-03-03  Simon Josefsson  <jas@extundo.com>
72003
72004         * build-aux/maint.mk: Add indent target.
72005
72006 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72007
72008         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72009         our replacement poll.h in any case, to avoid a differing
72010         declaration from a system header.  Seen on AIX.
72011
72012 2006-03-01  Simon Josefsson  <jas@extundo.com>
72013
72014         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72015         <kasal@ucw.cz>.
72016
72017 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * modules/gettime (Depends-on): Add extensions module.
72020         * modules/nanosleep (Depends-on): Likewise.
72021         * modules/settime (Depends-on): Likewise.
72022
72023 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72026         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72027         pedantically.
72028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72029         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72030
72031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72032         not "==".  Reported by Ralf Wildenhues.
72033
72034 2006-03-01  Karl Berry  <karl@gnu.org>
72035
72036         * doc/Copyright/request-*: new files, synced from gnuorg.
72037
72038 2006-03-01  Karl Berry  <karl@gnu.org>
72039
72040         * config/srclist.txt (Copyright/*): new entries.
72041
72042 2006-02-28  Simon Josefsson  <jas@extundo.com>
72043
72044         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72045
72046 2006-02-27  Simon Josefsson  <jas@extundo.com>
72047
72048         * lib/base64.h: Indent #define's.  From Jim Meyering
72049         <jim@meyering.net>.
72050
72051 2006-02-27  Jim Meyering  <jim@meyering.net>
72052
72053         Revert the change of 2006-02-24, so these files can continue
72054         to be sync'd from gettext.
72055         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72056         of `config.h'.
72057
72058 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * modules/intprops: New file.
72061         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72062         Add intprops.
72063         * modules/getloadavg (Files): Remove lib/intprops.h.
72064         (Depends-on): Add intprops.
72065         * modules/human: Likewise.
72066         * modules/inttostr: Likewise.
72067         * modules/openat: Likewise.
72068         * modules/sig2str: Likewise.
72069         * modules/userspec: Likewise.
72070         * modules/utimecmp: Likewise.
72071         * modules/xnanosleep: Likewise.
72072         * modules/xstrtol: Likewise.
72073
72074 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72075
72076         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72077         * modules/lock-tests (TESTS): Use $(EXEEXT).
72078         * modules/tls-tests: Likewise.
72079         * modules/argp-tests: Likewise.
72080         (check_PROGRAMS): New var, replacing...
72081         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72082
72083 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72084
72085         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72086         `config.h'.
72087
72088 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72091
72092 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72093
72094         Sync from coreutils.
72095         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72096         gl_CHDIR_SAFER.
72097
72098 2006-02-22  Jim Meyering  <jim@meyering.net>
72099
72100         Sync from coreutils.
72101         * m4/chdir-safer.m4: New file.
72102
72103 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72106         AT_FDCWD exceeds INT_MAX.
72107         * lib/openat.h (AT_FDCWD): Likewise.
72108
72109 2006-02-17  Eric Blake  <address@hidden>
72110
72111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72112
72113 2006-02-16  Simon Josefsson  <jas@extundo.com>
72114
72115         * modules/getaddrinfo (Depends-on): Add sys_socket.
72116
72117 2006-02-15  Simon Josefsson  <jas@extundo.com>
72118
72119         * build-aux/maint.mk: Add dsyntax-check rule.
72120
72121 2006-02-15  Eric Blake  <ebb9@byu.net>
72122
72123         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72124         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72125         'present but cannot compile' warnings on cygwin.
72126         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72127         use ws2tcpip.h if sys/socket.h works.
72128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72129         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72130
72131 2006-02-14  Simon Josefsson  <jas@extundo.com>
72132
72133         * modules/maintainer-makefile (Files): Rename.
72134
72135         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72136         and (the local) Makefile.cfg to maint-cfg.mk.
72137
72138         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72139         to the latter.
72140
72141         * modules/maintainer-makefile: New module.
72142
72143         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72144         severaly stripped to make it possible to build it up from scratch
72145         with reliable tests.
72146
72147         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72148         fixes to permit overriding the default actions when configure and
72149         makefile are not available.
72150
72151 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         Sync from coreutils.
72154         * modules/lstat (Depends-on): Don't depend on xalloc.
72155         (License): Change from GPL to LGPL, since this is now simply a
72156         replacement for a libc function.
72157
72158 2006-02-14  Jim Meyering  <jim@meyering.net>
72159
72160         Sync from coreutils.
72161
72162         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72163         failure on deficient systems, and simplify gnulib lgpl dependencies.
72164         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72165         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72166
72167         * lib/xalloc-die.c: Remove unused definition of N_.
72168
72169 2006-02-14  Jim Meyering  <jim@meyering.net>
72170
72171         Sync from coreutils.
72172         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72173         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72174         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72175         double-quote uses of that variable, to accommodate the rare case in
72176         which getmntent is available in none of the libraries checked.  This
72177         happens at least on FreeBSD 5.0.
72178
72179 2006-02-13  Simon Josefsson  <jas@extundo.com>
72180
72181         * gnulib-tool (Usage): Fix --import, from
72182         karl@freefriends.org (Karl Berry).
72183
72184 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72185
72186         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72187
72188 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72189
72190         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72191         "autoupdate" on 2005-12-12.
72192
72193 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72194
72195         * modules/closeout (Depends-on): Remove atexit.
72196
72197 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72198
72199         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72200         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72201
72202 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72205         __EXTENSIONS__ if this causes compilation to fail.  Problem
72206         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72207         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72208
72209 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72212         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72214         All uses changed.
72215
72216 2006-01-26  Simon Josefsson  <jas@extundo.com>
72217
72218         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72219         prototype is visible on mingw32.
72220
72221         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72222         for mingw32.
72223
72224         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72225         mingw32).
72226
72227 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72228
72229         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72230         attempt to open for write; this always fails, at least on POSIX
72231         hosts.  This reinstates the 2006-01-09 change, which was
72232         inadvertently removed.
72233
72234 2006-01-26  Bruno Haible  <bruno@clisp.org>
72235
72236         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72237         Reported by Paul Eggert.
72238
72239 2006-01-26  Bruno Haible  <bruno@clisp.org>
72240             Paul Eggert  <eggert@cs.ucla.edu>
72241
72242         * lib/stdbool_.h (_Bool)
72243         [(! (defined __cplusplus || defined __BEOS__)
72244           && !defined __GNUC__
72245           && !(defined __HP_cc || defined __xlc__
72246                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72247                || defined __sgi))]:
72248         #define to signed char in these cases too; this simplifies
72249         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72250         etc., separately) and makes it more conservative.
72251
72252 2006-01-25  Simon Josefsson  <jas@extundo.com>
72253
72254         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72255         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72256         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72257
72258 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72259
72260         * lib/argp-namefrob.h: Bugfix. Remove stray #
72261
72262 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72265         so that we test the test.
72266         Check for yet another HP-UX cc bug involving *bool |= bool.
72267
72268 2006-01-25  Karl Berry  <karl@gnu.org>
72269
72270         * config/srclist.txt (vasnprintf.c): sync lost.
72271
72272 2006-01-25  Jim Meyering  <jim@meyering.net>
72273
72274         Sync from the stable (b5) branch of coreutils:
72275
72276         * lib/fts.c (fts_children): Don't let close() clobber errno from
72277         failed fchdir().
72278
72279         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72280         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72281         a dangling symlink.  That can also happen at least for ELOOP.
72282         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72283         FYI, this bug predates the inclusion of fts.c in coreutils.
72284
72285         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72286         in their own block, so pre-c99 compilers don't object.
72287
72288         Avoid the double-free (first in fts_read, second in fts_close) that
72289         would occur when an `active' directory is made inaccessible (e.g.,
72290         via chmod a-x) during a traversal.
72291         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72292         before returning.  Reproduce this failure by
72293         mkdir -p a/b; cd a; chmod a-x . b
72294         Reported by Stavros Passas.
72295
72296 2006-01-25  Jim Meyering  <jim@meyering.net>
72297
72298         * lib/fileblocks.c: Remove more useless parentheses.
72299         * lib/readutmp.h: Likewise.
72300
72301 2006-01-25  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72304         warnings.
72305         Reported by Paul Eggert.
72306
72307 2006-01-25  Bruno Haible  <bruno@clisp.org>
72308
72309         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72310         rid of a trap command. For Solaris sh.
72311         Reported by Mark D. Baushke <mdb@gnu.org>.
72312
72313 2006-01-24  Simon Josefsson  <jas@extundo.com>
72314
72315         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72316         Bruno.
72317
72318 2006-01-24  Karl Berry  <karl@gnu.org>
72319
72320         * config/srclist.txt (argp-namefrob.h): sync lost.
72321
72322 2006-01-24  Jim Meyering  <jim@meyering.net>
72323
72324         * modules/openat (Files): Add lib/intprops.h.
72325         From Mark D. Baushke.
72326
72327 2006-01-24  Jim Meyering  <jim@meyering.net>
72328
72329         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72330         Reported by Mark D. Baushke.
72331
72332 2006-01-24  Jim Meyering  <jim@meyering.net>
72333
72334         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72335
72336 2006-01-24  Bruno Haible  <bruno@clisp.org>
72337
72338         * modules/strnlen (Maintainer): Change from glibc to all.
72339
72340 2006-01-24  Bruno Haible  <bruno@clisp.org>
72341
72342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72343         Patch by Paul Eggert.
72344
72345 2006-01-24  Bruno Haible  <bruno@clisp.org>
72346
72347         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72348         already has it.
72349         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72350         2005-11-26.
72351
72352         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72353         'signed char' to avoid problems with the built-in _Bool type.
72354         Reported by Paul Eggert on 2005-11-26.
72355
72356 2006-01-24  Bruno Haible  <bruno@clisp.org>
72357
72358         * gnulib-tool (func_import): Avoid constructing complicated sed
72359         expressions inside backquote.
72360         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72361
72362 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72363
72364         These changes imported from libc.
72365         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72366         test and two separate function calls.
72367         * lib/strndup.c (__strndup): Add libc_hidden_def.
72368
72369 2006-01-23  Simon Josefsson  <jas@extundo.com>
72370
72371         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72372         Remove the test_*_SOURCES variable: automake infers it by default.
72373         * modules/tls-tests: Likewise.
72374
72375 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         Work around porting bugs reported by Dieter in
72378         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72379         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72380         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72381         Include "getopt.h" first, to check interface.
72382         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72383         !HAVE_DECL_GETENV.
72384         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72385         (__strndup): Revert to K&R-style function dfns, the glibc style.
72386         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72387         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72388         Include strnlen.h first, to get prototype properly.
72389         (strnlen): Renamed from __strnlen.
72390         Remove weak alias.
72391
72392 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72395
72396 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * config/srclist.txt: Adjust to reflect glibc reorganization.
72399         This affects only comments.
72400
72401 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72402
72403          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72404          Reported by Bruce Korb <bkorb@gnu.org>.
72405
72406 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72409         to pacify gcc -Wswitch-default.
72410
72411 2006-01-22  Bruno Haible  <bruno@clisp.org>
72412
72413         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72414         temporary buffer for sprintf, take into account the precision also
72415         for 'd', 'i', 'u', 'o', 'x', 'X'.
72416
72417 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72418
72419         * modules/argp-tests: New module
72420         * tests/test-argp.c: New file
72421         * tests/test-argp-2.sh: New file
72422
72423 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72424
72425         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72426         (__argp_base_name): Removed
72427         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72428         typo.
72429         (__argp_base_name): Provide macro definition or extern declaration
72430         depending on the configuration
72431
72432 2006-01-20  Simon Josefsson  <jas@extundo.com>
72433
72434         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72435
72436 2006-01-20  Simon Josefsson  <jas@extundo.com>
72437
72438         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72439
72440 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72443         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72444         Suggested by Bruno Haible.
72445
72446 2006-01-20  Karl Berry  <karl@gnu.org>
72447
72448         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72449         until changes propagate, I guess.
72450
72451 2006-01-19  Simon Josefsson  <jas@extundo.com>
72452
72453         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72454
72455 2006-01-19  Simon Josefsson  <jas@extundo.com>
72456
72457         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72458
72459 2006-01-19  Simon Josefsson  <jas@extundo.com>
72460
72461         * gnulib-tool: Set check_PROGRAMS.
72462
72463         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72464         modules/des-tests, modules/gc-arcfour-tests,
72465         modules/gc-arctwo-tests, modules/gc-des-tests,
72466         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72467         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72468         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72469         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72470         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72471         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72472         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72473         test_*_SOURCES.
72474
72475 2006-01-18  Simon Josefsson  <jas@extundo.com>
72476
72477         * modules/socklen (Depends-on): Depend on sys_socket.
72478
72479 2006-01-18  Simon Josefsson  <jas@extundo.com>
72480
72481         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72482         modules/des-tests, modules/gc-arcfour-tests,
72483         modules/gc-arctwo-tests, modules/gc-des-tests,
72484         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72485         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72486         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72487         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72488         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72489         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72490         $(EXEEXT) to automake TESTS variable, for mingw32.
72491
72492 2006-01-17  Simon Josefsson  <jas@extundo.com>
72493
72494         * modules/socklen (Include): Need sys/socket.h.
72495
72496 2006-01-17  Bruno Haible  <bruno@clisp.org>
72497
72498         * modules/ssize_t (Include): Add <sys/types.h>.
72499
72500 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72503         it's not portable and it doesn't work with cross-compiles.
72504         Problem reported by Bruno Haible.  Fix missing-$ typo in
72505         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72506         -zignore from being used with Sun's C compiler.
72507
72508 2006-01-12  Simon Josefsson  <jas@extundo.com>
72509
72510         * lib/base64.c: Fix warning, reported by Bruno Haible
72511         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72512
72513 2006-01-12  Bruno Haible  <bruno@clisp.org>
72514
72515         * modules/ldd: New file.
72516         * build-aux/ldd.sh.in: New file.
72517         * MODULES.html.sh (Support for building libraries and executables): Add
72518         ldd.
72519
72520 2006-01-12  Bruno Haible  <bruno@clisp.org>
72521
72522         * m4/ldd.m4: New file.
72523
72524 2006-01-12  Bruno Haible  <bruno@clisp.org>
72525
72526         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72527         endless loop while replacing $auxdir with build-aux.
72528
72529 2006-01-11  Simon Josefsson  <jas@extundo.com>
72530
72531         * lib/stdint_.h (SIZE_MAX): Add missing (.
72532
72533 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72534
72535         Sync from coreutils.
72536         * lib/md5.c: Fix commentary typos.
72537         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72538         * lib/md5.h (__attribute__): Remove; unused.
72539         * lib/sha1.c: Fix commentary to match md5 better.
72540         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72541         so that we don't need to worry about alignment.  All uses changed.
72542         This merges the 2005-10-28 md5 change into sha1.
72543
72544 2006-01-11  Jim Meyering  <jim@meyering.net>
72545
72546         Sync from coreutils.
72547         * lib/md5.c (OP): Fix spacing.
72548
72549 2006-01-11  Bruno Haible  <bruno@clisp.org>
72550
72551         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72552         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72553         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72554
72555 2006-01-11  Bruno Haible  <bruno@clisp.org>
72556
72557         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72558         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72559         the "early" section as well.
72560
72561 2006-01-11  Bruno Haible  <bruno@clisp.org>
72562
72563         Avoid "ar: no archive members specified" error on MacOS X.
72564         * gnulib-tool (func_modules_add_dummy): New function.
72565         (func_import, func_create_testdir): Invoke it.
72566
72567 2006-01-11  Bruno Haible  <bruno@clisp.org>
72568
72569         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72570         with $auxdir in AC_CONFIG_FILES statements.
72571
72572 2006-01-11  Bruno Haible  <bruno@clisp.org>
72573
72574         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72575         Initialize also noinst_HEADERS to empty.
72576
72577 2006-01-11  Bruno Haible  <bruno@clisp.org>
72578
72579         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72580         variables.
72581         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72582         autoreconf.
72583
72584 2006-01-11  Bruno Haible  <bruno@clisp.org>
72585
72586         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72587         overridable by the user.
72588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72589
72590 2006-01-10  Simon Josefsson  <jas@extundo.com>
72591
72592         * modules/sys_socket: New file.
72593
72594 2006-01-10  Simon Josefsson  <jas@extundo.com>
72595
72596         * m4/sys_socket_h.m4: New file.
72597
72598 2006-01-10  Simon Josefsson  <jas@extundo.com>
72599
72600         * lib/socket_.h: New file.
72601
72602 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         * modules/readutmp (Maintainer): Add myself.
72605
72606 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72609         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72610         People who are still concerned with buggy memcmp implementations
72611         can invoke gl_FUNC_MEMCMP themselves.
72612
72613 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * lib/regex_internal.h (BITSET_WORD_BITS):
72616         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72617         preprocessor mishandles large unsigned values as if they were signed.
72618         Problem reported by Claudio Fontana in
72619         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72620
72621 2006-01-10  Jim Meyering  <jim@meyering.net>
72622
72623         Avoid the double-free (first in fts_read, second in fts_close) that
72624         would occur when an `active' directory is made inaccessible (e.g.,
72625         via chmod a-x) during a traversal.
72626         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72627         before returning.  Reproduce this failure by
72628         mkdir -p a/b; cd a; chmod a-x . b
72629         Reported by Stavros Passas.
72630
72631         Sync from coreutils.
72632         * lib/sha1.c: Tweak grammar in a comment.
72633
72634 2006-01-10  Jim Meyering  <jim@meyering.net>
72635
72636         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72637         Patch by Joerg Sonnenberger.
72638
72639 2006-01-10  Bruno Haible  <bruno@clisp.org>
72640
72641         * modules/readutmp: Depend on module free.
72642         * modules/strtok_r: Depend on module restrict.
72643
72644 2006-01-10  Bruno Haible  <bruno@clisp.org>
72645
72646         * modules/gettext (configure.ac): Add an invocation of
72647         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72648
72649 2006-01-10  Bruno Haible  <bruno@clisp.org>
72650
72651         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72652         Reported by Werner Lemberg <wl@gnu.org>.
72653
72654 2006-01-10  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/localcharset.c: Update from GNU gettext.
72657
72658 2006-01-10  Bruno Haible  <bruno@clisp.org>
72659
72660         * lib/argp.h (__const): Remove macro. Use const instead.
72661         * lib/argp-fmtstream.h (__const): Likewise.
72662         * lib/glob_.h (__const): Remove macro.
72663         * lib/glob-libc.h: Use const instead of __const.
72664
72665 2006-01-10  Bruno Haible  <bruno@clisp.org>
72666
72667         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72668         variable.
72669         Needed to avoid an automake error regarding the 'gettext' module.
72670
72671 2006-01-09  Simon Josefsson  <jas@extundo.com>
72672
72673         * modules/inet_ntop (Depends-on): Add restrict.
72674
72675 2006-01-09  Simon Josefsson  <jas@extundo.com>
72676
72677         * modules/gc-rijndael-tests (License): Put under LGPL.
72678
72679         * modules/gc-des-tests (License): Likewise.
72680
72681         * modules/gc-arcfour-tests (License): Likewise.
72682
72683         * modules/gc-arctwo-tests (License): Likewise.
72684
72685         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72686
72687         * modules/gc-hmac-sha1-tests (Files): Likewise.
72688
72689         * modules/gc-hmac-md5-tests (License): Likewise.
72690
72691         * modules/gc-sha1-tests (License): Likewise.
72692
72693         * modules/gc-md5-tests (License): Likewise.
72694
72695         * modules/gc-md4-tests (License): Likewise.
72696
72697         * modules/gc-md2-tests (License): Likewise.
72698
72699         * modules/gc-tests (License): Likewise.
72700
72701         * modules/des-tests (License): Likewise.
72702
72703         * modules/md4-tests (License): Likewise.
72704
72705         * modules/md2-tests (License): Likewise.
72706
72707 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         Sync from coreutils:
72710
72711         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72712         * modules/lib-ignore: New file.
72713         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72714         chdir-safer.m4, lchmod.m4.
72715         * modules/openat: Add mkdirat.c, openat-priv.h.
72716
72717 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         Sync from coreutils.
72720         * m4/lib-ignore.m4: New file.
72721         * m4/lchmod.m4: New file.
72722
72723 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72724
72725         Sync from coreutils.
72726         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72727         for write access: POSIX says that must fail.
72728         * lib/fts.c (diropen): Likewise.
72729         * lib/save-cwd.c (save_cwd): Likewise.
72730         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72731         well, for minor improvements on hosts that lack O_DIRECTORY.
72732         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72733         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72734         Fall back on chown if open failed with EACCES.
72735
72736         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72737         Report an error at compile-time if only a 1-second nominal clock
72738         resolution is found.
72739
72740         * lib/lchmod.h: New file.
72741         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72742         (make_dir_parents): Use lchown rather than chown, and
72743         lchmod rather than chmod.
72744
72745         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72746         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72747         "proc" reported by n0dalus.
72748
72749         * lib/mountlist.c: Include <limits.h>.
72750         (dev_from_mount_options)
72751         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72752         New function.  It no longer assumes "dev=" has the System V meaning
72753         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72754         (read_file_system_list)
72755         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72756         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72757         dev= in that case.
72758
72759         * lib/posixtm.h (PDS_PRE_2000): New macro.
72760         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72761         allow_century.  All usages changed.  Reject dates outside the range
72762         1969-1999 if PDS_PRE_2000 is used.
72763
72764 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         Sync from coreutils.
72767         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72768         (Time of day items): Mention the possibility of leap seconds.
72769         Problem reported by Dr. David Alan Gilbert.
72770
72771 2006-01-09  Jim Meyering  <jim@meyering.net>
72772
72773         Sync from coreutils.
72774
72775         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72776
72777         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72778
72779         * lib/modechange.c (mode_compile): Reject an invalid mode string
72780         that starts with an octal digit.  From Andreas Gruenbacher.
72781
72782         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72783         and dup to open_safer and dup_safer, respectively.
72784         (openat_permissive): Fix typo in comment.
72785
72786         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72787         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72788         (_): Remove; no longer needed.
72789         (openat): Renamed from rpl_openat; no need for rpl_openat
72790         since openat.h renames openat for us.
72791         Replace most of the body with a call to openat_permissive,
72792         to avoid duplicate code.
72793         Port to (probably hypothetical) environments were mode_t is
72794         wider than int.
72795         (openat_permissive): Require mode arg, so that we can check
72796         types better.  Put it just after flags.  Change cwd failure
72797         indicator from pointer-to-bool to pointer-to-errno-value.
72798         All callers changed.
72799         Invoke openat_save_fail and/or openat_restore_fail if
72800         cwd_errno is null, so that openat can call us.
72801         (openat_permissive, fdopendir, fstatat, unlinkat):
72802         Simplify errno handling to avoid some duplicate code,
72803         as it's OK to set errno on success.
72804         * lib/openat.h: Revamp code so that function macros depend on
72805         __OPENAT_PREFIX only, not also on AT_FDCWD.
72806         (openat_ro): Remove.  Caller changed to use openat_permissive.
72807         (openat_permissive): Now a macro, if not a function.
72808         (openat_restore_fail, openat_save_fail): Now always functions,
72809         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72810
72811         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72812         and openat.c.
72813         * lib/mkdirat.c: Include openat-priv.h.
72814         Remove definitions of macros defined therein.
72815         * lib/openat.c: Likewise.
72816
72817         * lib/mkdirat.c (mkdirat): New file and function.
72818         * lib/openat.h (mkdirat): Declare.
72819
72820         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72821
72822         * lib/openat.h (openat_permissive): Declare.
72823         (openat_ro): Define.
72824
72825         * lib/openat.c (EXPECTED_ERRNO): New macro.
72826         (openat_permissive): New function -- used in remove.c rewrite.
72827         (all functions): Set errno just before returning, only if there
72828         was an actual failure.
72829         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72830
72831         Emulate openat-family functions using Linux's procfs, if possible.
72832         Idea and some code based on Ulrich Drepper's glibc changes.
72833
72834         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72835         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72836         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72837         before falling back on save_cwd and restore_cwd.
72838         (fdopendir, fstatat, unlinkat): Likewise.
72839
72840         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72841         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72842
72843         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72844         as second argument to va_arg.  Otherwise, some versions of gcc
72845         warn that `if this code is reached, the program will abort'.
72846
72847 2006-01-09  Jim Meyering  <jim@meyering.net>
72848
72849         Sync from coreutils.
72850         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72851         Require openat-priv.h.
72852
72853 2006-01-09  Bruno Haible  <bruno@clisp.org>
72854
72855         * modules/strnlen (Include): Use strnlen.h.
72856
72857 2006-01-09  Bruno Haible  <bruno@clisp.org>
72858
72859         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72860
72861 2006-01-09  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/sysexit_.h (EX_OK): New macro.
72864         Suggested by Martin Lambers <marlam@marlam.de>.
72865
72866 2006-01-09  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72869         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72870
72871 2006-01-09  Bruno Haible  <bruno@clisp.org>
72872
72873         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72874         numbers.
72875
72876 2006-01-09  Bruno Haible  <bruno@clisp.org>
72877
72878         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72879         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72880         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72881         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72882
72883 2006-01-09  Bruno Haible  <bruno@clisp.org>
72884
72885         * build-aux/javacomp.sh.in: New file, moved from lib/.
72886         * modules/javacomp-script (Files): Update.
72887         (configure.ac): Add AC_CONFIG_FILES invocation.
72888         (EXTRA_DIST): Remove variable.
72889
72890         * build-aux/javaexec.sh.in: New file, moved from lib/.
72891         * modules/javaexec (Files): Update.
72892         (configure.ac): Add AC_CONFIG_FILES invocation.
72893         (EXTRA_DIST): Remove javaexec.sh.in.
72894
72895         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72896         * modules/csharpcomp-script (Files): Update.
72897         (configure.ac): Add AC_CONFIG_FILES invocation.
72898         (EXTRA_DIST): Remove variable.
72899
72900         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72901         * modules/csharpexec (Files): Update.
72902         (configure.ac): Add AC_CONFIG_FILES invocation.
72903         (EXTRA_DIST): Remove csharpexec.sh.in.
72904
72905 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72906
72907         Sync from coreutils.
72908
72909         Add POSIX ACL support
72910         * lib/acl.h (copy_acl, set_acl): Add declarations.
72911         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72912         systems other than Linux.
72913         (chmod_or_fchmod): New function: use fchmod when possible,
72914         and chmod otherwise.
72915         (file_has_acl): Add a POSIX ACL implementation, with a
72916         Linux-specific subcase.
72917         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72918         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72919         acls are unsupported.
72920         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72921         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72922         are unsupported.
72923
72924 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72925
72926         Sync from coreutils.
72927         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72928
72929 2006-01-07  Bruno Haible  <bruno@clisp.org>
72930
72931         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72932         gl_EARLY.
72933
72934 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72937         Problem reported for Mingw by Mark Junker.
72938
72939 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * README: Gnulib normally doesn't generate a tarball.
72942
72943 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72946         long int, not int, for nanosecond counts, so that people who are
72947         used to POSIX struct timespec won't be surprised.  Reported by Jim
72948         Meyering.
72949
72950 2005-12-28  Bruno Haible  <bruno@clisp.org>
72951
72952         * build-aux/config.rpath: Update from GNU gettext.
72953
72954 2005-12-16  Jim Meyering  <jim@meyering.net>
72955
72956         * modules/fprintftime: New module.
72957         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72958
72959 2005-12-16  Jim Meyering  <jim@meyering.net>
72960
72961         * m4/fprintftime.m4: New file.
72962
72963 2005-12-16  Jim Meyering  <jim@meyering.net>
72964
72965         * lib/fprintftime.c, lib/fprintftime.h: New files.
72966
72967 2005-12-15  Simon Josefsson  <jas@extundo.com>
72968
72969         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72970         new m4/socklen.m4.
72971
72972 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72973
72974         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72975         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72976
72977 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72978
72979         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72980         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72981         struct uparams is valid. Fall back to the default values if it is
72982         not.
72983
72984 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72985
72986         * modules/argp (Files): Add argp-pin.c
72987         (Depends-on): dirname
72988         (lib_SOURCES): Add argp-pin.c
72989
72990 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72991
72992         * m4/argp.m4:  Check if program_invocation_name and
72993         program_invocation_short_name are declared and define appropriate
72994         macros if they are not.
72995
72996 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72997
72998         * lib/argp-help.c (__argp_base_name): New function
72999         (__argp_short_program_name): Rewrite using __argp_base_name
73000         * lib/argp-namefrob.h: Define program_invocation_name and
73001         program_invocation_short_name if requested
73002         (__argp_base_name): Add prototype
73003         * lib/argp-parse.c (argp_def): Use gettext wrappers
73004         (argp_default_parser): Use __argp_base_name
73005         * lib/argp-pin.c: New file. Defines program_invocation_name and
73006         program_invocation_short_name on systems that lack them.
73007
73008 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73009
73010         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73011         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73012         porting problem reported by Georg Schwarz in
73013         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73014
73015 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73018         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73019         porting problem reported by Georg Schwarz in
73020         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73021
73022 2005-12-05  Bruno Haible  <bruno@clisp.org>
73023
73024         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73025         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73026         Reported by Mark Junker <mjscod@gmx.de>.
73027
73028 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73029
73030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73031         Use implementation from Albert Chin, with some
73032         comments/corrections by Stepan Kasal and myself.
73033
73034 2005-12-02  Bruno Haible  <bruno@clisp.org>
73035
73036         * gnulib-tool (func_import): Accept GPLed build tool modules when
73037         --lgpl is given.
73038         * modules/csharpcomp-script: New file.
73039         * modules/csharpcomp: Depend on it.
73040         * modules/javacomp-script: New file.
73041         * modules/javacomp: Depend on it.
73042         Suggested by Simon Josefsson.
73043
73044 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73047         statement, to work around an HP-UX 10.20 compiler bug reported by
73048         Peter O'Gorman.
73049
73050 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * modules/savedir (Depends-on): Add openat.
73053
73054 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73057         (uintmax_t) [defined uintmax_t]: Do not declare.
73058         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73059         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73060         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73061         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73062         sake of portability to weird hosts that C allows (though we don't
73063         know of any practical examples).
73064
73065         * lib/savedir.h (fdsavedir): New decl.
73066         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73067         contains most of the former guts of savedir.
73068         (savedir): Use savedirstream.
73069         Include "openat.h".
73070
73071 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * modules/obstack (Files): Add m4/ulonglong.m4.
73074         Problem reported by Davide Angelocola.
73075
73076 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73079         coreutils no longer futzes with rounding modes.
73080
73081 2005-11-14  Jim Meyering  <jim@meyering.net>
73082
73083         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73084         replacement of mkstemp.
73085
73086 2005-11-10  Simon Josefsson  <jas@extundo.com>
73087
73088         * lib/readline.c: Remove EOL.
73089
73090 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * modules/gethrxtime (Depends-on): Add gettime.
73093
73094 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73097         or gettimeofday; no longer needed.
73098
73099 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73100
73101         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73102         time business.
73103         (gethrxtime) [! (HAVE_NANOUPTIME
73104         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73105         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73106         our own approximation.
73107
73108 2005-11-08  Eric Blake  <ebb9@byu.net>
73109
73110         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73111
73112 2005-11-08  Eric Blake  <ebb9@byu.net>
73113
73114         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73115
73116 2005-11-04  Bruno Haible  <bruno@clisp.org>
73117
73118         * gnulib-tool: Implement --update mode.
73119
73120 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         Fix porting problem reported by Theodoros V. Kalamatianos.
73123         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73124         Don't assume that futimes failing means we must fail.
73125
73126 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73129         variables to suggest the intended function of the PATH_MAX check.
73130
73131 2005-10-30  Kean Johnston  <jkj@sco.com>
73132
73133         Trivial changes to support SCO systems.
73134         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73135         as PATH_MAX.
73136         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73137         where __ptr is null when no I/O is pending.
73138
73139 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73140
73141         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73142         leave errno alone.  Problem reported by Dmitry V. Levin.
73143
73144 2005-10-28  Simon Josefsson  <jas@extundo.com>
73145
73146         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73147         Test more.
73148
73149         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73150
73151         * modules/md2, modules/md2-tests: New files.
73152
73153 2005-10-28  Simon Josefsson  <jas@extundo.com>
73154
73155         * m4/inet_ntop.m4: More tests.
73156
73157         * m4/gc-md2.m4, md2.m4: New file.
73158
73159 2005-10-28  Simon Josefsson  <jas@extundo.com>
73160
73161         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73162         "restrict" keywords, as per POSIX.  Protect the function
73163         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73164         Don't use K&R prototypes.  Check the sprintf return values.
73165         Re-define EAFNOSUPPORT if not present.  Indent.
73166
73167         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73168         suggested by Bruno Haible <bruno@clisp.org>.
73169
73170         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73171
73172         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73173
73174         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73175         libgcrypt).
73176
73177         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73178
73179         * lib/md2.h, lib/md2.c: New files.
73180
73181 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73184         errno alone.  Problem reported by Frederic Jolliton.
73185
73186 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73187
73188         * modules/verify (License): Change from GPL to LGPL.  This is a
73189         tiny module and there are apparently near-equivalents that are
73190         under the BSD license.
73191
73192 2005-10-24  Simon Josefsson  <jas@extundo.com>
73193
73194         * modules/sha1: Relicense to LGPL.
73195
73196 2005-10-24  Simon Josefsson  <jas@extundo.com>
73197
73198         * lib/md4.h: Shrink buffer size, now that we changed the type.
73199
73200 2005-10-23  Simon Josefsson  <jas@extundo.com>
73201
73202         * gnulib-tool (func_import): Fix --tests-base.
73203
73204 2005-10-22  Simon Josefsson  <jas@extundo.com>
73205
73206         * modules/arcfour (Depends-on): Need stdint.
73207
73208 2005-10-22  Simon Josefsson  <jas@extundo.com>
73209
73210         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73211         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73212
73213 2005-10-22  Simon Josefsson  <jas@extundo.com>
73214
73215         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73216         suggested by Bruno Haible <bruno@clisp.org>.
73217
73218 2005-10-22  Simon Josefsson  <jas@extundo.com>
73219
73220         * lib/crc.h: Include stddef.h, for size_t.
73221
73222 2005-10-22  Simon Josefsson  <jas@extundo.com>
73223
73224         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73225         arcfour_context struct (simplify test vector testing in GNU
73226         Shishi).
73227
73228 2005-10-21  Simon Josefsson  <jas@extundo.com>
73229
73230         * modules/des, modules/des-tests: New files.
73231
73232         * modules/gc-des, modules/gc-des-tests: New files.
73233
73234         * tests/test-des.c, tests/test-gc-des.c: New file.
73235
73236 2005-10-21  Simon Josefsson  <jas@extundo.com>
73237
73238         * modules/arctwo, modules/arctwo-tests: New files.
73239
73240         * tests/test-arctwo.c: New file.
73241
73242         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73243
73244         * tests/test-gc-arctwo.c: New file.
73245
73246 2005-10-21  Simon Josefsson  <jas@extundo.com>
73247
73248         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73249         Bruno Haible <bruno@clisp.org>.
73250
73251         * m4/gc-des.m4: New file.
73252
73253 2005-10-21  Simon Josefsson  <jas@extundo.com>
73254
73255         * m4/arctwo.m4: New file.
73256
73257         * m4/gc-arctwo.m4: New file.
73258
73259 2005-10-21  Simon Josefsson  <jas@extundo.com>
73260
73261         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73262         block.
73263
73264 2005-10-21  Simon Josefsson  <jas@extundo.com>
73265
73266         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73267         <bruno@clisp.org>.
73268
73269         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73270
73271         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73272         Bruno Haible <bruno@clisp.org>.
73273
73274         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73275         <bruno@clisp.org>.
73276
73277 2005-10-21  Simon Josefsson  <jas@extundo.com>
73278
73279         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73280
73281 2005-10-21  Simon Josefsson  <jas@extundo.com>
73282
73283         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73284
73285 2005-10-21  Simon Josefsson  <jas@extundo.com>
73286
73287         * lib/des.h, lib/des.c: New files.
73288
73289         * lib/gc-gnulib.c: Support DES.c
73290
73291 2005-10-21  Simon Josefsson  <jas@extundo.com>
73292
73293         * lib/arctwo.h, lib/arctwo.c: New files.
73294
73295         * lib/gc-gnulib.c: Support ARCTWO.
73296
73297 2005-10-21  Simon Josefsson  <jas@extundo.com>
73298
73299         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73300         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73301
73302 2005-10-21  Simon Josefsson  <jas@extundo.com>
73303
73304         * gnulib-tool (func_import, func_create_testdir): Define automake
73305         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73306         Makefile.am snippet),
73307         suggested by Bruno Haible <bruno@clisp.org>.
73308
73309         * modules/gc (Makefile.am): Use it.
73310
73311 2005-10-21  Bruno Haible  <bruno@clisp.org>
73312
73313         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73314         patch.
73315
73316 2005-10-19  Simon Josefsson  <jas@extundo.com>
73317
73318         * tests/test-gc-rijndael.c: New file.
73319
73320         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73321
73322 2005-10-19  Simon Josefsson  <jas@extundo.com>
73323
73324         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73325         interface too.
73326
73327 2005-10-19  Simon Josefsson  <jas@extundo.com>
73328
73329         * tests/test-gc-arcfour.c: New file.
73330
73331         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73332
73333 2005-10-19  Simon Josefsson  <jas@extundo.com>
73334
73335         * modules/gc-md4, modules/gc-md4-tests: New file.
73336
73337         * tests/test-gc-md4.c: New file.
73338
73339 2005-10-19  Simon Josefsson  <jas@extundo.com>
73340
73341         * m4/gc-md4.m4: New file.
73342
73343 2005-10-19  Simon Josefsson  <jas@extundo.com>
73344
73345         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73346         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73347         <kasal@ucw.cz>.
73348
73349 2005-10-19  Simon Josefsson  <jas@extundo.com>
73350
73351         * m4/gc-arcfour.m4: New file.
73352
73353         * m4/gc-rijndael.m4: New file.
73354
73355 2005-10-19  Simon Josefsson  <jas@extundo.com>
73356
73357         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73358
73359 2005-10-19  Simon Josefsson  <jas@extundo.com>
73360
73361         * lib/gc-gnulib.c: Support ARCFOUR.
73362
73363 2005-10-19  Simon Josefsson  <jas@extundo.com>
73364
73365         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73366         support.
73367
73368         * lib/gc.h: Add ECB enum type.
73369
73370         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73371
73372 2005-10-18  Simon Josefsson  <jas@extundo.com>
73373
73374         * tests/test-md5.c: New file.
73375
73376         * modules/md5-tests: New file.
73377
73378 2005-10-18  Simon Josefsson  <jas@extundo.com>
73379
73380         * tests/test-md4.c: New file.
73381
73382         * modules/md4, modules/md4-tests: New files.
73383
73384 2005-10-18  Simon Josefsson  <jas@extundo.com>
73385
73386         * m4/md4.m4: New file.
73387
73388 2005-10-18  Simon Josefsson  <jas@extundo.com>
73389
73390         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73391
73392 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73393
73394         * gnulib-tool (func_create_testdir): Omit the second check whether
73395         BUILT_SOURCES in nonempty.
73396
73397 2005-10-17  Simon Josefsson  <jas@extundo.com>
73398
73399         * tests/test-rijndael.c: New file.
73400
73401 2005-10-17  Simon Josefsson  <jas@extundo.com>
73402
73403         * modules/sha1: Depend on stdint instead of md5.
73404
73405         * modules/md5: Depend on stdint, remove uint32_t.
73406
73407 2005-10-17  Simon Josefsson  <jas@extundo.com>
73408
73409         * modules/gc-sha1-tests: New file.
73410
73411         * tests/test-gc-sha1.c: New file.
73412
73413 2005-10-17  Simon Josefsson  <jas@extundo.com>
73414
73415         * m4/md5.m4: Remove call to uint32_t.m4.
73416
73417 2005-10-17  Simon Josefsson  <jas@extundo.com>
73418
73419         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73420
73421         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73422         md5.h.
73423
73424         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73425
73426         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73427
73428 2005-10-17  Simon Josefsson  <jas@extundo.com>
73429
73430         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73431
73432 2005-10-17  Simon Josefsson  <jas@extundo.com>
73433
73434         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73435
73436 2005-10-17  Simon Josefsson  <jas@extundo.com>
73437
73438         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73439
73440         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73441
73442 2005-10-17  Bruno Haible  <bruno@clisp.org>
73443
73444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73445         that it can also be used in a test.
73446
73447 2005-10-16  Bruno Haible  <bruno@clisp.org>
73448
73449         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73450         TESTS_ENVIRONMENT, so that individual tests can augment it.
73451
73452         * gnulib-tool (func_create_testdir): Use an intermediate target for
73453         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73454         macros, like $(ALLOCA_H), which cannot be passed through the command
73455         line.
73456
73457 2005-10-15  Simon Josefsson  <jas@extundo.com>
73458
73459         * modules/rijndael-tests: New file.
73460
73461         * modules/rijndael: New file.
73462
73463 2005-10-15  Simon Josefsson  <jas@extundo.com>
73464
73465         * m4/rijndael.m4: New file.
73466
73467 2005-10-15  Simon Josefsson  <jas@extundo.com>
73468
73469         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73470
73471         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73472
73473 2005-10-14  Simon Josefsson  <jas@extundo.com>
73474
73475         * tests/test-arcfour.c: New file.
73476
73477         * modules/arcfour, modules/arcfour-tests: New files.
73478
73479 2005-10-14  Simon Josefsson  <jas@extundo.com>
73480
73481         * m4/arcfour.m4: New file.
73482
73483 2005-10-14  Simon Josefsson  <jas@extundo.com>
73484
73485         * lib/arcfour.h, lib/arcfour.c: New files.
73486
73487 2005-10-14  Roland McGrath  <roland@redhat.com>
73488
73489         Import from libc.  [BZ #1331]
73490         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73491         macro argument.
73492         Reported by Matej Vela <vela@debian.org>.
73493
73494 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73497         include <wchar.h>; no longer needed.
73498
73499 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73502
73503 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73504         and  Ulrich Drepper  <drepper@redhat.com>
73505
73506         Import from libc.
73507         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73508         instead of inline stream orientation test and two separate
73509         function calls.  Pay no attention to USE_IN_LIBIO.
73510
73511 2005-10-13  Simon Josefsson  <jas@extundo.com>
73512
73513         * modules/gc-hmac-md5-tests: New file.
73514
73515         * tests/test-gc-hmac-sha1.c: New file.
73516
73517         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73518
73519         * modules/gc-hmac-md5-tests: New file.
73520
73521         * tests/test-gc-md5.c: New file.
73522
73523         * modules/gc-md5-tests: New file.
73524
73525 2005-10-13  Simon Josefsson  <jas@extundo.com>
73526
73527         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73528         Move memory allocation outside of loop.
73529
73530 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73533         intermediate directory is in a read-only file system.  Problem
73534         reported by Eric Blake.
73535
73536 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73537
73538         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73539
73540 2005-10-12  Simon Josefsson  <jas@extundo.com>
73541
73542         * tests/test-hmac-sha1.c: New file.
73543
73544         * modules/hmac-sha1-tests: New file.
73545
73546         * modules/hmac-sha1: New file.
73547
73548 2005-10-12  Simon Josefsson  <jas@extundo.com>
73549
73550         * modules/gc-sha1: New file.
73551
73552 2005-10-12  Simon Josefsson  <jas@extundo.com>
73553
73554         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73555
73556         * tests/test-gc-pbkdf2-sha1.c: New file.
73557
73558 2005-10-12  Simon Josefsson  <jas@extundo.com>
73559
73560         * modules/gc-md5, modules/gc-hmac-md5: New files.
73561
73562         * modules/gc (Files): Remove md5, memxor and hmac files.
73563
73564 2005-10-12  Simon Josefsson  <jas@extundo.com>
73565
73566         * m4/gc-pbkdf2-sha1.m4: New file.
73567
73568         * m4/gc-hmac-sha1.m4: New file.
73569
73570         * m4/gc-sha1: New file.
73571
73572         * m4/hmac-sha1.m4: New file.
73573
73574 2005-10-12  Simon Josefsson  <jas@extundo.com>
73575
73576         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73577
73578         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73579
73580 2005-10-12  Simon Josefsson  <jas@extundo.com>
73581
73582         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73583         suggested by Bruno Haible <bruno@clisp.org>.
73584
73585 2005-10-12  Simon Josefsson  <jas@extundo.com>
73586
73587         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73588
73589 2005-10-12  Simon Josefsson  <jas@extundo.com>
73590
73591         * lib/gc-pbkdf2-sha1.c: New file.
73592
73593         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73594
73595 2005-10-12  Simon Josefsson  <jas@extundo.com>
73596
73597         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73598
73599         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73600
73601 2005-10-12  Simon Josefsson  <jas@extundo.com>
73602
73603         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73604         GC_USE_HMAC_MD5, respectively.
73605
73606         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73607         (gc_md5): Fix typo.
73608
73609         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73610
73611         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73612
73613         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73614
73615 2005-10-12  Bruno Haible  <bruno@clisp.org>
73616
73617         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73618         Reported by Stepan Kasal <kasal@ucw.cz>.
73619
73620 2005-10-11  Simon Josefsson  <jas@extundo.com>
73621
73622         * tests/test-crc.c: New file.
73623
73624         * modules/crc, modules/crc-tests: New files.
73625
73626 2005-10-11  Simon Josefsson  <jas@extundo.com>
73627
73628         * m4/crc.m4: New file.
73629
73630 2005-10-11  Simon Josefsson  <jas@extundo.com>
73631
73632         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73633
73634         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73635
73636         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73637
73638 2005-10-11  Simon Josefsson  <jas@extundo.com>
73639
73640         * lib/crc.h, lib/crc.c: New files.
73641
73642         * lib/gc.h (gc_hash_buffer): Add doc.
73643
73644 2005-10-11  Bruno Haible  <bruno@clisp.org>
73645
73646         * modules/c-strcasestr: New file.
73647         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73648
73649 2005-10-11  Bruno Haible  <bruno@clisp.org>
73650
73651         * modules/c-strcase: New file.
73652         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73653
73654 2005-10-11  Bruno Haible  <bruno@clisp.org>
73655
73656         * lib/strcasecmp.c: Include limits.h.
73657         (strcasecmp): Avoid integer overflow on exotic platforms.
73658         * lib/strncasecmp.c: Include limits.h.
73659         (strncasecmp): Avoid integer overflow on exotic platforms.
73660         Reported by Paul Eggert.
73661
73662 2005-10-11  Bruno Haible  <bruno@clisp.org>
73663
73664         * lib/c-strcasestr.h: New file, from GNU gettext.
73665         * lib/c-strcasestr.c: New file, from GNU gettext.
73666
73667 2005-10-11  Bruno Haible  <bruno@clisp.org>
73668
73669         * lib/c-strcase.h: New file, from GNU gettext.
73670         * lib/c-strcasecmp.c: New file, from GNU gettext.
73671         * lib/c-strncasecmp.c: New file, from GNU gettext.
73672
73673 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * modules/mempcpy (License): GPL -> LGPL.
73676         * modules/strchrnul (License): Likewise.
73677         * modules/sysexits (License): Likewise.
73678
73679 2005-10-08  Simon Josefsson  <jas@extundo.com>
73680
73681         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73682
73683 2005-10-07  Simon Josefsson  <jas@extundo.com>
73684
73685         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73686
73687 2005-10-06  Simon Josefsson  <jas@extundo.com>
73688
73689         * tests/test-hmac-md5.c: New file.
73690
73691         * modules/hmac-md5-tests: New file.
73692
73693         * modules/hmac-md5: New file.
73694
73695 2005-10-06  Simon Josefsson  <jas@extundo.com>
73696
73697         * m4/hmac-md5.m4: New file.
73698
73699         * m4/memxor.m4: Require gl_C_RESTRICT.
73700
73701 2005-10-06  Simon Josefsson  <jas@extundo.com>
73702
73703         * lib/memxor.c (memxor): Avoid casts and warnings.
73704
73705 2005-10-06  Simon Josefsson  <jas@extundo.com>
73706
73707         * lib/hmac-md5.c: New file.
73708
73709         * lib/hmac.h: New file.
73710
73711 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73714         promotes to int, not unsigned int, to catch the AIX 5.3
73715         compiler bug.
73716
73717 2005-10-05  Simon Josefsson  <jas@extundo.com>
73718
73719         * modules/memxor: New file.
73720
73721         * modules/iconv (Files): Move config.rpath to havelib, it is used
73722         there.
73723
73724         * modules/havelib (Files): Add config.rpath.
73725
73726 2005-10-05  Simon Josefsson  <jas@extundo.com>
73727
73728         * m4/memxor.m4: New file.
73729
73730 2005-10-05  Simon Josefsson  <jas@extundo.com>
73731
73732         * lib/memxor.c (memxor): Fix compiler error.
73733
73734         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73735         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73736
73737         * lib/memxor.h, lib/memxor.c: New files.
73738
73739         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73740         we assume all systems have it, suggested by Jim Meyering
73741         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73742         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73743         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73744         same reasons.
73745
73746 2005-10-05  Simon Josefsson  <jas@extundo.com>
73747
73748         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73749
73750 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73753         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73754         needed, since the source code now assumes these .h files.
73755
73756 2005-10-05  Derek Price  <derek@ximbiot.com>
73757
73758         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73759
73760 2005-10-05  Bruno Haible  <bruno@clisp.org>
73761
73762         * modules/stdint (License): Change to LGPL.
73763
73764 2005-10-04  Simon Josefsson  <jas@extundo.com>
73765
73766         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73767         D. Baushke" <mdb@gnu.org>.
73768
73769 2005-10-04  Bruno Haible  <bruno@clisp.org>
73770
73771         * lib/verify.h (verify_true): Provide alternative definition for C++.
73772
73773 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73776         (SSIZE_MAX): New macro, if not already defined.
73777         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73778         than 2 GiB.
73779
73780 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         Sync from coreutils.
73783         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73784         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73785         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73786         ULLONG_MAX doesn't work with 2.7.2.1.
73787
73788 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73791         From Ben Pfaff.
73792
73793         * modules/exclude (Depends-on): Depend on verify.
73794         * modules/strtoimax (Depends-on): Likewise.
73795         * modules/utimecmp (Depends-on): Likewise.
73796
73797 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * lib/exclude.c: Include verify.h.
73800         (verify): Remove.  All callers changed to use verify.h's version.
73801         * lib/strtoimax.c: Likewise.
73802         * lib/utimecmp.c: Likewis.e
73803
73804         Sync from coreutils.
73805         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73806         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73807         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73808         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73809         bother returning ENOSYS if settimeofday or stime fails; just let
73810         them return whatever errno they want to return.
73811         * lib/utimens.c: Include unistd.h, for dup2.
73812         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73813         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73814
73815 2005-10-02  Jim Meyering  <jim@meyering.net>
73816
73817         Sync from coreutils.
73818         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73819         from glibc-2.2.5 that fails for read-only files.
73820
73821 2005-10-02  Jim Meyering  <jim@meyering.net>
73822
73823         Sync from coreutils.
73824         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73825         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73826         `#if HAVE_CONFIG_H'.
73827         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73828         Remove AT_FDCWD test.
73829         Do not consume the fd unless successful.
73830         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73831         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73832         block, so that we don't even try to compile it if settimeofday is
73833         available.  This works around a compilation failure on OSF1 V5.1,
73834         due to stime requiring a `long int*' while tv_sec is `int'.
73835
73836 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73837
73838         Sync from coreutils.
73839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73840         against `yes', rather than just testing for nonempty.
73841
73842 2005-10-01  Simon Josefsson  <jas@extundo.com>
73843
73844         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73845         and Darwin.
73846
73847         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73848         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73849         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73850         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73851         Check if struct addrinfo is declared.
73852
73853 2005-10-01  Simon Josefsson  <jas@extundo.com>
73854
73855         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73856         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73857         AI_* and EAI_* definitions.  Protect function declarations.
73858
73859 2005-10-01  Jim Meyering  <jim@meyering.net>
73860
73861         Sync from coreutils.
73862
73863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73864         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73865         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73867         in the inet and nsl libraries.  Required on Solaris 5.7.
73868
73869 2005-10-01  Jim Meyering  <jim@meyering.net>
73870
73871         Sync from coreutils.
73872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73873         in the inet and nsl libraries.  Required on Solaris 5.7.
73874
73875 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73876
73877         * lib/getdelim.c (getdelim): Remove unused variables.
73878
73879 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73882         so that the code works even with ancient cpp.  Portability problem
73883         with GCC 2.7.2.1 reported by Thomas M.Ott.
73884
73885 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73886
73887         * modules/regex (Depends-on): Add strcase.
73888
73889         * modules/gethostname (Licence): Change from GPL to LGPL, since
73890         gethostname.c is a trivial implementation of a standard library
73891         function.
73892         * modules/poll (License): Change from GPL to LGPL, since it's
73893         derived from LGPL code.
73894
73895 2005-09-27  Jim Meyering  <jim@meyering.net>
73896
73897         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73898         HAVE_CONFIG_H.
73899
73900         * lib/intprops.h (signed_type_or_expr__): Define.
73901         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73902         for unsigned types.
73903
73904 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * lib/verify.h (verify_expr): Remove, replacing with:
73907         (verify_true): New macro that returns true instead of void.
73908         (verify_type__): Remove.
73909         (verify): Use verify_true rather than verify_type__.
73910
73911 2005-09-26  Bruno Haible  <bruno@clisp.org>
73912
73913         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73914         is necessary.
73915         (lib_SOURCES): Remove mbchar.c.
73916         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73917         (Files): Add m4/mbrtowc.m4.
73918         * modules/mbiter: Likewise.
73919         * modules/mbuiter: Likewise.
73920
73921 2005-09-26  Bruno Haible  <bruno@clisp.org>
73922
73923         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73924         compile mbchar.c if they are not both present.
73925         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73926         * m4/mbiter.m4 (gl_MBITER): Likewise.
73927         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73928         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73929         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73930
73931 2005-09-25  Jim Meyering  <jim@meyering.net>
73932
73933         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73934         also uses socklen_t.
73935
73936 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/utimens.c (ENOSYS): Define if not already defined.
73939         (futimens): Support having a null PATH if the file descriptor
73940         is nonnegative.
73941
73942         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73943         Remove.
73944         (__attribute): Define to empty unless GCC 3.1 or later.
73945         This works around a core dump on OpenBSD 3.4, which has GCC
73946         2.95.3, which dumps core when given __attribute__(()).  It also
73947         simplifies other tests, since we really don't want to bother with
73948         worrying about which ancient version of GCC supported what.
73949         Original problem reported by Yoann Vandoorselaere, with part of
73950         the fix suggested by Derek Price.
73951
73952 2005-09-24  Jim Meyering  <jim@meyering.net>
73953
73954         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73955         so we can once again use a positive bitfield width of 1 -- now we
73956         don't have to explain why we were using a bitfield width of 2.
73957
73958 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73959
73960         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73961         and similarly for the other external symbols.  Problem reported
73962         by James Gallager.
73963
73964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73965         bug reported by Jim Meyering.
73966
73967         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73968         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73969         not needed, since socklen is a prerequisite module.
73970
73971 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73974         Problem reported by Eric Blake.
73975         (getaddrinfo): Initialize se so that it's not garbage.
73976         Redo internal storage allocation so that it doesn't make unportable
73977         assumptions about alignment.
73978         Fix a memory leak.
73979
73980         * lib/utimens.c (futimens): Use futimesat if available.
73981         Prefer it to futimes since it doesn't have the futimes bug.
73982
73983         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73984         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73985         Instead, declare a function that returns a pointer to an array,
73986         and use verify_type__ to declare the size of the array.
73987         Problem and germ of a solution reported by Bruno Haible.
73988         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73989         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73990
73991 2005-09-23  Jim Meyering  <jim@meyering.net>
73992
73993         Sync from coreutils.
73994         Correct build failure (socklen_t not defined) on at least
73995         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73997
73998 2005-09-23  Jim Meyering  <jim@meyering.net>
73999
74000         * modules/getaddrinfo (Depends-on): Add socklen.
74001
74002 2005-09-23  Bruno Haible  <bruno@clisp.org>
74003
74004         * tests/test-verify.c: New file.
74005
74006 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         Sync from coreutils.
74009
74010         * modules/argmatch (Depends-on): Add verify.
74011         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74012         unistd-safer.
74013         * modules/save-cwd (Depends-on): Likewise.
74014
74015         * modules/openat (Files): Add lib/openat-die.c.
74016         (Depends-on): Remove error, exitfail.
74017         Add dirname.
74018
74019         * modules/verify: New file.
74020         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74021         with "verify" module.
74022
74023 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74024
74025         Sync from coreutils.
74026
74027         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74028         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74029         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74030         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74031         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74032         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74033         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74034         Don't bother checking for string.h, stdlib.h, unistd.h.
74035         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74036         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74037         module's job.
74038         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74039         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74040
74041         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74042         (gl_GETDATE): Use it.
74043
74044         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74045
74046 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         Sync from coreutils.
74049
74050         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74051         stat-time.h.
74052         * lib/argmatch.h: Include verify.h
74053         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74054         (ARGMATCH_ASSERT): Remove; unused.
74055         * lib/canonicalize.c: Assume STDC_HEADERS.
74056         * lib/exclude.c: Include "strcase.h".
74057         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74058         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74059         and stdio-safer.h.
74060         (getusershell): Call fopen, not fopen_safer.
74061         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74062         Do not include unistd-safer.h.
74063         (save_cwd): Don't call fd_safer; no longer needed
74064         now that we include fcntl--.h.
74065
74066         * lib/getdate.y (relative_time): New type.
74067         (RELATIVE_TIME_0): New constant.
74068         (parser_control): Use relative_time instead of doing it ourselves.
74069         (%union): Add new relative_time rel member.
74070         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74071         Now typeless.
74072         (relunit, relunit_snumber): Now of type rel.
74073         (zone, rel, relunit, get_date): Adjust to above changes.
74074
74075         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74076         Do not include unistd-safer.h.
74077         (getloadavg): Don't call fd_safer; no longer needed
74078         now that we include fcntl--.h.
74079
74080         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74081         (make_dir_parents): Treat ENOSYS like EEXIST.
74082
74083         Improve quality of diagnostics on restore_cwd failure.
74084         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74085         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74086         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74087         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74088         each time through the loop.  Do not diagnose restore_cwd failure;
74089         that is the caller's job (and perhaps the caller does not care).
74090
74091         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74092         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74093         If the file already exists but is not a directory, don't bother
74094         to try to make its parents.
74095         Close potential file descriptor leak if we can't chdir("/") (!).
74096         Don't always return true if chdir($PWD) fails; return true only
74097         if the requested action was done successfully (except for the
74098         chdir($PWD)).
74099         Don't log final directory unless we actually made it.
74100         Refactor to avoid duplicate code to fix up permissions.
74101         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74102
74103         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74104         to make it a bit faster and (I hope) clearer.
74105         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74106         Fix bug in formats like %2N.
74107
74108         * lib/verify.h: New file.
74109
74110 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         Sync from coreutils.
74113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74114
74115 2005-09-22  Jim Meyering  <jim@meyering.net>
74116
74117         Sync from coreutils.
74118
74119         * m4/lstat.m4 (gl_FUNC_LSTAT):
74120         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74121         Remove obsolete comment.
74122         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74123         * m4/xstrtod.m4: Likewise.
74124
74125         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74126
74127 2005-09-22  Jim Meyering  <jim@meyering.net>
74128
74129         Sync from coreutils.
74130
74131         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74132
74133         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74134         the .tm_year member, since otherwise gcc-4.0 would now warn about
74135         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74136
74137         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74138         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74139
74140         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74141         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74142         when run in a time zone for which daylight savings time is in effect
74143         for the starting date.
74144
74145         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74146         stop us from restricting permissions of just-created absolute-named
74147         directories.
74148         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74149         to restore initial working directory.
74150         * lib/mkdir-p.c (make_dir_parents): New parameter:
74151         different_working_dir, to tell caller if/when we change the working
74152         directory and are unable to return to the initial one.
74153         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74154         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74155         `return false'.  This fixes a bug introduced on 2004-07-30.
74156
74157         * lib/openat.c (fdopendir): Be sure to close the supplied
74158         file descriptor before returning.  This makes our replacement
74159         implementation a little closer to Solaris's, where fdopendir
74160         ties the file descriptor to the returned DIR* pointer.
74161         * lib/openat.c (unlinkat): New function.
74162         * lib/openat.h (unlinkat): Add prototype.
74163         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74164         (openat_restore_fail): Rename from openat_restore_die.
74165         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74166
74167         Provide an alternative to exiting immediately upon save_cwd or
74168         restore_cwd failure.  Now, an application can arrange e.g.,
74169         to perform a longjump in that case.
74170         * lib/openat.c: Include dirname.h.
74171         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74172         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74173         and openat_restore_die rather than calling error directly.
74174         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74175
74176         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74177         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74178         define.
74179
74180         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74181         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74182                             int utc, int nanoseconds);
74183         Background:
74184         date should not have to allocate a megabyte of virtual memory to
74185         handle a format argument like +%1048575T.  When implemented with
74186         strftime, it must allocate such a buffer, use strftime to fill it
74187         in, print it, then free it.
74188         With fprintftime, it simply prints everything and exits.
74189         With no need for memory allocation, that's one fewer way to fail.
74190         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74191         optional field width, not before, so we accept %9:z, not %:9z.
74192         (my_strftime): Be sure to use L_('x') for literals.
74193
74194         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74195         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74196         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74197         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74198         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74199         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74200         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74201         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74202         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74203         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74204         * lib/xgethostname.c, lib/xreadlink.c:
74205         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74206
74207         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74208         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74209         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74210         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74211         and don't include <sys/file.h>).
74212
74213 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74214
74215         Sync from coreutils.
74216
74217         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74218         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74219         [!LDAV_DONE]: Avoid unused variable warning.
74220
74221 2005-09-21  Bruno Haible  <bruno@clisp.org>
74222
74223         * lib/unicodeio.h (unicode_to_mb): New declaration.
74224
74225 2005-09-20  Derek Price  <derek@ximbiot.com>
74226
74227         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74228         getaddrinfo.h.
74229
74230 2005-09-20  Bruno Haible  <bruno@clisp.org>
74231
74232         * gnulib-tool: Remove trailing slashes from the values specified for
74233         --source-base, --m4-base, --tests-base, --aux-dir.
74234         Suggested by Simon Josefsson <jas@extundo.com>.
74235
74236 2005-09-20  Bruno Haible  <bruno@clisp.org>
74237
74238         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74239         func_modules_to_filelist, func_import, func_create_testdir): Make all
74240         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74241         change when gnulib-tool is invoked in a different locale.
74242
74243 2005-09-19  Simon Josefsson  <jas@extundo.com>
74244
74245         * m4/socklen.m4: Fix typo.
74246
74247 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74248
74249         Use a consistent style for including <config.h>.
74250         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74251         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74252         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74253         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74254         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74255         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74256         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74257         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74258         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74259         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74260         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74261         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74262         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74263         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74264         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74265         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74266         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74267         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74268         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74269         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74270         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74271         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74272         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74273         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74274         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74275         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74276         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74277         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74278         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74279         lib/xstrtoumax.c, lib/yesno.c:
74280         Standardize inclusion of config.h.
74281         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74282         lib/inttostr.h:  Removed inclusion of config.h from header files.
74283         * lib/inttostr.c:  Adjusted in-tree users.
74284         * lib/timespec.h: Remove superfluous warning to include config.h.
74285         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74286         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74287         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74288         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74289         config.h with HAVE_CONFIG_H.
74290
74291 2005-09-19  Jim Meyering  <jim@meyering.net>
74292
74293         * modules/pathmax (License): Change to LGPL.
74294
74295 2005-09-19  Derek Price  <derek@ximbiot.com>
74296
74297         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74298
74299 2005-09-19  Bruno Haible  <bruno@clisp.org>
74300
74301         * gnulib-tool (import): Provide default for --tests-base.
74302
74303 2005-09-19  Bruno Haible  <bruno@clisp.org>
74304
74305         * doc/quote.texi: New file, extracted from gnulib.texi.
74306         * doc/ctime.texi: New file, extracted from gnulib.texi.
74307         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74308         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74309         * doc/gnulib.texi: Include them.
74310
74311 2005-09-18  Bruno Haible  <bruno@clisp.org>
74312
74313         Portability fix.
74314         * gnulib-tool (func_readlink): New function.
74315         (func_ln_if_changed): Use it.
74316
74317 2005-09-18  Bruno Haible  <bruno@clisp.org>
74318
74319         * gnulib-tool: Support --with-tests also with --import.
74320         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74321         (func_import): Use variables $testsbase and $inctests. Emit a
74322         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74323         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74324         SUBDIRS += $testsdir.
74325         (func_create_testdir): Update.
74326
74327 2005-09-18  Bruno Haible  <bruno@clisp.org>
74328
74329         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74330         instead of $dry_run.
74331         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74332         (func_ln_if_changed): Don't handle dry-run here.
74333         (func_import): In dry-run mode, detect more precisely which actions
74334         would be performed, and don't use "...ing" verbs.
74335
74336 2005-09-18  Bruno Haible  <bruno@clisp.org>
74337
74338         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74339         (func_import): Use join on two temporary files instead of three nested
74340         loops, in order to determine which files are new or old.
74341
74342 2005-09-18  Bruno Haible  <bruno@clisp.org>
74343
74344         * gnulib-tool (func_import): Comment out code that spits out the
74345         new files with --dry-run.
74346
74347 2005-09-18  Bruno Haible  <bruno@clisp.org>
74348
74349         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74350
74351 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74352
74353         * lib/stat-time.h: New file.
74354         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74355         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74356         in a different way.
74357         (timespec_cmp): New function.
74358         * lib/utimecmp.c: Include stat-time.h.
74359         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74360         members exist, not on the obsolescent ST_MTIM_NSEC.
74361         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74362
74363 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74364
74365         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74366
74367 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74368
74369         * MODULES.html.sh (File system functions): Add stat-time.
74370         * modules/stat-time: New file.
74371         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74372         is now done in a different way, by the stat-time module.
74373         * modules/utimecmp (Depends-on): Add stat-time.
74374
74375 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         * m4/st_mtim.m4: Remove.  Superseded by...
74378         * m4/stat-time.m4: New file.
74379         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74380         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74381
74382 2005-09-15  Derek Price  <derek@ximbiot.com>
74383
74384         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74385
74386 2005-09-15  Derek Price  <derek@ximbiot.com>
74387
74388         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74389         * lib/regex_internal.c: Ditto, using this...
74390         (__GNUC_PREREQ): ...new macro.
74391         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74392         using...
74393         (__GNUC_PREREQ): ...this new macro.
74394
74395         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74396
74397 2005-09-15  Derek Price  <derek@ximbiot.com>
74398             Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74401         changes, consolidating in...
74402         * lib/regex_internal.h: ...this file.
74403
74404 2005-09-13  Jim Meyering  <jim@meyering.net>
74405
74406         * lib/canon-host.c: Filter through gnu indent and reword comments
74407         slightly.
74408         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74409
74410 2005-09-13  Derek Price  <derek@ximbiot.com>
74411
74412         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74413         failure.
74414         Reported by Jim Meyering  <jim@meyering.net>.
74415
74416 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74417
74418         * lib/base64.c: Typo.
74419         (base64_encode): Put b64str in initialized data section.
74420
74421 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         Merge glibc and coreutils changes into gnulib, plus a few
74424         extra fixes.
74425         * lib/md5.c: Use #error rather than a string.
74426         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74427         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74428         (__attribute__): Define to empty for non recent-GCC.
74429         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74430         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74431         Renamed from their non-__ counterparts, with new macros replacing
74432         them if not _LIBC.  Add __THROW attribute.
74433         (rol): Remove.
74434         (struct md5_ctx): Align buffer if using GCC.
74435         * lib/sha1.h (struct sha1_ctx): Likewise.
74436         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74437         The old name was backwards.
74438         (NOTSWAP): Remove; not used.
74439         (rol): New macro, moved here from md5.h.
74440         (sha1_process_block): Remove a FIXME that doesn't make sense.
74441
74442 2005-09-12  Derek Price  <derek@ximbiot.com>
74443
74444         Return usable errors from canon-host.
74445         * lib/canon-host.h: New file.
74446         * lib/canon-host.c (canon_host): Wrap...
74447         (canon_host_r): ...this new function, which now relies exclusively on
74448         getaddrinfo.
74449         (ch_strerror): New function.
74450         (last_cherror): New global.
74451         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74452         interface.
74453         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74454         void *.
74455         (freeaddrinfo): Free ai->ai_canonname when set.
74456
74457 2005-09-12  Derek Price  <derek@ximbiot.com>
74458
74459         Make canon-host require getaddrinfo.
74460         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74461         AC_LIBSOURCE canon-host.h.  Call...
74462         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74463         gl_GETADDRINFO.
74464         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74465
74466 2005-09-12  Derek Price  <derek@ximbiot.com>
74467
74468         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74469         LGPL.
74470         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74471
74472 2005-09-12  Derek Price  <derek@ximbiot.com>
74473
74474         * lib/gai_strerror.c: Include config.h when available.  Include
74475         getaddrinfo.h before other headers to test interface.
74476         Reported by Larry Jones <lawrence.jones@ugs.com>.
74477
74478 2005-09-12  Derek Price  <derek@ximbiot.com>
74479             Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * modules/glob (Files): Add glob-libc.h.
74482
74483 2005-09-12  Derek Price  <derek@ximbiot.com>
74484             Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74487         glob_.h, glob-libc.h.
74488         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74489
74490 2005-09-12  Derek Price  <derek@ximbiot.com>
74491             Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74494         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74495         protecting things that should be done only in gnulib contexts.
74496         * lib/glob_.h: New file, containing only the glob things needed for
74497         gnulib.
74498         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74499         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74500         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74501         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74502         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74503         and to respect the namespace rules better.
74504
74505 2005-09-08  Simon Josefsson  <jas@extundo.com>
74506
74507         * modules/socklen: New file.
74508
74509 2005-09-08  Simon Josefsson  <jas@extundo.com>
74510
74511         * m4/socklen.m4: New file.
74512
74513 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * modules/utimens (Files): Add m4/utimbuf.m4, since
74516         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74517         Reported by Sergey Poznyakoff.
74518
74519 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74522         definitions, since that's the preferred style in glibc.
74523         Fix a minor spacing issue, and update copyright notice to match
74524         glibc's.
74525
74526 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74527
74528         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74529
74530 2005-09-06  Simon Josefsson  <jas@extundo.com>
74531
74532         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74533         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74534
74535 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74538         warning.
74539
74540 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * config/srclist.txt: Add glibc bug 1302.
74543
74544 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         Change bitset word type from unsigned int to unsigned long int,
74547         as this has better performance on typical 64-bit hosts.
74548         Port bitset code to hosts with unusual word sizes.
74549         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74550         (build_collating_symbol):
74551         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74552         argument is a bitset.  This is merely a style issue, but it makes
74553         it clearer that an entire array is expected.
74554         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74555         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74556         Port to the case where bitset_word is not the same as unsigned int.
74557         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74558         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74559         Likewise.
74560         * lib/regexec.c (check_dst_limits_calc_pos_1,
74561         check_subexp_matching_top):
74562         (build_trtable, group_nodes_into_DFAstates):
74563         Likewise.
74564         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74565         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74566         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74567         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74568         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74569         * lib/regcomp.c (optimize_subexps, lower_subexp):
74570         Work even if bitset_word has holes in its bitwise representation.
74571         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74572         * lib/regexec.c (check_dst_limits_calc_pos_1,
74573         check_subexp_matching_top):
74574         Likewise.
74575         * lib/regex_internal.c (re_string_reconstruct):
74576         Don't assume UCHAR_MAX == 255.
74577         * lib/regex_internal.h (bitset_set_all): Likewise.
74578         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74579         All uses changed.
74580         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74581         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74582         All uses changed.
74583         (BITSET_WORD_MAX): New macro.
74584         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74585         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74586         (bitset_empty, bitset_copy):
74587         Prefer sizeof (bitset) to multiplying it out ourselves.
74588         (bitset_not_merge): Remove; unused.
74589         (bitset_contain): Return bool, not unsigned int with one bit on.
74590         All callers changed.
74591         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74592         alignment than re_node_set; do this by defining a new internal
74593         type struct dests_alloc and using it to allocate memory.
74594
74595 2005-09-05  Bruno Haible  <bruno@clisp.org>
74596
74597         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74598         links.
74599
74600 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74601
74602         * modules/size_max (Makefile.am): Add size_max.h
74603
74604 2005-09-04  Derek Price  <derek@ximbiot.com>
74605
74606         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74607
74608 2005-09-03  Simon Josefsson  <jas@extundo.com>
74609
74610         * gnulib-tool: Fix typo.
74611
74612 2005-09-03  Simon Josefsson  <jas@extundo.com>
74613
74614         * config/srclist.txt: Add glibc bug 1293.
74615
74616 2005-09-03  Derek Price  <derek@ximbiot.com>
74617
74618         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74619         From Larry Jones <lawrence.jones@ugs.com>.
74620
74621 2005-09-02  Simon Josefsson  <jas@extundo.com>
74622
74623         * modules/socklen: New file.
74624
74625 2005-09-02  Simon Josefsson  <jas@extundo.com>
74626
74627         * modules/havelib: New module.
74628
74629         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74630         Use havelib.
74631
74632 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         Check for arithmetic overflow when calculating sizes, to prevent
74635         some buffer-overflow issues.  These patches are conservative, in the
74636         sense that when I couldn't determine whether an overflow was possible,
74637         I inserted a run-time check.
74638         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74639         macros.
74640         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74641         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74642         (re_xnrealloc, re_x2nrealloc): New inline functions.
74643         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74644         parse_bracket_exp):
74645         (build_equiv_class, build_charclass): Check for arithmetic overflow
74646         in size expression calculations.
74647         * lib/regex_internal.c (re_string_realloc_buffers):
74648         (build_wcs_upper_buffer, re_node_set_add_intersect):
74649         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74650         (re_dfa_add_node, register_state): Likewise.
74651         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74652         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74653         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74654         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74655
74656 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74659         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74660
74661 2005-09-02  Bruno Haible  <bruno@clisp.org>
74662
74663         Support for lib vs. lib64 distinction on biarch platforms.
74664         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74665         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74666         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74667
74668 2005-09-02  Bruno Haible  <bruno@clisp.org>
74669
74670         * gnulib-tool (import): In the other first-use case, provide defaults
74671         as well.
74672
74673 2005-09-02  Bruno Haible  <bruno@clisp.org>
74674
74675         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74676         patches not yet found in the latest gettext release.
74677
74678 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74681         to avoid a collision with bits/local_lim.h in glibc.
74682         All uses changed.  Problem reported by Dmitry V. Levin in
74683         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74684
74685         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74686         bugs in int versus size_t comparisons.
74687         (re_string_context_at): Fix bug where the code assumed that
74688         Idx is signed.
74689
74690         Use bool where appropriate.
74691         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74692         All callers changed.
74693         (calc_eclosure_iter): Likewise, for ROOT arg.
74694         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74695         (build_charclass_op): Likewise, for NON_MATCH arg.
74696         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74697         (re_string_construct_common): Likewise, for ICASE arg.
74698         * lib/regexec.c (re_search_2_stub, re_search_stub):
74699         Likewise, for RET_LEN arg.
74700         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74701         (set_regs): Likewise, for FL_BACKTRACK arg.
74702         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74703         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74704         (calc_eclosure_iter, parse_bracket_exp):
74705         Use bool for internal variables that are booleans.
74706         * lib/regexec.c (re_search_internal, check_matching,
74707         proceed_next_node):
74708         (set_regs, build_sifted_states, sift_states_bkref):
74709         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74710         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74711         (find_collation_sequence_value):
74712         Likewise.
74713         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74714         (re_node_set_compare):
74715         Return bool, not int. All callers changed.
74716         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74717         (build_trtable, check_node_accept): Likewise.
74718         * lib/regex_internal.h: Include stdbool.h.
74719
74720         Fix bugs uncovered when converting to bool.
74721         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74722         failure instead of charging ahead blindly.
74723         * lib/regex_internal.c (register_state): Likewise.
74724         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74725         for freeing internal storage.
74726         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74727         bitset pieces used as boolean, to avoid undefined behavior
74728         on hosts that do int overflow checking.
74729
74730 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * config/srclist.txt: Add glibc bugs 1285-1287.
74733
74734 2005-09-01  Jim Meyering  <jim@meyering.net>
74735
74736         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74737         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74738         Require gl_STAT_MACROS, too.
74739
74740 2005-09-01  Bruno Haible  <bruno@clisp.org>
74741
74742         * gnulib-tool (import): In the first-use case, provide defaults.
74743
74744 2005-09-01  Bruno Haible  <bruno@clisp.org>
74745
74746         * gnulib-tool (func_import): Remove the .tmp files.
74747
74748 2005-09-01  Bruno Haible  <bruno@clisp.org>
74749
74750         * gnulib-tool (func_import): Fix handling of symbolic links.
74751
74752 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74755         old glibc regex code mishandles strings longer than 2**31 bytes.
74756         This patch fixes this when the regex code is used in gnulib
74757         (i.e., outside glibc).
74758
74759         This patch should not affect the use of the regex code inside
74760         glibc.  No doubt this problem also needs to be handled for glibc
74761         as well, but the result will be an incompatible change to the
74762         glibc ABI, and the old ABI will have to be supported too.  That
74763         can be the the subject for another patch.
74764
74765         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74766         governing whether the rest of this patch is active.  By default,
74767         the macro is disabled and the patch has no effect.
74768         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74769         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74770         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74771         (re_match_2, re_set_registers): Use the new types.
74772         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74773         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74774         New macros.
74775         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74776         (re_string_context_at, bin_tree_t, re_dfastate_t):
74777         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74778         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74779         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74780         (re_string_char_size_at, re_string_wchar_at):
74781         (re_string_elem_size_at):
74782         Use the new types and macros to port to 64-bit hosts.
74783         Use unsigned types for internal values, so that the code
74784         mostly works even for arrays larger than SSIZE_MAX.
74785         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74786         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74787         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74788         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74789         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74790         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74791         (calc_inveclosure, parse_dup_op, build_range_exp):
74792         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74793         (fetch_number, create_token_tree, mark_opt_subexp):
74794         Likewise.
74795         * lib/regex_internal.c (re_string_construct_common,
74796         create_ci_newstate):
74797         (create_cd_newstate, re_string_allocate, re_string_construct):
74798         (re_string_realloc_buffers, build_wcs_upper_buffer):
74799         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74800         (re_string_reconstruct, re_string_peek_byte_case):
74801         (re_string_fetch_byte_case, re_string_context_at):
74802         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74803         (re_node_set_init_copy, re_node_set_add_intersect):
74804         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74805         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74806         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74807         (re_acquire_state, re_acquire_state_context, register_state):
74808         Likewise.
74809         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74810         search_cur_bkref_entry):
74811         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74812         (re_search_internal, re_search_2_stub, re_search_stub)
74813         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74814         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74815         (update_cur_sifted_state, check_dst_limits):
74816         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74817         (check_subexp_limits, sift_states_bkref, merge_state_array):
74818         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74819         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74820         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74821         (expand_bkref_cache, check_node_accept_bytes):
74822         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74823         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74824         (acquire_init_state_context, check_halt_node_context):
74825         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74826         (sift_states_backward, clean_state_log_if_needed):
74827         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74828         (find_recover_state, transit_state_sb, transit_state_mb):
74829         (transit_state_bkref, build_trtable, match_ctx_clean):
74830         Likewise.
74831         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74832         to work around an assumption that REG_MISSING is negative.
74833
74834         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74835         (seek_collating_symbol_entry) [defined _LIBC]:
74836         (lookup_collation_sequence_value) [defined _LIBC]:
74837         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74838         Use prototypes rather than old-style function definitions.
74839         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74840         (transit_state_sb) [0]:
74841         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74842
74843         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74844         rm_eo.
74845
74846         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74847         (optimize_subexps, lower_subexp):
74848         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74849         since the signed shift might overflow.  Use 1u<<31 instead.
74850         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74851         Likewise.
74852         * lib/regexec.c (check_dst_limits_calc_pos_1,
74853         check_subexp_matching_top): Likewise.
74854
74855         * lib/regcomp.c (optimize_subexps, lower_subexp):
74856         Use CHAR_BIT rather than 8, for clarity.
74857         * lib/regexec.c (check_dst_limits_calc_pos_1):
74858         (check_subexp_matching_top): Likewise.
74859         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74860         have to worry about portability issues when shifting it left.
74861         Remove no-longer-needed test for table_size > 0.
74862         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74863         in a word, as the resulting behavior is undefined.
74864         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74865         in one case, a <= should have been an <, and in another case the
74866         whole test was missing.
74867         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74868         the standard name CHAR_BIT.
74869         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74870         this is not true on one's complement and signed-magnitude hosts.
74871
74872         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74873         next_last_offset.
74874         (struct re_dfa_t): Remove unused member states_alloc.
74875         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74876
74877 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74880         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74881         and large-file glibc and in 32-bit large-file Solaris.
74882
74883 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74886         lengths fit in regoff_t; this isn't true if regoff_t is the same
74887         width as size_t.
74888         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74889         (= START + RANGE) instead of RANGE.  This avoids overflow
74890         problems when regoff_t is the same width as size_t.
74891         All callers changed.
74892         (re_search_2_stub): Check for overflow when adding the
74893         sizes of the two strings.
74894         (re_search_stub): Check for overflow when adding START
74895         to RANGE; if it occurs, substitute the extreme value.
74896
74897 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74900
74901 2005-08-31  Jim Meyering  <jim@meyering.net>
74902
74903         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74904         a pointer-to-const.
74905         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74906         (register_state): Likewise.
74907         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74908         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74909         (group_nodes_into_DFAstates): Likewise.
74910
74911 2005-08-31  Jim Meyering  <jim@meyering.net>
74912
74913         * check-module: Add a FIXME comment.
74914
74915 2005-08-31  Eric Blake  <ebb9@byu.net>
74916
74917         * modules/unistd-safer (Files): Add unistd--.h.
74918         * modules/stdio-safer (Files): Add stdio--.h.
74919
74920 2005-08-31  Derek Price  <derek@ximbiot.com>
74921
74922         * lib/getdelim.c (getdelim): Return EOF on EOF.
74923         Reported by Larry Jones <lawrence.jones@ugs.com>.
74924
74925 2005-08-31  Bruno Haible  <bruno@clisp.org>
74926
74927         Avoid unnecessary diffs in the generated lib/Makefile.am.
74928         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74929         the generated files.
74930         (func_import): Don't set cmd.
74931
74932 2005-08-31  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/strstr.c: Include <stddef.h>, for NULL.
74935         * lib/strcasestr.c: Likewise.
74936         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74937
74938 2005-08-31  Bruno Haible  <bruno@clisp.org>
74939
74940         * gnulib-tool: New option --macro-prefix.
74941         (func_import): Use macro_prefix.
74942         (import): Handle option --macro-prefix.
74943
74944 2005-08-31  Bruno Haible  <bruno@clisp.org>
74945
74946         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74947         Also use new variables cached_lgpl, cached_libtool.
74948
74949 2005-08-31  Bruno Haible  <bruno@clisp.org>
74950
74951         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74952         always instantiating them.
74953
74954 2005-08-31  Bruno Haible  <bruno@clisp.org>
74955
74956         * gnulib-tool (func_import): Read the previous cached settings
74957         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74958         earlier added by gnulib but are now dropped. Warn when a gnulib file
74959         overwrites a non-gnulib file.
74960
74961 2005-08-31  Bruno Haible  <bruno@clisp.org>
74962
74963         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74964         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74965         projects that don't keep autogenerated files in CVS. Put into
74966         actioncmd only the specified modules, not the transitive closure.
74967
74968 2005-08-31  Bruno Haible  <bruno@clisp.org>
74969
74970         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74971         Create directories that shall be filled.
74972         (import): Don't look for gl_* macros in configure.ac. Recurse across
74973         all directories containing a gnulib-cache.m4 files, if meaningful.
74974
74975 2005-08-31  Bruno Haible  <bruno@clisp.org>
74976
74977         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74978         (import): Set seen_libtool when we see gl_LIBTOOL.
74979
74980 2005-08-31  Bruno Haible  <bruno@clisp.org>
74981
74982         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74983         declaration macro definitions from generated gnulib.m4.
74984
74985 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74986
74987         * lib/iconvme.h: Add prototype for iconv_alloc.
74988
74989 2005-08-29  Simon Josefsson  <jas@extundo.com>
74990
74991         * lib/iconvme.c: Fix errno.
74992
74993 2005-08-29  Bruno Haible  <bruno@clisp.org>
74994
74995         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74996         that it works when the directory contains spaces.
74997
74998 2005-08-29  Bruno Haible  <bruno@clisp.org>
74999
75000         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75001
75002 2005-08-29  Bruno Haible  <bruno@clisp.org>
75003
75004         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75005         Emit more advice.
75006
75007 2005-08-29  Bruno Haible  <bruno@clisp.org>
75008         and Stepan Kasal  <kasal@ucw.cz>
75009
75010         * check-module: If more parameters are given, check each of them
75011         separately; add more exceptions, as noted by Jim Meyering.
75012         (check_module): New procedure.
75013         (%exempt_header): Now contains all exceptions.
75014
75015 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75016
75017         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75018
75019 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75020
75021         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75022
75023 2005-08-28  Bruno Haible  <bruno@clisp.org>
75024
75025         * m4/gnulib-tool.m4: New file.
75026
75027 2005-08-27  Jim Meyering  <jim@meyering.net>
75028
75029         * modules/unistd-safer (Files): Add pipe-safer.c.
75030         * modules/fcntl-safer (Files): Add creat-safer.c.
75031
75032 2005-08-27  Jim Meyering  <jim@meyering.net>
75033
75034         * m4/stdlib-safer.m4: New file.  From coreutils.
75035         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75036         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75037         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75038         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75039         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75040
75041 2005-08-27  Jim Meyering  <jim@meyering.net>
75042
75043         * lib/fopen-safer.c: Merge minor changes from coreutils.
75044         * lib/dup-safer.c: Likewise.
75045         * lib/fd-safer.c: Likewise.
75046
75047         Merge from coreutils.
75048         * lib/stdio--.h: New file.
75049         * lib/stdlib--.h: New file.
75050         * lib/mkstemp-safer.c: New file.
75051
75052         GNU tar needs these.
75053         * lib/pipe-safer.c: New file.
75054         * lib/creat-safer.c: New file.
75055         * lib/fcntl--.h (creat): Define to creat_safer.
75056         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75057         * lib/unistd--.h (pipe): Define to pipe_safer.
75058         * lib/unistd-safer.h: Declare pipe_safer.
75059
75060 2005-08-26  Simon Josefsson  <jas@extundo.com>
75061
75062         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75063         Haible <bruno@clisp.org>.
75064
75065 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * lib/regex_internal.h: Remove all references to
75068         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75069         or better.
75070         (bitset_not, bitset_merge, bitset_not_merge):
75071         (bitset_mask, re_string_allocate, re_string_construct):
75072         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75073         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75074         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75075         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75076         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75077         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75078         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75079         (re_acquire_state_context):
75080         Remove unnecessary forward decls.
75081         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75082         Put __attribute at function definition,
75083         now that the function decl has been removed.
75084         * lib/regex_internal.c (re_string_peek_byte_case):
75085         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75086         Likewise.
75087
75088 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75089
75090         * m4/regex.m4: Add AC_PREREQ(2.50).
75091         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75092
75093 2005-08-25  Simon Josefsson  <jas@extundo.com>
75094
75095         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75096         __fsetlocking.
75097
75098 2005-08-25  Simon Josefsson  <jas@extundo.com>
75099
75100         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75101         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75102         GLIBC specific code.
75103
75104 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         Make regex safe for g++.  This fixes one real bug (an "err"
75107         that should have been "*err").  g++ problem reported by
75108         Sam Steingold.
75109         * lib/regex_internal.h (re_calloc): New macro, consistent with
75110         re_malloc etc.  All callers of calloc changed to use re_calloc.
75111         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75112         not int.  All callers changed.
75113         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75114         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75115         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75116         (find_recover_state): Change "err" to "*err"; this fixes what
75117         appears to be a real bug.
75118         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75119         versus int.
75120
75121 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * modules/regex (Depends-on): Add malloc, since the code
75124         assumes that !malloc(0) means failure.
75125
75126 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75129
75130         alloca modernization/simplification for regex.
75131         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75132         needs to be at the start of the file, and can be moved into
75133         regex_internal.h and simplified.
75134         * lib/regex_internal.h: Include <alloca.h>.
75135         (__libc_use_alloca) [!defined _LIBC]: New macro.
75136         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75137         now works outside glibc.
75138
75139 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         * config/srclist.txt: Add glibc bugs 1241, 1245.
75142
75143 2005-08-25  Jim Meyering  <jim@meyering.net>
75144
75145         * lib/open-safer.c: Include <config.h>.
75146         Otherwise, we'd lose LARGEFILE support in any file using
75147         e.g. "fcntl--.h"
75148
75149 2005-08-25  Bruno Haible  <bruno@clisp.org>
75150
75151         * m4/minmax.m4: Require autoconf 2.52.
75152         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75153         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75154         alternatives of translit over the alphabet.
75155         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75156
75157 2005-08-24  Simon Josefsson  <jas@extundo.com>
75158
75159         * tests/test-getpass.c: New file.
75160
75161 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75162
75163         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75164         for GNU regex features.
75165
75166 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75167
75168         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75169         * lib/regex.h (regerror): Likewise.
75170
75171         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75172         requires this.  (The code never needed it.)
75173
75174         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75175         All uses of recently-renamed identifiers changed to use the new,
75176         POSIX-compliant names.  The code will build and run just fine
75177         without these changes, but it's better to eat our own dog food
75178         and use the standard-conforming names.
75179
75180         * lib/regex.h: Fix a multitude of POSIX name space violations.
75181         These changes have an effect only for programs that define
75182         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75183         do not change anything for programs compiled in the normal way.
75184         Also, there is no effect on the ABI.
75185
75186         (_REGEX_SOURCE): New macro.
75187         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75188         defined and _GNU_SOURCE is not; this fixes a name space violation.
75189
75190         Rename the following macros to obey POSIX requirements.
75191         The old names are still visible as macros if _REGEX_SOURCE is defined.
75192         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75193         RE_BACKSLASH_ESCAPE_IN_LISTS.
75194         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75195         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75196         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75197         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75198         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75199         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75200         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75201         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75202         (REG_INTERVALS): renamed from RE_INTERVALS.
75203         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75204         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75205         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75206         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75207         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75208         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75209         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75210         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75211         RE_UNMATCHED_RIGHT_PAREN_ORD.
75212         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75213         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75214         (REG_DEBUG): renamed from RE_DEBUG.
75215         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75216         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75217         unusual, since we can't clash with the POSIX REG_ICASE.
75218         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75219         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75220         (REG_NO_SUB): renamed from RE_NO_SUB.
75221         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75222         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75223         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75224         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75225         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75226         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75227         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75228         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75229         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75230         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75231         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75232         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75233         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75234         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75235         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75236         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75237         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75238         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75239         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75240         (REG_FIXED): Renamed from REGS_FIXED.
75241         (REG_NREGS): Renamed from RE_NREGS.
75242
75243         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75244         of other REG_* macros, since POSIX says the user is allowed to
75245         #undef these macros selectively.
75246
75247         (reg_errcode_t): Update comment stating what other tables need
75248         to be consistent.
75249
75250         Rename the following enum values to obey POSIX requirements.
75251         The old names are still visible as macros.
75252         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75253         is not defined, since GNU is supposed to be a superset of POSIX as
75254         much as possible, and since we want reg_errcode_t to be a signed
75255         type for implementation consistency.
75256         (_REG_NOERROR): Renamed from REG_NOERROR.
75257         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75258         (_REG_BADPAT): Renamed from REG_BADPAT.
75259         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75260         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75261         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75262         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75263         (_REG_EBRACK): Renamed from REG_EBRACK.
75264         (_REG_EPAREN): Renamed from REG_EPAREN.
75265         (_REG_EBRACE): Renamed from REG_EBRACE.
75266         (_REG_BADBR): Renamed from REG_BADBR.
75267         (_REG_ERANGE): Renamed from REG_ERANGE.
75268         (_REG_ESPACE): Renamed from REG_ESPACE.
75269         (_REG_BADRPT): Renamed from REG_BADRPT.
75270         (_REG_EEND): Renamed from REG_EEND.
75271         (_REG_ESIZE): Renamed from REG_ESIZE.
75272         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75273         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75274         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75275         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75276         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75277
75278         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75279         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75280         changed.  But support the old name if the new one is not defined
75281         and if _REGEX_SOURCE.
75282
75283         Change the following member names in struct re_pattern_buffer.
75284         The old names are still supported if !_REGEX_SOURCE.
75285         The new names are always supported, regardless of _REGEX_SOURCE.
75286         (re_buffer): Renamed from buffer.
75287         (re_allocated): Renamed from allocated.
75288         (re_used): Renamed from used.
75289         (re_syntax): Renamed from syntax.
75290         (re_fastmap): Renamed from fastmap.
75291         (re_translate): Renamed from translate.
75292         (re_can_be_null): Renamed from can_be_null.
75293         (re_regs_allocated): Renamed from regs_allocated.
75294         (re_fastmap_accurate): Renamed from fastmap_accurate.
75295         (re_no_sub): Renamed from no_sub.
75296         (re_not_bol): Renamed from not_bol.
75297         (re_not_eol): Renamed from not_eol.
75298         (re_newline_anchor): Renamed from newline_anchor.
75299
75300         Change the following member names in struct re_registers.
75301         The old names are still supported if !_REGEX_SOURCE.
75302         The new names are always supported, regardless of _REGEX_SOURCE.
75303         (rm_num_regs): Renamed from num_regs.
75304         (rm_start): Renamed from start.
75305         (rm_end): Renamed from end.
75306
75307         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75308         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75309         Prepend __ to parameter names.
75310
75311         Undo yesterday's changes.
75312
75313 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75316         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75317         lib/regex.c.
75318
75319 2005-08-24  Jim Meyering  <jim@meyering.net>
75320
75321         Sync from coreutils.
75322         * m4/fcntl-safer.m4: New file.
75323
75324         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75325         and object files for this module.
75326
75327 2005-08-24  Jim Meyering  <jim@meyering.net>
75328
75329         Sync from coreutils.
75330         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75331
75332 2005-08-24  Jim Meyering  <jim@meyering.net>
75333
75334         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75335         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75336
75337 2005-08-24  Jim Meyering  <jim@meyering.net>
75338
75339         * modules/fcntl-safer: New module.
75340         * modules/fts (Depends-on): Add fcntl-safer.
75341         * MODULES.html.sh (File descriptor based Input/Output):
75342         Add fcntl-safer.
75343
75344 2005-08-24  Bruno Haible  <bruno@clisp.org>
75345
75346         Support for unit test modules.
75347         * modules/README: Mention tests modules.
75348         * modules/TEMPLATE-TESTS: New file.
75349         * gnulib-tool: New options --extract-tests-module, --with-tests and
75350         --tests-base (unused for the moment).
75351         (testsbase, inctests): New variables.
75352         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75353         (func_verify_module): Exclude TEMPLATE-TESTS.
75354         (func_verify_nontests_module, func_verify_tests_module): New functions.
75355         (func_get_dependencies): Add implicit dependency for tests modules.
75356         (func_get_tests_module): New function.
75357         (func_modules_transitive_closure): When --with-tests was specified,
75358         include the unit tests as well, unless explicitly avoided.
75359         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75360         (func_emit_tests_Makefile_am): New function.
75361         (func_create_testdir): When --with-tests was specified, emit a
75362         tests/ directory.
75363         * MODULES.html.sh (Future developments): Update.
75364
75365 2005-08-24  Bruno Haible  <bruno@clisp.org>
75366
75367         * modules/tls-tests: New file.
75368         * tests/test-tls.c: New file, from GNU gettext.
75369
75370 2005-08-24  Bruno Haible  <bruno@clisp.org>
75371
75372         * modules/lock-tests: New file.
75373         * tests/test-lock.c: New file, from GNU gettext.
75374
75375 2005-08-24  Bruno Haible  <bruno@clisp.org>
75376
75377         * lib/lock.h: Add multiple inclusion guard.
75378         * lib/tls.h: Add multiple inclusion guard.
75379
75380 2005-08-24  Bruno Haible  <bruno@clisp.org>
75381
75382         * gnulib-tool: Add support for the --aux-dir option to
75383         --create-testdir, --create-megatestdir, --test, --megatest.
75384         (func_create_testdir, func_create_megatestdir): Optionally emit a
75385         AC_CONFIG_AUX_DIR directive.
75386         (create-testdir, create-megatestdir, test, megatest): Provide a
75387         default value for $auxdir.
75388
75389 2005-08-24  Bruno Haible  <bruno@clisp.org>
75390
75391         * gnulib-tool (import): Use compound statement instead of subshell
75392         where possible.
75393
75394 2005-08-24  Bruno Haible  <bruno@clisp.org>
75395
75396         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75397
75398 2005-08-24  Bruno Haible  <bruno@clisp.org>
75399
75400         * gnulib-tool (func_version): Update.
75401
75402 2005-08-24  Bruno Haible  <bruno@clisp.org>
75403
75404         * gnulib-tool (func_import, func_create_testdir,
75405         func_create_megatestdir): Quote all autoconf macro arguments.
75406
75407 2005-08-24  Bruno Haible  <bruno@clisp.org>
75408
75409         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75410         option --force, because --force causes the aclocal.m4 of each
75411         subdirectory to be newer than the corresponding config.h.in.
75412
75413 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75416         All contents moved to gl_REGEX.
75417         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75418         assume that it does.
75419
75420 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         * lib/regex.h (REG_NOSYS)
75423         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75424         Define, since POSIX requires it as of 2001.
75425         (_REG_ENOSYS)
75426         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75427         New private symbol, used to keep the enum signed in all cases.
75428         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75429         Youngman in
75430         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75431
75432         * lib/regex_internal.c (re_string_skip_chars, register_state):
75433         (calc_state_hash):
75434         Remove forward decls; no longer needed now that we use prototypes.
75435         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75436         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75437         (clean_state_log_if_needed): Likewise.
75438
75439 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75440
75441         * config/srclist.txt: Add glibc bugs 1231-1233.
75442
75443 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         Fix problems reported by Sam Steingold in
75446         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75447         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75448         assumed that reg_errcode_t is a signed type, which is not
75449         necessarily true if _XOPEN_SOURCE is not defined.
75450         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75451         since some compilers warn about it otherwise.
75452
75453 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75456         (init_word_char, create_initial_state, duplicate_node_closure):
75457         (fetch_token, peek_token_bracket, build_range_exp):
75458         (build_collating_symbol): Remove forward decls; no longer needed
75459         now that we use prototypes.
75460
75461         * lib/regcomp.c:
75462         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75463         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75464         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75465         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75466         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75467         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75468         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75469         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75470         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75471         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75472         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75473         (build_charclass, build_charclass_op, fetch_number, create_tree):
75474         (create_token_tree, mark_opt_subexp, duplicate_tree):
75475         Use prototypes rather than old-style definitions.
75476
75477         * lib/regex_internal.c:
75478         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75479         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75480         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75481         (re_string_reconstruct, re_string_peek_byte_case):
75482         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75483         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75484         (re_node_set_init_copy, re_node_set_add_intersect):
75485         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75486         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75487         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75488         (re_acquire_state, re_acquire_state_context, register_state):
75489         (create_ci_newstate, create_cd_newstate, free_state):
75490         Likewise.
75491         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75492         re_search_2):
75493         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75494         (re_search_internal, prune_impossible_nodes):
75495         (acquire_init_state_context, check_matching, static):
75496         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75497         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75498         (update_regs, sift_states_backward, build_sifted_states):
75499         (clean_state_log_if_needed, merge_state_array):
75500         (update_cur_sifted_state, add_epsilon_src_nodes):
75501         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75502         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75503         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75504         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75505         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75506         (check_arrival, check_arrival_add_next_nodes):
75507         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75508         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75509         (check_node_accept_bytes, check_node_accept, extend_buffers):
75510         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75511         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75512         (sift_ctx_init):
75513         Likewise.
75514
75515         * lib/regex_internal.h:
75516         (re_string_allocate, re_string_construct, re_string_reconstruct):
75517         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75518         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75519         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75520         (re_string_context_at, re_string_peek_byte_case):
75521         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75522         is defined, since we now use prototypes always.
75523
75524         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75525         C89 or better.  All uses removed.
75526
75527 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75528
75529         * config/srclist.txt: Add glibc bugs 1220-1227.
75530
75531 2005-08-20  Jim Meyering  <jim@meyering.net>
75532
75533         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75534         of unused local, dfa.
75535
75536 2005-08-20  Bruno Haible  <bruno@clisp.org>
75537
75538         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75539
75540 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75541
75542         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75543         (re_node_set_insert_last, re_dfa_add_node):
75544         Rename local variables to avoid GCC shadowing warnings.
75545
75546 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75549         [defined lint]: Suppress bogus uninitialized-variable warnings.
75550
75551         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75552         and let the caller return REG_ESPACE if out of space.  This
75553         removes an uninitialied-variable warning with GCC 4.0.1, and also
75554         avoids taking the address of a local variable.  All callers
75555         changed.
75556
75557 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75560         $LIBCSRC/posix/regexec.c.
75561         Add glibc bug 1217 for regcomp.c.
75562
75563 2005-08-19  Jim Meyering  <jim@meyering.net>
75564
75565         * lib/regexec.c (proceed_next_node): Redo local variables to
75566         avoid GCC shadowing warnings.
75567
75568 2005-08-18  Bruno Haible  <bruno@clisp.org>
75569
75570         * lib/strstr.c (strstr): Fix return value in multibyte case.
75571         * lib/strcasestr.c (strcasestr): Likewise.
75572
75573 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75576
75577 2005-08-17  Jim Meyering  <jim@meyering.net>
75578
75579         Make the %s format (seconds since the epoch) work for a negative
75580         number and when used with a zero-padded field width, e.g. %015s.
75581
75582         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75583         label so that it precedes the code to set `digits'.  Otherwise,
75584         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75585         print `00-22'.  Now, it prints `-0022', as it should.
75586
75587 2005-08-17  Bruno Haible  <bruno@clisp.org>
75588
75589         * modules/strstr (Files): Add m4/mbrtowc.m4.
75590         (Depends-on): Add mbuiter.
75591
75592 2005-08-17  Bruno Haible  <bruno@clisp.org>
75593
75594         * modules/strcasestr: New file.
75595         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75596         strcasestr.
75597
75598 2005-08-17  Bruno Haible  <bruno@clisp.org>
75599
75600         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75601
75602 2005-08-17  Bruno Haible  <bruno@clisp.org>
75603
75604         * modules/mbuiter: New file.
75605         * MODULES.html.sh (Extended multibyte and wide character utilities):
75606         Add mbuiter.
75607
75608 2005-08-17  Bruno Haible  <bruno@clisp.org>
75609
75610         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75611         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75612
75613 2005-08-17  Bruno Haible  <bruno@clisp.org>
75614
75615         * m4/strcasestr.m4: New file.
75616
75617 2005-08-17  Bruno Haible  <bruno@clisp.org>
75618
75619         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75620         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75621
75622 2005-08-17  Bruno Haible  <bruno@clisp.org>
75623
75624         * lib/strcasestr.h: New file.
75625         * lib/strcasestr.c: New file.
75626
75627 2005-08-17  Bruno Haible  <bruno@clisp.org>
75628
75629         * lib/strcasecmp.c: Use mbuiter.h.
75630
75631 2005-08-17  Bruno Haible  <bruno@clisp.org>
75632
75633         * lib/mbuiter.h: New file.
75634
75635 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75638         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75639         and gl_GETOPT are both invoked via different paths (as happens
75640         with GNU tar CVS because it uses both argp and getopt), the former
75641         wins.
75642
75643 2005-08-16  Bruno Haible  <bruno@clisp.org>
75644
75645         * modules/tls: New file.
75646         * MODULES.html.sh (Multithreading): Add tls.
75647
75648 2005-08-16  Bruno Haible  <bruno@clisp.org>
75649
75650         * modules/strnlen1: New file.
75651         * MODULES.html.sh (String handling): Add strnlen1.
75652
75653 2005-08-16  Bruno Haible  <bruno@clisp.org>
75654
75655         * modules/strcase (Files): Add m4/mbrtowc.m4.
75656         (Depends-on): Add strnlen1, mbchar.
75657
75658 2005-08-16  Bruno Haible  <bruno@clisp.org>
75659
75660         * modules/mbiter: New file.
75661         * MODULES.html.sh (Extended multibyte and wide character utilities):
75662         Add mbiter.
75663
75664 2005-08-16  Bruno Haible  <bruno@clisp.org>
75665
75666         * modules/mbfile: New file.
75667         * MODULES.html.sh (Extended multibyte and wide character utilities):
75668         Add mbfile.
75669
75670 2005-08-16  Bruno Haible  <bruno@clisp.org>
75671
75672         * modules/mbchar: New file.
75673         * MODULES.html.sh (Extended multibyte and wide character utilities):
75674         New section.
75675
75676 2005-08-16  Bruno Haible  <bruno@clisp.org>
75677
75678         * m4/tls.m4: New file, from GNU gettext.
75679
75680 2005-08-16  Bruno Haible  <bruno@clisp.org>
75681
75682         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75683         always.
75684         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75685
75686 2005-08-16  Bruno Haible  <bruno@clisp.org>
75687
75688         * m4/mbiter.m4: New file.
75689
75690 2005-08-16  Bruno Haible  <bruno@clisp.org>
75691
75692         * m4/mbfile.m4: New file.
75693
75694 2005-08-16  Bruno Haible  <bruno@clisp.org>
75695
75696         * m4/mbchar.m4: New file.
75697
75698 2005-08-16  Bruno Haible  <bruno@clisp.org>
75699
75700         * lib/tls.h: New file, from GNU gettext.
75701         * lib/tls.c: New file, from GNU gettext.
75702
75703 2005-08-16  Bruno Haible  <bruno@clisp.org>
75704
75705         * lib/strnlen1.h: New file.
75706         * lib/strnlen1.c: New file.
75707
75708 2005-08-16  Bruno Haible  <bruno@clisp.org>
75709
75710         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75711         (mbi_init): Update.
75712         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75713         NUL byte, not after it.
75714
75715 2005-08-16  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/strcase.h (strcasecmp): Add note in comments.
75718         * lib/strncasecmp.c: Use code from strcasecmp.c.
75719         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75720         (strcasecmp): Work correctly in multibyte locales.
75721
75722 2005-08-16  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/mbiter.h: New file.
75725
75726 2005-08-16  Bruno Haible  <bruno@clisp.org>
75727
75728         * lib/mbfile.h: New file.
75729
75730 2005-08-16  Bruno Haible  <bruno@clisp.org>
75731
75732         * lib/mbchar.h: New file.
75733         * lib/mbchar.c: New file.
75734
75735 2005-08-16  Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75738         the valid ones. Makes the comparison operations transitive:
75739         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75740         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75741
75742 2005-08-15  Simon Josefsson  <jas@extundo.com>
75743
75744         * modules/ssize_t (License): Change to 'unlimited'.
75745
75746         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75747
75748 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75751         Add comments for each pending glibc patch.
75752
75753 2005-08-15  Bruno Haible  <bruno@clisp.org>
75754
75755         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75756         __cplusplus is defined.
75757
75758 2005-08-14  Jim Meyering  <jim@meyering.net>
75759
75760         Sync from coreutils.
75761
75762         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75763         Use the hash-table-based cycle-detection code not just when
75764         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75765         Reported by James Youngman in
75766         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75767         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75768         FTS_TIGHT_CYCLE_CHECK.
75769         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75770         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75771         once again.
75772         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75773         * lib/fts.c (fd_safer): Remove decl.
75774         Include fcntl--.h rather than unistd-safer.h
75775         (fts_safe_changedir): Don't call fd_safer; no longer needed
75776         now that we include fcntl--.h.
75777
75778 2005-08-12  Simon Josefsson  <jas@extundo.com>
75779
75780         * modules/getndelim2: Use ssize_t module.
75781         * modules/getnline: Likewise.
75782         * modules/safe-read: Likewise.
75783         * modules/xreadlink: Likewise.
75784
75785         * modules/ssize_t: New file.
75786
75787 2005-08-12  Simon Josefsson  <jas@extundo.com>
75788
75789         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75790
75791 2005-08-12  Simon Josefsson  <jas@extundo.com>
75792
75793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75794         ssize_t.
75795
75796 2005-08-12  Simon Josefsson  <jas@extundo.com>
75797
75798         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75799         readline, getdelim and check_version.
75800         (Support for systems lacking ISO C 99: Sizes of integer types):
75801         Add size_max.
75802
75803 2005-08-12  Bruno Haible  <bruno@clisp.org>
75804
75805         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75806
75807 2005-08-11  Simon Josefsson  <jas@extundo.com>
75808
75809         * modules/readline: New file.
75810
75811         * modules/strnlen (Files): Add strnlen.h.
75812
75813 2005-08-11  Simon Josefsson  <jas@extundo.com>
75814
75815         * m4/readline.m4: New file.
75816
75817 2005-08-11  Simon Josefsson  <jas@extundo.com>
75818
75819         * lib/readline.h, readline.c: New file.
75820
75821 2005-08-11  Simon Josefsson  <jas@extundo.com>
75822
75823         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75824         gl_AVOID.
75825
75826 2005-08-11  Bruno Haible  <bruno@clisp.org>
75827
75828         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75829
75830 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75831
75832         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75833
75834 2005-08-10  Simon Josefsson  <jas@extundo.com>
75835
75836         * tests/test-iconvme.c: New file.
75837
75838 2005-08-10  Simon Josefsson  <jas@extundo.com>
75839
75840         * m4/strnlen.m4: New file.
75841
75842         * m4/strndup.m4: Don't check for strnlen declaration, done in
75843         strnlen.m4.
75844
75845 2005-08-10  Simon Josefsson  <jas@extundo.com>
75846
75847         * lib/strndup.c: Use strnlen.h.
75848
75849         * lib/strnlen.h: New file.
75850
75851 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75852
75853         * README: Typos.
75854
75855 2005-08-02  Simon Josefsson  <jas@extundo.com>
75856
75857         * modules/readline: New file.
75858
75859 2005-08-02  Simon Josefsson  <jas@extundo.com>
75860
75861         * modules/getdelim: New file.
75862
75863         * modules/getline: Rewrite, don't use getndelim2.
75864
75865 2005-08-02  Simon Josefsson  <jas@extundo.com>
75866
75867         * m4/getline.m4: Separate out getdelim stuff into separate module.
75868
75869         * m4/getdelim.m4: New file.
75870
75871 2005-08-02  Simon Josefsson  <jas@extundo.com>
75872
75873         * lib/getline.h, getline.c: Rewrite.
75874
75875         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75876
75877 2005-07-31  Bruno Haible  <bruno@clisp.org>
75878
75879         * lib/lock.h (gl_lock_initializer): New macro.
75880         (gl_lock_define_initialized): Use it.
75881         (gl_rwlock_initializer): New macro.
75882         (gl_rwlock_define_initialized): Use it.
75883         (gl_recursive_lock_initializer): New macro.
75884         (gl_recursive_lock_define_initialized): Use it.
75885
75886 2005-07-30  Karl Berry  <karl@gnu.org>
75887
75888         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75889         Report from Ben Pfaff, regarding getopt.
75890
75891 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75894         normal way.
75895         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75896         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75897         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75898         (gl_GETOPT): Use the new macros.  Most of the implementation
75899         is moved to the new macros.  This is for programs like Emacs
75900         that don't want all the functionality of gl_GETOPT.
75901
75902 2005-07-26  Bruno Haible  <bruno@clisp.org>
75903
75904         * m4/lock.m4: Update from GNU gettext.
75905
75906 2005-07-26  Bruno Haible  <bruno@clisp.org>
75907
75908         * lib/lock.h: Update from GNU gettext.
75909         * lib/lock.c: Update from GNU gettext.
75910
75911 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75914         obsolescent AC_TRY_RUN.  Include the default includes files, for
75915         'exit'.
75916
75917 2005-07-24  Bruno Haible  <bruno@clisp.org>
75918
75919         * modules/visibility: New file.
75920         * MODULES.html.sh (Misc): Add visibility.
75921
75922 2005-07-24  Bruno Haible  <bruno@clisp.org>
75923
75924         * m4/visibility.m4: New file.
75925
75926 2005-07-24  Bruno Haible  <bruno@clisp.org>
75927
75928         * doc/visibility.texi: New file.
75929
75930 2005-07-22  Bruno Haible  <bruno@clisp.org>
75931
75932         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75933         $(ALLOCA_H), redundant through BUILT_SOURCES.
75934         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75935         redundant through BUILT_SOURCES.
75936         * modules/byteswap (Makefile.am): Remove explicit dependency on
75937         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75938         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75939         $(FNMATCH_H), redundant through BUILT_SOURCES.
75940         * modules/getopt (Makefile.am): Remove explicit dependency on
75941         $(GETOPT_H), redundant through BUILT_SOURCES.
75942         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75943         redundant through BUILT_SOURCES.
75944         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75945         redundant through BUILT_SOURCES.
75946         * modules/stdbool (Makefile.am): Remove explicit dependency on
75947         $(STDBOOL_H), redundant through BUILT_SOURCES.
75948         * modules/stdint (Makefile.am): Remove explicit dependency on
75949         $(STDINT_H), redundant through BUILT_SOURCES.
75950         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75951         Remove explicit dependency on $(SYSEXITS_H).
75952         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75953
75954 2005-07-18  Simon Josefsson  <jas@extundo.com>
75955
75956         * lib/check-version.c (check_version): Accept identical versions too.
75957
75958 2005-07-18  Bruno Haible  <bruno@clisp.org>
75959
75960         * modules/lock: New file.
75961         * MODULES.html.sh (Multithreading): New section.
75962
75963 2005-07-18  Bruno Haible  <bruno@clisp.org>
75964
75965         * m4/lock.m4: New file, from GNU gettext.
75966
75967 2005-07-18  Bruno Haible  <bruno@clisp.org>
75968
75969         * lib/lock.h: New file, from GNU gettext.
75970         * lib/lock.c: New file, from GNU gettext.
75971
75972 2005-07-18  Bruno Haible  <bruno@clisp.org>
75973
75974         * lib/lock.h (gl_once_t): New type.
75975         (gl_once_define, gl_once): New macros.
75976         * lib/lock.c (fresh_once): New variable.
75977         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75978         functions.
75979
75980 2005-07-16  Simon Josefsson  <jas@extundo.com>
75981
75982         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75983         workaround, suggested by Bruno.
75984
75985 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         * modules/xalloc (Depends-on): Add xalloc-die.
75988         * modules/xvasprintf (Depends-on): Add xalloc-die.
75989
75990 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75993         with a minor change.
75994
75995 2005-07-15  Bruno Haible  <bruno@clisp.org>
75996
75997         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75998         When using lib/poll.c, define poll as rpl_poll.
75999
76000 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * modules/argp (Depends-on): Remove unlocked-io.
76003
76004 2005-07-14  Derek Price  <derek@ximbiot.com>
76005
76006         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76007         for glob symlink bug.
76008
76009 2005-07-14  Bruno Haible  <bruno@clisp.org>
76010
76011         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76012         Instead, test for *_unlocked function declarations directly.
76013
76014 2005-07-11  Simon Josefsson  <jas@extundo.com>
76015
76016         * modules/size_max: New file.
76017
76018         * modules/xsize: Depend on size_max module for size_max.m4.
76019
76020 2005-07-11  Simon Josefsson  <jas@extundo.com>
76021
76022         * lib/size_max.h: New file.
76023
76024 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76025
76026         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76027         copyright symbol and the year.
76028         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76029         (version_etc_va): Use parameterized copyright notice.
76030         Reword to conform to the current GNU coding standards.
76031
76032 2005-07-11  Karl Berry  <karl@gnu.org>
76033
76034         * doc/gnulib.texi (Quoting): new node.
76035         (Initial import): more info, from Patrice.
76036
76037 2005-07-11  Bruno Haible  <bruno@clisp.org>
76038
76039         * gnulib-tool (func_usage): Document option --avoid.
76040         (Command line options): Handle --avoid.
76041         (func_acceptable): New function.
76042         (func_modules_transitive_closure): Use it.
76043
76044 2005-07-11  Bruno Haible  <bruno@clisp.org>
76045
76046         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76047         Reported by Jim Meyering.
76048
76049 2005-07-10  Bruno Haible  <bruno@clisp.org>
76050
76051         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76052         Needed when size_t is smaller than 'unsigned int'.
76053         Reported by Paul Eggert.
76054
76055 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76056
76057         * modules/argp (Depends-on): Add unlocked-io
76058
76059 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76060
76061         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76062         block of defines.
76063
76064 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76067         fix now.
76068
76069 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76070         and Paul Eggert  <eggert@cs.ucla.edu>
76071
76072         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76073         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76074
76075 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * modules/regex (Files): Add lib/regex_internal.c,
76078         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76079         (Depends-on): Add extensions.
76080         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76081
76082 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76085         pathconf.
76086         * m4/same.m4 (gl_SAME): Likewise.
76087         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76088
76089         * m4/regex.m4: Adjust to new libc regex implementation.
76090         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76091         all the .c and .h parts of (the new) regex.
76092         Quote the m4 stuff better.
76093         Check for RE_ICASE bug of old gnulib.
76094         Check for REG_STARTEND of recent libc.
76095         Rename local variables from jm_* to gl_*.
76096         Quote operand of "test -f".
76097         Say "recent enough" version of libc, not "version 2".
76098         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76099         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76100         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76101         Remove check for btowc, isascii.
76102         Require AM_LANGINFO_CODESET.
76103
76104 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76105
76106         * lib/regex.c, regex.h: Sync from libc.
76107         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76108         * lib/regexec.c:
76109         New files, synced from libc, except that regex_internal.h
76110         currently has a small porting fix.
76111
76112 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76113
76114         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76115         regex_internal.c, regexec.c.
76116         Add regex_internal.h too, but as a comment, since the libc version
76117         is currently broken in gnulib mode.
76118
76119 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         Support programs like Emacs that use gnulib but not gettext.
76122         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76123         * modules/gettext-h: New file.
76124         * modules/gettext (Files): Remove lib/gettext.h.
76125         (Depends-on): Add gettext-h.
76126         (Makefile.am): Remove lib_SOURCES.
76127         * modules/argmatch, modules/c-stack, modules/closeout:
76128         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76129         * modules/execute, modules/file-type, modules/getaddrinfo:
76130         * modules/getopt, modules/human, modules/javacomp:
76131         * modules/javaexec, modules/mkdir-p, modules/obstack:
76132         * modules/openat, modules/pagealign_alloc, modules/pipe:
76133         * modules/quotearg, modules/regex, modules/rpmatch:
76134         * modules/unicodeio, modules/userspec, modules/version-etc:
76135         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76136         * modules/xsetenv:
76137         Depend on gettext-h, not gettext.
76138
76139 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * gnulib-tool (func_import): Add support for 'public domain' license.
76142         * modules/alloca, modules/atexit, modules/memmove:
76143         Now public domain, not GPL.
76144         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76145         * modules/realloc, modules/strerror, modules/strtod:
76146         Now LGPL, not GPL.
76147
76148 2005-07-05  Bruno Haible  <bruno@clisp.org>
76149
76150         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76151         autoconf CVS. Needed for mingw.
76152
76153 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76154
76155         Remove the dependency of the strftime module on the tzset module.
76156         * modules/strftime (Depends-on): Remove dependency on tzset.
76157
76158 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         Remove the dependency of the strftime module on the tzset module.
76161         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76162         gl_FUNC_TZSET_CLOBBER.
76163
76164 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         Remove the dependency of the strftime module on the tzset module.
76167         * lib/strftime.c (my_strftime)
76168         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76169         Copy the input structure, to work around some of the bug with
76170         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76171         Solaris releases, you should also use the tzset module, but we won't
76172         require it as a dependency any more since we don't want LGPLed code
76173         to depend on GPLed code.
76174
76175 2005-07-02  Jim Meyering  <jim@meyering.net>
76176
76177         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76178         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76179         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76180         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76181
76182 2005-07-02  Jim Meyering  <jim@meyering.net>
76183
76184         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76185
76186 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76187
76188         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76189         declares only 'struct timespec;' (!).
76190
76191 2005-07-01  Jim Meyering  <jim@meyering.net>
76192
76193         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76194         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76195         * lib/save-cwd.c, tempname.c:
76196         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76197         and don't include <sys/file.h>).
76198
76199 2005-06-29  Jim Meyering  <jim@meyering.net>
76200
76201         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76202         type name.  Use the variable name instead.
76203         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76204         Likewise.
76205
76206 2005-06-28  Simon Josefsson  <jas@extundo.com>
76207
76208         * modules/check-version (Files): Add check-version.m4.
76209
76210 2005-06-28  Simon Josefsson  <jas@extundo.com>
76211
76212         * m4/check-version.m4: New file, suggested by Jim Meyering
76213         <jim@meyering.net>.
76214
76215 2005-06-28  Simon Josefsson  <jas@extundo.com>
76216
76217         * lib/check-version.h, lib/check-version.c: New files.
76218
76219 2005-06-28  Simon Josefsson  <jas@extundo.com>
76220
76221         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76222         collision with global variable.  Better indentation.  Don't
76223         increment buffer pointer beyond buffer end.  Based on comments
76224         from Paul Eggert <eggert@cs.ucla.edu>.
76225
76226         * lib/base64.h: Indent.
76227
76228 2005-06-28  Simon Josefsson  <jas@extundo.com>
76229
76230         * doc/gnulib.texi (Library version handling): New section.
76231
76232 2005-06-28  Jim Meyering  <jim@meyering.net>
76233
76234         * check-module (find_included_lib_files): Hard-code another
76235         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76236         but modules/fts-lgpl (correctly) does not list those files.
76237
76238         * modules/canonicalize (Files): Add lib/pathmax.h.
76239
76240 2005-06-25  Simon Josefsson  <jas@extundo.com>
76241
76242         * modules/check-version: New file.
76243
76244 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76245
76246         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76247         initializer of struct addrinfo, as an indication that we don't
76248         care how many members the structure has.
76249
76250 2005-06-24  Derek Price  <derek@ximbiot.com>
76251         and Bruno Haible  <bruno@clisp.org>
76252
76253         Remove stat module & update lstat.
76254         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76255         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76256         * m4/stat.m4: Remove this file.
76257
76258 2005-06-24  Derek Price  <derek@ximbiot.com>
76259         and Bruno Haible  <bruno@clisp.org>
76260
76261         Remove stat module & update lstat.
76262         * lib/stat.c: Remove this file...
76263         (slash_aware_lstat): ...moving this content and its support...
76264         * lib/lstat.c (rpl_lstat): ...into here.
76265         * lib/lstat.h: New file.
76266
76267 2005-06-24  Derek Price  <derek@ximbiot.com>
76268         and Bruno Haible  <bruno@clisp.org>
76269
76270         Remove stat module & update lstat.
76271         * config/srclist.txt (libc sources): Remove stat.
76272
76273 2005-06-24  Derek Price  <derek@ximbiot.com>
76274         and Bruno Haible  <bruno@clisp.org>
76275
76276         Remove stat module & update lstat.
76277         * MODULES.html.sh (stat): Remove.
76278         * MODULES.html: Regenerated.
76279         * modules/lstat (Description): Correct function name.
76280         (Files): Add "lstat.h".
76281         (Depends-on): Remove stat, add xalloc, stat-macros.
76282         * modules/stat: Remove this file.
76283         (Include): Add "lstat.h", remove <sys/stat.h>.
76284
76285 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76288         (ranged_convert): Don't save conversion in a temporary struct.
76289         This causes a warning with GCC 4.0.0, and anyway in the typical
76290         case it's not worth the extra 100 bytes or so of code.
76291         (ranged_convert, __mktime_internal): When calling a function via a
76292         pointer P, use P () rather than (*P) (), as we now assume C89 or
76293         better.
76294
76295 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76298         "who -r" failed to give output.  Problem reported by Tim Waugh.
76299
76300         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76301         (xcalloc): Use it to avoid needless tests.
76302         Problem reported by Jim Meyering.
76303
76304 2005-06-20  Derek Price  <derek@ximbiot.com>
76305
76306         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76307         unnecessary for Autoconfs > 2.59c.
76308
76309 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76310
76311         * lib/argp.h (__option_is_short): Check upper limit of
76312         __key. Isprint() requires its argument to have the value
76313         of an unsigned char or EOF.
76314
76315 2005-06-16  Jim Meyering  <jim@meyering.net>
76316
76317         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76318         when either N or S is zero.
76319
76320 2005-06-16  Derek Price  <derek@ximbiot.com>
76321
76322         * m4/bison.m4: Declare YACC & YFLAGS precious.
76323
76324 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76327         multibyte string or pattern, fall back on unibyte matching.
76328         Problem reported by James Youngman.
76329
76330 2005-06-08  Bruno Haible  <bruno@clisp.org>
76331
76332         * modules/csharpcomp: New file.
76333         * MODULES.html.sh (C#): Add csharpcomp.
76334
76335 2005-06-08  Bruno Haible  <bruno@clisp.org>
76336
76337         * m4/csharpcomp.m4: New file, from GNU gettext.
76338
76339 2005-06-08  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/csharpcomp.h: New file, from GNU gettext.
76342         * lib/csharpcomp.c: New file, from GNU gettext.
76343         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76344
76345 2005-06-08  Bruno Haible  <bruno@clisp.org>
76346
76347         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76348         warning on mingw.
76349
76350 2005-06-07  Derek Price  <derek@ximbiot.com>
76351
76352         Sync from CVS.
76353         * lib/glob_.h: Indent nested #ifdef.
76354
76355 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         Sync from coreutils.
76358         Use "file name" when talking about file names, instead of "filename"
76359         or "path", as per the GNU coding standards.
76360         * lib/mkdir-p.c: Renamed from makepath.c.
76361         (make_dir_parents): Renamed from make_path.  All callers changed.
76362         * lib/mkdir-p.h: Likewise.  All includers changed.
76363         * lib/filenamecat.c: Renamed from path-concat.c.
76364         (file_name_concat): Renamed from path_concat.  All callers changed.
76365         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76366         * lib/filenamecat.h: Likewise.  All includers changed.
76367         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76368         in comments or local variable names.
76369         * lib/basename.c: Likewise.
76370         * lib/canonicalize.c, canonicalize.h: Likewise.
76371         * lib/dirname.c, dirname.h: Likewise.
76372         * lib/euidaccess.c: Likewise.
76373         * lib/exclude.c: Likewise
76374         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76375         * lib/fsusage.c, fsuage.h: Likewise.
76376         * lib/fts.c, fts_.h: Likewise.
76377         * lib/getcwd.c: Likewise.
76378         * lib/getloadavg.c: Likewise.
76379         * lib/mkstemp.c: Likewise.
76380         * lib/mountlist.c, mountlist.h: Likewise.
76381         * lib/openat.c, openat.h: Likewise.
76382         * lib/readlink-stub.c: Likewise.
76383         * lib/readutmp.c, readutmp.h: Likewise.
76384         * lib/rename.c: Likewise.
76385         * lib/rmdir.c: Likewise.
76386         * lib/same.c: Likewise.
76387         * lib/savedir.c: Likewise.
76388         * lib/stripslash.c: Likewise.
76389         * lib/tempname.c: Likewise.
76390         * lib/xreadlink.c: Likewise.
76391         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76392         All uses changed.
76393         * lib/exclude.h: Likewise.
76394
76395         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76396         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76397         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76398         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76399         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76400         files have been getting away with it for years (MORE/BSD 4.3
76401         is extinct now).
76402         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76403         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76404
76405         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76406         Define to 256, not 255, as per modern POSIX.
76407
76408 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         Sync from coreutils.
76411         Use "file name" when talking about file names, instead of "filename"
76412         or "path", as per the GNU coding standards.
76413         * MODULES.html.sh: mkdir-p renamed from makepath.
76414         filenamecat renamed from path-concat.
76415         * modules/filenamecat: Renamed from modules/path-concat.
76416         (Files): filenamecat.h and filenamecat.c renamed from
76417         path-concat.h and path-concat.c.
76418         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76419         (Include): filenamecat.h, not path-concat.h.
76420         * modules/mkdir-p: Renamed from modules/makepath.
76421         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76422         makepath.c.
76423         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76424         (Include): mkdir-p.h, not makepath.h.
76425
76426 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         Sync from coreutils.
76429         * m4/mkdir-p.m4: Renamed from makepath.m4.
76430         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76431         Rename files from makepath.c to mkdir-p.c, and from
76432         makepath.h to mkdir-p.h.
76433         * m4/filenamecat.m4: Renamed from path-concat.m4.
76434         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76435         Rename files from path-concat.c to filenamecat.c,
76436         and from path-concat.h to filenamecat.h.
76437         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76438         "file name" in local variables or comments.
76439         * m4/rename.m4: Likewise.
76440
76441 2005-06-01  Bruno Haible  <bruno@clisp.org>
76442
76443         * modules/csharpexec: New file.
76444         * MODULES.html.sh (C#): New section.
76445
76446 2005-06-01  Bruno Haible  <bruno@clisp.org>
76447
76448         * m4/csharp.m4: New file, from GNU gettext.
76449         * m4/csharpexec.m4: New file, from GNU gettext.
76450
76451 2005-06-01  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/csharpexec.h: New file, from GNU gettext.
76454         * lib/csharpexec.c: New file, from GNU gettext.
76455         * lib/csharpexec.sh.in: New file, from GNU gettext.
76456
76457 2005-05-31  Derek Price  <derek@ximbiot.com>
76458             Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         Sync from cvs.
76461         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76462
76463 2005-05-31  Derek Price  <derek@ximbiot.com>
76464             Paul Eggert  <eggert@cs.ucla.edu>
76465
76466         Sync from cvs.
76467         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76468
76469 2005-05-29  Derek Price  <derek@ximbiot.com>
76470
76471         * config/srclist.txt (glob_.h, glob.c): Add these files.
76472
76473 2005-05-29  Derek Price  <derek@ximbiot.com>
76474
76475         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76476         * modules/glob: New file.
76477         * modules/getlogin_r: Add link to POSIX spec in description.
76478
76479 2005-05-29  Derek Price  <derek@ximbiot.com>
76480             Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * m4/glob.m4: New file.
76483
76484 2005-05-29  Derek Price  <derek@ximbiot.com>
76485             Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * lib/glob_.h, lib/glob.c: New files.
76488
76489 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76492         * modules/fts-lgpl (Depends-on): Remove gettext.
76493
76494 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76497         and don't require gt_INTTYPES_PRI.
76498
76499 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76500
76501         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76502
76503         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76504         the configuration hassle isn't worth it.
76505         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76506         (LONGEST_MODIFIER, PRIuMAX): Remove.
76507
76508 2005-05-27  Bruno Haible  <bruno@clisp.org>
76509
76510         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76511
76512 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76513
76514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76515         _POSIX_PTHREAD_SEMANTICS for Solaris.
76516
76517 2005-05-25  Derek Price  <derek@ximbiot.com>
76518
76519         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76520
76521 2005-05-25  Derek Price  <derek@ximbiot.com>
76522             Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76525         * lib/getlogin_r.c, getlogin_r.h: New files.
76526
76527 2005-05-25  Bruno Haible  <bruno@clisp.org>
76528             Derek Price  <derek@ximbiot.com>
76529
76530         * lib/getlogin_r.h: Simplify API documentation.
76531
76532 2005-05-23  Derek Price  <derek@ximbiot.com>
76533
76534         * modules/minmax (Files): Add m4/minmax.m4.
76535         (configure.ac): Add gl_MINMAX.
76536
76537 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76538
76539         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76540         so that unistd-safer.h (GPL'ed code) need not be included.
76541
76542 2005-05-22  Bruno Haible  <bruno@clisp.org>
76543
76544         * m4/minmax.m4: New file.
76545         Based on a patch by Derek Price <derek@ximbiot.com>.
76546
76547 2005-05-22  Bruno Haible  <bruno@clisp.org>
76548
76549         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76550         (INT64_MIN): Fix definition.
76551         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76552
76553         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76554         NEED_SIGNED_INT_TYPES.
76555
76556         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76557         HAVE_SYSTEM_INTTYPES.
76558
76559 2005-05-22  Bruno Haible  <bruno@clisp.org>
76560
76561         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76562         Also include <sys/param.h> if it defines MIN, MAX.
76563         Based on a patch by Derek Price <derek@ximbiot.com>.
76564
76565 2005-05-21  Jim Meyering  <jim@meyering.net>
76566
76567         * modules/fts (Files): Add m4/inttypes-pri.m4.
76568         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76569
76570 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         New fts module.
76573         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76574         (setup_dir, free_dir): New functions.
76575         (enter_dir, leave_dir): Define trivial
76576         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76577         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76578         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76579         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76580         Move to fts-cycle.c.
76581         (fts_open): Use setup_dir.
76582         (fts_close): Use free_dir.
76583         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76584         This adds a label and some gotos, but the alternatives were messier.
76585         Check for memory allocation failure when entering a dir.
76586         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76587         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76588         (FTS): New member fts_cycle, that is a union that contains the
76589         old active_dir_ht and cycle_state.  All uses changed to mention
76590         fts_cycle.ht and fts_cycle.state.
76591         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76592         fts.c, with the following changes:
76593         (setup_dir, free_dir): New functions.
76594         (enter_dir): Now returns bool.  Return true if successful, false
76595         if memory exhausted.  All callers changed.
76596         Do not bother partly cleaning up on
76597         memory allocation failure; that is free_dir's job.
76598         However, free ad if hash_insert fails, to avoid memory leak.
76599         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76600         fts->fts_options to see which union member to use.
76601
76602 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76605         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76606
76607 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76608
76609         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76610
76611 2005-05-20  Jim Meyering  <jim@meyering.net>
76612
76613         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76614         Now a macro, to pacify GCC.
76615
76616 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76617
76618         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76619         of -1.
76620
76621 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76622
76623         * lib/chown.c (rpl_chown): Return -1 on failure.
76624
76625 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76628         Don't check for stddef.h.
76629         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76630         don't use its results.
76631         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76632         since we include them unconditionally.  Don't require
76633         AM_STDBOOL_H, since stdbool is a prerequisite.
76634         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76635         since we assume C89 or better.
76636         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76637         as we don't use their results.
76638         Don't check for fchdir, memmove, memset, strrchr, as we use
76639         them unconditionally.
76640         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76641         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76642
76643 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76646         Include <stddef.h> unconditionally, since we assume C89 now.
76647         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76648         * lib/fts.c: Include fts_.h first, to check interface.
76649         Do not include intprops.h; no longer needed.
76650         Include cycle-check.h and hash.h, since fts_.h no longer does.
76651         Remove unnecessary casts of closedir to void.
76652         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76653         decide whether to decrement nlinks.
76654         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76655         (FTS): Use struct hash_table * instead of Hash_table, so that
76656         we no longer need to include hash.h here.
76657
76658 2005-05-18  Jim Meyering  <jim@meyering.net>
76659
76660         * modules/dirfd (License): Change to LGPL.  Most of the code
76661         is already in the public domain.
76662
76663 2005-05-18  Jim Meyering  <jim@meyering.net>
76664
76665         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76666         Reported by Yoann Vandoorselaere.
76667
76668 2005-05-17  Jim Meyering  <jim@meyering.net>
76669
76670         * m4/fts.m4: New file, from coreutils.
76671
76672 2005-05-17  Jim Meyering  <jim@meyering.net>
76673
76674         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76675
76676 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         Sync from coreutils.
76679         * m4/unlinkdir.m4: New file.
76680
76681 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         Sync from coreutils.
76684         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76685         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76686         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76687         White space changes only.
76688         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76689         special.
76690         * lib/yesno.c: Include getline.h, not ctype.h.
76691         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76692         Use getline to remove arbitrary restriction on response length.
76693
76694 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * config/srclist-update: Spell out "Street" in FSF postal
76697         mail address; this is the style the FSF seems to prefer.
76698
76699         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76700         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76701         this updates FSF postal mail address.
76702
76703         Sync from coreutils.
76704         * modules/unlinkdir: New file.
76705         * modules/yesno (Depends-on): Add getline.
76706         * MODULES.html.sh (File system functions): Add unlinkdir.
76707
76708 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76711         lib/strsep.h:
76712         Change the initial comment to refer to GPL, not LGPL.
76713         gnulib-tool will change it to LGPL as needed.
76714
76715         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76716         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76717         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76718         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76719         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76720         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76721         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76722         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76723         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76724         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76725         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76726         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76727         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76728         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76729         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76730         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76731         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76732         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76733         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76734         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76735         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76736         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76737         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76738         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76739         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76740         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76741         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76742         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76743         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76744         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76745         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76746         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76747         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76748         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76749         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76750         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76751         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76752         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76753         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76754         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76755         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76756         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76757         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76758         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76759         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76760         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76761         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76762         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76763         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76764         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76765         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76766         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76767         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76768         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76769         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76770         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76771         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76772         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76773         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76774         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76775         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76776         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76777         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76778         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76779         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76780         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76781         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76782         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76783         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76784         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76785         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76786         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76787         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76788         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76789         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76790         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76791         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76792         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76793         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76794         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76795         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76796         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76797         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76798         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76799         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76800         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76801         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76802         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76803         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76804         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76805         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76806         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76807         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76808         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76809         lib/yesno.c, lib/yesno.h:
76810         Update FSF postal mail address.
76811
76812 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76815         tests/test-memmem.c, tests/test-stpncpy.c:
76816         Update FSF postal mail address.
76817
76818 2005-05-13  Bruno Haible  <bruno@clisp.org>
76819
76820         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76821         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76822         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76823         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76824         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76825         Add support for 64-bit integers in the MSVC compiler.
76826
76827 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76828
76829         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76830
76831 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76832
76833         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76834
76835 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * doc/getdate.texi (General date syntax): Don't say that date
76838         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76839         Problem reported by Nic Ferrier.
76840
76841 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76842
76843         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76844         specified in ai_socktype. Fix invalid ai_protocol
76845         check. ai_protocol is usually set to 0 or depending on
76846         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76847         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76848         ai_socktype / ai_protocol in the returned addrinfo structure.
76849
76850 2005-05-10  Simon Josefsson  <jas@extundo.com>
76851
76852         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76853         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76854
76855 2005-05-10  Karl Berry  <karl@gnu.org>
76856
76857         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76858         (from http://www.gnu.org/licenses).
76859         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76860         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76861         fdl.texi suffices.
76862
76863 2005-05-10  Karl Berry  <karl@gnu.org>
76864
76865         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76866         (COPYING.DOC): remove.
76867
76868         * config/srclist-update: new FSF address.
76869
76870 2005-05-10  Derek Price  <derek@ximbiot.com>
76871
76872         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76873         possible.
76874
76875 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76876             Bruno Haible  <bruno@clisp.org>
76877
76878         * modules/inet_ntop: New file.
76879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76880         inet_ntop.
76881
76882 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76883             Bruno Haible  <bruno@clisp.org>
76884
76885         * m4/inet_ntop.m4: New file.
76886
76887 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76888             Bruno Haible  <bruno@clisp.org>
76889
76890         * lib/inet_ntop.h: New file.
76891         * lib/inet_ntop.c: New file, from glibc with modifications.
76892
76893 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * modules/time_r (License): Change to LGPL.
76896         * modules/extensions (License): Change to LGPL.  Actually,
76897         the license is more permissive than that, but currently gnulib-tool
76898         doesn't know how to handle more-permissive licenses.
76899
76900         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76901         Problem reported by Dave Love.
76902
76903 2005-05-08  Jim Meyering  <jim@meyering.net>
76904
76905         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76906         blank.
76907
76908 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76909
76910         * modules/argmatch (Depends-on): Add stdbool.
76911         * modules/backupfile (Depends-on): Likewise.
76912         * modules/chdir-long (Depends-on): Likewise.
76913         * modules/closeout (Depends-on): Likewise.
76914         * modules/cycle-check (Depends-on): Likewise.
76915         * modules/dirname (Depends-on): Likewise.
76916         * modules/fnmatch (Depends-on): Likewise.
76917         * modules/fsusage (Depends-on): Likewise.
76918         * modules/fwriteerror (Depends-on): Likewise.
76919         * modules/getcwd (Depends-on): Likewise.
76920         * modules/getloadavg (Depends-on): Likewise.
76921         * modules/hard-locale (Depends-on): Likewise.
76922         * modules/makepath (Depends-on): Likewise.
76923         * modules/mountlist (Depends-on): Likewise.
76924         * modules/nanosleep (Depends-on): Likewise.
76925         * modules/posixtm (Depends-on): Likewise.
76926         * modules/quotearg (Depends-on): Likewise.
76927         * modules/readtokens (Depends-on): Likewise.
76928         * modules/readtokens0 (Depends-on): Likewise.
76929         * modules/readutmp (Depends-on): Likewise.
76930         * modules/save-cwd (Depends-on): Likewise.
76931         * modules/strftime (Depends-on): Likewise.
76932         * modules/userspec (Depends-on): Likewise.
76933         * modules/utimecmp (Depends-on): Likewise.
76934         * modules/xgetcwd (Depends-on): Likewise.
76935         * modules/xnanosleep (Depends-on): Likewise.
76936         * modules/xstrtod (Depends-on): Likewise.
76937         * modules/yesno (Depends-on): Likewise.
76938
76939 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76942         needless checks.
76943
76944 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         Merge from coreutils.  Among other things,
76947         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76948         * lib/fd-safer.c: New file.
76949         * lib/fcntl-safer.h, open-safer.c: Remove.
76950         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76951         * lib/dup-safer.c: Include unistd-safer.h first.
76952         Don't include errno.h.
76953         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76954         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76955         * lib/file-type.c: Rely on file-type.h change.
76956         * lib/getloadavg.c: Include unistd-safer.h.
76957         (getloadavg): Use safer open.
76958         * lib/getusershell.c: Include "stdio-safer.h".
76959         (getusershell): Use safer fopen.
76960         * lib/long-options.c (long_options): Use NULL rather than 0.
76961         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76962         'free'.
76963         * lib/modechange.c: Likewise.
76964         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76965         (MODE_DONE): New constant.
76966         (struct mode_change): Remove 'next' member.
76967         (make_node_op_equals): New function; like the old one of the
76968         same name, except it allocates an array.
76969         (mode_compile, mode_create_from_ref): Use it.
76970         (mode_compile): Allocate result as an array, not a linked list.
76971         Parse octal string ourself, so that we catch mistakes like "+0".
76972         (mode_adjust): Arg is an array, not a linked list.
76973         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76974         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76975         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76976         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76977         Remove.  This is now stat-macros.h's job.
76978         (talloc): Remove.  All callers replaced by xalloc, so that
76979         our invokers don't have to worry about reporting memory failures.
76980         (make_node_op_equals): Remove.
76981         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76982         New constants.
76983         (struct mode_change): Moved here from modechange.h.
76984         (mode_append_entry): Remove.
76985         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76986         apps to have incorrect behavior.  Use simpler algorithm for head
76987         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76988         Detect more invalid usages rather than having somewhat-random behavior.
76989         Don't insert an "a=" action, as that leads to incorrect behavior.
76990         (mode_compile, mode_create_from_ref): Return NULL on error instead
76991         of an enum, since now there's only one way to have an error.  All
76992         callers changed.
76993         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76994         at the correct time.  Simplify calculation of "+u" and its ilk.
76995         Don't mishandle "+X".
76996         (mode_free): Remove "register" and localize decls.
76997         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76998         (struct mode_change): Move to modechange.c; callers don't
76999         need to see this stuff.
77000         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77001         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77002         (mode_change, mode_adjust): Reflect the new signatures noted above.
77003         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77004         that might redefine system include files.
77005         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77006         (my_usleep): Use NULL rather than (void *) 0.
77007         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77008         Use siginterrupt to specify that system calls should be interrupted.
77009         (rpl_nanosleep): Move initialization of suspended closer to call of
77010         my_usleep.
77011         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77012         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77013         (desirable_utmp_entry): New function.
77014         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77015         using x2nrealloc, to simplify logic.
77016         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77017         size calculation.  Do not assume utmp file is a regular file.
77018         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77019         (READ_UTMP_CHECK_PIDS): New constant.
77020         * lib/save-cwd.c: Include unistd-safer.h.
77021         (save_cwd): Use fd_safer.
77022         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77023         [!_LIBC] Include "stat-macros.h" instead.
77024         * lib/unistd-safer.h (fd_safer): New decl.
77025
77026 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * modules/getloadavg (Depends-on): Add unistd-safer.
77029         * modules/getusershell (Depends-on): Add stdio-safer.
77030         * modules/lstat (Depends-on): Remove xalloc.
77031         * modules/mkstemp (Depends-on): Add stat-macros.
77032         * modules/modechange (Depends-on): Remove xstrtol.
77033         Add stat-macros, xalloc.
77034         * modules/save-cwd (Depends-on): Add unistd-safer.
77035         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77036         * modules/unistd-safer (Files): Add lib/fd-safer.c
77037         (Makefile.am): Remove lib_SOURCES.
77038
77039         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77040         Remove fcntl-safer; unistd-safer supersedes it.
77041
77042 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77045         AC_HEADER_STAT.
77046         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77047         (gl_PREREQ_CHOWN): Remove.
77048         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77049         it.  Don't require AC_HEADER_STAT.
77050         (gl_PREREQ_LSTAT): Remove.
77051         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77052         Don't require AC_HEADER_STAT.
77053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77054         (gl_PREREQ_RMDIR): Remove.
77055         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77056         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77057         the stat-macros module a prerequisite.
77058         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77059         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77060         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77061         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77062         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77063         variable names.
77064         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77065         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77066         variable prefixes.
77067         * m4/fcntl-safer.m4: Remove.
77068         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77069         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77070         Invoke gl_PREREQ_FD_SAFER.
77071         (gl_PREREQ_FD_SAFER): New macro.
77072         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77073         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77074         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77075         Remove duplicate call to AC_LIBOBJ(readutmp).
77076         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77077
77078         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77079         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77080
77081 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * MODULES.html.sh (Misc): Add byteswap.
77084
77085 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77086
77087         * modules/getcwd (Depends-on): Add extensions.
77088         * modules/openat (Depends-on): Likewise.
77089
77090 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77091
77092         * modules/byteswap: New file.
77093
77094 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77095
77096         * m4/byteswap.m4: New file.
77097
77098 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77099
77100         * lib/byteswap_.h: New file.
77101
77102 2005-04-25  Karl Berry  <karl@gnu.org>
77103
77104         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77105
77106 2005-04-25  Albert Chin  <china@thewrittenword.com>
77107
77108         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77109         Toolkit C bug.
77110
77111 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77112
77113         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77114         (func_ln_if_changed): Remove forcibly for no error message
77115         in case file does not exist.
77116
77117 2005-04-19  Simon Josefsson  <jas@extundo.com>
77118
77119         * gnulib-tool (Options): Make --symlink mean --symbolic.
77120
77121 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77122
77123         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77124
77125 2005-04-16  Simon Josefsson  <jas@extundo.com>
77126
77127         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77128
77129 2005-04-15  Simon Josefsson  <jas@extundo.com>
77130
77131         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77132
77133 2005-04-15  Simon Josefsson  <jas@extundo.com>
77134
77135         * gnulib-tool: Rename --symlink to --symbolic.
77136
77137 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77138
77139         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77140         symbolic links to files instead of copying/moving.  Add --aux-dir,
77141         specifying directory relative --dir where auxiliary build tools
77142         are placed.
77143
77144 2005-04-14  Bruno Haible  <bruno@clisp.org>
77145
77146         * modules/allocsa (License): Change to LGPL.
77147         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77148
77149 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77152         that "UTC +1 second" continues to work.  Problem reported
77153         by Dmitry V. Levin.
77154         (relunit_snumber): New rule.
77155         (relunit): Use it.
77156
77157 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * lib/getdate.y (universal_time_zone_table): New constant.
77160         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77161         universal_time_zone_table.
77162         (lookup_zone): Prefer universal_time_zone_table to
77163         local_time_zone_table, so that "GMT" time stamps are allowed in
77164         London during the summer.  Problem reported by Ian Abbott.
77165
77166 2005-04-12  Jim Meyering  <jim@meyering.net>
77167
77168         * lib/human.c (humblock): Set *options even when returning due to
77169         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77170         warning from gcc-4.
77171
77172 2005-04-09  Jim Meyering  <jim@meyering.net>
77173
77174         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77175         -Wuninitialized: initialize tm0.tm_year.
77176
77177 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77180         count, since there's no maximum.  All uses changed.
77181         Add member dsts_seen.
77182         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77183         not being INT_MAX.
77184         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77185         Use pc_rels_seen to decide whther a date is absolute.
77186
77187         * lib/getdate.y (number): Don't overwrite year.
77188         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77189         check.
77190
77191 2005-04-02  Simon Josefsson  <jas@extundo.com>
77192
77193         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77194         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77195
77196 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77197
77198         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77199         where no absolute path name can be longer than PATH_MAX.
77200
77201 2005-03-27  Jim Meyering  <jim@meyering.net>
77202
77203         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77204
77205 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77208         "one's complement" -> "ones' complement" in comment, as per Knuth.
77209         "value of type" -> "type or expression" in comment.
77210         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77211
77212 2005-03-26  Jim Meyering  <jim@meyering.net>
77213
77214         Comment nits.
77215         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77216         Correct typos: s/or/of/.
77217
77218 2005-03-26  Jim Meyering  <jim@meyering.net>
77219
77220         * modules/check-include-files: Move to ../ and rename to...
77221         * check-module: ...this.
77222
77223 2005-03-25  Jim Meyering  <jim@meyering.net>
77224
77225         * modules/xvasprintf (Files): Add xalloc.h.
77226
77227 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * modules/gettext (Files): config/config.rpath ->
77230         build-aux/config.rpath
77231         * modules/iconv (Files): Likewise.
77232         Problem reported by Oskar Liljeblad.
77233
77234 2005-03-23  Jim Meyering  <jim@meyering.net>
77235
77236         * modules/check-include-files: New script to check for
77237         missing dependencies, multiple includes, etc.
77238
77239         * modules/c-strtold (Depends-on): Add xalloc.
77240         * modules/c-strtod (Depends-on): Add xalloc.
77241         * modules/hash (Depends-on): Add xalloc.
77242         (Files): Remove lib/xalloc.h.
77243
77244         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77245         * modules/userspec (Files): Add lib/inttostr.h.
77246
77247 2005-03-23  Jim Meyering  <jim@meyering.net>
77248
77249         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77250
77251 2005-03-22  Jim Meyering  <jim@meyering.net>
77252
77253         * modules/stat-macros: New module.
77254         * modules/canonicalize, modules/euidaccess, modules/file-type,
77255         * modules/filemode, modules/lchown, modules/makepath,
77256         * modules/rmdir, modules/stat: Depend on new stat-macros module
77257         rather than listing lib/stat-macros.h manually.
77258         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77259
77260 2005-03-22  Jim Meyering  <jim@meyering.net>
77261
77262         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77263
77264 2005-03-22  Bruno Haible  <bruno@clisp.org>
77265
77266         * config/srclist.txt: Replace target directory 'config' with
77267         'build-aux'.
77268         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77269         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77270         ../build-aux/.
77271
77272 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * modules/chdir-long (Depends-on): Add mempcpy.
77275
77276         * modules/acl, modules/backupfile, modules/c-strtod,
77277         modules/c-strtold, modules/canon-host, modules/canonicalize,
77278         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77279         modules/exclude, modules/exitfail, modules/file-type,
77280         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77281         modules/getdate, modules/getline, modules/getpagesize,
77282         modules/getpass, modules/getugroups, modules/group-member,
77283         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77284         modules/inttostr, modules/long-options, modules/makepath,
77285         modules/md5, modules/memcasecmp, modules/memcoll,
77286         modules/modechange, modules/mountlist, modules/path-concat,
77287         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77288         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77289         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77290         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77291         modules/strftime, modules/strndup, modules/strverscmp,
77292         modules/timespec, modules/unlocked-io, modules/userspec,
77293         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77294         modules/yesno:
77295         Remove lib_SOURCES line from Makefile.am section, as this is now
77296         done automatically by the corresponding Autoconf macro.
77297
77298 2005-03-21  Jim Meyering  <jim@meyering.net>
77299
77300         Changes imported from coreutils.
77301
77302         * lib/cycle-check.c: Don't include xalloc.h.
77303
77304         * lib/path-concat.c: Don't include assert.h.
77305         (path_concat): Remove assertion that would have triggered
77306         for ABASE starting with more than one slash.
77307         Reported by Andreas Schwab.
77308
77309         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77310         properly when ABASE is an absolute file name.
77311         Correct the description of this function.
77312         Include <assert.h>.
77313         Add an assertion and a test driver.
77314         This fixes a bug introduced on 2004-07-02.
77315         Andreas Schwab reported the resulting failure of cp --parents:
77316         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77317
77318 2005-03-21  Jim Meyering  <jim@meyering.net>
77319
77320         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77321         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77322
77323 2005-03-21  Jim Meyering  <jim@meyering.net>
77324         and  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77327         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77328         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77329         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77330         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77331         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77332         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77333         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77334         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77335         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77336         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77337         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77338         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77339         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77340         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77341         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77342         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77343         for these modules.
77344
77345 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77346
77347         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77348         (which shouldn't happen), generate nothing instead of returning 0
77349         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77350
77351 2005-03-16  Bruno Haible  <bruno@clisp.org>
77352
77353         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77354         HAVE_LONGLONG_64BIT.
77355
77356 2005-03-16  Bruno Haible  <bruno@clisp.org>
77357
77358         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77359         HAVE_LONGLONG_64BIT.
77360
77361 2005-03-16  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77364         HAVE_LONGLONG_64BIT.
77365
77366 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77369         reliably distinguish strftime failure from empty output on POSIX
77370         hosts.
77371
77372 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77375         (iconv_string): Don't guess a size-zero buffer, as that might cause
77376         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77377         result would be 'too large', where 'too large' is (heuristically)
77378         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77379         overflow concerns.  This will prevent some unwanted malloc failures
77380         when the inputs are very large.
77381
77382 2005-03-15  Karl Berry  <karl@gnu.org>
77383
77384         * config/srclist.txt (config.rpath): from gettext.
77385         * config/config.rpath: update.
77386
77387 2005-03-15  Bruno Haible  <bruno@clisp.org>
77388
77389         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77390         to 'negate'.
77391
77392         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77393         variable.
77394
77395         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77396         results.
77397
77398 2005-03-14  Simon Josefsson  <jas@extundo.com>
77399
77400         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77401         <fx@gnu.org>.
77402
77403 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77406         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77407         intprops.h.
77408         * lib/strtol.c: Likewise.
77409
77410 2005-03-14  Jim Meyering  <jim@meyering.net>
77411
77412         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77413         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77414         to be nonzero so that we (and caller) can detect the difference
77415         between a valid zero-length expansion and an error return, even
77416         when the underlying strftime fails before writing anything into
77417         that location.
77418
77419 2005-03-14  Bruno Haible  <bruno@clisp.org>
77420
77421         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77422         Update from GNU gettext 0.14.3.
77423
77424 2005-03-10  Jim Meyering  <jim@meyering.net>
77425
77426         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77427
77428 2005-03-10  Jim Meyering  <jim@meyering.net>
77429
77430         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77431         so that this module works on systems without fchdir.
77432
77433 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         Factor int-properties macros into a single file, except for
77436         glibc-related files.
77437         * lib/intprops.h: New file.
77438         * lib/getloadavg.c: Include it instead of limits.h.
77439         (INT_STRLEN_BOUND): Remove.
77440         * lib/human.c: Include intprops.h.
77441         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77442         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77443         302/1000.
77444         * lib/inttostr.h: Include intprops.h instead of limits.h.
77445         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77446         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77447         for consistency with intprops.h.
77448         (time_t_is_integer, twos_complement_arithmetic): Use them.
77449         * lib/sig2str.h: Include <signal.h>, intprops.h.
77450         (INT_STRLEN_BOUND): Remove.
77451         * lib/strftime.c (TYPE_SIGNED): Remove.
77452         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77453         * lib/strtol.c: Adjust comments to match intprops.h.
77454         * lib/userspec.c: Include intprops.h.
77455         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77456         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77457         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77458         instead of rolling our own expressions.
77459         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77460
77461         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77462         instead of int.
77463         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77464         the right thing even if adding 1900 would overflow.  Similarly
77465         for tm_mon + 1 and tm_yday + 1.
77466         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77467         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77468         (DO_SIGNED_NUMBER): New macro.
77469         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77470
77471 2005-03-07  Bruno Haible  <bruno@clisp.org>
77472
77473         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77474
77475 2005-03-07  Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77478
77479 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77480
77481         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77482         (func_import): Only replace files via --import when they have actually
77483         changed.
77484
77485 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77486
77487         * m4/mmap-anon.m4: New file.
77488         * m4/pagealign_alloc.m4: New file.
77489
77490 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77491             Bruno Haible  <bruno@clisp.org>
77492
77493         * modules/pagealign_alloc: New file.
77494         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77495
77496 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77497             Bruno Haible  <bruno@clisp.org>
77498
77499         * lib/pagealign_alloc.h: New file.
77500         * lib/pagealign_alloc.c: New file.
77501
77502 2005-03-03  Bruno Haible  <bruno@clisp.org>
77503
77504         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77505         Use an all-permissive copyright notice, recommended by RMS.
77506
77507 2005-03-02  Bruno Haible  <bruno@clisp.org>
77508
77509         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77510         of AIX, the replacement has to be done only after <string.h> is
77511         included, therefore not in config.h. stpncpy.h does the replacement,
77512         and stpncpy.c uses it.
77513
77514 2005-03-02  Bruno Haible  <bruno@clisp.org>
77515
77516         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77517         stpncpy.c uses it.
77518
77519 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77522         The workaround isn't strictly needed for POSIX conformance, and
77523         it's too much of a pain to configure and maintain.  We'll ask
77524         people to fix their kernels instead.
77525         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77526         (NANOSLEEP_BUG_WORKAROUND): Remove.
77527         (xnanosleep): Remove the workaround.
77528
77529 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77532         Reported by Derek Price.
77533         (Include): Add "timespec.h".
77534
77535         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77536
77537 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77540         to detect nanosleep bug.
77541
77542 2005-03-01  Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77545
77546 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         * modules/gethrxtime: New file.
77549         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77550         (Depends-on): Add gethrxtime.
77551         (configure.ac): Add gl_XNANOSLEEP.
77552         (Makefile.am): Remove lib_SOURCES line.
77553
77554 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77555
77556         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77557         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77558
77559 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77562         * lib/timespec.h (gettime): Return void, since it always
77563         succeeds now.  All uses changed.
77564         * lib/gettime.c (gettime): Likewise.
77565         [HAVE_NANOTIME]: Prefer nanotime.
77566         Assume gettimeofday succeeds, as POSIX requires.
77567         Assime time () succeeds, since other code already does.
77568         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77569         (timespec_subtract): Remove.
77570         (NANOSLEEP_BUG_WORKAROUND): New constant.
77571         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77572         things considerably.  Use it only on GNU/Linux hosts, since the
77573         workaround shouldn't be needed elsewhere.
77574
77575 2005-02-24  Bruno Haible  <bruno@clisp.org>
77576
77577         * modules/gettext (Files): Add m4/glibc2.m4.
77578
77579 2005-02-24  Bruno Haible  <bruno@clisp.org>
77580
77581         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77582         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77583         * m4/progtest.m4:
77584         Update from GNU gettext 0.14.2.
77585         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77586
77587 2005-02-24  Bruno Haible  <bruno@clisp.org>
77588
77589         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77590         * lib/config.charset: Update from GNU gettext 0.14.2.
77591
77592 2005-02-24  Bruno Haible  <bruno@clisp.org>
77593
77594         * lib/gettext.h: Update from GNU gettext 0.14.2.
77595
77596 2005-02-23  Simon Josefsson  <jas@extundo.com>
77597
77598         * m4/iconvme.m4: New file.
77599
77600 2005-02-23  Jim Meyering  <jim@meyering.net>
77601
77602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77603         change.
77604         Thanks to Bruno Haible for catching it.
77605
77606 2005-02-22  Simon Josefsson  <jas@extundo.com>
77607
77608         * modules/iconvme: New file.
77609
77610         * MODULES.html.sh: Add iconvme.
77611
77612 2005-02-22  Simon Josefsson  <jas@extundo.com>
77613
77614         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77615
77616 2005-02-22  Simon Josefsson  <jas@extundo.com>
77617
77618         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77619
77620 2005-02-22  Jim Meyering  <jim@meyering.net>
77621
77622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77623         s/ifndef/ifdef/.
77624
77625 2005-02-20  Neil Conway  <neilc@samurai.com>
77626
77627         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77628         returned by OSX/Darwin if the specified buffer is not large
77629         enough for the hostname.
77630
77631 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77632
77633         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77634         pass it to _help, otherwise the latter coredumps trying to
77635         dereference state.root_argp.
77636
77637 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * modules/chdir-long (Depends-on): Add memrchr.
77640         * modules/memrchr (Files): Add lib/memrchr.h.
77641         (Include): "memrchr.h".
77642
77643 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77646
77647 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * lib/memrchr.h: New file.
77650         * lib/chdir-long.c: Include it.
77651         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77652         Don't bother including stddef.h.
77653
77654 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77657         inclusion.
77658         Include <sys/types.h>, for dev_t.
77659         (ME_DUMMY, ME_REMOTE): Move from here....
77660         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77661         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77662         Dmitry V. Levin.
77663         Include mountlist.h first, to test the interface.
77664
77665 2005-01-29  Bruno Haible  <bruno@clisp.org>
77666
77667         * lib/progname.c (program_name): Initialize.
77668         Needed when linking statically on MacOS X.
77669
77670 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         Sync from coreutils.
77673         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77674         (Depends-on): Add c-strtod.
77675         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77676
77677 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         Sync from coreutils.
77680         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77681
77682         Remove files that are specific to coreutils.
77683         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77684
77685 2005-01-28  Bruno Haible  <bruno@clisp.org>
77686
77687         * modules/javacomp: New file.
77688         * MODULES.html.sh (Java): Add javacomp.
77689
77690 2005-01-28  Bruno Haible  <bruno@clisp.org>
77691
77692         * m4/javacomp.m4: New file, from GNU gettext.
77693
77694 2005-01-28  Bruno Haible  <bruno@clisp.org>
77695
77696         * lib/javacomp.sh.in: New file, from GNU gettext.
77697         * lib/javacomp.h: New file, from GNU gettext.
77698         * lib/javacomp.c: New file, from GNU gettext.
77699
77700 2005-01-26  Simon Josefsson  <jas@extundo.com>
77701
77702         * lib/gai_strerror.c: Use GPL in header.
77703
77704 2005-01-26  Bruno Haible  <bruno@clisp.org>
77705
77706         * modules/javaexec: New file.
77707         * MODULES.html.sh (Java): Add javaexec.
77708
77709 2005-01-26  Bruno Haible  <bruno@clisp.org>
77710
77711         * m4/javaexec.m4: New file, from GNU gettext.
77712
77713 2005-01-26  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/javaexec.sh.in: New file, from GNU gettext.
77716         * lib/javaexec.h: New file, from GNU gettext.
77717         * lib/javaexec.c: New file, from GNU gettext.
77718
77719 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77720
77721         * modules/lchown (Depends-on): Remove lchown.h
77722
77723 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77724
77725         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77726         must be defined if the header file was not found, in order
77727         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77728
77729 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77730
77731         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77732         initializers for struct pentry_state.
77733         (__argp_error): Check return value of __asprintf
77734         (__argp_failure): Translate error message
77735
77736         * lib/argp-parse.c: Removed braces around the expansion of N_()
77737
77738 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77741         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77742         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77743         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77744         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77745         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77746         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77747         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77748         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77749         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77750         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77751         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77752         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77753         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77754         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77755         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77756         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77757         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77758         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77759         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77760         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77761         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77762         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77763         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77764         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77765         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77766         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77767         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77768         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77769         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77770         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77771         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77772         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77773         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77774         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77775         Use an all-permissive copyright notice, recommended by RMS.
77776
77777 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * modules/chdir-long (Depends-on): Remove mempcpy.
77780
77781 2005-01-21  Jim Meyering  <jim@meyering.net>
77782
77783         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77784         same value as for Solaris 9.
77785
77786         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77787         component length.  This included changing the parameter to be
77788         of type `char *' rather than `char const *'.
77789         * lib/chdir-long.h (chdir_long): Update prototype.
77790
77791         * lib/openat.c (fdopendir, fstatat): New functions.
77792         * lib/openat.h: Include headers required for use of DIR and struct
77793         stat.
77794         [AT_SYMLINK_NOFOLLOW]: Define.
77795         (fdopendir, fstatat): Add prototypes.
77796
77797 2005-01-21  Bruno Haible  <bruno@clisp.org>
77798
77799         * modules/classpath: New file.
77800         * MODULES.html.sh (Java): Add classpath.
77801
77802 2005-01-21  Bruno Haible  <bruno@clisp.org>
77803
77804         * lib/classpath.h: New file, from GNU gettext.
77805         * lib/classpath.c: New file, from GNU gettext.
77806
77807 2005-01-20  Simon Josefsson  <jas@extundo.com>
77808
77809         * modules/version-etc-fsf: New file.
77810
77811 2005-01-20  Simon Josefsson  <jas@extundo.com>
77812
77813         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77814         * lib/version-etc.c: Remove version_etc_copyright.
77815         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77816         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77817
77818 2005-01-20  Simon Josefsson  <jas@extundo.com>
77819
77820         * lib/base64.h (isbase64): Add.
77821
77822         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77823         using a unsigned prototype, don't inline.
77824         (base64_decode): Use it.
77825
77826 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77829         it.
77830
77831 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         * lib/save-cwd.c (save_cwd): Remove code to support the case
77834         where fchdir is missing or flaky.
77835
77836 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77839
77840 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77843         AC_LIBSOURCES now does this.
77844         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77845         with new ullong_max module.
77846
77847 2005-01-19  Bruno Haible  <bruno@clisp.org>
77848
77849         * modules/sh-quote: New file.
77850         * MODULES.html.sh (Executing programs): Add sh-quote.
77851
77852 2005-01-19  Bruno Haible  <bruno@clisp.org>
77853
77854         * lib/sh-quote.h: New file, from GNU gettext.
77855         * lib/sh-quote.c: New file, from GNU gettext.
77856
77857 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         Merge from coreutils.
77860         * m4/ullong_max.m4: New file.
77861         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77862         (gl_MACROS): Assume localeconv exists.
77863
77864 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         Merge changes from coreutils, as described below in several
77867         changelogs dated today.
77868
77869         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77870         (O_DIRECTORY): Remove; not needed here, since "." must be
77871         a directory.  All uses removed.
77872         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77873         universal on Suns, and we also need to test for IRIX.
77874         Revamp code to use 'if' rather than '#if'.
77875         Avoid unnecessary comparison of cwd->desc to 0.
77876
77877         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77878         for known valid error numbers rather than observed invalid ones.
77879
77880 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * modules/ullong_max: New file.
77883
77884         * modules/chdir-long, modules/openat: New files.
77885         * modules/save-cwd (Depends-on): Depend on chdir-long.
77886         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77887
77888 2005-01-18  Jim Meyering  <jim@meyering.net>
77889
77890         Merge from coreutils.
77891         * m4/chdir-long.m4, m4/openat.m4: New files.
77892         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77893         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77894         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77895         is sane and DOES follow symlinks.  Besides, testing 20 different
77896         systems found no broken chown implementations.
77897         Prompted by a change in rsync's copy of this macro.
77898         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77899
77900         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77901
77902         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77903         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77904         NULL-means-set-to-current-time semantics.
77905         Remove temporary file immediately, rather than waiting
77906         for configure's at-exit trap code to do it.
77907
77908 2005-01-18  Jim Meyering  <jim@meyering.net>
77909
77910         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77911
77912         * lib/utimens.c (futimens): Account for the fact that futimes
77913         can also fail with errno == ENOSYS or errno == ENOENT.
77914         Patch from Dmitry V. Levin.
77915
77916         Change the name of the robust chdir function from chdir to chdir_long.
77917         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77918         (restore_cwd): Use chdir_long, not chdir.
77919         * lib/chdir-long.c: Renamed from chdir.c.
77920         * lib/chdir-long.h: Renamed from chdir.h.
77921         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77922         Hurd.
77923
77924 2005-01-18  Bruno Haible  <bruno@clisp.org>
77925
77926         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77927         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77928         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77929         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77930         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77931         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77932         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77933         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77934         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77935         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77936         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77937         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77938         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77939         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77940         Use an all-permissive copyright notice, recommended by RMS.
77941
77942 2005-01-18  Bob Proulx  <bob@proulx.com>
77943
77944         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77945         simplify offsetof() macro construct to avoid compile failure with
77946         native HP-UX 11.0 ANSI C compiler.
77947
77948 2005-01-17  Bruno Haible  <bruno@clisp.org>
77949
77950         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77951         redundant because stpncpy.m4 takes care of it.
77952
77953 2005-01-17  Bruno Haible  <bruno@clisp.org>
77954
77955         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77956
77957 2005-01-17  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77960         used.
77961
77962 2005-01-17  Bruno Haible  <bruno@clisp.org>
77963
77964         * lib/fwriteerror.h (fwriteerror): Change specification to include
77965         fclose.
77966         * lib/fwriteerror.c: Include <stdbool.h>.
77967         (fwriteerror): At the end, close the file stream. Record whether
77968         stdout was already closed.
77969
77970 2005-01-17  Bruno Haible  <bruno@clisp.org>
77971
77972         * lib/execute.c (environ): Declare if needed.
77973         * lib/pipe.c (environ): Likewise.
77974         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77975
77976 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77977
77978         * modules/argp: Depend on vsnprintf
77979
77980 2005-01-10  Jim Meyering  <jim@meyering.net>
77981
77982         * modules/closeout (Depends-on): Add atexit.
77983
77984 2005-01-06  Bruno Haible  <bruno@clisp.org>
77985
77986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77987
77988 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77991         definitions to be after all include files, to avoid collisions.
77992         Problem reported by Bob Proulx.
77993
77994 2005-01-04  Jim Meyering  <jim@meyering.net>
77995
77996         Changes imported from coreutils.
77997         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77998         as the mkstemp template, use a temporary directory and an
77999         8.3-friendly template to avoid trouble on systems like DJGPP.
78000         Reported by Juan M. Guerrero via Stepan Kasal.
78001         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78002         close. Remove the temporary directory right away, rather than waiting
78003         for configure's at-exit trap code to do it.
78004         Suggestion from Stepan Kasal.
78005
78006 2005-01-01  Simon Josefsson  <jas@extundo.com>
78007
78008         * gnulib-tool: Print #include directives when --import'ing.
78009
78010 2004-12-28  Simon Josefsson  <jas@extundo.com>
78011
78012         * tests/test-base64.c: Include required header files.  Remove
78013         unused variables.
78014
78015 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78016
78017         * modules/error (Depends-on): Remove gettext.
78018
78019 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78022         not needed.  This removes a dependency on the gettext module.
78023         [defined _LIBC]: Do not include <libintl.h>; not needed.
78024
78025 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78028         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78029
78030 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78033         HAVE_DECL_STRTOLD.
78034
78035 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78036
78037         * modules/getdate (Depends-on): Remove alloca-opt.
78038
78039 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78042
78043 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * lib/argp-parse.c: Include <stddef.h>.
78046         (alignof, alignto): New macros.
78047         (parser_init): Don't assume that void * is aligned sufficiently
78048         for struct option.
78049
78050         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78051         need to extend the stack.
78052         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78053         large.
78054
78055 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78056
78057         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78058
78059 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78062         (2004-10-24) change.  Apparently this was a false alarm.
78063
78064         * modules/getdate: Depend on alloca-opt, not alloca.
78065
78066 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78069         Remove now-obsolete comment about AIX.
78070         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78071         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78072         (YYMAXDEPTH): New macro.
78073
78074 2004-12-18  Simon Josefsson  <jas@extundo.com>
78075
78076         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78077
78078 2004-12-18  Bruno Haible  <bruno@clisp.org>
78079
78080         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78081
78082 2004-12-18  Bruno Haible  <bruno@clisp.org>
78083
78084         * lib/fatal-signal.c (fatal_signals): Make non-const.
78085         (init_fatal_signals): New function.
78086         (uninstall_handlers, install_handlers): Ignore signals that were set to
78087         SIG_IGN.
78088         (at_fatal_signal): Call init_fatal_signals.
78089         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78090         SIG_IGN.
78091         Reported by Paul Eggert.
78092
78093 2004-12-18  Bruno Haible  <bruno@clisp.org>
78094
78095         * doc/alloca.texi: New file.
78096         * doc/alloca-opt.texi: New file.
78097
78098 2004-12-17  Jim Meyering  <jim@meyering.net>
78099
78100         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78101         Otherwise, install-sh could exit with improper exit status when
78102         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78103
78104 2004-12-16  Simon Josefsson  <jas@extundo.com>
78105
78106         * tests/test-base64.c: Add license.
78107
78108 2004-12-15  Stepan Kasal  <address@hidden>
78109
78110         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78111
78112 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * modules/getcwd (Files): Add m4/d-ino.m4.
78115         Suggested by Mark D. Baushke.
78116
78117 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78118
78119         * lib/getdate.y (textint): New member "negative".
78120         (time_zone_hhmm): New function.
78121         Expect 14 shift-reduce conflicts, not 13.
78122         (o_colon_minutes): New rule.
78123         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78124         (yylex): Set the "negative" member of signed numbers.
78125
78126 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78127
78128         * doc/getdate.texi (Time of day items, Time zone items):
78129         Describe new formats +00:00, UTC+00:00.
78130
78131 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78134         spurious "-l"s.  Problem reported by Stepan Kasal.
78135
78136 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78139         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78140
78141 2004-12-04  Simon Josefsson  <jas@extundo.com>
78142
78143         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78144         Vandoorselaere <yoann@prelude-ids.org>.
78145
78146 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78147
78148         Changes imported from coreutils.
78149         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78150         exist.
78151         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78152
78153 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78154
78155         Changes imported from coreutils.
78156         * lib/hard-locale.c: Assume <locale.h> exists.
78157         Include "strdup.h".
78158         (GLIBC_VERSION): New macro.
78159         (hard_locale): Assume setlocale exists.
78160         Rewrite to avoid #ifdef.
78161         Use strdup rather than malloc + strcpy.
78162         * lib/human.c: Assume <locale.h> exists.
78163         (human_readable): Assume localeconv exists.
78164
78165 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         * modules/hard-locale (Depends-on): Add strdup.
78168
78169 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78170
78171         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78172         convert T2, not T.  (Imported from libc.)
78173
78174 2004-11-30  Simon Josefsson  <jas@extundo.com>
78175
78176         * modules/restrict (License): Change to LGPL.
78177
78178 2004-11-30  Simon Josefsson  <jas@extundo.com>
78179
78180         * m4/restrict.m4: Add copyright and copying conditions.
78181
78182 2004-11-30  Simon Josefsson  <jas@extundo.com>
78183
78184         * m4/base64.m4: New file.
78185
78186 2004-11-30  Simon Josefsson  <jas@extundo.com>
78187
78188         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78189         base64.
78190
78191         * tests/test-base64.c: New file.
78192
78193         * modules/base64: New file.
78194
78195 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78198         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78199
78200         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78201
78202 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78205         (__getcwd.c): Don't restore errno; glibc doesn't.
78206         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78207         first, falling back to our code only if its results look suspicious.
78208         Ensure that the resulting buffer is only as large as necessary.
78209
78210         * lib/readutmp.c: Include readutmp.h first.
78211         Include <errno.h>, since readutmp.h no longer does that.
78212         * lib/readutmp.h: Don't include <errno.h>,
78213         <sys/param.h>, <time.h>; not needed to establish interface.
78214         (errno): Remove decl.
78215         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78216         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78217         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78218
78219 2004-11-28  Simon Josefsson  <jas@extundo.com>
78220
78221         * lib/base64.h, base64.c: New file.
78222
78223 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78226
78227 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78230         (Depends-on): Remove pathmax, same.  Add mempcpy.
78231         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78232         (Makefile.am): Append getcwd.h to lib_SOURCES.
78233         (Include): Add getcwd.h.
78234         (Maintainer): Change from Jim Meyering to "all, glibc",
78235         since getdate now uses intended-for-glibc code.
78236         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78237         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78238
78239 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78242         HP's ANSI C compiler.
78243         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78244         Declaring int functions causes warnings on some modern systems and
78245         shouldn't be needed to compile on ancient ones.
78246         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78247         defined.
78248
78249         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78250         with the following changes.
78251         (__set_errno): Parenthesize properly.
78252         Include <stdbool.h>.
78253         (MIN, MAX, MATCHING_INO): New macros.
78254         (__getcwd): Define with prototype, not K&R form.
78255         Use heuristics to allocate default buffer on stack if possible.
78256         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78257         behavior, and to avoid the PATH_MAX limit when computing
78258         ../../../../...
78259         Use MATCHING_INO to compare inode number to file.
78260         Check for arithmetic overflow in size calculations.
78261         Fix bug in reallocation of dot array that caused getcwd to fail
78262         on directories nested deeper than 75.
78263         Be more careful about saving errno on error.
78264         Do not use realloc; use only free+malloc, as this is a bit
78265         more flexible and avoids a needless copy operation.
78266         Do not inspect st_dev and st_ino for symbolic links; POSIX
78267         doesn't specify the latter.
78268         Check for closedir errors.
78269         Avoid needless casts.
78270         Use "#ifdef weak_alias" around weak_alias, to be like other
78271         glibc code.
78272         The following changes to getcwd.c have effect only when used in
78273         gnulib; they have no effect inside glibc proper.
78274         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78275         as alloca isn't used.
78276         (alloca, __alloca): Likewise.
78277         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78278         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78279         unconditionally, as gnulib assumes C89 or better.
78280         Do not include <sys/param.h>.
78281         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78282         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78283         better.
78284         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78285         Include <dirent.h> in a way that is compatible with modern Autoconf.
78286         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78287         New macros, if not already defined.
78288         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78289         Use "_LIBC", not "defined _LIBC", for consistency.
78290         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78291         a mempcpy module.
78292         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78293         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78294         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78295         credit only to Jim Meyering and adjust the copyright dates.
78296         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78297         <stdlib.h>, <unistd.h>, "pathmax.h".
78298         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78299         (INITIAL_BUFFER_SIZE): Remove.
78300         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78301
78302 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78305         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78306         Use the _ONCE methods, for efficiency.
78307         Check for fcntl.h.  In test program, include <errno.h>
78308         and <fcntl.h> if available.  Remove old K&R cruft from
78309         test program.  Check for common errors in GNU/Linux,
78310         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78311         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78312         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78313         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78314         name accordingly.
78315         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78316         accommodate new getcwd.c.
78317         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78318         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78319         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78320         that's all we need now.
78321
78322 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78323
78324         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78325         argp-parse.c depends on getopt internals, that means we should
78326         always use our getopt, to be on the safe side.
78327         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78328         order not to spoil the result of an eventual previous invocation
78329         of gl_GETOPT_SUBSTITUTE.
78330
78331 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78332
78333         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78334         redefinition warnings. To avoid them, include the defines
78335         in `#if !defined __need_getopt ... #endif'. The only place
78336         where __getopt_argv_const is used is in definitions
78337         of getopt_long and getopt_long_only below, which are as well
78338         protected by `#ifndef __need_getopt'.
78339         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78340         __need_getopt after including <stdio.h> and <unistd.h> These
78341         headers might have defined it.
78342
78343 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78346
78347 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78350         (futimens): New function, which uses futimes if available.
78351         (futimens, utimens): Support timespec==NULL, with same semantics
78352         as utime and utimens.
78353         * lib/utimens.h (futimens): New decl.
78354
78355 2004-11-23  Jim Meyering  <jim@meyering.net>
78356
78357         * lib/getopt_.h: Remove trailing blanks.
78358
78359 2004-11-23  Jim Meyering  <jim@meyering.net>
78360
78361         * lib/__fpending.c: Add comment.
78362
78363 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * modules/canonicalize (Depends-on): Add xreadlink.
78366         Problem reported by James Youngman.
78367
78368 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78371         New macros.
78372         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78373         optopt): Use them instead of invoking ## directly; otherwise, the
78374         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78375
78376 2004-11-19  Bruno Haible  <bruno@clisp.org>
78377
78378         * lib/strtok_r.c: Move comments from here...
78379         * lib/strtok_r.h: ... to here.
78380
78381 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78384         implementations that mishandle size_t overflow.
78385
78386 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78389         might fail.  Problem reported by Yoann Vandoorselaere.
78390         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78391         implementations that mishandle size_t overflow.
78392
78393 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * modules/canon-host (Depends-on): Add strdup.
78396
78397 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78400
78401 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78402
78403         * lib/canon-host.c: Include "strdup.h".
78404         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78405         Use strdup instead of malloc/strcpy to duplicate strings.
78406
78407         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78408         (human_space_before_unit): New constant.
78409         * lib/human.c (human_readable): Support it.
78410
78411         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78412         (xgetcwd): Set errno correctly when failing.
78413         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78414         the failure is actually due to a PATH_MAX problem.
78415
78416         Further getopt changes to make it more likely that glibc will
78417         buy the changes back.
78418         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78419         (getopt): Use it, so to preserve glibc semantic
78420         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78421         when compiling for libc.
78422         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78423         (getopt_long, getopt_long_only): Use it.
78424
78425         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78426         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78427         (getopt): Argv is now char * const *, as per standard.
78428         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78429         not char *__getopt_argv_const *.
78430         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78431         _getopt_long_only_r): Likewise.
78432         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78433         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78434         _getopt_long_r, _getopt_long_only_r): Likewise.
78435         * lib/getopt_.h (__getopt_argv_const): Remove.
78436         (getopt): Argv is now char * const *, as per standard.
78437
78438         * lib/getdate.y (tORDINAL): New token.
78439         (day, relunit): Allow it for relative times.
78440         (relative_time_table): Use tORDINAL for ordinals.
78441
78442 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78443
78444         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78445         Document that "second" isn't allowed as an ordinal number.
78446
78447 2004-11-16  Jim Meyering  <jim@meyering.net>
78448
78449         * modules/closeout (Depends-on): Add fpending.
78450
78451 2004-11-15  Jim Meyering  <jim@meyering.net>
78452
78453         * lib/closeout.c: Include "__fpending.h" once again.
78454         Include <stdbool.h>.
78455         (close_stdout): Don't fail just because stdout was closed initially,
78456         since some programs don't write to stdout in the normal course of
78457         operation (other than --version and --help), and we don't want this
78458         function to make e.g. `touch file >&-' fail.
78459         But do fail if it was closed and someone has tried to write to it.
78460         E.g., `printf foo >&-' must fail.
78461
78462 2004-11-13  Jim Meyering  <jim@meyering.net>
78463
78464         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78465
78466 2004-11-12  Simon Josefsson  <jas@extundo.com>
78467
78468         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78469         small doc fix is still pending.
78470
78471 2004-11-11  Simon Josefsson  <jas@extundo.com>
78472
78473         * modules/strtok_r: New file.
78474
78475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78476         strtok_r.
78477
78478 2004-11-11  Simon Josefsson  <jas@extundo.com>
78479
78480         * m4/strtok_r.m4: New file.
78481
78482         * m4/getopt.m4: Replace opterr.
78483
78484 2004-11-11  Simon Josefsson  <jas@extundo.com>
78485
78486         * lib/strtok_r.h, strtok_r.c: New file.
78487
78488 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78491         of replacing opterr, getopt, etc.  This should handle the
78492         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78493
78494 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78497         we can stop lying to compilers about the constness of argv when we
78498         are compiled outside glibc.
78499         (getopt, getopt_long, getopt_long_only): Use it.
78500         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78501         _getopt_internal, getopt): Likewise.
78502         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78503         _getopt_long_only_r): Likewise.
78504         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78505         _getopt_long_r, _getopt_long_only_r): Likewise.
78506
78507         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78508         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78509         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78510         the other external symbols.
78511         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78512         declaration, since the above renaming now works around collisions.
78513
78514 2004-11-11  Jim Meyering  <jim@meyering.net>
78515
78516         * lib/linebreak.c: Remove trailing blanks.
78517         * lib/alloca_.h: Likewise.
78518         * lib/acosl.c: Likewise.
78519         * lib/euidaccess.c: Likewise.
78520         * lib/allocsa.h: Likewise.
78521
78522 2004-11-10  Simon Josefsson  <jas@extundo.com>
78523
78524         * m4/getaddrinfo.m4: New file.
78525
78526 2004-11-10  Simon Josefsson  <jas@extundo.com>
78527
78528         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78529
78530 2004-11-10  Simon Josefsson  <jas@extundo.com>
78531
78532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78533         getaddrinfo.
78534
78535         * modules/getaddrinfo: New file.
78536
78537 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78540
78541 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * lib/mktime.c (SHR): New macro, which is a portable
78544         substitute for >> that should work even on Crays.
78545         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78546         Problem reported by Mark D. Baushke in
78547         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78548         * lib/getdate.y (SHR): Likewise.
78549         (tm_diff): Use it.
78550         * lib/strftime.c (SHR): Likewise.
78551         (tm_diff): Use it.
78552         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78553         quote_these_too, so that right shifts are well defined.  All uses
78554         changed.
78555
78556 2004-11-10  Jim Meyering  <jim@meyering.net>
78557
78558         Ensure that no close failure goes unreported.
78559         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78560         return early when it seems there's nothing to flush.
78561         Don't include __fpending.h.
78562
78563 2004-11-10  Jim Meyering  <jim@meyering.net>
78564
78565         * modules/closeout (Depends-on): Remove fpending.
78566
78567 2004-11-10  Jim Meyering  <jim@meyering.net>
78568
78569         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78570
78571 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78574         gl_FUNC_STRFTIME.
78575         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78576         and AC_REQUIRE when possible, to avoid duplicate checks.
78577         Check for <wchar.h>.
78578
78579 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78580
78581         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78582
78583 2004-11-09  Bruno Haible  <bruno@clisp.org>
78584
78585         * m4/sockpfaf.m4: New file.
78586
78587 2004-11-05  Bruno Haible  <bruno@clisp.org>
78588
78589         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78590         Reported by Mark D. Baushke <mdb@cvshome.org>.
78591
78592 2004-11-04  Bruno Haible  <bruno@clisp.org>
78593
78594         2004-09-11  Bruno Haible  <bruno@clisp.org>
78595                 * allocsa.valgrind: New file.
78596         2004-02-06  Bruno Haible  <bruno@clisp.org>
78597                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78598                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78599                 Reported by Christopher Seip <chris.seip@hp.com>.
78600
78601 2004-11-04  Bruno Haible  <bruno@clisp.org>
78602
78603         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78604         (Makefile.am): Distribute it.
78605
78606 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78609         with errno == ERANGE if the buffer is too small.
78610         Problem reported by Mark D. Baushke.
78611
78612 2004-11-03  Albert Chin  <china@thewrittenword.com>
78613             Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78616         equivalent, substitute $ac_type for equivalent type rather than
78617         blindly using uint32_t *always* which won't work if uint32_t is not
78618         available.  Define _UINT32_T to work around typedef of uint32_t if
78619         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78620         2.5.1.
78621
78622 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         * m4/jm-macros.m4: Sync from coreutils.
78625         (gl_MACROS): Check for mbrlen, for pathchk.
78626         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78627
78628 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         * lib/xreadlink.c (MAXSIZE): New macro.
78631         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78632         size does not exceed MAXSIZE.  Avoid cast.
78633         As suggested by Mark D. Baushke in
78634         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78635         if readlink fails with buffer size just under MAXSIZE, try again
78636         with MAXSIZE.
78637
78638 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78641
78642 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78643         and  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78646         (get_date): Overparenthesize to avoid GCC warning.
78647
78648 2004-11-02  Bruno Haible  <bruno@clisp.org>
78649
78650         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78651         returns void.
78652
78653 2004-11-02  Bruno Haible  <bruno@clisp.org>
78654
78655         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78656         function returns void.
78657
78658 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78659
78660         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78661         fflush_unlocked, flockfile, funlockfile, funlockfile,
78662         fputs_unlocked, putc_unlocked.
78663
78664 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78667         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78668         already declared.
78669
78670 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * modules/getdate (Files): Add doc/getdate.texi.
78673         (Depends-on): Add setenv, xalloc.
78674
78675 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * lib/getdate.y: Add support for TZ="foo" within a date string.
78678         Fix some bugs near time_t boundaries.  Reject dates with
78679         out-of-range components, e.g., "Sept 31".
78680         Include <stdlib.h>, "setenv.h", "xalloc.h".
78681         (ISDIGIT_LOCALE): Remove; unused.
78682         Note that the TZ and time functions used here are not reentrant.
78683         (mktime_ok, get_tz): New functions.
78684         (TZBUFSIZE): New constant.
78685         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78686         This requires that we sometimes generate our own TZ="XXX..." setting.
78687
78688 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * doc/getdate.texi: New file, from coreutils with modifications for
78691         the new TZ parsing.
78692
78693 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78694
78695         * lib/mktime.c (not_equal_tm): Remove redundant check.
78696
78697 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * modules/regex (lib_SOURCES): Add regex.c.
78700         Reported by James Youngman in
78701         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78702
78703 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * lib/getdate.y: Use Bison 1.875 features, and some minor
78706         code cleanups.  This change does not affect semantics.
78707         Don't include <stdlib.h>; no longer needed.
78708         Don't include unlocked-io.h; only the "#if TEST" code uses
78709         stdio, and performance isn't crucial there.
78710         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78711         Bison 1.875 features as described below.
78712         All uses of "PC." replaced by "pc->".
78713         (YYSTYPE): Add a forward declaration.
78714         (yylex, yyerror): Use full prototypes in forward decls.
78715         Use "%pure-parser" rather than obsolescent "%pure_parser".
78716         Use %parse-param and %lex-param instead of obsolescent
78717         YYPARSE_PARAM and YYLEX_PARAM.
78718         (meridian_table, month_and_day_table, time_units_table,
78719         relative_time_table, time_zone_table, military_table,
78720         lookup_zone, lookup_word, get_date):
78721         Use NULL instead of 0 where appropriate.
78722         (to_hour): Avoid abort (), to avoid a dependency on
78723         stdlib.h.
78724         (yyerror, yylex): Now accepts parser_control * arg.
78725         (main) [TEST]: Use '\0' rather than 0 for char.
78726
78727 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78730
78731 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78734         It's now the caller's responsibility to handle the case where
78735         !HAVE_GETPAGESIZE && !defined getpagesize.
78736
78737         * lib/mktime.c (leapyear): Arg is long int, not int.
78738
78739 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78740
78741         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78742
78743 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78746         missing.  Problem reported by James Youngman.
78747
78748 2004-10-16  Simon Josefsson  <jas@extundo.com>
78749
78750         * gnulib-tool: Fix comments.  Fix parse problem.
78751         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78752
78753 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78756         implementation of getopt_long.  Problem reported by Alexander Taler in:
78757         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78758
78759 2004-10-15  Bruno Haible  <bruno@clisp.org>
78760
78761         * gnulib-tool: Untabify. Initialize supplied_libname.
78762         (func_usage): More homogenous output.
78763         (func_modules_transitive_closure, func_modules_to_filelist,
78764         func_emit_lib_Makefile_am): New functions.
78765         (func_import): New function, extracted from big case statement. Use
78766         func_get_license, func_modules_transitive_closure,
78767         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78768         opt_lgpl. Don't use test -a, as it's not portable.
78769         (func_create_testdir): Use func_modules_transitive_closure,
78770         func_modules_to_filelist, func_emit_lib_Makefile_am.
78771
78772 2004-10-15  Bruno Haible  <bruno@clisp.org>
78773
78774         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78775
78776 2004-10-15  Bruno Haible  <bruno@clisp.org>
78777
78778         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78779         the portions belonging to each module.
78780         Suggested by Derek Robert Price <derek@ximbiot.com>.
78781
78782 2004-10-12  Simon Josefsson  <jas@extundo.com>
78783
78784         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78785         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78786         to real functions.
78787
78788 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78789
78790         * modules/vsnprintf: New file.
78791
78792 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78793
78794         * m4/vsnprintf.m4: New file.
78795
78796 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78797
78798         * lib/vsnprintf.h: New file.
78799         * lib/vsnprintf.c: New file.
78800
78801 2004-10-11  Bruno Haible  <bruno@clisp.org>
78802
78803         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78804         vsnprintf.
78805
78806 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78807
78808         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78809
78810 2004-10-07  Bruno Haible  <bruno@clisp.org>
78811
78812         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78813         fits into the provided buffer.
78814
78815 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * lib/diacrit.c, diacrit.h: Add GPL notice.
78818
78819         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78820         notice.
78821         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78822         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78823         This avoids a potential constant-folding bug.
78824
78825 2004-10-05  Bruno Haible  <bruno@clisp.org>
78826
78827         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78828         for the declaration of strsep.
78829
78830 2004-10-05  Bruno Haible  <bruno@clisp.org>
78831
78832         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78833
78834 2004-10-04  Simon Josefsson  <jas@extundo.com>
78835
78836         * modules/memmem: New file.
78837         * tests/test-memmem.c: New file.
78838         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78839
78840 2004-10-04  Simon Josefsson  <jas@extundo.com>
78841
78842         * m4/memmem.m4: New file.
78843
78844 2004-10-04  Simon Josefsson  <jas@extundo.com>
78845
78846         * lib/memmem.h: New file.
78847         * lib/memmem.c: New file, taken from glibc.
78848
78849 2004-10-04  Simon Josefsson  <jas@extundo.com>
78850
78851         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78852         '#ifdef USE_UNLOCKED_IO'.
78853
78854 2004-10-04  Simon Josefsson  <jas@extundo.com>
78855
78856         * config/srclist.txt: Add memmem from glibc.
78857
78858 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78861
78862         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78863         modules/exclude, modules/getdate, modules/getline,
78864         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78865         modules/getusershell, modules/linebuffer, modules/md5,
78866         modules/mountlist, modules/posixtm, modules/readtokens,
78867         modules/readutmp, modules/regex, modules/sha1,
78868         modules/version-etc, modules/yesno:
78869         Remove dependency on unlocked-io.
78870
78871 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78874
78875         * m4/unlocked-io.m4: Add copyright notice.
78876         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78877
78878 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78881         * lib/xmalloc.c (xmemdup): Likewise.
78882         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78883         XFREE): Remove these long-obsolescent macros.
78884         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78885         * lib/xstrdup.c: Remove.
78886
78887         * lib/regex.c (re_comp): Cast gettext return value to char *,
78888         Problem reported by Martin Neitzel via Mark D. Baushke.
78889
78890 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78893         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78894         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78895         regex.c, sha1.c, version-etc.c, yesno.c:
78896         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78897         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78898         the includer's responsibility.
78899
78900         Sync from coreutils.
78901
78902         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78903         points to the start of a string, as the C Standard says the
78904         resulting behavior is undefined.
78905
78906         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78907         simple -> simple_backups, numbered_existing ->
78908         numbered_existing_backups, numbered -> numbered_backups
78909         to avoid shadowing problems.  All uses changed.
78910         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78911         * lib/backupfile.c (check_extension, numbered_backup):
78912         Rename locals to avoid shadowing 'basename'.
78913         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78914         once.
78915
78916         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78917         * lib/.cvsignore: Add getopt.h.
78918
78919 2004-10-04  Bruno Haible  <bruno@clisp.org>
78920
78921         * modules/README: New file.
78922         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78923         not a module.
78924
78925 2004-10-02  Jim Meyering  <jim@meyering.net>
78926
78927         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78928
78929 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78930
78931         * modules/strsep: New file.
78932
78933 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78934
78935         * m4/strsep.m4: New file.
78936
78937 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78938
78939         * lib/strsep.h: New file.
78940         * lib/strsep.c: New file.
78941
78942 2004-10-01  Simon Josefsson  <jas@extundo.com>
78943
78944         * lib/snprintf.c (snprintf): Handle size==0.
78945
78946 2004-10-01  Simon Josefsson  <jas@extundo.com>
78947             Bruno Haible  <bruno@clisp.org>
78948
78949         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78950         (snprintf): Declare 'args'.
78951
78952 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * lib/snprintf.c: Remove comments as to why each header is needed.
78955
78956 2004-10-01  Bruno Haible  <bruno@clisp.org>
78957
78958         * MODULES.html.sh: Add strsep.
78959
78960 2004-09-30  Simon Josefsson  <jas@extundo.com>
78961
78962         * modules/snprintf: New file.
78963
78964 2004-09-30  Simon Josefsson  <jas@extundo.com>
78965
78966         * m4/snprintf.m4: New file.
78967
78968 2004-09-30  Simon Josefsson  <jas@extundo.com>
78969
78970         * lib/snprintf.h, lib/snprintf.c: New files.
78971
78972 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78973
78974         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78975         (hol_entry_help): Never translate an empty string.
78976         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78977         * lib/argp.h (OPTION_NO_TRANS): New option.
78978
78979 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * modules/argp (Maintainer): Replace Simon Josefsson
78982         by Sergey Poznyakoff.
78983
78984 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78987         changes merged back into glibc.
78988
78989 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78992
78993 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78994
78995         * lib/xvasprintf.c: Include xalloc.h.
78996         (xvasprintf): Use xalloc_die, not xmalloc_die.
78997
78998 2004-09-29  Bruno Haible  <bruno@clisp.org>
78999
79000         * modules/alloca-opt: New file, derived from modules/alloca.
79001         * modules/allocsa: Depend on alloca-opt instead of alloca.
79002         * modules/setenv: Likewise.
79003         * modules/vasnprintf: Likewise.
79004         * MODULES.html.sh: Add alloca-opt.
79005
79006 2004-09-28  Simon Josefsson  <jas@extundo.com>
79007
79008         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79009         LGPL, and to replace license template from GPL to LGPL.
79010
79011 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * modules/dummy: Change license to LGPL.
79014
79015 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79018
79019 2004-09-24  Simon Josefsson  <jas@extundo.com>
79020
79021         * modules/minmax (License): Change from GPL to LGPL.
79022
79023 2004-09-23  Simon Josefsson  <jas@extundo.com>
79024
79025         * gnulib-tool (--import): Typo.
79026
79027 2004-09-23  Simon Josefsson  <jas@extundo.com>
79028
79029         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79030
79031 2004-09-22  Bruno Haible  <bruno@clisp.org>
79032
79033         * modules/*: Add 'License' field.
79034         * gnulib-tool: Accept --extract-license option.
79035         (func_get_license): New function.
79036
79037 2004-09-21  Bruno Haible  <bruno@clisp.org>
79038
79039         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79040         Reported by Simon Josefsson.
79041
79042 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79045         gl_AC_TYPE_LONG_LONG.
79046
79047 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79050
79051 2004-09-18  Simon Josefsson  <jas@extundo.com>
79052         and  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79055         calls with autoreconf.  Define GL_LIB.
79056
79057 2004-09-14  Karl Berry  <karl@gnu.org>
79058
79059         * config/srclist.txt: unsync setenv.c, sigh.
79060
79061 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79064         Problem reported by Bruno Haible in:
79065         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79066
79067 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         * config/srclist.txt: Comment out argp-pvh.c.
79070
79071 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79074         in case some system header has #define'd it.  Problem reported by
79075         Soeren D. Schulze in
79076         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79077
79078 2004-09-09  Karl Berry  <karl@gnu.org>
79079
79080         * regex.[ch]: delete from the root.  These were supposed to be
79081                 synced with emacs cvs, but this has not happened for about
79082                 a year, and anyway nothing else uses emacs regex.[ch].
79083                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79084                 lib/regex[.ch] is untouched.
79085
79086 2004-09-09  Bruno Haible  <bruno@clisp.org>
79087
79088         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79089
79090 2004-09-09  Bruno Haible  <bruno@clisp.org>
79091
79092         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79093         modifications.
79094         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79095
79096 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79097
79098         * modules/xvasprintf: New file.
79099         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79100
79101 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79102
79103         * lib/xvasprintf.h: New file.
79104         * lib/xvasprintf.c: New file.
79105         * lib/xasprintf.c: New file.
79106
79107 2004-09-08  Bruno Haible  <bruno@clisp.org>
79108
79109         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79110
79111 2004-09-08  Bruno Haible  <bruno@clisp.org>
79112
79113         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79114         length is > INT_MAX.
79115         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79116         more.
79117
79118 2004-09-08  Bruno Haible  <bruno@clisp.org>
79119
79120         * lib/stdint_.h: New file, taken from GNU clisp.
79121
79122 2004-09-08  Bruno Haible  <bruno@clisp.org>
79123             Oskar Liljeblad  <oskar@osk.mine.nu>
79124
79125         * modules/stdint: New file.
79126         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79127
79128 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         Import from coreutils.
79131         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79132         strings on unbounded length.  alloca's performance benefits aren't
79133         that important here.
79134         (V_STRDUP): Remove.
79135         (parse_with_separator): New function, with most of the internals
79136         of the old parse_user_spec.  Allow user to omit both user and group,
79137         for compatibility with FreeBSD.
79138         Clone only the user name, not the entire spec.
79139         Do not set *uid, *gid unless entirely successful.
79140         Avoid memory leak in some failing cases.
79141         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79142         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79143         (parse_user_spec): Rewrite to use parse_with_separator.
79144
79145 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * modules/userspec: Don't depend on alloca.
79148
79149 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79152
79153 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79156         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79157         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79158
79159 2004-08-16  Simon Josefsson  <jas@extundo.com>
79160
79161         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79162         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79163         Add --dry-run for --import.
79164         Let user provided command line parameters override configure.ac
79165         settings.
79166
79167 2004-08-12  Simon Josefsson  <jas@extundo.com>
79168
79169         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79170         as discussed with Paul Eggert in threads rooted at
79171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79172         and
79173         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79174         Before, the test was empty, and relied on ELIDE_CODE in source
79175         code.)
79176         (gl_PREREQ_GETOPT): New macro.
79177         (gl_GETOPT): Use them.
79178
79179 2004-08-12  Simon Josefsson  <jas@extundo.com>
79180
79181         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79182         * lib/getopt_.h: Renamed from getopt.h.
79183
79184 2004-08-12  Simon Josefsson  <jas@extundo.com>
79185
79186         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79187         Change default library name from libfoo to libgnu.
79188         Now, if you have a configure.ac that says:
79189                 gl_SOURCE_BASE(gl)
79190                 gl_M4_BASE(gl/m4)
79191                 gl_MODULES(error getopt etcetera)
79192                 gl_INIT
79193         you can import all you need by running:
79194                 ../gnulib/gnulib-tool --import
79195
79196         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79197         (Makefile.am): Rewrite, use logic from argz.
79198         (Include): Use <getopt.h> instead of "getopt.h".
79199
79200 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79201
79202         * modules/argp (Files): Add m4/unlocked-io.m4.
79203         (Depends-on): Add extensions.
79204
79205 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79208         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79209         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79210         Check for program_invocation_name, program_invocation_short_name,
79211         flockfile, funlockfile, features.h, _getopt_long_only_r.
79212
79213 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79216         its complicated substitute.
79217         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79218         and program_invocation_name.
79219         (__argp_basename) [!_LIBC]: Remove; the only use was
79220         replaced by its body.
79221         (__argp_short_program_name): Change condition from
79222         !defined __argp_short_program_name to
79223         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79224         to match argp-namefrob.h.
79225         (__argp_failure): Don't assume strerror_r returns char *.
79226         * lib/argp-parse.c (N_): Define unconditionally.
79227         (argp_default_options): Fill out initializers with 0 to avoid
79228         gcc warnings.
79229
79230 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79231
79232         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79233         getopt1.c.
79234
79235 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         Merge from coreutils.
79238
79239         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79240
79241         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79242         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79243
79244 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         Merge from coreutils.
79247
79248         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79249         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79250         for Reliant Unix 5.43.
79251
79252         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79253         (union fooround): Use uintmax_t, not long int.
79254         The rest is a merge from libc:
79255         [defined _LIBC]: Include <shlib-compat.h>.
79256         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79257
79258         * lib/settime.c (settime): Recode to avoid warning with
79259         Sun Forte C 6U2.
79260
79261         * lib/strverscmp.c: Convert to UTF-8.
79262
79263 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79266         m4/uintmax_t.m4.
79267
79268 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         * modules/xalloc-die: New file.
79271         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79272
79273         * modules/md5 (Files): Add m4/uint32_t.m4.
79274         * modules/sha1: Renamed from modules/sha.
79275         (Files):
79276         Rename lib/sha.h to lib/sha1.h.
79277         Rename lib/sha.c to lib/sha1.c.
79278         Rename m4/sha.m4 to m4/sha1.m4.
79279         (lib_SOURCES): Likewise.
79280         (configure.ac): Rename gl_SHA to gl_SHA1.
79281         (Include): sha.h -> sha1.h.
79282
79283 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79286         * m4/sha1.m4: Renamed from sha.m4.
79287         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79288
79289 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         * lib/obstack.h (obstack_empty_p):
79292         Don't assume that chunk->contents is suitably aligned.
79293         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79294         Likewise. Problem reported by Benno in
79295         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79296
79297         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79298         readable.  This could be improved further but it'd take some work.
79299
79300 2004-08-08  Simon Josefsson  <jas@extundo.com>
79301
79302         * modules/xgethostname (Depends-on): Remove exit and error (not
79303         used).
79304
79305         * modules/getpass-gnu: Add getpass.h.
79306         (Depends-on): Add stdbool.
79307         * modules/getpass: Add getpass.h.
79308
79309 2004-08-08  Simon Josefsson  <jas@extundo.com>
79310
79311         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79312         Check getpass declaration.
79313
79314 2004-08-08  Simon Josefsson  <jas@extundo.com>
79315
79316         * lib/xgethostname.c: Don't include error.h (not used).
79317
79318         * lib/getpass.h: Add.
79319         * lib/getpass.c: Include getpass.h first.
79320
79321 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         * lib/xalloc-die.c: New file.
79324         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79325         All uses removed.
79326         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79327         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79328         xalloc-die.c.
79329         (_, N_, xalloc_die): Move to xalloc-die.c.
79330         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79331         so that we needn't mess with xalloc_msg_memory_exhausted.
79332
79333         * lib/sha1.h: Renamed from sha.h.
79334         (SHA1_H): Renamed from _SHA_H.
79335         (sha1_ctx): Renamed from sha_ctx.
79336         (sha1_init_ctx): Renamed from sha_init_ctx.
79337         (sha1_process_block): Renamed from sha_process_block.
79338         (sha1_process_bytes): Renamed from sha_process_bytes.
79339         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79340         (sha1_read_ctx): Renamed from sha_read_ctx.
79341         (sha1_stream): Renamed from sha_stream.
79342         (sha1_buffer): Renamed from sha_buffer.
79343         * lib/sha1.c: Likewise; renamed from sha.c.
79344         Do not include <sys/types.h>.
79345         Include <stddef.h> rather than <stdlib.h>.
79346
79347 2004-08-08  Bruno Haible  <bruno@clisp.org>
79348
79349         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79350         FILESYSTEM_PREFIX_LEN.
79351         * lib/progreloc.c: Likewise.
79352         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79353
79354 2004-08-06  Simon Josefsson  <jas@extundo.com>
79355
79356         * modules/progname (Depends-on): Don't depend on stdbool.
79357
79358 2004-08-06  Simon Josefsson  <jas@extundo.com>
79359
79360         * modules/getsubopt: New file.
79361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79362         getsubopt.
79363
79364 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79365
79366         More merge from coreutils.
79367
79368         * m4/utimens.m4, m4/utimecmp.m4: New files.
79369         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79370         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79371         prereq.m4, sha.m4: Import changes from coreutils.
79372
79373 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79374
79375         More merge from coreutils.
79376         * modules/raise, modules/readtokens0, modules/utimens:
79377         * modules/utimecmp, module/xnanosleep: New files.
79378         * modules/strftime: Add lib/strftime.h.
79379         Change include from <time.h> to "strftime.h".
79380         * modules/yesno: Add lib/yesno.h.
79381         * modules/backupfile: Remove lib/addext.c.
79382         * modules/euidaccess: Add stat-macros.h.
79383         * modules/canonicalize, modules/euidaccess,
79384         modules/filemode, modules/lchown, modules/makepath,
79385         modules/rmdir, modules/stat: Likewise.
79386
79387 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         Merge from tar.
79390         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79391         SIZE_MAX is a valid preprocessor constant.
79392         (__argp_basename): Change from "#ifndef _LIBC"
79393         to "#ifndef __argp_short_program_name", so that
79394         we don't compile these functions for tar.
79395
79396         More merges from coreutils.
79397         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79398         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79399         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79400         * lib/addext.c: Remove; no longer needed.
79401         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79402         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79403         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79404         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79405         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79406         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79407         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79408         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79409         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79410         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79411         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79412         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79413         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79414         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79415         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79416         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79417         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79418         Import changes from coreutils.
79419
79420 2004-08-05  Simon Josefsson  <jas@extundo.com>
79421
79422         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79423
79424 2004-08-05  Simon Josefsson  <jas@extundo.com>
79425
79426         * m4/getsubopt.m4: New file.
79427
79428 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79429
79430         Merge from coreutils.
79431
79432         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79433         * m4/getcwd-path-max.m4: New files.
79434
79435         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79436         FILESYSTEM_PREFIX_LEN ->
79437         FILE_SYSTEM_PREFIX_LEN.
79438         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79439         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79440         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79441         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79442
79443         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79444         prerequisite modules now handle the DOS stuff.
79445         Don't check for unistd.h.
79446
79447 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         Merge from coreutils.
79450
79451         * lib/.gdb-history: Remove; this doesn't belong here.
79452
79453         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79454         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79455         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79456         * lib/getcwd.c: New files.
79457
79458         * lib/dirname.h: Include <stdbool.h>.
79459         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79460         for consistency with POSIX terminology.  All uses changed.
79461         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79462         (strip_trailing_slashes): Use bool for booleans.
79463         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79464
79465         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79466         sometimes returns a positive errno value even when it succeeds.
79467         (print_errno_message) [!LIBC]: Fall back on strerror if
79468         __strerror_r fails.
79469
79470         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79471         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79472         (longest_relative_suffix): New function.
79473         (path_concat): Use it.  Assume first argument is not NULL.
79474         Port to DOS.  Omit redundant separators.
79475         Report an error instead of returning NULL.
79476         Use mempcpy instead of memcpy.
79477         (xpath_concat): Remove: not declared or used.
79478
79479         * lib/same.h: Include <stdbool.h>
79480         (same_name): Return bool, not int.
79481         * lib/same.c (same_name): Likewise.
79482         (errno): Don't declare; we assume C89 or better now.
79483
79484         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79485         if not already defined.
79486
79487         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79488         * lib/dup-safer.c (errno): Likewise.
79489
79490 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         Merge from coreutils.
79493         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79494         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79495         * modules/path-concat: Don't depend on strdup.
79496
79497 2004-08-03  Simon Josefsson  <jas@extundo.com>
79498
79499         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79500         * lib/progname.h: Don't include stdbool.h.
79501
79502 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79505         * MODULES.html.sh (func_all_modules): Remove fatal.
79506
79507 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79510
79511 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79514         working.
79515
79516 2004-08-02  Simon Josefsson  <jas@extundo.com>
79517
79518         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79519         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79520         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79521
79522 2004-08-01  Simon Josefsson  <jas@extundo.com>
79523
79524         * lib/xgetdomainname.c: Include stdlib.h, for free().
79525
79526 2004-07-19  Bruno Haible  <bruno@clisp.org>
79527
79528         * MODULES.html.sh (func_all_modules): Add dummy.
79529
79530 2004-07-16  Simon Josefsson  <jas@extundo.com>
79531
79532         * modules/dummy: New file.
79533
79534 2004-07-16  Simon Josefsson  <jas@extundo.com>
79535
79536         * lib/dummy.c: New file.
79537
79538 2004-07-16  Bruno Haible  <bruno@clisp.org>
79539
79540         * lib/backupfile.h: Add extern "C" for C++.
79541         * lib/closeout.h: Likewise.
79542         * lib/copy-file.h: Likewise.
79543         * lib/findprog.h: Likewise.
79544         * lib/full-write.h: Likewise.
79545         * lib/pathname.h: Likewise.
79546         * lib/progname.h: Likewise.
79547         * lib/stpcpy.h: Likewise.
79548         * lib/stpncpy.h: Likewise.
79549         * lib/strcase.h: Likewise.
79550         * lib/strstr.h: Likewise.
79551         * lib/xalloc.h: Likewise.
79552
79553         * lib/mbswidth.h: Add extern "C" for C++.
79554         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79555
79556 2004-07-13  Robert Millan  <robertmh@gnu.org>
79557
79558         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79559
79560 2004-07-09  Simon Josefsson  <jas@extundo.com>
79561
79562         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79563         failed without this.)
79564
79565 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * modules/chown (Files): Add lib/fchown-stub.c, since
79568         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79569
79570 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * lib/fchown-stub.c: New file.
79573
79574 2004-06-24  Jim Meyering  <jim@meyering.net>
79575
79576         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79577
79578 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * modules/argz: Omit "#include".
79581
79582         * MODULES.html.sh (func_all_modules): Add calloc, to match
79583         2004-06-01 addition of calloc module.
79584
79585 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * m4/argz.m4: New file, which is autoupdated from libtool.
79588
79589 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79592         libtool.
79593
79594 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * config/srclist-update: Don't insist on "USA." before the
79597         close-comment, as libtool omits the period and puts the */ on a
79598         separate line.
79599         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79600         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79601
79602 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79603
79604         * modules/argz: New file.
79605         * MODULES.html.sh (func_all_modules): Add argz.
79606
79607 2004-06-12  Jim Meyering  <jim@meyering.net>
79608         and  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * modules/hash (Files): Add lib/xalloc.h.
79611         * modules/pipe (Depends-on): Add wait-process.
79612         * modules/stat (Depends-on): Add xalloc.
79613         * modules/userspec (Files): Add lib/userspec.h.
79614         * modules/xstrto
79615
79616         Upgrade from gettext-0.13.
79617         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79618         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79619         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79620
79621 2004-06-10  Jim Meyering  <jim@meyering.net>
79622
79623         * lib/calloc.c: New file.
79624
79625 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         * lib/getdate.y (yylex): Allow space between sign and number.
79628         Problem reported by Dan Jacobson.
79629
79630 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         Merge from coreutils CVS.
79633
79634         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79635         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79636         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79637         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79638         xstrtol.m4: Fix copyright date and/or serial number.
79639
79640         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79641         See if we need an fchown replacement.
79642         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79643         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79644         and use the replacement function if we detect either defect.
79645
79646         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79647         gl_UTIMECMP.
79648
79649 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79650         and  Jim Meyering  <jim@meyering.net>
79651
79652         Merge from coreutils CVS.
79653
79654         * lib/stat-macros.h: New file, with contents from file-type.h
79655         and coreutils' system.h.
79656         * lib/file-type.c: Include "stat-macros.h".
79657         * lib/file-type.h (file_type): Move all macro definitions to new file,
79658         stat-macros.h.
79659
79660         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79661         Wrap old code with this conditional.
79662         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79663         function that does not dereference symlinks.
79664         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79665
79666         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79667         dependency problems.
79668         (xreadlink): Accept new arg SIZE, for efficiency.
79669         All decls and uses changed.
79670         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79671
79672         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79673         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79674
79675         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79676         sysexits.h.
79677
79678 2004-06-01  Jim Meyering  <jim@meyering.net>
79679
79680         * m4/calloc.m4: New file.
79681
79682 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79685         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79686         Also, fix a typo in a diagnostic.
79687
79688 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79689
79690         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79691         or AC_FUNC_REALLOC.
79692
79693 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79696         macros to be defined.
79697         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79698         the allocator returns NULL because the requested size is zero.
79699
79700 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79703         var.  Add comment explaining why libc still defines it.  This
79704         merges the following patch from glibc:
79705         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79706
79707 2004-05-20  Andreas Schwab  <schwab@suse.de>
79708
79709         * m4/free.m4: Replace free if it not known to work, not the other
79710         way round.
79711
79712 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79715         present in glibc since revision 1.1 of this file.
79716         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79717         obstack_alignment_mask, obstack_alloc, obstack_base,
79718         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79719         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79720         obstack_grow0, obstack_init, obstack_int_grow,
79721         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79722         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79723         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79724         nonexistent functions.
79725
79726 2004-05-18  Karl Berry  <karl@gnu.org>
79727
79728         * config/srclist.txt: break link for vasnprintf.c.
79729
79730 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         Port obstack to the AS/400, where pointers are 16 bytes wide and
79733         you cannot cast an integer to a valid pointer.  This patch is
79734         currently waiting to be integrated into glibc; see
79735         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79736
79737         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79738         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79739         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79740         (struct obstack): temp member is now a union of a pointer and
79741         an integer, instead of an integer.  All integer uses changed.
79742         This does not affect the physical layout of struct obstack,
79743         except on hosts (like the AS/400) where the size or alignment of
79744         void * is greater than that of ptrdiff_t.
79745         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79746         __STDC__)]: Store temporary in pointer member of union, not
79747         integer member.
79748         * lib/obstack.c: Include <stddef.h>, for offsetof.
79749         (struct fooalign): Remove; it doesn't need a name.
79750         (union fooround): Change double to long double, and add void *.
79751         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79752         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79753         not a macro.  Hence the values are always int; so remove all
79754         casts-to-int in uses.
79755
79756 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79757
79758         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79759         we can get this patch merged into glibc.
79760
79761 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79762             Paul Eggert  <eggert@cs.ucla.edu>
79763
79764         * m4/argp: Depend on alloca.
79765
79766 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79767             Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79770         freecoding.
79771
79772 2004-05-17  Bruno Haible  <bruno@clisp.org>
79773
79774         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79775         precision that consists of a '.' followed by an empty digit string.
79776         Patch by Tor Lillqvist <tml@iki.fi>.
79777
79778 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79779
79780         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79781         for backward compatibility with older code.  We need our own
79782         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79783         it under some other name, and our alloca.h will define it.
79784
79785 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79786             Derek Price  <derek@ximbiot.com>
79787
79788         * lib/alloca.c: Include <alloca.h>, to get our interface.
79789         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79790         include <alloca.h> first.  Use C89 prototype for alloca; this
79791         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79792         Use #elif for simplicity, since we can assume C89 now.
79793         Don't try to source the system alloca.h since it will not be found
79794         and to prevent recursively including its replacement.
79795         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79796         * lib/regex.c: Likewise.
79797
79798 2004-05-16  Derek Price  <derek@ximbiot.com>
79799             Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         getline cleanup.  This changes the getndelim2 API: both order of
79802         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79803         no delimiter).
79804
79805         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79806         interface does that.
79807         (getline): Always use getdelim, so that we don't have two
79808         copies of this code.
79809         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79810         if available.
79811         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79812         (GETNDELIM2_MAXIMUM): New macro.
79813         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79814         instead of the old practice of delim2==0.  All callers changed.
79815         Return -1 on overflow, instead of returning junk.
79816         Do not set *linesize unless allocation succeeds.
79817         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79818         that we include sys/types.h.
79819         * lib/getnline.h: Likewise.
79820         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79821         (getndelim2): Reorder arguments.
79822         * lib/getnline.c (getnline, getndelim):
79823         Don't discard the NMAX argument.
79824         (getnline): Invoke getndelim, to avoid code duplication.
79825         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79826         of (size_t) -1 by callers of the getnline family.
79827
79828 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79829
79830         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79831         Check for gettimeofday.
79832         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79833         Check for settimeofday, stime.
79834
79835 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         * lib/nanosleep.c (suspended): Change its type from int to
79838         sig_atomic_t volatile.
79839         (first_call): Make it private to rpl_nanosleep, and have it
79840         be zero initially as that's a bit faster.
79841         (my_usleep): Round up fractional times instead of truncating them,
79842         as this is the usual meaning for 'sleep'.
79843
79844         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79845         doesn't work.
79846         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79847         (ENOSYS): Define if not defined.
79848         (settime): Fall back on stime if it exists and settimeofday fails.
79849         But don't bother with fallbacks if a method fails with errno == EPERM.
79850
79851 2004-05-11  Jim Meyering  <jim@meyering.net>
79852
79853         Prior to this change, the save_cwd caller required read access to the
79854         current directory on most systems (ones with the fchdir function).
79855
79856         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79857         fails, try write-only, and finally, resort to using xgetcwd.
79858
79859 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * lib/obstack.c, obstack.h: Import changes from libc.
79862
79863 2004-04-28  Bruno Haible  <bruno@clisp.org>
79864
79865         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79866         also implicitly appends .exe to executables.
79867         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79868         accepts Windows pathnames.
79869         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79870         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79871         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79872         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79873         Reported by Derek Robert Price <derek@ximbiot.com>.
79874
79875 2004-04-21  Karl Berry  <karl@gnu.org>
79876
79877         * config/srclist.txt (localcharset.c): break sync.
79878
79879 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79880
79881         * m4/host-os.m4: Add a copyright notice.
79882
79883 2004-04-20  Jim Meyering  <jim@meyering.net>
79884
79885         Change UTILS_ to gl_ in AC_DEFINE'd names.
79886         Change utils_- and jm_-prefixed variables, too.
79887         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79888         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79890
79891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79892         Don't emit trailing blanks.
79893         Also rename jm_-prefixed variables to have gl_ prefix.
79894
79895         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79896         Also rename jm_-prefixed variables to have gl_ prefix.
79897
79898         * m4/jm-macros.m4: Reflect the renamings.
79899         * m4/prereq.m4: Likewise.
79900
79901 2004-04-20  Jim Meyering  <jim@meyering.net>
79902
79903         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79904         memory.
79905
79906 2004-04-20  Jim Meyering  <jim@meyering.net>
79907             Bruno Haible  <bruno@clisp.org>
79908
79909         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79910         memory when realloc fails.
79911
79912 2004-04-19  Jim Meyering  <jim@meyering.net>
79913
79914         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79915         now that readutmp.c may call `free (0)'.
79916
79917 2004-04-19  Bruno Haible  <bruno@clisp.org>
79918
79919         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79920         * m4/inttypes_h.m4: Likewise.
79921         * m4/stdint_h.m4: Likewise.
79922         * m4/intmax_t.m4: Likewise.
79923         * m4/uintmax_t.m4: Likewise.
79924
79925 2004-04-18  Jim Meyering  <jim@meyering.net>
79926
79927         * m4/prereq.m4: Don't forbid jm_ prefix.
79928
79929         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79930         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79931         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79932         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79933         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79934         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79935         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79936         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79937         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79938         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79939         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79940         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79941         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79942         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79943         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79944         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79945         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79946         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79947         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79948
79949 2004-04-18  Jim Meyering  <jim@meyering.net>
79950
79951         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79952         failure, don't leak memory and do call END_UTMP_ENT.
79953
79954 2004-04-16  Jim Meyering  <jim@meyering.net>
79955
79956         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79957         coreutils' stat program.
79958         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79959
79960 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79961
79962         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79963         C89.
79964         (CHAR_BIT): Remove, since we assume C89.
79965         Include <stdint.h> if available, as per current Autoconf CVS advice.
79966
79967 2004-03-31  Jim Meyering  <jim@meyering.net>
79968
79969         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79970         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79971         * m4/xalloc.m4: Likewise.
79972
79973 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79974
79975         Merge from coreutils.
79976
79977         * m4/inttostr.m4: New file.
79978         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79979         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79980         Require gl_CLOCK_TIME.
79981         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79982
79983 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79984
79985         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79986         not bool, to be more consistent with Unix conventions.
79987         Suggested by Bruno Haible.
79988
79989         Merge from coreutils.
79990
79991         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79992         * lib/umaxtostr.c: New files.
79993
79994         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79995         the usual <time.h> dance.
79996         (get_date): Change signature to support fractional time stamps.
79997         All callers changed.
79998         * lib/getdate.y: Include "getdate.h" first, as we can now
79999         assume C89 and don't need to worry about 'const'.
80000         Similarly, include "unlocked-io.h" near start, not in middle.
80001         Include <limits.h>.
80002         (textint.value): Use long int rather than int.
80003         (textint.digits): Use size_t rather than int.
80004         (BILLION, LOG10_BILLION): New constants.
80005         (parser_control): New member rel_ns.  Members day_ordinal,
80006         time_zone, month, day, hour, minutes, rel_year, rel_month,
80007         rel_day, rel_hour, rel_minutes, rel_seconds
80008         are now long int, not int.  Member seconds is now struct timespec,
80009         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80010         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80011         not int.
80012         (%union.intval): Now long int, not int.
80013         New member timespec.
80014         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80015         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80016         (spec): Now is a timespec or an item list.
80017         (timespec, items): New nonterminals.
80018         (time, rel, relunit, number, get_date):
80019         Add support for fractional seconds.
80020         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80021         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80022         (to_hour): First arg is now long int, not int.
80023         (to_year): Returns long int, not int.
80024         Don't treat year -70 like 70.
80025         (tm_diff): Returns long int, not int.
80026         (lookup_word): Use bool instead of int when appropriate.
80027         (yylex): Use size_t for count, not int.
80028         Detect overflow when parsing large integer constants.
80029         Add support for fractions.
80030         (get_date): Make pointers 'const' if possible.
80031         Use more-portable code to detect integer overflow.
80032         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80033         Don't use ctime; it's not reliable if the year has >4 digits.
80034
80035         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80036         This is for compatibility with BSD.
80037
80038         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80039         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80040         From coreutils' system.h.
80041
80042         * lib/userspec.c: Don't include "posixver.h".
80043         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80044         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80045         compatible extension.  Simplify code by removing a boolean int
80046         that was always nonzero if a string was nonnull.
80047
80048 2004-03-30  Jim Meyering  <jim@meyering.net>
80049
80050         Merge from coreutils.
80051
80052         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80053         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80054         on some systems one must include <grp.h> before it.
80055         Reported by Christian Krackowizer.
80056
80057 2004-03-30  Jim Meyering  <jim@meyering.net>
80058
80059         Merge from coreutils.
80060
80061         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80062
80063         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80064         an empty input stream.
80065
80066         * lib/readtokens.c: Include <stdbool.h>.
80067         (readtoken): Use `size_t' rather than int/long.
80068         All callers adjusted.
80069         Use `bool' rather than `int' where appropriate.
80070         Use memset rather than an explicit loop.
80071         Use x2nrealloc rather than xrealloc.
80072         Allow the use of `\0' as a delimiter.
80073         (readtokens): Likewise.
80074         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80075
80076 2004-03-30  Jim Meyering  <jim@meyering.net>
80077
80078         * m4/realloc.m4: Remove file, since now it does no more than
80079         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80080         the `configure.ac' section of module/realloc.
80081         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80082
80083 2004-03-30  Bruno Haible  <bruno@clisp.org>
80084
80085         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80086         nonnull.
80087
80088 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80089
80090         Merge changes to getloadavg.c from coreutils and Emacs.
80091
80092         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80093         Define to an expression, not to the empty string.
80094         Include cloexec.h and xalloc.h.
80095         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80096         Use set_cloexec_flag rather than rolling our own.
80097         * lib/cloexec.c, lib/cloexec.h: New files.
80098
80099 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80100
80101         * m4/cloexec.m4: New file.
80102
80103 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80104
80105         * lib/getopt.h: Sync with libc CVS.
80106
80107 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80108             Bruno Haible  <bruno@clisp.org>
80109
80110         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80111         mbswidth.
80112
80113 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80114             Bruno Haible  <bruno@clisp.org>
80115
80116         * lib/mbswidth.h: Include <wchar.h> only if
80117         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80118         <wchar.h>.
80119         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80120
80121 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80122
80123         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80124         Sync with libc CVS.
80125         * lib/getopt_int.h: New file, also synced from libc.
80126
80127 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80128
80129         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80130         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80131         Bring back getopt.c, getopt.h, getopt1.c.
80132
80133 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80134
80135         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80136         All uses changed.  Check for sa_sigaction member; this fixes
80137         a bug first reported by Jason Andrade in
80138         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80139
80140 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80141
80142         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80143         '#if' expressions.  Unlike the code it replaces, it does not
80144         depend on (defined _SC_PAGESIZE).  However, it does depend on
80145         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80146         first reported by Jason Andrade in
80147         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80148
80149 2004-02-25  Simon Josefsson  <jas@extundo.com>
80150
80151         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80152
80153 2004-02-25  Simon Josefsson  <jas@extundo.com>
80154
80155         * lib/strdup.h: New file.
80156         * lib/strdup.c: Include it.
80157         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80158         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80159
80160 2004-02-23  Karl Berry  <karl@gnu.org>
80161
80162         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80163         (from fencepost.gnu.org:/gd/gnuorg).
80164
80165 2004-02-23  Karl Berry  <karl@gnu.org>
80166
80167         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80168         * config/srclist.txt: add maintain/standards documents.
80169
80170 2004-02-18  Bruno Haible  <bruno@clisp.org>
80171
80172         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80173         Reported by Derek Robert Price <derek@ximbiot.com>.
80174
80175 2004-02-16  Karl Berry  <karl@gnu.org>
80176
80177         * config/mkinstalldirs, install-sh: update from automake.
80178
80179 2004-02-06  Karl Berry  <karl@gnu.org>
80180
80181         * m4/po.m4: update from gettext 0.14.1.
80182
80183 2004-02-06  Karl Berry  <karl@gnu.org>
80184
80185         * lib/config.charset: update from gettext 0.14.1.
80186
80187 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80188
80189         Add comments and code, prompted by suggestions from Bruno Haible
80190         for sh-quote.
80191         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80192         describing the enum quoting_style values.
80193         * lib/quotearg.c (quotearg_alloc): New function.
80194         (quotearg_buffer_restyled): Treat lone { and } as special.
80195         Treat = as special.  Work around bug with older shells
80196         that "see" a '\' that is really the 2nd byte of a multibyte char.
80197         Quote empty string with shell_quoting_style.
80198
80199 2004-02-03  Bruno Haible  <bruno@clisp.org>
80200
80201         * m4/pipe.m4: New file, from GNU gettext.
80202
80203 2004-02-03  Bruno Haible  <bruno@clisp.org>
80204
80205         * lib/pipe.h: New file, from GNU gettext.
80206         * lib/pipe.c: New file, from GNU gettext.
80207
80208 2004-01-27  Bruno Haible  <bruno@clisp.org>
80209
80210         * m4/execute.m4: New file, from GNU gettext.
80211
80212 2004-01-27  Bruno Haible  <bruno@clisp.org>
80213
80214         * lib/execute.h: New file, from GNU gettext.
80215         * lib/execute.c: New file, from GNU gettext.
80216         * lib/w32spawn.h: New file, from GNU gettext.
80217
80218 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80219
80220         Merge from diffutils.
80221
80222         * lib/file-type.c (file_type): Add typed memory objects.
80223         * lib/file-type.h (S_TYPEISTMO): New macro.
80224
80225         * lib/c-stack.h (c_stack_action): Remove argv argument.
80226         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80227         (die): Don't calculate message unless segv_action returns.
80228         (get_stack_location, min_address_from_argv, max_address_from_argv,
80229         volatile stack_base, volatile_stack_size): Remove.
80230         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80231         that every segmentation violation is a stack overflow.  (Ouch!)
80232         See Debian bug 136249 (still outstanding) for more info about why
80233         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80234
80235 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80236
80237         Exit-status fix from coreutils.
80238
80239         Use exit_failure consistently in place of EXIT_FAILURE,
80240         so that program exit statuses are consistent on failure.
80241
80242         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80243         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80244         * lib/argmatch.h: Comment fix to match the above.
80245         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80246         Now a macro referring to exit_failure, instead of a separate
80247         variable.  Include "exitfail.h" to get it.
80248         * lib/xstrtol.h: Include "exitfail.h".
80249         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80250
80251         * lib/long-options.c (parse_long_options): Use prototype
80252         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80253         for clarity.
80254
80255 2004-01-21  Jim Meyering  <jim@meyering.net>
80256
80257         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80258         so as not to conflict with a different-sized __mktime_internal
80259         function in GNU libc.
80260         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80261         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80262
80263 2004-01-20  Karl Berry  <karl@gnu.org>
80264
80265         * config/config.guess: update from config.
80266
80267         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80268
80269 2004-01-20  Bruno Haible  <bruno@clisp.org>
80270
80271         Safer stack allocation.
80272         * lib/setenv.c: Include allocsa.h.
80273         (alloca): Remove fallback definition.
80274         (freea): Remove macro.
80275         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80276         instead of freea.
80277
80278 2004-01-20  Bruno Haible  <bruno@clisp.org>
80279
80280         * m4/eealloc.m4: New file, from GNU gettext.
80281
80282 2004-01-20  Bruno Haible  <bruno@clisp.org>
80283
80284         * m4/allocsa.m4: New file, from GNU gettext.
80285
80286 2004-01-20  Bruno Haible  <bruno@clisp.org>
80287
80288         * lib/xallocsa.h: New file, from GNU gettext.
80289         * lib/xallocsa.c: New file, from GNU gettext.
80290
80291 2004-01-20  Bruno Haible  <bruno@clisp.org>
80292
80293         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80294
80295 2004-01-20  Bruno Haible  <bruno@clisp.org>
80296
80297         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80298         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80299         specially.
80300
80301 2004-01-20  Bruno Haible  <bruno@clisp.org>
80302
80303         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80304         patch.
80305
80306 2004-01-20  Bruno Haible  <bruno@clisp.org>
80307
80308         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80309
80310 2004-01-20  Bruno Haible  <bruno@clisp.org>
80311
80312         * lib/eealloc.h: New file.
80313
80314 2004-01-20  Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/binary-io.h: Avoid warnings on Cygwin.
80317
80318 2004-01-20  Bruno Haible  <bruno@clisp.org>
80319
80320         * lib/allocsa.h: New file, from GNU gettext.
80321         * lib/allocsa.c: New file, from GNU gettext.
80322
80323 2004-01-18  Karl Berry  <karl@gnu.org>
80324
80325         * doc/gpl.texi, doc/lgpl.texi: new files.
80326
80327 2004-01-18  Karl Berry  <karl@gnu.org>
80328
80329         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80330         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80331
80332 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80333
80334         Merge from coreutils.
80335
80336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80337         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80338         (gl_DEFAULT_POSIX2_VERSION): Move
80339         the documentation from 'configure' into 'config.hin',
80340         so that 'configure --help' isn't burdened by it and
80341         we don't have to worry about its formatting there.
80342         Reword the documentation so that it's more succinct
80343         and can be run together into a single paragraph.
80344         * m4/same.m4 (gl_SAME): Check for pathconf.
80345
80346 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80347
80348         Merge from coreutils.
80349
80350         * lib/posixver.c: Include posixver.h.
80351
80352         * lib/same.c: Include <stdbool.h>, <limits.h>.
80353         (_POSIX_NAME_MAX): Define if not defined.
80354         (MIN): New macro.
80355         (same_name): If file names are silently truncated, report
80356         that the file names are the same if they are the same after
80357         the silent truncation.
80358
80359         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80360         conversion function.
80361         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80362         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80363         longer needed.
80364
80365 2004-01-15  Jim Meyering  <jim@meyering.net>
80366
80367         Merge from coreutils.
80368
80369         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80370         if no library is required.
80371         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80372         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80373         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80374         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80375         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80376         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80377         value, $ac_cv_search_crypt, if it's "none required".
80378         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80379         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80380         not gl_FUNC_GETLOADAVG.
80381         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80382         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80383
80384 2004-01-15  Jim Meyering  <jim@meyering.net>
80385
80386         Merge from coreutils.
80387
80388         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80389         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80390         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80391
80392         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80393         optional configure-time default.
80394
80395         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80396
80397         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80398
80399 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80400
80401         Merge from coreutils.
80402
80403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80404         value, $ac_cv_search_nanosleep, if it's "none required".
80405
80406 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80407
80408         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80409         with like-named macro in fnmatch.c.
80410         (EXT): Use an internal constant instead.
80411
80412         Merge fnmatch patches from glibc.
80413         * lib/fnmatch.c (mbsinit): Remove define.
80414         Add libc_hidden_ver (__fnmatch, fnmatch).
80415         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80416         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80417
80418 2004-01-14  Karl Berry  <karl@gnu.org>
80419
80420         * config/install-sh: update from automake.
80421
80422 2004-01-13  Karl Berry  <karl@gnu.org>
80423
80424         * config/install-sh: update from automake.
80425
80426 2004-01-09  Karl Berry  <karl@gnu.org>
80427
80428         * config/install-sh: update from automake.
80429
80430 2004-01-05  Karl Berry  <karl@gnu.org>
80431
80432         * config/config.{sub,guess}: update from config.
80433
80434 2003-12-31  Karl Berry  <karl@gnu.org>
80435
80436         * config/depcomp: update from automake.
80437
80438 2003-12-14  Karl Berry  <karl@gnu.org>
80439
80440         * lib/config.charset: update from gettext-runtime.
80441
80442 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80443
80444         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80445         Bug reported by Alfred M. Szmidt.
80446
80447 2003-12-03  Bruno Haible  <bruno@clisp.org>
80448
80449         * m4/gettext.m4: Upgrade from gettext-0.13.
80450         * m4/po.m4: Upgrade from gettext-0.13.
80451         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80452         * m4/intmax.m4: New file, from gettext-0.13.
80453         * m4/printf-posix.m4: New file, from gettext-0.13.
80454
80455 2003-11-29  Karl Berry  <karl@gnu.org>
80456
80457         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80458
80459 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80460             Bruno Haible  <bruno@clisp.org>
80461
80462         * lib/printf-parse.h: Don't include sys/types.h.
80463         (ARG_NONE): New macro.
80464         (char_directive): Change type of *arg_index fields to size_t.
80465         * lib/printf-parse.c: Don't include sys/types.h.
80466         (SSIZE_MAX): Remove macro.
80467         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80468         Remove unnecessary overflow check.
80469         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80470         fields.
80471
80472 2003-11-25  Bruno Haible  <bruno@clisp.org>
80473
80474         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80475
80476 2003-11-25  Bruno Haible  <bruno@clisp.org>
80477
80478         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80479         gt_TYPE_SSIZE_T.
80480
80481 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80482
80483         * modules/alloca: Remove dependency on xalloc.
80484
80485 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80486
80487         * lib/alloca.c: Remove dependency on xalloc module.
80488         (xalloc_die): Remove.
80489         (memory_full) [!defined emacs]: New macro.
80490         [!defined emacs]: Don't include xalloc.h.
80491         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80492         address arithmetic overflows.  Change datatypes a bit to avoid
80493         unnecessary casts.
80494
80495 2003-11-22  Jim Meyering  <jim@meyering.net>
80496
80497         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80498         s/size/size_t/.
80499
80500 2003-11-21  Karl Berry  <karl@gnu.org>
80501
80502         * config/config.{sub,guess}: update from config.
80503
80504 2003-11-18  Karl Berry  <karl@gnu.org>
80505
80506         * config/config.{sub,guess}: update from config.
80507
80508         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80509
80510 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80511
80512         * README: Mention that S+T cannot overflow if S is the size of
80513         an existing object and T is sufficiently small.
80514
80515 2003-11-17  Jim Meyering  <jim@meyering.net>
80516
80517         On systems without utime and without a utimes function capable of
80518         dealing with a NULL struct utimbuf* argument, this utime replacement
80519         could -- in unusual circumstances -- leak a file descriptor.
80520         * lib/utime.c: Include <unistd.h> and <errno.h>.
80521         (utime_null): Be sure to close `fd' and to preserve errno.
80522         Reported by Geoff Collyer via Arnold Robbins.
80523
80524 2003-11-17  Bruno Haible  <bruno@clisp.org>
80525
80526         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80527         (Depends-on): Add xsize.
80528
80529 2003-11-17  Bruno Haible  <bruno@clisp.org>
80530
80531         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80532
80533 2003-11-17  Bruno Haible  <bruno@clisp.org>
80534
80535         * lib/vasnprintf.c (alloca): Remove fallback definition.
80536         (freea): Remove definition.
80537         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80538         Reported by Paul Eggert.
80539
80540 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80541             Bruno Haible  <bruno@clisp.org>
80542
80543         Protect against address arithmetic overflow.
80544         * lib/printf-args.h: Include stddef.h.
80545         (arguments): Change type of field 'count' to size_t.
80546         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80547         'unsigned int' where appropriate.
80548         * lib/printf-parse.h: Include sys/types.h.
80549         (char_directive): Change type of *arg_index fields to ssize_t.
80550         (char_directives): Change type of fields 'count', max_*_length to
80551         size_t.
80552         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80553         (SSIZE_MAX): Define fallback value.
80554         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80555         instead of 'int' where appropriate. Check a_allocated, d_allocated
80556         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80557         * lib/vasnprintf.c: Include xsize.h.
80558         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80559         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80560         overflow. Avoid wraparound when converting a width or precision from
80561         decimal to binary.
80562
80563 2003-11-16  Bruno Haible  <bruno@clisp.org>
80564
80565         Update from GNU gettext.
80566         * lib/printf-parse.c: Generalize to it can be compiled for wide
80567         strings.
80568         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80569         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80570         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80571         SNPRINTF): New macros.
80572         Don't include <alloca.h> if the file is used inside libintl.
80573         (local_wcslen): New function, for Solaris 2.5.1.
80574         (VASNPRINTF): Use it instead of wcslen.
80575
80576 2003-11-16  Bruno Haible  <bruno@clisp.org>
80577
80578         * lib/xsize.h (xmax): New function.
80579         (xsum, xsum3, xsum4): Declare as "pure" functions.
80580
80581 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80582
80583         * modules/xalloc (Files): Undo latest change, since xalloc.h
80584         no longer needs SIZE_MAX or PTRDIFF_MAX.
80585
80586 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80587
80588         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80589         gl_PTRDIFF_MAX.
80590
80591 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80594         "return", to pacify some unknown compiler.  Problem reported
80595         by Joerg Schilling.
80596
80597 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80598
80599         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80600         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80601         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80602         heuristic is just as accurate as far as we know, and it removes a
80603         dependency on size_max.m4 and ptrdiff_max.m4.
80604
80605 2003-11-11  Bruno Haible  <bruno@clisp.org>
80606
80607         * modules/xsize (Files): Add m4/size_max.m4.
80608         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80609
80610 2003-11-11  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/size_max.m4: New file.
80613         * m4/ptrdiff_max.m4: New file.
80614         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80615         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80616         (gl_XALLOC): Invoke it.
80617
80618 2003-11-11  Bruno Haible  <bruno@clisp.org>
80619
80620         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80621         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80622         defined.
80623
80624 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80625
80626         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80627         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80628         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80629         From Bruno Haible.
80630         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80631         not (size_t) -1, since it's defined here.
80632
80633 2003-11-09  Karl Berry  <karl@gnu.org>
80634
80635         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80636
80637 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80638
80639         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80640         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80641         Reject sizes of exactly SIZE_MAX bytes.
80642         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80643         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80644
80645 2003-11-05  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80648         SIZE_MAX defined in <limits.h> on Solaris.
80649
80650 2003-11-04  Jim Meyering  <jim@meyering.net>
80651
80652         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80653         variable names, rather than @VAR@.
80654         * modules/poll: Likewise.
80655
80656 2003-11-04  Bruno Haible  <bruno@clisp.org>
80657
80658         * modules/xsize: New file.
80659         * modules/linebreak: Depend on xsize.
80660         * MODULES.html.sh (func_all_modules): Add xsize.
80661
80662 2003-11-04  Bruno Haible  <bruno@clisp.org>
80663
80664         * m4/xsize.m4: New file.
80665
80666 2003-11-04  Bruno Haible  <bruno@clisp.org>
80667
80668         * lib/xsize.h: New file.
80669         * lib/linebreak.c: Include xsize.h.
80670         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80671         argument for overflow.
80672         Suggested by Paul Eggert.
80673
80674 2003-11-03  Karl Berry  <karl@gnu.org>
80675
80676         * config/config.{guess,sub}: update from config.
80677
80678 2003-11-03  Jim Meyering  <jim@meyering.net>
80679
80680         * modules/userspec (lib_SOURCES): Add userspec.h.
80681         (Include): Add "userspec.h".
80682         Improve description.
80683
80684 2003-11-03  Jim Meyering  <jim@meyering.net>
80685
80686         * lib/userspec.c: Include "userspec.h".
80687         * lib/userspec.h: New file.
80688
80689 2003-11-03  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80692
80693 2003-11-03  Bruno Haible  <bruno@clisp.org>
80694
80695         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80696         available, to avoid (extremely rare) race condition.
80697         Suggested by Paul Eggert.
80698
80699 2003-11-02  Karl Berry  <karl@gnu.org>
80700
80701         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80702
80703 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80704
80705         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80706         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80707         (read_filesystem_list): Set and use me_type_malloced.
80708         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80709         whatever the type happens to be), for brevity and consistency.
80710         Check for size calculation overflow on Alphas running OSF/1.
80711
80712 2003-10-31  Jim Meyering  <jim@meyering.net>
80713
80714         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80715
80716         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80717
80718 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80719             Bruno Haible  <bruno@clisp.org>
80720
80721         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80722         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80723
80724 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80725
80726         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80727         netbsd*-gnu*.  Suggested by Robert Millan.
80728
80729 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80730
80731         * modules/group-member: Depend on stdbool.
80732
80733 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80734
80735         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80736
80737 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80738
80739         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80740         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80741         after the 'gnu' in these cases.  This fixes some bugs in the
80742         previous change, and is based on suggestions by Robert Millan.
80743
80744 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80745
80746         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80747         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80748         no longer needed.
80749         * lib/quotearg.c (quotearg_n_options): Use it.
80750         * lib/group-member.c: Include <stdbool.h>.
80751         (free_group_info): Arg is now const *; don't free arg.
80752         (get_group_info): Now returns bool and accepts struct group_info *,
80753         rather than returning a malloc'ed struct group_info *.
80754         All uses changed.  Check for overflow in internal size calculation.
80755
80756         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80757         rather than xmalloc/xrealloc.
80758         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80759         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80760         conformance bug: the old code used a pointer after freeing the
80761         storage that it addressed.
80762         * lib/hash.c (hash_initialize): Simplify the code by using
80763         xalloc_oversized rather than doing it by hand.
80764         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80765         the buffer preserved.  Use free and xmalloc instead.
80766         * lib/quotearg.c (quotearg_n_options): Likewise.
80767         Use a simpler test for size overflow.  Don't use xalloc_oversized
80768         because unsigned int might be wider than size_t (!); this suggests
80769         that we should switch from unsigned int to size_t for slot numbers.
80770
80771 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80772
80773         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80774         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80775         NetBSD kernels.  Requested by Richard Stallman.
80776
80777 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80778
80779         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80780         to allocate the returned structure.  Do not allocate a subarray,
80781         as x2nrealloc will do that.
80782         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80783         instead of xnrealloc.
80784         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80785
80786 2003-10-27  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/stdbool_.h: Better support for BeOS.
80789
80790 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80791
80792         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80793         now uses inline.
80794
80795 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80796
80797         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80798         callers that want to do their own size-overflow checking.  Include
80799         <stdbool.h>, since xalloc_oversized returns bool.
80800         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80801         to use xalloc_oversized.
80802
80803         Add two functions x2realloc, x2nrealloc, for programs that grow
80804         arrays dynamically by doubling their sizes.
80805         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80806         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80807         New functions.
80808
80809         Port to C99 semantics for 'inline' of external functions.
80810         Bug reported by Bruno Haible.
80811         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80812         with the old contents of xnmalloc.
80813         (xnmalloc, xmalloc): Use it.
80814         (xnrealloc_inline): New static inline function,
80815         with the old contents of xnrealloc.
80816         (xnrealloc, xrealloc): Use it.
80817
80818         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80819         that.
80820
80821 2003-10-26  Karl Berry  <karl@gnu.org>
80822
80823         * config/srclist.txt (COPYING.DOC): no longer available from
80824         /gd/gnuorg; don't know where the ultimate source is.
80825
80826 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80827
80828         Fix several address-calculation bugs in the hash modules,
80829         plus some minor code cleanup.
80830
80831         * lib/hash.h: Include <stdbool.h>, for bool.
80832         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80833         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80834         hash_get_n_entries, hash_get_max_bucket_length,
80835         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80836         hash_rehash): Use size_t rather than unsigned.
80837         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80838         hash_get_n_buckets_used, hash_get_n_entries,
80839         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80840         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80841         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80842         Likewise.
80843         (SIZE_MAX): Define if not defined.
80844         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80845         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80846         hash_print):
80847         Use const * when possible.
80848         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80849         (check_tuning): Fix bug: if tuning parameters were very close to
80850         0 or 1, rounding errors could have caused subscript violations.
80851         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80852         (hash_initialize): Add 'fail:' label
80853         to free table and return NULL, and use it to simplify code.
80854         Use calloc rather than clearing the storage ourself.
80855         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80856         buffer size calculations.
80857         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80858         Include <stddef.h>, for size_t.
80859         * lib/hash-pjw.c (hash_pjw): Likewise.
80860         Switch to method described by Bruno Haible.
80861         Include <limits.h>, for CHAR_BIT.
80862         (SIZE_BITS): New macro.
80863
80864 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80865
80866         * m4/getline.m4 (AM_FUNC_GETLINE):
80867         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80868         hosts.  Problem reported by Derek Robert Price in
80869         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80870         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80871         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80872
80873 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80874
80875         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80876         ceiling the allocation at NMAX bytes rather than silently
80877         discarding input bytes before NMAX is reached.  This makes
80878         a difference only if NMAX exceeds SIZE_MAX / 2.
80879
80880         * lib/obstack.c: Merge from glibc.
80881         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80882         Add libc_hidden_def (_obstack_newchunk).
80883         (_obstack_free) [! defined _LIBC]: Remove.
80884         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80885         a clone of the function body.
80886         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80887         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80888
80889         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80890         glibc.
80891         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80892         arg to memcpy.
80893
80894         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80895         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80896         Don't use lvalue casts, as GCC plans to remove support for them
80897         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80898         was also present in the non-GCC version, indicating that this
80899         code had always been buggy and had never been widely used.
80900         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80901         Use the fast variant of each macro, rather than copying the
80902         definiens of the fast variant; that way, we'll be more likely to
80903         catch future bugs in the fast variants.
80904
80905 2003-10-20  Bruno Haible  <bruno@clisp.org>
80906
80907         * modules/wait-process: New file.
80908         * MODULES.html.sh (func_all_modules): Add wait-process.
80909
80910 2003-10-20  Bruno Haible  <bruno@clisp.org>
80911
80912         * m4/wait-process.m4: New file.
80913
80914 2003-10-20  Bruno Haible  <bruno@clisp.org>
80915
80916         * lib/wait-process.h: New file, from GNU gettext.
80917         * lib/wait-process.c: New file, from GNU gettext.
80918
80919 2003-10-19  Jim Meyering  <jim@meyering.net>
80920
80921         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80922         HPUX 10.20.
80923
80924 2003-10-18  Karl Berry  <karl@gnu.org>
80925
80926         * config/config.guess: update from config.
80927
80928 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80929
80930         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80931         (getgroups): First arg is int, not size_t.
80932         Don't let 'free' mangle errno.
80933
80934 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80935
80936         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80937
80938 2003-10-16  Karl Berry  <karl@gnu.org>
80939
80940         * config/config.{guess,sub}: update from config.
80941
80942 2003-10-16  Jim Meyering  <jim@meyering.net>
80943
80944         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80945         memcpy.
80946
80947 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80948
80949         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80950         (SIZE_MAX): Remove.
80951         (new_exclude, add_exclude_file): Initial size no longer needs to
80952         be a power of 2.
80953         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80954         our own address arithmetic overflow checking.
80955
80956         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80957         (fnmatch): Do not alloca more than 2000 wide characters;
80958         instead, use malloc for large buffers.
80959         Check for address arithmetic overflow, and return -1
80960         with errno set to ENOMEM in that case.
80961         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80962         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80963         instead, return -1.  Check for address arithmetic overflow.
80964
80965 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80966
80967         Handle invalid suffixes and overflow independently, so that
80968         callers can treat them independently as needed.  Fix some bugs in
80969         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80970         suffix for a human-readable blocksize.  The major caller-visible
80971         change is the addition of a new
80972         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80973         that both overflow and suffix chars were found.
80974
80975         * lib/human.c (humblock): Don't check separately for invalid suffix
80976         char; that is xstrtoumax's job (now that its bug is fixed).
80977         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80978         INTMAX_MAX]: New macros.
80979         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80980         TYPE_MAXIMUM): New macros.
80981         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80982         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80983         if overflow occurs, as it's what __strtol does and it's more useful
80984         in practice.
80985         (__xstrtol): If __strtol reports some error other than ERANGE,
80986         reflect it to the caller as LONGINT_INVALID.  If it reports
80987         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80988         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80989         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80990         value.
80991         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80992         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80993         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80994         [defined UINTMAX_MAX]: New macros.
80995
80996 2003-10-14  Bruno Haible  <bruno@clisp.org>
80997
80998         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80999
81000 2003-10-14  Bruno Haible  <bruno@clisp.org>
81001
81002         * m4/sig_atomic_t: New file, from GNU gettext.
81003         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81004
81005 2003-10-14  Bruno Haible  <bruno@clisp.org>
81006
81007         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81008         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81009         Also use volatile where needed.
81010
81011 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81012
81013         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81014         Change maintainer from Bruno Haible to 'all'.
81015
81016 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81017
81018         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81019
81020 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81021
81022         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81023         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81024         and define in terms of the other primitives.
81025         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81026         (SIZE_MAX): Define if not already defined.
81027         (array_size_overflow): New function.
81028         (xalloc_die): Abort instead of exiting if 'error' returns.
81029         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81030         (xmalloc, xrealloc): Use them.
81031         (xcalloc): Check for address arithmetic overflow.
81032         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81033         a bit faster than strcpy.
81034
81035 2003-10-10  Simon Josefsson  <jas@extundo.com>
81036
81037         * modules/argp (Depends-on): Add restrict and strcase.
81038
81039 2003-10-10  Simon Josefsson  <jas@extundo.com>
81040
81041         * m4/argp.m4: Add AC_C_INLINE.
81042
81043 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81044
81045         Merge getpass from libc, plus a few fixes.
81046
81047         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81048         Include <stdbool.h>.
81049         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81050         __fsetlocking to empty.
81051         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81052         do include <bits/libc-lock.h>.
81053         Do not include <fcntl.h>; not needed.
81054         [_LIBC]: Include <wchar.h>.
81055         (NOTCANCEL_MODE): New macro.
81056         (flockfile, funlockfile) [_LIBC]: New macros.
81057         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81058         [!_LIBC]: New macros.
81059         (call_fclose): New function.
81060         (getpass): Use it.  Save tty stream separately; this simplifies the
81061         code and makes it more reliable if stdin happens to equal stdout.
81062         Invoke __fsetlocking on tty.
81063         Handle thread cancellation if needed.
81064         Namespace cleanup (use __tcgetattr, __getline).
81065         Use bool for Booleans.
81066         [USE_IN_LIBIO]: Handle wide streams.
81067         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81068         stream might go where.
81069
81070         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81071         doesn't have to include <stdio.h> before us.
81072         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81073         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81074         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81075         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81076         if not declared, so that we can use getpass.c code from libc without
81077         rewriting it.
81078         (flockfile, ftrylockfile, funlockfile): New macros.
81079
81080 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81081
81082         * modules/getpass: Depend on stdbool.
81083
81084 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81085
81086         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81087
81088 2003-10-07  Karl Berry  <karl@gnu.org>
81089
81090         * config/config.{guess,sub}: update from config.
81091
81092 2003-10-06  Jim Meyering  <jim@meyering.net>
81093             Bruno Haible  <bruno@clisp.org>
81094
81095         This lets translators provide better translations for the
81096         "Written by ..." part of --version output.
81097         * lib/version-etc.h: Include stdarg.h.
81098         (version_etc_copyright): Declare as readonly.
81099         (version_etc): Make this function variadic with a NULL-terminated list
81100         of author name strings.
81101         (version_etc_va): New declaration.
81102         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81103         (version_etc_copyright): Declare as readonly.
81104         (version_etc_va): New function. Provide a different translatable string
81105         for each possible number of authors < 10. Abbreviate when there are 10
81106         authors or more.
81107         (version_etc): Make this function variadic. Call version_etc_va.
81108         Suggestion from Gary V. Vaughan.
81109
81110         * lib/long-options.h (parse_long_options): Change prototype: the
81111         authors string is moved to the end and becomes variadic.
81112         * lib/long-options.c: Include stdarg.h.
81113         (parse_long_options): Make this function variadic, too.
81114         Call version_etc_va, not version_etc.
81115
81116 2003-10-06  Bruno Haible  <bruno@clisp.org>
81117
81118         * modules/version-etc-2: Remove file.
81119         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81120
81121 2003-10-06  Bruno Haible  <bruno@clisp.org>
81122
81123         * modules/fatal-signal: New file.
81124         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81125
81126 2003-10-06  Bruno Haible  <bruno@clisp.org>
81127
81128         * m4/fatal-signal.m4: New file.
81129         * m4/signalblocking.m4: New file, from GNU gettext.
81130
81131 2003-10-06  Bruno Haible  <bruno@clisp.org>
81132
81133         * lib/version-etc-2.h: Remove file.
81134         * lib/version-etc-2.c: Remove file.
81135
81136 2003-10-06  Bruno Haible  <bruno@clisp.org>
81137
81138         * lib/fatal-signal.h: New file, from GNU gettext.
81139         * lib/fatal-signal.c: New file, from GNU gettext.
81140
81141 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81142
81143         * README: Rework advice for preventing empty .o files.
81144         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81145         not <sys/types.h>.
81146
81147 2003-10-04  Karl Berry  <karl@gnu.org>
81148
81149         * lib/argp*: update from libc.
81150
81151 2003-10-04  Karl Berry  <karl@gnu.org>
81152
81153         * config/config.{guess,sub}: update from config.
81154
81155 2003-10-02  Bruno Haible  <bruno@clisp.org>
81156
81157         * modules/lchown (Include): Add lchown.h.
81158         * modules/time_r (Include): Use "..." syntax.
81159         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81160
81161 2003-10-01  Simon Josefsson  <jas@extundo.com>
81162
81163         * MODULES.html.sh (func_all_modules): Move gethostname from section
81164         'based on' to section 'lacking' POSIX:2001.
81165
81166 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81167
81168         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81169         to output mode on the same stream.
81170
81171 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81172
81173         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81174         Fix arg typo in previous patch.
81175
81176 2003-09-28  Jim Meyering  <jim@meyering.net>
81177
81178         * lib/error.c: Correct cpp indentation.
81179
81180 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81181
81182         * modules/free: New file.
81183
81184 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81185
81186         * m4/free.m4: New file.
81187
81188 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81189
81190         * lib/minmax.h (MIN, MAX)
81191         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81192         Omit the special code that used __typeof__, since we worry that
81193         it could be more trouble than it's worth.  See:
81194         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81195         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81196
81197         * lib/free.c: New file.
81198
81199 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81200
81201         Trivial fixes to Makefile.am parts of module listings.
81202         * modules/strstr: Append strstr.h to lib_SOURCES.
81203         * modules/strcase: Likewise, for strcase.h.
81204
81205 2003-09-27  Karl Berry  <karl@gnu.org>
81206
81207         * config/mkinstalldirs: update from automake.
81208
81209 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81210
81211         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81212         (error_tail): Do not loop, reallocating temporary buffer, since
81213         the output cannot contain more wide characters than the input
81214         contains bytes, the size must be big enough already.  This avoids
81215         one potential size overflow calculation.  Check for size overflow
81216         when calculating temporary buffer size.  Free temporary buffer
81217         when done, if it was allocated with malloc; this plugs a memory
81218         leak.  Remove casts from void * to pointers, that are no longer
81219         needed now that we're assuming C89 or better.
81220
81221         Merge error changes from glibc.
81222
81223         * lib/error.c, error.h: Update copyright notice header to match glibc.
81224         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81225         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81226         Disable cancellation while printing error.
81227         * lib/error.h: Prepend __ to parameter names.
81228
81229 2003-09-26  Jim Meyering  <jim@meyering.net>
81230
81231         * lib/error.c (error_tail): Move some declarations
81232         into inner scope where the local variables are used.
81233
81234 2003-09-26  Bruno Haible  <bruno@clisp.org>
81235
81236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81237         stpncpy().
81238         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81239
81240 2003-09-26  Bruno Haible  <bruno@clisp.org>
81241
81242         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81243         (stpncpy): Define as alias for gnu_stpncpy.
81244         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81245
81246 2003-09-25  Simon Josefsson  <jas@extundo.com>
81247
81248         * lib/xgetdomainname.h: New file.
81249         * lib/xgetdomainname.c: New file.
81250
81251 2003-09-25  Simon Josefsson  <jas@extundo.com>
81252             Bruno Haible  <bruno@clisp.org>
81253
81254         * modules/getdomainname: New file.
81255         * modules/xgetdomainname: New file.
81256         * MODULES.html.sh (func_all_modules): Add getdomainname,
81257         xgetdomainname.
81258
81259 2003-09-25  Simon Josefsson  <jas@extundo.com>
81260             Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/getdomainname.m4: New file.
81263
81264 2003-09-25  Simon Josefsson  <jas@extundo.com>
81265             Bruno Haible  <bruno@clisp.org>
81266
81267         * lib/getdomainname.h: New file.
81268         * lib/getdomainname.c: New file.
81269
81270 2003-09-25  Karl Berry  <karl@gnu.org>
81271
81272         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81273
81274 2003-09-25  Karl Berry  <karl@gnu.org>
81275
81276         * config/install-sh: update from automake.
81277
81278 2003-09-25  Bruno Haible  <bruno@clisp.org>
81279
81280         * modules/version-etc-2: New file, from modules/version-etc with
81281         modifications.
81282         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81283
81284 2003-09-25  Bruno Haible  <bruno@clisp.org>
81285
81286         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81287         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81288
81289 2003-09-24  Simon Josefsson  <jas@extundo.com>
81290
81291         * modules/xgethostname: Add xgethostname.h.
81292
81293 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81294
81295         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81296         the buffer associated with the argument.  Bug reported by
81297         Simon Josefsson.
81298
81299 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81300
81301         * README: Document assumptions that 'int' is at least 32 bits
81302         wide, that integer arithmetic is 2's complement without overflow,
81303         that there are no holes in integer values, that adding sizes of
81304         two nonoverlapping objects can't overflow, and that all-bits-zero
81305         yields scalar zero.  Fix spelling and capitalization typos.
81306
81307 2003-09-19  Karl Berry  <karl@gnu.org>
81308
81309         * lib/argp.h: update from libc.
81310
81311 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81312
81313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81314         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81315         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81316
81317 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81318
81319         * gnulib-tool: Use "test -h", not "test -L", for portability
81320         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81321         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81322         (sed_extract_prog): Issue s commands one-by-one, rather than
81323         using \| in one s command.
81324
81325 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81326
81327         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81328         input error, instead of returning NULL the next time we are called
81329         (and therefore losing track of errno).
81330
81331 2003-09-16  Bruno Haible  <bruno@clisp.org>
81332
81333         * gnulib-tool (func_create_testdir): Warn about duplicated
81334         dependencies.
81335
81336 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81337
81338         * modules/argmatch, modules/fatal, modules/obstack,
81339         modules/xalloc, modules/xgethostname: Sort dependencies by
81340         importance, not alphabetically.
81341
81342 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81343
81344         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81345         fails, so that the caller gets the proper errno.
81346
81347         * lib/readutmp.c (read_utmp): Likewise.
81348         Check for fstat error.  Close stream and free storage
81349         when failing.
81350
81351 2003-09-14  Karl Berry  <karl@gnu.org>
81352
81353         * config/srclist.txt (strdup.c): disable for c89 changes.
81354
81355 2003-09-14  Jim Meyering  <jim@meyering.net>
81356
81357         * lib/getloadavg.c: Correct cpp indentation.
81358         * lib/strdup.c: Likewise.
81359         * lib/vasnprintf.c: Likewise.
81360
81361 2003-09-14  Bruno Haible  <bruno@clisp.org>
81362
81363         * modules/fwriteerror: New file.
81364         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81365
81366 2003-09-14  Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/fwriteerror.h: New file.
81369         * lib/fwriteerror.c: New file.
81370
81371 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81372
81373         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81374         modules/xgethostname, modules/xalloc: Depend on exit.
81375
81376 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81377
81378         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81379
81380         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81381         and AC_MINIX, too, so that their extensions are available.
81382
81383         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81384         This macro has been superseded by gl_BACKUPFILE.
81385
81386         More patches to assume C89 or better.
81387
81388         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81389
81390         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81391         unconditionally.
81392         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81393         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81394         Include <string.h>, <stdlib.h> unconditionally.
81395         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81396         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81397         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81398         headers or for string.h.
81399         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81400         or strtoul.
81401
81402         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81403         headers.
81404         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81405         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81406         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81407         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81408         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81409         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81410         memcpy, memset.
81411         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81412         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81413         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81414         strtol.
81415         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81416         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81418         strtoul.
81419
81420 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81421
81422         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81423         * lib/obstack.c [!defined _LIBC]: Likewise.
81424         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81425         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81426         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81427
81428         More changes to assume C89 or better.
81429
81430         * lib/error.c (error_tail): Assume vprintf.
81431
81432         * lib/argmatch.c (getenv): Remove decl.
81433         * lib/progreloc.c (get_full_program_name): Define via prototype.
81434         * lib/setenv.c (clearenv): Likewise.
81435         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81436         needed.
81437         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81438         (malloc, memcpy): Remove decls.
81439         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81440         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81441         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81442         (memcpy): Remove macro.
81443         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81444         (__P): Remove.  All uses removed.
81445         (PTR): Remove.  All uses changed to void *.
81446         (CHAR_BIT, NULL): Remove.
81447         (spaces, zeros, memset_space, memset_zero)
81448         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81449         Remove.
81450         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81451         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81452         Define with prototype.
81453         Remove now-unnecessary prototype decl.
81454         (extra_args_spec): Assume ANSI C.  All uses changed.
81455         (extra_args_spec_iso): Remove.
81456         (my_strftime, emacs_strftimeu): Define via prototype.
81457         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81458         unconditionally.
81459         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81460         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81461         (strtoul, strtol): Remove decls.
81462         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81463         LONG_MAX): Remove.
81464         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81465         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81466         (LOCALE_PARAM_PROTO): New macro.
81467         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81468         (INTERNAL (strtol), strtol): Define with a prototype.
81469         (PARAMS): Remove.  All uses removed.
81470         * lib/tempname.c: Include <string.h> unconditionally.
81471         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81472         * lib/xgethostname.c (main): Define with a prototype.
81473         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81474         Include <stdlib.h> unconditionally.
81475         (calloc, malloc, realloc, free): Remove decls.
81476         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81477         Include <stdlib.h> unconditionally.  Sort include file names.
81478         (strtod): Remove.
81479         (xstrtod): Define with a prototype.
81480         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81481         (strtol, strtoul): Remove decls.
81482
81483 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81484
81485         More patches to assume C89 or better.
81486         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81487         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81488         string.h, memchr, STDC_HEADERS.
81489
81490 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81491
81492         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81493         Include <stdlib.h>, <string.h> unconditionally.
81494         Remove now-unnecessary cast to char *.
81495         * lib/strnlen.c: Include <string.h> unconditionally.
81496         * lib/yesno.c (yesno): Define with a prototype.
81497
81498 2003-09-11  Bruno Haible  <bruno@clisp.org>
81499
81500         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81501
81502 2003-09-10  Jim Meyering  <jim@meyering.net>
81503
81504         * lib/error.c: Correct indentation of cpp directives.
81505
81506 2003-09-10  Bruno Haible  <bruno@clisp.org>
81507
81508         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81509         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81510         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81511         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81512         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81513         <stdlib.h> and <string.h> checks.
81514         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81515         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81516
81517 2003-09-10  Bruno Haible  <bruno@clisp.org>
81518
81519         * lib/strcspn.c: Include <string.h> unconditionally.
81520         * lib/strpbrk.c: Include <string.h> unconditionally.
81521         * lib/strstr.c: Include <string.h> unconditionally.
81522         * lib/unicodeio.c: Include <string.h> unconditionally.
81523         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81524         * lib/unsetenv.c: Likewise.
81525         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81526         * lib/yesno.c: Include <stdlib.h> unconditionally.
81527         (rpmatch): Add prototype.
81528
81529 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81530
81531         More patches to assume C89 or better.
81532         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81533         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81534         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81535         or for string.h.
81536         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81537         stdlib.h.
81538         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81539         C headers.
81540         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81541         string.h.
81542         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81543         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81544         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81545         or for string.h.
81546         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81547         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81548         C headers.
81549         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81550         memcpy.
81551         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81552         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81553         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81554         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81555         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81556         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81557         string.h, free.
81558         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81559         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81560         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81561         C headers, or for string.h.
81562         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81563         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81564         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81565         headers, memory.h, stdlib.h, string.h, strings.h.
81566         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81567         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81568         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81569         strchr.
81570         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81571         headers, memory.h, string.h.
81572         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81573         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81574         free.
81575         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81576         headers.
81577         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81578         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81579         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81580         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81581         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81582
81583 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81584
81585         More K&R removal.
81586
81587         * lib/acosl.c (main): Use a prototype.
81588         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81589         tanl.c: Likewise.
81590
81591         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81592
81593         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81594         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81595         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81596         with a prototype.
81597         * lib/getopt.c (const): Remove macro.
81598         Include <string.h> unconditionally.
81599         (my_index): Remove; all uses changed to strchr.
81600         (strlen): Remove decl.
81601         (exchange): Remove forward decl; no longer needed.
81602         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81603         Define with prototype.
81604         * lib/getopt1.c (const): Remove macro.
81605         (getopt_long, getopt_long_only, main): Define with prototype.
81606
81607         * lib/getugroups.c: Include <string.h> unconditionally.
81608
81609         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81610         (getusershell, setusershell, endusershell, readname, main):
81611         Define with prototypes.
81612
81613         * lib/group-member.c: Include group-member.h first.
81614         Include <stdlib.h> unconditionally.
81615
81616         * lib/hard-locale.c: Include hard-locale.h first.
81617         Include <stdlib.h>, <string.h> unconditionally.
81618
81619         * lib/hash.c (free, malloc): Remove decls.
81620         Include <stdlib.h> unconditionally.
81621
81622         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81623         (getenv): Do not declare.
81624
81625         * lib/idcache.c: Include <string.h> unconditionally.
81626
81627         * lib/long-options.c: Include long-options.h first, to test interface.
81628         Include <stdlib.h> unconditionally.
81629
81630         * lib/makepath.c: Include makepath.h first, to test interface.
81631         Include <stdlib.h> and <string.h> unconditionally.
81632
81633         * lib/linebuffer.c: Include <stdlib.h>.
81634         (free): Remove decl.
81635
81636         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81637         stddef.h. rpl_malloc returns void *, not char *.
81638         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81639         prototype.
81640
81641         * lib/md5.h: Include <limits.h> unconditionally.
81642         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81643         (__P): Remove; all uses removed.
81644         * lib/md5.c: Include "md5.h" first.
81645         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81646         md5_buffer, md5_process_bytes, md5_process_block):
81647         Define with prototypes.
81648         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81649         * lib/sha.c: Include "sha.h" first.
81650         Include <stdlib.h>, <string.h> unconditionally.
81651
81652         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81653         * lib/memcmp.c (__ptr_t): Likewise.
81654         * lib/memrchr.c (__ptr_t): Likewise.
81655         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81656         Include <string.h> unconditionally.
81657         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81658         * lib/memchr.c: Include <stdlib.h> unconditionally.
81659         * lib/memchr.c (LONG_MAX): Remove.
81660         * lib/memrchr.c (LONG_MAX): Likewise.
81661         * lib/memchr.c (__memchr): Define via a prototype.
81662         * lib/memrchr.c (__memrchr): Likewise.
81663         * lib/memcmp.c (__P): Remove, and remove all uses.
81664         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81665         Remove forward decls; no longer needed.
81666         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81667         Use types required by C89 in prototype.
81668
81669         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81670         * lib/savedir.c: Likewise.
81671         * lib/mkdir.c (free): Remove decl.
81672         * lib/rmdir.c (rmdir): Define with a prototype.
81673         * lib/savedir.c: Include savedir.h first, to test interface.
81674
81675         * lib/mktime.c (STDC_HEADERS): Remove.
81676         Include <stdlib.h>, <string.h> unconditionally.
81677
81678         * lib/modechange.c: Include <stdlib.h> unconditionally.
81679         (malloc): Remove decl.
81680
81681         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81682         (free): Remove decl.
81683
81684         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81685         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81686         (This type really should be intptr_t, but that's a C99ism.)
81687         (_obstack_memcpy): Remove: all uses changed to memcpy.
81688         Include <string.h> unconditionally.
81689         (struct obstack): Assume __STDC__ for types of members
81690         chunkfun, freefun, extra_arg.
81691         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81692         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81693         obstack_begin, obstack_specify_allocation,
81694         obstack_specify_allocation_with_arg, obstack_chunkfun,
81695         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81696         Remove unprototyped decls and the macros that use them.
81697         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81698         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81699         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81700         (defined __STDC__ && __STDC__)]:
81701         Remove nonprototyped code.
81702         Include <stdlib.h> unconditionally.
81703         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81704         _obstack_allocated_p, _obstack_free, obstack_free,
81705         _obstack_memory_used, print_and_abort):
81706         Define using prototypes.
81707         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81708         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81709         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81710         obstack_next_free, obstack_object_size, obstack_room) [0]:
81711         Remove unused, unprototyped code.
81712
81713         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81714
81715         * lib/physmem.c (physmem_total, physmem_available, main): Define
81716         with prototypes.
81717
81718         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81719         (main): Define with a prototype.
81720
81721         * lib/posixver.c (getenv): Remove decl.
81722
81723         * lib/putenv.c (malloc): Returns void *, not char *.
81724         Include <string.h> unconditionally.
81725         (strchr, memcpy, NULL): Do not define.
81726
81727         * lib/readtokens.c: Include readtokens.h first, to test interface.
81728         Include <stdlib.h>, <string.h> unconditionally.
81729         (init_tokenbuffer): Define with a prototype.
81730
81731         * lib/regex.c (PARAMS): Remove.  All uses removed.
81732         All uses of _RE_ARGS removed, too.
81733         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81734         unconditionally.
81735         (bzero): Assume memset exists.
81736         (memcmp, memcpy, NULL): Remove.
81737         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81738         char, or assignments to local vars of type signed char.
81739         (init_syntax_once, PREFIX(extract_number_and_incr),
81740         PREFIX(print_partial_compiled_pattern),
81741         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81742         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81743         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81744         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81745         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81746         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81747         wcs_compile_range, byte_compile_range, truncate_wchar,
81748         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81749         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81750         count_mbs_length, wcs_re_match_2_internal,
81751         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81752         PREFIX(alt_match_null_string_p),
81753         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81754         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81755         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81756         now-unnecessary declaration, if any.
81757         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81758         regcomp, regexec):
81759         Remove now-unnecessary casts among pointer types.
81760         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81761
81762         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81763         (free): Remove decl.
81764
81765         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81766
81767         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81768         (free): Remove decl.
81769
81770         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81771         * lib/xgetcwd.c: Likewise.
81772
81773         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81774         (free): Remove decl.
81775
81776         * lib/strchrnul.c (strchrnul): Define with a prototype.
81777         Fix bug: c_in was not converted to char before searching.
81778
81779         The following changes are not K&R related:
81780
81781         * lib/group-member.h: Include <sys/types.h>, so that this file is
81782         self-contained.
81783         * lib/makepath.h: Likewise.
81784
81785         * lib/getusershell.c (readname, default_index, line_size, readname):
81786         Use size_t, not int, for sizes.
81787         (readname): If the size overflows, report an error instead of
81788         looping forever.
81789
81790 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81791
81792         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81793         libc.
81794
81795 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81796
81797         * README: New section: portability guidelines.
81798
81799 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81800
81801         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81802         C89 spec.
81803
81804 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81805
81806         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81807
81808 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81809
81810         Assume C89 or better; remove K&R cruft.
81811         A few of these changes were first proposed by Derek Robert Price
81812         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81813
81814         * lib/addext.c: Include <string.h> unconditionally.
81815         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81816         Don't declare getenv or malloc.
81817
81818         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81819         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81820         (NULL): Remove.
81821         (find_stack_direction, alloca): Use prototypes.
81822
81823         * lib/atexit.c (atexit): Define using a prototype.
81824
81825         * lib/basename.c, dirname.c, stripslash.c:
81826         Include <string.h> unconditionally.
81827
81828         * lib/bcopy.c: Include <stddef.h>.
81829         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81830
81831         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81832
81833         * lib/error.h (error, error_at_line, error_print_progname)
81834         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81835         * lib/error.c: Include error.h first, to check interface.
81836         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81837         (VA_START): Remove; all uses changeed to va_start.
81838         (exit, strerror): Remove decls.
81839         (error_print_progname): Prototype uncondionally.
81840         Don't include <errno.h>; no longer needed.
81841         (private_strerror): Remove.
81842         (error_tail): Always define.
81843         (error, error_at_line): Assume C89 or better; always use prototypes.
81844         * lib/fatal.c: Include "fatal.h" first, to test interface.
81845         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81846         (VA_START): Remove; all uses changed to va_start.
81847         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81848         this case.
81849         (exit): Remove decl.
81850         (fatal): Prototype unconditionally.  Assume va_start works.
81851         Abort at end, to pacify gcc.
81852
81853         * lib/euidaccess.c (main): Define with a prototype.
81854
81855         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81856
81857         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81858
81859         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81860         prototypes.
81861         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81862         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81863         (getenv): Remove decl.
81864         (fnmatch): Define using a prototype.
81865         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81866         (FCT): Define using a prototype.
81867
81868         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81869
81870         * lib/gethostname.c: Include <stddef.h>.
81871         (gethostname): Define with prototype.  Length is size_t, not int.
81872
81873 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81874
81875         Assume C89 or better; remove K&R cruft.
81876         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81877         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81878         string.h, getenv, malloc.
81879         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81880         headers.
81881         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81882         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81883         do not check for strerror.
81884         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81885         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81886         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81887         do not check for doprnt or vprintf.
81888         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81889         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81890
81891 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81892
81893         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81894         getversion.c should have been removed then, but was accidentally
81895         preserved.
81896
81897         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81898         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81899
81900 2003-09-08  Karl Berry  <karl@gnu.org>
81901
81902         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81903                 config, forget about prep.
81904
81905         * config/depcomp, missing: update from automake.
81906
81907 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81908
81909         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81910         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81911
81912 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81913
81914         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81915         copy_tm_result.  Bug reported by Simon Josefsson in
81916         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81917
81918 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81919
81920         * m4/time_r.m4: New file.
81921         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81922         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81923         is. Check for timegm declaration.
81924         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81925         Do not check for gmtime_r.
81926         Replace mktime if __mktime_internal does not exist and if mktime
81927         hasn't been replaced already.
81928
81929 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81930
81931         * lib/time_r.c, lib/time_r.h: New files.
81932
81933         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81934         __localtime_r.
81935         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81936         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81937
81938         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81939         __gmtime_r.
81940         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81941         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81942         Include <time_r.h>.
81943
81944         * lib/timegm.c: Switch to glibc implementation, with the following
81945         changes:
81946         [defined HAVE_CONFIG_H]: Include <config.h>.
81947         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81948         (__mktime_internal) [!defined _LIBC]: New decl.
81949         (__gmtime_r) [!defined _LIBC]: New macro and function.
81950         (timegm): Use a prototype, since gnulib assumes C89.
81951         Do not bother declaring tmp to be const, as it's not really usefu.
81952         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81953         (timegm): Declare only if HAVE_DECL_TIMEGM.
81954
81955 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81956
81957         * MODULES.html.sh (func_all_modules): Add time_r.
81958         * modules/time_r: New file.
81959         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81960         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81961
81962 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81963
81964         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81965         Bug reported by Lute Kamstra in
81966         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81967
81968         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81969         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81970         course with correspondingly smaller numbers for tomorrow and
81971         yesterday.  From Tadayoshi Funaba.  Originally installed into
81972         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81973         coreutils merge?).
81974
81975 2003-08-31  Simon Josefsson  <jas@extundo.com>
81976
81977         * modules/timegm: New file.
81978         * MODULES.html.sh (func_all_modules): Add timegm.
81979
81980 2003-08-31  Simon Josefsson  <jas@extundo.com>
81981
81982         * m4/timegm.m4: New file.
81983
81984 2003-08-31  Simon Josefsson  <jas@extundo.com>
81985
81986         * lib/timegm.h: New file.
81987         * lib/timegm.c: New file.  Based on
81988         wget-1.8.2/src/http.c:mktime_from_utc.
81989
81990 2003-08-31  Karl Berry  <karl@gnu.org>
81991
81992         * lib/argp.h: update from libc.
81993
81994 2003-08-28  Bruno Haible  <bruno@clisp.org>
81995
81996         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81997         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81998         followed by '#define fnmatch fnmatch_posix' gives an error.
81999
82000 2003-08-28  Bruno Haible  <bruno@clisp.org>
82001
82002         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82003         warning on QNX, which defines O_BINARY to 000000.
82004
82005 2003-08-27  Jim Meyering  <jim@meyering.net>
82006
82007         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82008         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82009         would fail after 32.  Reported by Danny Levinson.  Details here:
82010         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82011
82012 2003-08-24  Bruno Haible  <bruno@clisp.org>
82013
82014         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82015         MSVC7 <stdio.h> is included later.
82016
82017 2003-08-22  Simon Josefsson  <jas@extundo.com>
82018
82019         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82020
82021 2003-08-20  Karl Berry  <karl@gnu.org>
82022
82023         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82024
82025 2003-08-20  Bruno Haible  <bruno@clisp.org>
82026
82027         * modules/progname: New file.
82028         * MODULES.html.sh (func_all_modules): Add progname.
82029
82030 2003-08-20  Bruno Haible  <bruno@clisp.org>
82031
82032         * lib/progname.h: New file, from GNU gettext.
82033         * lib/progname.c: New file, from GNU gettext.
82034         * lib/progreloc.c: New file, from GNU gettext.
82035
82036 2003-08-19  Jim Meyering  <jim@meyering.net>
82037
82038         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82039         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82040
82041 2003-08-19  Bruno Haible  <bruno@clisp.org>
82042
82043         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82044         more.
82045
82046 2003-08-19  Bruno Haible  <bruno@clisp.org>
82047
82048         * lib/xstrdup.c: Assume <string.h> exists.
82049
82050 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82051
82052         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82053         in makefile rules.
82054
82055 2003-08-18  Jim Meyering  <jim@meyering.net>
82056
82057         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82058         * m4/lib-ld.m4: Likewise.
82059
82060 2003-08-18  Jim Meyering  <jim@meyering.net>
82061
82062         * lib/setenv.h: Indent nested cpp directive.
82063         * lib/vasnprintf.c: Remove trailing blanks.
82064
82065 2003-08-17  Simon Josefsson  <jas@extundo.com>
82066
82067         * modules/xstrndup: New file.
82068         * MODULES.html.sh (func_all_modules): Add xstrndup.
82069
82070 2003-08-17  Simon Josefsson  <jas@extundo.com>
82071
82072         * modules/argp: Fix autoconf macro name. Add more dependencies.
82073
82074 2003-08-17  Simon Josefsson  <jas@extundo.com>
82075
82076         * m4/xstrndup.m4: New file.
82077
82078 2003-08-17  Simon Josefsson  <jas@extundo.com>
82079
82080         * m4/argp.m4: New file.
82081
82082 2003-08-17  Simon Josefsson  <jas@extundo.com>
82083             Bruno Haible  <bruno@clisp.org>
82084
82085         * lib/xstrndup.h: New file.
82086         * lib/xstrndup.c: New file.
82087
82088 2003-08-17  Bruno Haible  <bruno@clisp.org>
82089
82090         * modules/strndup (Files, Include): Add lib/strndup.h.
82091
82092 2003-08-17  Bruno Haible  <bruno@clisp.org>
82093
82094         * modules/euidaccess (Files): Add lib/euidaccess.h.
82095
82096 2003-08-17  Bruno Haible  <bruno@clisp.org>
82097
82098         * lib/strndup.h: New file.
82099
82100 2003-08-17  Bruno Haible  <bruno@clisp.org>
82101
82102         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82103         like AC_GNU_SOURCE.
82104         * modules/extensions (configure.ac): Comment out the invocation of
82105         gl_USE_SYSTEM_EXTENSIONS.
82106
82107 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82108
82109         Merges from coreutils, etc.
82110         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82111         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82112         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82113         fixing a typo.
82114         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82115         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82116
82117 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82118
82119         Document merge from coreutils.
82120         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82121         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82122         * modules/utime: Add m4/utimes-null.m4.
82123
82124 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82125
82126         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82127         space, undoing this 2003-08-12 change:
82128         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82129
82130 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82131
82132         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82133         strtoul.c from libc, undoing this 2003-08-12 change:
82134         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82135
82136 2003-08-16  Jim Meyering  <jim@meyering.net>
82137
82138         Merges from coreutils.
82139         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82140         prefix.  Adjust cache variables similarly.  Create 500 rather than
82141         just 300 files, to exercise bug on Darwin6.5, too.
82142         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82143         $missing_dir.
82144         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82145         AM_SYS_POSIX_TERMIOS.
82146         Reported by mkc@mathdogs.com.
82147         Also change use of $am_cv_sys_posix_termios
82148         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82149         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82150         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82151         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82152         in /proc/mounts until it finds one with matching device number.  This
82153         is unnecessary when the FILE argument *is* a mount point.  No stat call
82154         is necessary in that case.  So, disable the statvfs-testing code on
82155         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82156         as RedHat bug# 84846.
82157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82158         to 1MB, so as not to render systems with no stack size limit (e.g.,
82159         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82160         Include <unistd.h>.  On some systems,
82161         it is required for the definition of _SC_PAGESIZE.
82162
82163 2003-08-16  Jim Meyering  <jim@meyering.net>
82164
82165         Merge from coreutils.
82166         * lib/xstrtoimax.c: #else #if -> #elif.
82167         * lib/xstrtoumax.c: Likewise.
82168
82169 2003-08-16  Jim Meyering  <jim@meyering.net>
82170
82171         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82172         * m4/utimes.m4: Removed.
82173         * m4/utimes-null.m4: Renamed from utimes.m4.
82174
82175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82176         to 1MB, so as not to render systems with no stack size limit (e.g.,
82177         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82178         Include <unistd.h>.  On some systems,
82179         it is required for the definition of _SC_PAGESIZE.
82180
82181 2003-08-16  Jim Meyering  <jim@meyering.net>
82182         and Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         Merges from coreutils, etc.
82185
82186         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82187         using the latest version from cvs.  This avoids problems with #line
82188         directives using a vendor (Sun) compiler.
82189         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82190         Don't set GETGROUPS_LIB here; now it's
82191         done via getgroups.m4's wrapper function.
82192         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82193         rather than just in sh-util/configure.in, so that the
82194         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82195         same.
82196         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82197         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82198         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82199         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82200         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82201         Remove code that is now done by the newly-required macros.
82202         Append $(EXEEXT) to DF_PROG.
82203         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82204         Do not invoke or require the following here,
82205         since prereq.m4 or some gnulib .m4 now does this for us:
82206         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82207         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82208         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82209         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82210         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82211         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82212         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82213         AC_FUNC_OBSTACK.
82214         Do not replace the following functions, as this is now the job
82215         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82216         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82217         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82218         atexit getpass, strdup, getpagesize.
82219         Replace 'raise'.
82220         Do not check for the following functions, as this is now the job
82221         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82222         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82223         setregid.
82224         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82225         Check for sys/sysctl.h.
82226         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82227         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82228         of checking for ssize_t ourselves.
82229
82230         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82231         Require every macro that gnulib/modules/* suggests for us.
82232         (jm_PREREQ_ADDEXT): New macro.
82233         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82234         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82235
82236         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82237         (gl_PHYSMEM): Use it.
82238         Also check for `table' function.
82239         Check for new headers and functions.
82240         Add check for sys/sysmp.h.
82241         With suggestions from Kaveh Ghazi.
82242         Ignore headers that are present but cannot be compiled.  This
82243         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82244         C 5.4.
82245
82246 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82247
82248         Document merge from coreutils.
82249         * modules/userspec: Depend on posixver.
82250         * modules/strftime: Depend on tzset.
82251
82252 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82253
82254         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82255         rather than tab, after '#' in shell-script copyright notices.
82256         Suggested by Bruno Haible.
82257
82258 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82259
82260         * config/srclist-update: Use three spaces, rather than tab, after '#'
82261         in shell-script copyright notices.  Suggested by Bruno Haible.
82262         Remove unnecessary parenthesization in regular expression.
82263
82264 2003-08-15  Jim Meyering  <jim@meyering.net>
82265
82266         Merge from coreutils.
82267         * lib/xgethostname.c: Include <stdlib.h>.
82268         (xghostname): Don't exit for anything other than memory-related
82269         failure; just return NULL.
82270         * lib/userspec.c: Include "posixver.h".
82271         (parse_user_spec): Accept `.' as a separator only
82272         in pre-POSIX-200112 mode.
82273         * lib/strtoimax.c: Use #elif rather than #else #if.
82274         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82275         Remove function, now that we can rely on a working tzset function.
82276         [!_LIBC]: Ensure that the required autoconf test has been run.
82277         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82278         Use underlying_strftime for %r.
82279         * lib/sha.c: Merge in some clean-up and optimization changes from
82280         glibc.
82281         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82282         Ensure that it is a multiple of 64.
82283         Rearrange loop exit tests so as to avoid performing an
82284         additional fread after encountering an error or EOF.
82285         * lib/realloc.c: Update copyright date.
82286
82287 2003-08-15  Jim Meyering  <jim@meyering.net>
82288         and Paul Eggert  <eggert@twinsun.com>
82289
82290         Merge from coreutils.
82291         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82292         member but strut utmpx does not.  Needed for AIX 4.3.3.
82293         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82294
82295 2003-08-15  Jim Meyering  <jim@meyering.net>
82296         and Paul Eggert  <eggert@cs.ucla.edu>
82297
82298         Merges from coreutils, etc.
82299         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82300         Require gl_FUNC_TZSET_CLOBBER.
82301         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82302         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82303         members.
82304
82305 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82306
82307         Help the merge from coreutils.
82308         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82309         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82310         * m4/tzset.m4: Use it too.
82311
82312 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82313
82314         * modules/tzset: New file.
82315
82316 2003-08-14  Jim Meyering  <jim@meyering.net>
82317
82318         Merges from coreutils.
82319         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82320         variable names, rather than @FNMATCH_H@.
82321         * modules/alloca: Likewise for $(ALLOCA_H).
82322
82323         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82324         the three copies of the literal target, `fnmatch.h'.
82325         * modules/alloca (alloca.h): Likewise.
82326
82327 2003-08-14  Jim Meyering  <jim@meyering.net>
82328
82329         Merge from coreutils.
82330         * m4/tzset.m4: New file.
82331         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82332         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82333         otherwise, AIX 5.1 systems would end up using the latter.
82334         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82335         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82336         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82337         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82338
82339 2003-08-14  Jim Meyering  <jim@meyering.net>
82340
82341         Merge from coreutils.
82342         * lib/obstack.h: Whitespace changes.
82343         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82344         and xcalloc return values.
82345         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82346         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82347         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82348         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82349         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82350         error from mntctl.
82351         Use mntctl's return value to drive the entry-processing loop, since
82352         we can't rely on the value of the vmt_length member in the last
82353         entry.  On some systems doing so could result in exhausting
82354         virtual memory.  Based in part on a patch from Mike Jetzer.
82355
82356 2003-08-14  Jim Meyering  <jim@meyering.net>
82357         and Paul Eggert  <eggert@twinsun.com>
82358
82359         Merges from coreutils, plus other fixes.
82360         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82361         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82362         for credits and details.  Thanks to Kaveh Ghazi for helping
82363         to keep these files in sync.
82364         (ARRAY_SIZE): Define it.
82365         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82366         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82367         (memcasecmp): Don't assume size_t fits in unsigned int.
82368         Remove casts and duplicate code.
82369         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82370         (memcpy): Remove definition.
82371         Merge in some clean-up and optimization changes from glibc.
82372         [BLOCKSIZE]: Move definition to top of file.
82373         Ensure that it is a multiple of 64.
82374         Rearrange loop exit tests so as to avoid performing an
82375         additional fread after encountering an error or EOF.
82376         * lib/md5.h (md5_uintptr): Define.
82377         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82378         return to the initial working directory.  Preserve errno
82379         for caller.
82380         * lib/idcache.c: Include "xalloc.h".
82381         (xmalloc, xrealloc): Remove decls.
82382         (getuser): Remove casts no longer required in C89.
82383         * lib/human.c: Include stdio.h, for sprintf.
82384         * lib/group-member.c: Include "xalloc.h".
82385         (xmalloc, xrealloc): Remove decls.
82386         (get_group_info): Remove casts no longer required in C89.
82387         * lib/getusershell.c (readname): Remove casts no longer required in
82388         C89.
82389         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82390         * lib/getline.c: Whitespace fix, from coreutils.
82391
82392 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82393
82394         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82395         Check for isascii.
82396
82397         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82398         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82399         Undo previous (whitespace-only) change.
82400
82401 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82402
82403         * lib/exclude.c: Include <ctype.h>
82404         (IN_CTYPE_DOMAIN): New macro.
82405         (is_space): New fn.
82406         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82407         and empty lines.
82408
82409         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82410         Undo previous (whitespace-only) change.
82411
82412 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82413
82414         * config/srclist-update: Change update back to the old behavior,
82415         leaving whitespace alone.  Use one 'sed' command rather than a
82416         pipeline.
82417         (fixlicense): Now a variable, not a function.
82418         (remove_trailing_blanks): Remove.
82419         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82420         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82421         Undo previous (whitespace-only) change.
82422
82423 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82424
82425         Merge from coreutils.
82426         * modules/euidaccess: Add lib_SOURCES, include for new
82427         file euidaccess.h
82428
82429 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82430
82431         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82432         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82433         Normalize leading white space and remove trailing white space.
82434
82435         Merge from coreutils
82436         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82437
82438         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82439         0.12.1.  These files are now being upgraded automatically by
82440         ../config/srclist-update.
82441
82442 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82443
82444         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82445         Normalize leading white space and remove trailing white space.
82446         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82447         notice, as per ../config/srclist-update.
82448
82449         Merge from coreutils.
82450         * lib/euidaccess.h: New file.
82451         * lib/euidaccess.c: Include it.
82452         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82453         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82454         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82455
82456 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82457
82458         * config/srclist-update: Add copyright notice.
82459         (remove_id_lines, remove_trailing_blanks): New constants.
82460         (fixfile): Use them to normalize spacing a bit in copied files.
82461         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82462         Normalize leading white space and remove trailing white space.
82463
82464         * config/texinfo.tex: Sync with texinfo.
82465
82466         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82467         strtoul.c from libc, to merge coreutils whitespace changes.
82468
82469         * config/srclist.txt: Get the following m4 files from gettext:
82470         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82471         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82472         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82473         wint_t.m4.
82474
82475 2003-08-12  Karl Berry  <karl@gnu.org>
82476
82477         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82478         been made.
82479
82480 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82481
82482         * modules/gnu-source, m4/gnu-source.m4:
82483         Remove; we're assuming Autoconf 2.54 or later now.
82484         Suggested by Bruno Haible.
82485         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82486
82487 2003-08-11  Bruno Haible  <bruno@clisp.org>
82488
82489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82490
82491 2003-08-11  Bruno Haible  <bruno@clisp.org>
82492
82493         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82494         (vasnprintf): Use it instead of wcslen.
82495
82496 2003-08-11  Bruno Haible  <bruno@clisp.org>
82497
82498         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82499         value to ensure that _Bool promotes to int. Use #define for _Bool when
82500         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82501
82502 2003-08-10  Karl Berry  <karl@gnu.org>
82503
82504         * lib/regex.h: update from libc (whitespace fix).
82505
82506 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82507
82508         Merge some files from coreutils.  These changes were
82509         originally made by Jim Meyering.
82510         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82511         many older Unixes require this.
82512         * lib/alloca.c (alloca): Remove cast to argument of free;
82513         no longer needed in C89.
82514         * lib/alloca_.h, regex.h: Fix white space to match
82515         what GNU indent does.
82516
82517 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82518
82519         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82520         apparently Emacs's Unicode mode got confused before my 2003-08-05
82521         checkin.
82522
82523 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82524
82525         * m4/extensions.m4: New file.
82526         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82527         Require gl_USE_SYSTEM_EXTENSIONS.
82528         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82529         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82530
82531 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82532
82533         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82534         * modules/extensions, modules/gnu-source: New files.
82535         * modules/timespec, modules/unlocked-io: Depend on extensions.
82536
82537 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82538
82539         * modules/restrict: New file.
82540         * MODULES.html.sh (func_all_modules): Add restrict.
82541         * modules/regex: Depend on restrict.
82542
82543 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82544
82545         * m4/restrict.m4: New file.
82546         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82547
82548 2003-08-07  Bruno Haible  <bruno@clisp.org>
82549
82550         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82551         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82552
82553 2003-08-07  Bruno Haible  <bruno@clisp.org>
82554
82555         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82556         makes the module 'getndelim2' compatible with the module 'getline'.
82557
82558 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82559
82560         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82561         byte with "\201" to avoid glitches when editing that source file
82562         with multi-gnome-terminal.
82563
82564 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82565
82566         * lib/bumpalloc.h: Remove.
82567
82568 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82569
82570         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82571         * modules/bumpalloc: Remove.
82572
82573 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82574
82575         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82576         GNU coding style.
82577
82578         Merge from coreutils.
82579         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82580         1. From glibc.
82581         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82582         from Karl Berry, implemented by Jim Meyering.
82583         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82584         from Dmitry V. Levin.
82585         Remove anachronistic cast of xrealloc.
82586         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82587         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82588         type. Otherwise, it wouldn't compile with at least /bin/cc on
82589         ymp-cray-unicos9.0.2.X.
82590         Combine two mostly-identical uses of alloca into one.
82591         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82592
82593 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82594
82595         [From Emacs.]
82596
82597         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82598         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82599         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82600         obsolete NLIST_NAME_UNION.
82601         [__GNU__]: Undef BSD and FSCALE.
82602         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82603
82604 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82605
82606         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82607         an enum type, so that it's guaranteed to promote to int.  See:
82608         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82609
82610 2003-08-03  Karl Berry  <karl@gnu.org>
82611
82612         * config/depcomp: update from automake.
82613
82614 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82615
82616         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82617         (strerror): Don't assume that a printable int fits in 14 bytes.
82618
82619 2003-07-31  Bruno Haible  <bruno@clisp.org>
82620
82621         * modules/getpass-gnu: New file.
82622         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82623
82624 2003-07-31  Bruno Haible  <bruno@clisp.org>
82625
82626         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82627
82628 2003-07-24  Karl Berry  <karl@gnu.org>
82629
82630         * config/missing: update from automake.
82631
82632 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82633             Bruno Haible  <bruno@clisp.org>
82634
82635         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82636         * lib/getline.c (getline, getdelim): Likewise.
82637         Remove _GNU_SOURCE define; now it's defined in config.h through
82638         m4/getline.m4.
82639
82640 2003-07-23  Karl Berry  <karl@gnu.org>
82641
82642         * config/config.sub: update from prep.
82643
82644 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82645
82646         * modules/xalloc (Depends-on): Add exitfail.
82647         * modules/xmemcoll: Likewise.
82648
82649 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82650
82651         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82652         over-parenthesization in macros.
82653
82654         Sync with coreutils.
82655
82656         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82657         required by C99.
82658
82659         Use `exit_failure' for xalloc and xmemcoll instead of their own
82660         private exit-failure variables.
82661         * lib/xalloc.h (xalloc_exit_failure): Remove.
82662         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82663         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82664         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82665         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82666         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82667
82668 2003-07-20  Jim Meyering  <jim@meyering.net>
82669
82670         * modules/closeout (Depends-on): Add exitfail.
82671         Suggestion from Bruno Haible.
82672
82673 2003-07-19  Karl Berry  <karl@gnu.org>
82674
82675         * config/config.sub: update from prep.
82676
82677 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82678
82679         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82680         Remove.
82681         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82682         to test that it can stand by itself.  Include "exitfail.h".
82683         Clients should set exit_failure instead.
82684         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82685
82686 2003-07-18  Bruno Haible  <bruno@clisp.org>
82687
82688         * modules/getndelim2: New file.
82689         * modules/getline: Share files with module getndelim2.
82690         * modules/getnline: Depend on getndelim2 instead of sharing files with
82691         it. Add getnline.c to lib_SOURCES.
82692         * MODULES.html.sh (func_all_modules): Add getndelim2.
82693
82694 2003-07-18  Bruno Haible  <bruno@clisp.org>
82695
82696         * m4/getndelim2.m4: New file.
82697         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82698         invoke gl_PREREQ_GETNDELIM2.
82699         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82700         gl_PREREQ_GETNDELIM2.
82701         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82702         gl_GETNDELIM2.
82703
82704 2003-07-18  Bruno Haible  <bruno@clisp.org>
82705
82706         * lib/getndelim2.h: New file.
82707         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82708         getndelim2.h.
82709         (getndelim2): Make non-static. Change return type to ssize_t.
82710         * lib/getline.h: Change argument names.
82711         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82712         * lib/getnline.c: Include getndelim2.h.
82713
82714 2003-07-18  Andreas Schwab  <schwab@suse.de>
82715
82716         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82717
82718 2003-07-17  Karl Berry  <karl@gnu.org>
82719
82720         * config/config.sub: update from prep.
82721
82722 2003-07-17  Bruno Haible  <bruno@clisp.org>
82723
82724         * modules/getnline: New file.
82725         * modules/getline: Add lib/getndelim2.c to source file list.
82726         * MODULES.html.sh (func_all_modules): Add getnline.
82727
82728 2003-07-17  Bruno Haible  <bruno@clisp.org>
82729
82730         * m4/getnline.m4: New file.
82731
82732 2003-07-17  Bruno Haible  <bruno@clisp.org>
82733
82734         * m4/Makefile.am.in: Remove file.
82735         * m4/Makefile.am: Remove file.
82736         * m4/Makefile.in: Remove file.
82737
82738 2003-07-17  Bruno Haible  <bruno@clisp.org>
82739
82740         * lib/getnline.h: New file.
82741         * lib/getnline.c: New file.
82742         * lib/getndelim2.c: New file, extracted from getline.c.
82743         (getndelim2): Renamed from getdelim2, with added nmax argument.
82744         * lib/getline.c: Include getndelim2.c.
82745         (getdelim2): Moved out to getndelim2.c.
82746         (getline, getdelim): Update.
82747
82748 2003-07-17  Bruno Haible  <bruno@clisp.org>
82749
82750         * lib/Makefile.am: Remove file.
82751         * lib/Makefile.in: Remove file.
82752
82753 2003-07-17  Bruno Haible  <bruno@clisp.org>
82754
82755         * configure.in: Remove file.
82756         * Makefile.in: Remove file.
82757
82758 2003-07-17  Bruno Haible  <bruno@clisp.org>
82759
82760         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82761
82762 2003-07-16  Karl Berry  <karl@gnu.org>
82763
82764         * config/srclist-update: was running fixlicense twice, which caused
82765                 texinfo.tex to be nullified for some reason.  Simplify,
82766                 $gplsrc is no longer needed as far as I can see?
82767
82768 2003-07-16  Jim Meyering  <jim@meyering.net>
82769
82770         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82771
82772 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82773
82774         * config/srclist.txt: Get the following files from gettext-runtime/intl
82775         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82776         ref-del.sin.  From Bruno Haible.
82777         * config/srclist-update (fixfile): Change grep pattern again, since the
82778         previous fix didn't work (there was another trailing $).  Use
82779         '[$]' to escape the $s.
82780
82781 2003-07-15  Karl Berry  <karl@gnu.org>
82782
82783         * lib/vasnprintf.c: update from gettext.
82784
82785 2003-07-15  Karl Berry  <karl@gnu.org>
82786
82787         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82788         gets expanded when surrounded by '$'.
82789
82790 2003-07-15  Jim Meyering  <jim@meyering.net>
82791
82792         * modules/save-cwd: Don't depend on error.  From Derek Price.
82793
82794 2003-07-15  Jim Meyering  <jim@meyering.net>
82795
82796         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82797
82798 2003-07-14  Simon Josefsson  <jas@extundo.com>
82799
82800         * modules/mempcpy: New file.
82801         * MODULES.html.sh (func_all_modules): Add mempcpy.
82802
82803 2003-07-14  Simon Josefsson  <jas@extundo.com>
82804
82805         * m4/mempcpy.m4: New file.
82806
82807 2003-07-14  Simon Josefsson  <jas@extundo.com>
82808
82809         * lib/mempcpy.h: New file.
82810         * lib/mempcpy.c: New file.
82811
82812 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82813
82814         * modules/getdate, modules/posixtm: Depend on mktime.
82815
82816 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82817
82818         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82819         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82820         unicodeio.c, unicodeio.h, unlocked-io.h:
82821         Switch from LGPL to GPL.
82822
82823 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82824
82825         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82826         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82827         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82828         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82829         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82830         updated automatically by ../config/srclist-update.  This changes
82831         their license from LPGL to GPL.
82832
82833 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82834
82835         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82836         assumed to refer to the root of the most recent stable gettext version.
82837         * config/srclistvars.sh: Add defaults for eggert.
82838         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82839         Match "This program" as well as "The program".  This is needed
82840         for gettext.
82841
82842 2003-07-14  Jim Meyering  <jim@meyering.net>
82843
82844         Don't emit diagnostics.  Let callers do that.
82845         * lib/save-cwd.c: Don't include "error.h".
82846         (save_cwd): Don't call error.  Ensure that errno is valid
82847         when returning nonzero.
82848
82849         * lib/save-cwd.h (restore_cwd): Update prototype.
82850         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82851         Simplify.  Don't call error upon failure.  Let callers do that.
82852         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82853         when auditing is enabled.  But don't bother updating the #if.
82854
82855 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82856
82857         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82858         it breaks C++ compilation.
82859         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82860
82861 2003-07-10  Simon Josefsson  <jas@extundo.com>
82862
82863         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82864
82865 2003-07-10  Jim Meyering  <jim@meyering.net>
82866
82867         * m4/clock_time.m4: Remove trailing blank.
82868         * m4/intmax_t.m4: Likewise.
82869
82870 2003-07-10  Jim Meyering  <jim@meyering.net>
82871
82872         * lib/vasnprintf.c: Remove trailing blanks.
82873         Make cpp indentation consistent.
82874
82875 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82876
82877         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82878         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82879         Switch from LGPL to GPL.
82880
82881 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82882
82883         * config/srclist.txt: Sort sublists.  Add
82884         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82885         that differ from gnulib for one reason or another; we'd like this list
82886         to be smaller but for now let's document what we have.
82887
82888 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82889
82890         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82891         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82892         and sweeter "eval x=$x".
82893         * config/srclist.txt: Get lib/argp* from glibc.
82894
82895 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82896
82897         * lib/mktime.c: Fix some boundary cases and remove need for floating
82898         point.
82899
82900         Issue a compile-time diagnostic if time_t is floating point, or if
82901         two's complement arithmetic is not in effect, or if arithmetic
82902         right shift does not propagate the sign.  These assumptions were
82903         all in the original code but they weren't checked.
82904
82905         (TIME_T_MIDPOINT, verify): New macros.
82906         (__isleap): Remove; it has integer overflow problems.
82907         (leapyear): New function, without those problems.
82908         (ydhms_tm_diff): Remove; splitting into two parts.
82909         (ydhms_diff): New function, containing the arithmetic part of
82910         the old ydhms_tm_diff function.  Issue a compile-time
82911         diagnostic if we are not using C99 integer division.
82912         Avoid casts when possible.
82913         (guess_time_tm): New function, containing the checking part of
82914         the old ydhms_tm_diff function.  Return the new value, rather than
82915         the difference between it and the old.  Accept a new argument T
82916         so that *T specifies the old value.  Check for overflow in the result.
82917
82918         (__mktime_internal): Use a time_t offset, not a long int offset.
82919         This undoes the 2003-06-04 change, which is no longer needed now
82920         that we have better overflow checking.
82921         (localtime_offset): Likewise.
82922
82923         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82924         and long are 64-bit but int is only 32-bit.
82925         (ydhms_diff): Use long int to store year1 and yday1.
82926         Issue a compile-time diagnostic if long int is not wide enough.
82927
82928         (__mktime_internal): Use long int to store adjusted year and yday.
82929         Use plain C rather than preprocessor commands, if that doesn't
82930         affect efficiency.
82931         Check for overflow (and try to repair) after each probe
82932         rather than checking only at the very end.  This avoids some bugs
82933         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82934         does not equal GMT offset at maximum time).
82935         Use integer to check for overflow rather than floating point; this
82936         is more portable to non-IEEE hosts, and is a tad faster.
82937         When we detect that we are oscillating between two values,
82938         don't check whether tm_isdst has the requested value, since
82939         we already know the answer.  When tm_isdst has the wrong value,
82940         use a different heuristic to find the right one, based on the
82941         extreme values actually observed in practice in tz2003a,
82942         rather than the (overly optimistic) "previous 3 calendar quarters".
82943
82944         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82945         "T const" to accommodate glibc style.
82946         (check_result): Use less-confusing report format.  "long" -> "long int.
82947         (main): Likewise.
82948         Don't loop if the iteration overflows time_t.
82949         Allow a negative step in the iteration.
82950
82951 2003-07-06  Karl Berry  <karl@gnu.org>
82952
82953         * config/depcomp: update from automake.
82954         * config/config.sub: update from prep.
82955
82956 2003-07-03  Karl Berry  <karl@gnu.org>
82957
82958         * config/config.guess: update from prep.
82959
82960 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82961
82962         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82963         xreadlink.c now includes it unconditionally.
82964
82965 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82966
82967         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82968         having it depend on HAVE_SYS_TYPES_H.
82969
82970 2003-07-01  Bruno Haible  <bruno@clisp.org>
82971
82972         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82973         <sys/types.h> should be sufficient.
82974         Reported by Paul Eggert.
82975
82976 2003-06-26  Karl Berry  <karl@gnu.org>
82977
82978         * config/depcomp: update from automake.
82979
82980 2003-06-26  Bruno Haible  <bruno@clisp.org>
82981
82982         * modules/human: Depend on module stdbool.
82983
82984 2003-06-25  Bruno Haible  <bruno@clisp.org>
82985
82986         * modules/readlink: New file.
82987         * modules/xreadlink: Depend on it.
82988         * MODULES.html.sh (func_all_modules): Add readlink.
82989
82990 2003-06-25  Bruno Haible  <bruno@clisp.org>
82991
82992         * m4/readlink.m4: New file.
82993
82994 2003-06-25  Bruno Haible  <bruno@clisp.org>
82995
82996         * lib/readlink.c: New file.
82997
82998 2003-06-22  Karl Berry  <karl@gnu.org>
82999
83000         * config/srclist.txt: update mkinstalldirs from automake.
83001         * config/mkinstalldirs: update.
83002
83003 2003-06-22  Bruno Haible  <bruno@clisp.org>
83004
83005         Portability to mingw32.
83006         * m4/ssize_t.m4: New file, from GNU gettext.
83007         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83008         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83009
83010 2003-06-22  Bruno Haible  <bruno@clisp.org>
83011
83012         * modules/safe-read: Add m4/ssize_t.m4.
83013         * modules/xreadlink: Add m4/ssize_t.m4.
83014
83015 2003-06-20  Bruno Haible  <bruno@clisp.org>
83016
83017         Assume C89, so PARAMS isn't needed.
83018         * lib/unicodeio.h (PARAMS): Remove.
83019         * lib/unicodeio.c: Don't use PARAMS.
83020
83021 2003-06-18  Karl Berry  <karl@gnu.org>
83022
83023         * config/config.{guess,sub}: update from prep.
83024
83025 2003-06-18  Jim Meyering  <jim@meyering.net>
83026
83027         Merge changes from coreutils.
83028         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83029         Remove explicit declarations of xmalloc and realloc.
83030         Include xalloc.h.
83031         (read_utmp): Remove anachronistic cast of xmalloc.
83032
83033 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83034
83035         Assume C89, so PARAMS isn't needed.
83036         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83037         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83038         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83039         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83040         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83041         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83042         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83043         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83044         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83045         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83046         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83047         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83048         no longer needed. Anyway, config.h should always be included before any
83049         other file.
83050
83051 2003-06-11  Simon Josefsson  <jas@extundo.com>
83052
83053         * modules/sysexits: New file.
83054         * MODULES.html.sh (func_all_modules): Add sysexits.
83055
83056 2003-06-11  Simon Josefsson  <jas@extundo.com>
83057
83058         * lib/sysexit_.h: New file.
83059
83060 2003-06-11  Derek Price  <derek@ximbiot.com>
83061
83062         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83063         necessary.
83064
83065 2003-06-11  Bruno Haible  <bruno@clisp.org>
83066
83067         * m4/sysexits.m4: New file.
83068
83069 2003-06-10  Simon Josefsson  <jas@extundo.com>
83070
83071         * lib/argp.h: New file, from glibc.
83072         * lib/argp-ba.c: New file, from glibc.
83073         * lib/argp-eexst.c: New file, from glibc.
83074         * lib/argp-fmtstream.c: New file, from glibc.
83075         * lib/argp-fmtstream.h: New file, from glibc.
83076         * lib/argp-fs-xinl.c: New file, from glibc.
83077         * lib/argp-help.c: New file, from glibc.
83078         * lib/argp-namefrob.h: New file, from glibc.
83079         * lib/argp-parse.c: New file, from glibc.
83080         * lib/argp-pv.c: New file, from glibc.
83081         * lib/argp-pvh.c: New file, from glibc.
83082         * lib/argp-xinl.c: New file, from glibc.
83083
83084 2003-06-10  Simon Josefsson  <jas@extundo.com>
83085
83086         * modules/strchrnul: New file.
83087
83088 2003-06-10  Simon Josefsson  <jas@extundo.com>
83089
83090         * modules/argp: New file.
83091
83092 2003-06-10  Simon Josefsson  <jas@extundo.com>
83093
83094         * m4/strchrnul.m4: New file.
83095
83096 2003-06-10  Simon Josefsson  <jas@extundo.com>
83097
83098         * lib/strchrnul.h: New file.
83099         * lib/strchrnul.c: New file.
83100
83101 2003-06-10  Bruno Haible  <bruno@clisp.org>
83102
83103         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83104
83105 2003-06-07  Karl Berry  <karl@gnu.org>
83106
83107         * config/config.{guess,sub}: update from prep.
83108
83109 2003-06-07  Jim Meyering  <jim@meyering.net>
83110
83111         * modules/strtod: Use $(...) notation, not @...@ for
83112         AC_REPLACE'd variables.
83113         * modules/localcharset: Likewise.
83114
83115 2003-06-07  Jim Meyering  <jim@meyering.net>
83116
83117         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83118         in place of my name in the copyright comment.
83119         Remove definition and uses of __P.
83120
83121         From coreutils.
83122         * lib/stat.c: Don't declare xmalloc explicitly.
83123         Instead, include "xalloc.h".
83124         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83125         xrealloc, and xcalloc return values.
83126         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83127         Improve comment.
83128         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83129
83130 2003-06-07  Bruno Haible  <bruno@clisp.org>
83131
83132         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83133         avoid AC_CONFIG_LINKS.
83134         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83135         fnmatch.h, to avoid AC_CONFIG_LINKS.
83136         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83137
83138 2003-06-07  Bruno Haible  <bruno@clisp.org>
83139
83140         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83141         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83142         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83143         directory.
83144         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83145         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83146         directory.
83147
83148 2003-06-06  Jim Meyering  <jim@meyering.net>
83149
83150         Merge from coreutils.
83151         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83152         Consolidate declarations and initializations of *_base* locals.
83153
83154         Merge from coreutils.
83155         This avoids a core dump on systems without GNU putenv,
83156         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83157         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83158         (unsetenv): New static function, from GNU libc.
83159         (rpl_putenv): Use it.
83160
83161         * lib/modechange.c: Remove trailing blanks.
83162
83163         Merge from coreutils.
83164         * lib/fsusage.c: Remove declaration of statfs.
83165         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83166
83167         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83168
83169 2003-06-06  Jim Meyering  <jim@meyering.net>
83170
83171         * lib/stdbool_.h: Renamed from stdbool.h.in.
83172
83173 2003-06-06  Jim Meyering  <jim@meyering.net>
83174             Bruno Haible  <bruno@clisp.org>
83175
83176         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83177         Adjust Makefile.am snippet not to redirect directly to target.
83178         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83179
83180 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83181
83182         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83183         mismatch, look in future quarters as well as past.  This fixes a
83184         bug when processing fall-backwards gaps immediately after a long
83185         period of daylight-saving time.
83186
83187         * lib/mktime.c: Assume freestanding C89 or better.
83188         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83189         (__P): Remove; not used.
83190         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83191         (mktime, not_equal_tm, print_tm, check_result,
83192         main): Use prototypes.  Use const * where appropriate.
83193         (main): Fix typo in testing code that uncovered by above changes.
83194         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83195
83196 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83197
83198         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83199         locale.h, localeconv.  This merges changes from coreutils.
83200
83201         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83202         It can be removed after the next Autoconf is released.
83203         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83204         needed.
83205
83206 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83207
83208         * lib/mktime.c: Fix Debian bug 177940
83209         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83210         (localtime_offset): Now long int, not time_t, because we want it
83211         to be guaranteed to be signed.  All uses changed.
83212         (__mktime_internal): If overflow would occur when adding offset,
83213         don't add it.
83214
83215         Merge 'human' changes from coreutils.  Rewrite to support
83216         locale-specific notations like thousands separators.
83217         * lib/human.c: Simplify authorship notice.
83218         Include human.h immediately after config.h.
83219         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83220         <limits.h>: Do not include, since human.h does.
83221         (SIZE_MAX, UINTMAX_MAX): New macros.
83222         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83223         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83224         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83225         (power_letter): Renamed from suffixes.
83226         (generate_suffix_backwards): Remove.
83227         (adjust_value): Now takes int style (because of human.h changes)
83228         and long double value (for greater precision on some platforms).
83229         (group_number): New function.
83230         (human_readable): Use it.  Use integer options, not enum.
83231         Put the options before the sizes in the arg list.
83232         Support all the new options.
83233         The old human_readable function has been removed;
83234         use inttostr.h instead.
83235         (human_readable, default_block_size, humblock):
83236         Use uintmax_t, not int, for block sizes.
83237         (human_readable_inexact, block_size_types): Remove.
83238         (block_size_opts): New constant.
83239         (human_options): Renamed from human_block_size, with new signature
83240         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83241         * lib/human.h: Add copyright and authorship notice.
83242         Include <limits.h> and <stdbool.h> unconditionally.
83243         (PARAMS): Remove.  All uses removed.
83244         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83245         (enum human_inexact_style): Remove tag; now a nameless enum.
83246         (human_floor, human_ceiling, human_round_to_even): Now have
83247         values 2, 0, 1 rather than -1, 1, 0.
83248         (human_group_digits, human_suppress_point_zero, human_autoscale,
83249         human_base_1024, human_SI, human_B): New constants.
83250         (human_readable_inexact, human_block_size): Remove.
83251         (human_readable): Size args are now uintmax_t, not int.
83252         (human_options): New decl.
83253
83254         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83255         unnecessary now that we assume C89 or better.  This change
83256         imported from coreutils.
83257
83258         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83259         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83260         in the 2003-05-30 sync from glibc.
83261
83262         .h files should stand alone, but we shouldn't include <sys/types.h>
83263         if we can get away with just <stddef.h>.
83264
83265         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83266         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83267         rather than <sys/types.h>, as we merely need size_t.
83268         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83269         to get size_t.
83270         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83271         Include <stdio.h>, to get FILE.
83272         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83273         memcasecmp.h has included <stddef.h> and all we need is size_t.
83274         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83275         our interface, instead of including <sys/types.h>
83276
83277 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83278
83279         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83280         now, as glibc mktime is buggy on non-glibc systems.
83281
83282 2003-06-03  Karl Berry  <karl@gnu.org>
83283
83284         * config/config.sub: update from prep.
83285
83286 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83287
83288         [from coreutils]
83289         Fix some minor time-related bugs with POSIX time arguments.
83290         Some valid time stamps were being rejected (notably -1, and
83291         time stamps before 1900 on 64-bit hosts).  And some invalid
83292         time stamps were being accepted, e.g. September 31.
83293
83294         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83295         that we can return (time_t) -1 successfully.
83296         * lib/posixtm.c: Likewise.
83297         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83298         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83299         (t): Remove static var.
83300         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83301         of static var.  All uses changed.
83302         (year): Do not reject years before 1900; they can occur with
83303         64-bit time_t.
83304         (posix_time_parse): Do not check for out-of-range components;
83305         that is now the caller's responsibility, since our checks were
83306         only approximations.
83307         (posixtime): Use mktime to check for out-of-range components,
83308         since it knows them exactly.
83309         If mktime returns (time_t) -1, check whether an error actually occurred
83310         by invoking localtime on -1.
83311         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83312         posixtime failures better.
83313         Improve the test data (in comments only).
83314
83315 2003-06-02  Karl Berry  <karl@gnu.org>
83316
83317         * config/mkinstalldirs (version): new variable.
83318         (--version): new option.
83319         (usage): improve message.
83320
83321 2003-05-30  Karl Berry  <karl@gnu.org>
83322
83323         * lib/mktime.c: update from libc.
83324
83325 2003-05-30  Bruno Haible  <bruno@clisp.org>
83326
83327         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83328         * config/config.rpath: Upgrade to gettext-0.12.1.
83329
83330 2003-05-30  Bruno Haible  <bruno@clisp.org>
83331
83332         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83333         * m4/nls.m4: New file, from gettext-0.12.1.
83334         * m4/po.m4: New file, from gettext-0.12.1.
83335         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83336
83337 2003-05-30  Bruno Haible  <bruno@clisp.org>
83338
83339         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83340         * lib/localcharset.h: Likewise.
83341         * lib/localcharset.c: Likewise.
83342
83343 2003-05-29  Karl Berry  <karl@gnu.org>
83344
83345         * config/config.rpath: update from gettext.
83346
83347 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83348
83349         Assume the headers required for C89 freestanding compilers.
83350         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83351         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83352         * m4/human.m4 (gl_HUMAN): Likewise.
83353         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83354         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83355         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83356         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83358         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83359
83360 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83361
83362         Assume the headers required for C89 freestanding compilers.
83363         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83364         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83365         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83366         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83367         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83368         define, since <limits.h> is guaranteed to do that.
83369         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83370         * lib/exclude.c: Include <stdbool.h> unconditionally.
83371         * lib/tempname.c: Include <stddef.h> unconditionally.
83372         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83373         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83374         <stddef.h> does that.
83375         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83376         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83377         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83378         needed.
83379         * lib/xstrtol.c: Likewise.
83380         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83381         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83382
83383         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83384         warnings on some platforms.
83385
83386         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83387         arbitrarily.
83388
83389 2003-05-26  Jim Meyering  <jim@meyering.net>
83390
83391         Merge in a change from coreutils:
83392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83393         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83394         that condition, rather than `-1' which is slightly misleading.
83395         Change the name of the cache variable to have the gl_ prefix.
83396         Prompted by a patch from Richard Dawe for DJGPP.
83397
83398 2003-05-24  Karl Berry  <karl@gnu.org>
83399
83400         * config/config.guess: update from prep.
83401
83402 2003-05-22  Karl Berry  <karl@gnu.org>
83403
83404         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83405
83406 2003-05-20  Karl Berry  <karl@gnu.org>
83407
83408         * config/config.guess: update from prep.
83409
83410 2003-05-18  Karl Berry  <karl@gnu.org>
83411
83412         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83413         might actually be set by the user.
83414
83415         * config/depcomp, install-sh, mdate-sh: update from automake.
83416
83417 2003-05-17  Bruno Haible  <bruno@clisp.org>
83418
83419         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83420         invalid expansion for AC_EGREP_CPP.
83421         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83422         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83423         Suggested by Akim Demaille <akim@epita.fr> in
83424         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83425
83426 2003-05-12  Jim Meyering  <jim@meyering.net>
83427
83428         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83429         the space-padded-by-default conversion specifiers, %e, %k, %l.
83430
83431 2003-05-12  Bruno Haible  <bruno@clisp.org>
83432
83433         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83434         the string is longer than 4 KB.
83435
83436 2003-05-11  Karl Berry  <karl@gnu.org>
83437
83438         * config/config.{guess,sub}: update from prep.
83439
83440 2003-05-09  Bruno Haible  <bruno@clisp.org>
83441
83442         * modules/error: Add m4/strerror_r.m4 to file list.
83443
83444 2003-05-03  Bruno Haible  <bruno@clisp.org>
83445
83446         Upgrade to Unicode-4.0.
83447         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83448         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83449         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83450         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83451         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83452         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83453         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83454         Change width of U+E0100..U+E01EF from 1 to 0.
83455
83456 2003-04-25  Jim Meyering  <jim@meyering.net>
83457
83458         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83459         of type size_t, not int.
83460
83461 2003-04-25  Bruno Haible  <bruno@clisp.org>
83462
83463         * lib/copy-file.c: Include <stddef.h>, for size_t.
83464
83465 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83466
83467         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83468         code which expansion is under static control.  Patch imported from
83469         Akim Demaille's patch to Bison; see
83470         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83471
83472 2003-04-14  Bruno Haible  <bruno@clisp.org>
83473
83474         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83475
83476 2003-04-11  Jim Meyering  <jim@meyering.net>
83477
83478         Merge changes from Coreutils.
83479
83480         2003-03-22  Jim Meyering  <jim@meyering.net>
83481
83482         * lib/strftime.c (widen): Cast alloca return value to proper type.
83483
83484         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83485
83486         From GNU libc.
83487         * lib/strftime.c (my_strftime): Handle very large width
83488         specifications for numeric values correctly.  Improve checks for
83489         overflow.
83490
83491         2003-01-19  Jim Meyering  <jim@meyering.net>
83492
83493         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83494         definitions.
83495         (nl_get_alt_digit) [! defined my_strftime]: Define.
83496         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83497         _nl_get_alt_digit and _nl_get_walt_digit.
83498
83499         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83500         libc. These changes have no effect outside of _LIBC.
83501
83502 2003-04-10  Bruno Haible  <bruno@clisp.org>
83503
83504         * modules/findprog: New file.
83505         * MODULES.html.sh (func_all_modules): Add it.
83506
83507 2003-04-10  Bruno Haible  <bruno@clisp.org>
83508
83509         * m4/findprog.m4: New file.
83510         * m4/eaccess.m4: New file.
83511
83512 2003-04-10  Bruno Haible  <bruno@clisp.org>
83513
83514         * lib/findprog.h: New file, from GNU gettext.
83515         * lib/findprog.c: New file, from GNU gettext.
83516
83517 2003-04-05  Jim Meyering  <jim@meyering.net>
83518
83519         Merge changes from Coreutils.
83520
83521         * lib/exclude.h (PARAMS): Remove definition and uses.
83522         * lib/exclude.c: Remove uses of `PARAMS'.
83523
83524         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83525         Add test-cases for DOS filenames. Declare program_name.
83526         (main): Set up program_name.  Patch by Rich Dawe.
83527
83528         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83529         error from mntctl.
83530         Use mntctl's return value to drive the entry-processing loop, since
83531         we can't rely on the value of the vmt_length member in the last
83532         entry.  On some systems doing so could result in exhausting
83533         virtual memory.  Based in part on a patch from Mike Jetzer.
83534
83535 2003-04-04  Bruno Haible  <bruno@clisp.org>
83536
83537         * modules/linebreak: New file.
83538         * MODULES.html.sh (func_all_modules): Add it.
83539
83540 2003-04-04  Bruno Haible  <bruno@clisp.org>
83541
83542         * m4/linebreak.m4: New file.
83543
83544 2003-04-04  Bruno Haible  <bruno@clisp.org>
83545
83546         * lib/linebreak.h: New file, from GNU gettext.
83547         * lib/linebreak.c: New file, from GNU gettext with slight
83548         modifications.
83549         * lib/lbrkprop.h: New file, from GNU gettext.
83550
83551 2003-04-03  Bruno Haible  <bruno@clisp.org>
83552
83553         * modules/utf8-ucs4: New file.
83554         * modules/utf16-ucs4: New file.
83555         * modules/ucs4-utf8: New file.
83556         * modules/ucs4-utf16: New file.
83557         * MODULES.html.sh (func_all_modules): Add them.
83558
83559 2003-04-03  Bruno Haible  <bruno@clisp.org>
83560
83561         * m4/utf-ucs4.m4: New file.
83562         * m4/ucs4-utf.m4: New file.
83563
83564 2003-04-03  Bruno Haible  <bruno@clisp.org>
83565
83566         * lib/utf8-ucs4.h: New file, from GNU gettext.
83567         * lib/utf16-ucs4.h: New file, from GNU gettext.
83568         * lib/ucs4-utf8.h: New file, from GNU gettext.
83569         * lib/ucs4-utf16.h: New file, from GNU gettext.
83570
83571 2003-04-02  Bruno Haible  <bruno@clisp.org>
83572
83573         * modules/binary-io: New file.
83574         * MODULES.html.sh (func_all_modules): Add it.
83575
83576 2003-04-02  Bruno Haible  <bruno@clisp.org>
83577
83578         * lib/binary-io.h: New file, from GNU gettext.
83579
83580 2003-04-01  Bruno Haible  <bruno@clisp.org>
83581
83582         * modules/pathname: New file.
83583         * MODULES.html.sh (func_all_modules): Add it.
83584
83585 2003-04-01  Bruno Haible  <bruno@clisp.org>
83586
83587         * lib/pathname.h: New file, from GNU gettext.
83588         * lib/concatpath.c: New file, from GNU gettext.
83589
83590 2003-03-30  Bruno Haible  <bruno@clisp.org>
83591
83592         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83593
83594 2003-03-30  Bruno Haible  <bruno@clisp.org>
83595
83596         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83597         function chown() doesn't exist.
83598
83599 2003-03-28  Bruno Haible  <bruno@clisp.org>
83600
83601         * modules/copy-file: New file.
83602         * MODULES.html.sh (func_all_modules): Add it.
83603
83604 2003-03-28  Bruno Haible  <bruno@clisp.org>
83605
83606         * m4/copy-file.m4: New file.
83607
83608 2003-03-28  Bruno Haible  <bruno@clisp.org>
83609
83610         * lib/copy-file.h: New file, from GNU gettext.
83611         * lib/copy-file.c: New file, from GNU gettext.
83612
83613 2003-03-18  Jim Meyering  <jim@meyering.net>
83614
83615         * lib/quote.c (quote_n): Fix typo in comment.
83616
83617 2003-03-18  Bruno Haible  <bruno@clisp.org>
83618
83619         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83620         checking.
83621         * m4/onceonly_2_57.m4: Likewise.
83622
83623 2003-03-17  Bruno Haible  <bruno@clisp.org>
83624
83625         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83626         (m4_quote): Remove macro.
83627         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83628
83629 2003-03-14  Jim Meyering  <jim@meyering.net>
83630
83631         Merge changes from Coreutils.
83632         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83633         to be const, in order to avoid warnings.
83634         (obstack_room): Likewise.
83635         (obstack_empty_p): Likewise.
83636
83637 2003-03-14  Bruno Haible  <bruno@clisp.org>
83638
83639         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83640         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83641
83642 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83643
83644         Merge changes from Bison.
83645         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83646         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83647         when compiling Bison 1.875's `bitset bset = obstack_alloc
83648         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83649         * lib/hash.c: Include <stdbool.h> unconditionally.
83650
83651 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83652
83653         * m4/onceonly.m4 (m4_quote): New macro.
83654         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83655         Quote AC_FOREACH variable-expansions properly.
83656
83657 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83658
83659         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83660
83661 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83662
83663         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83664         Reported by Bruce Becker; see:
83665         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83666
83667 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83668             Bruno Haible  <bruno@clisp.org>
83669
83670         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83671         Reported by John Hughes, see
83672         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83673
83674 2003-02-20  Bruno Haible  <bruno@clisp.org>
83675
83676         * MODULES.html.sh (func_all_modules): Add poll.
83677
83678 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83679
83680         * modules/poll: New file.
83681
83682 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83683
83684         * lib/poll_.h: New file.
83685         * lib/poll.c: New file.
83686
83687 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83688
83689         * m4/poll.m4: New file.
83690
83691 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83692
83693         * modules/mathl: New file.
83694
83695 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83696
83697         * lib/mathl.h: New file.
83698         * lib/acosl.c: New file.
83699         * lib/asinl.c: New file.
83700         * lib/atanl.c: New file.
83701         * lib/ceill.c: New file.
83702         * lib/cosl.c: New file.
83703         * lib/expl.c: New file.
83704         * lib/floorl.c: New file.
83705         * lib/frexpl.c: New file.
83706         * lib/ldexpl.c: New file.
83707         * lib/logl.c: New file.
83708         * lib/sincosl.c: New file.
83709         * lib/sinl.c: New file.
83710         * lib/sqrtl.c: New file.
83711         * lib/tanl.c: New file.
83712         * lib/trigl.c: New file.
83713         * lib/trigl.h: New file.
83714
83715 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83716
83717         * m4/mathl.m4: New file.
83718
83719 2003-02-18  Bruno Haible  <bruno@clisp.org>
83720
83721         * MODULES.html.sh (func_all_modules): Add mathl.
83722
83723 2003-02-17  Bruno Haible  <bruno@clisp.org>
83724
83725         * modules/mkdtemp: New module.
83726         * MODULES.html.sh (func_all_modules): Add it.
83727
83728 2003-02-17  Bruno Haible  <bruno@clisp.org>
83729
83730         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83731
83732 2003-02-17  Bruno Haible  <bruno@clisp.org>
83733
83734         * lib/mkdtemp.h: New file, from GNU gettext.
83735         * lib/mkdtemp.c: New file, from GNU gettext.
83736
83737 2003-02-02  Jim Meyering  <jim@meyering.net>
83738
83739         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83740         e.g. glibc-2.2.93.
83741
83742 2003-01-31  Bruno Haible  <bruno@clisp.org>
83743
83744         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83745         'rpl_rename'.
83746         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83747         'rpl_strnlen'.
83748         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83749         'rpl_strtod'.
83750         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83751         'rpl_utime'.
83752
83753 2003-01-31  Bruno Haible  <bruno@clisp.org>
83754
83755         * lib/rename.c: #undef rename before defining rpl_rename.
83756         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83757
83758 2003-01-30  Bruno Haible  <bruno@clisp.org>
83759
83760         * modules/vasnprintf, modules/vasprintf: New modules.
83761         * MODULES.html.sh (func_all_modules): Add them.
83762
83763 2003-01-30  Bruno Haible  <bruno@clisp.org>
83764
83765         * m4/signed.m4: New file, from GNU gettext.
83766         * m4/longdouble.m4: New file, from GNU gettext.
83767         * m4/wchar_t.m4: New file, from GNU gettext.
83768         * m4/wint_t.m4: New file, from GNU gettext.
83769         * m4/vasnprintf.m4: New file.
83770         * m4/vasprintf.m4: New file.
83771
83772 2003-01-30  Bruno Haible  <bruno@clisp.org>
83773
83774         * lib/printf-args.h: New file, from GNU gettext.
83775         * lib/printf-args.c: New file, from GNU gettext.
83776         * lib/printf-parse.h: New file, from GNU gettext.
83777         * lib/printf-parse.c: New file, from GNU gettext.
83778         * lib/vasnprintf.h: New file, from GNU gettext.
83779         * lib/vasnprintf.c: New file, from GNU gettext.
83780         * lib/asnprintf.c: New file, from GNU gettext.
83781         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83782         * lib/vasprintf.c: New file, from GNU gettext.
83783         * lib/asprintf.c: New file, from GNU gettext.
83784
83785 2003-01-29  Bruno Haible  <bruno@clisp.org>
83786
83787         * modules/stpncpy: New module.
83788         * MODULES.html.sh (func_all_modules): Add it.
83789
83790 2003-01-29  Bruno Haible  <bruno@clisp.org>
83791
83792         * m4/stpncpy.m4: New file.
83793
83794 2003-01-29  Bruno Haible  <bruno@clisp.org>
83795
83796         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83797         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83798
83799 2003-01-28  Bruno Haible  <bruno@clisp.org>
83800
83801         * modules/c-ctype: New module.
83802         * MODULES.html.sh (func_all_modules): Add it.
83803
83804 2003-01-28  Bruno Haible  <bruno@clisp.org>
83805
83806         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83807         Paul Eggert.
83808         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83809         Paul Eggert.
83810
83811 2003-01-27  Bruno Haible  <bruno@clisp.org>
83812
83813         * modules/xsetenv: New module.
83814         * MODULES.html.sh (func_all_modules): Add it.
83815
83816 2003-01-27  Bruno Haible  <bruno@clisp.org>
83817
83818         * lib/xsetenv.h: New file, from GNU gettext.
83819         * lib/xsetenv.c: New file, from GNU gettext.
83820
83821 2003-01-23  Jim Meyering  <jim@meyering.net>
83822
83823         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83824         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83825
83826 2003-01-23  Bruno Haible  <bruno@clisp.org>
83827
83828         * modules/minmax: New module.
83829         * MODULES.html.sh (func_all_modules): Add it.
83830
83831 2003-01-23  Bruno Haible  <bruno@clisp.org>
83832
83833         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83834         Eggert.
83835
83836 2003-01-22  Bruno Haible  <bruno@clisp.org>
83837
83838         * modules/exit: New module.
83839         * MODULES.html.sh (func_all_modules): Add it.
83840
83841 2003-01-22  Bruno Haible  <bruno@clisp.org>
83842
83843         * lib/exit.h: New file, from GNU gettext.
83844
83845 2003-01-19  Bruno Haible  <bruno@clisp.org>
83846
83847         * gnulib-tool: Recognize option --extract-maintainer.
83848         (func_get_maintainer): New function.
83849         * modules/*: Add Maintainer entry.
83850
83851 2003-01-16  Jim Meyering  <jim@meyering.net>
83852
83853         * m4/regex.m4: The `regex' struct is both input and output.
83854         Initialize it before each use.  Patch by Tim Waugh.
83855
83856 2003-01-16  Bruno Haible  <bruno@clisp.org>
83857
83858         * MODULES.html.sh: Add a table of contents. Add the module name as
83859         leftmost column. Add hyperlinks.
83860
83861 2003-01-15  Bruno Haible  <bruno@clisp.org>
83862
83863         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83864
83865 2003-01-15  Bruno Haible  <bruno@clisp.org>
83866
83867         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83868         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83869         suffix.
83870
83871 2003-01-15  Bruno Haible  <bruno@clisp.org>
83872
83873         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83874
83875 2003-01-15  Bruno Haible  <bruno@clisp.org>
83876
83877         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83878         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83879
83880 2003-01-14  Jim Meyering  <jim@meyering.net>
83881
83882         * lib/same.c (same_name): Tweak a comment.
83883
83884 2003-01-14  Bruno Haible  <bruno@clisp.org>
83885
83886         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83887         when a string comparison is sufficient.
83888
83889 2003-01-14  Bruno Haible  <bruno@clisp.org>
83890
83891         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83892         'unsigned int'.
83893
83894 2003-01-14  Bruno Haible  <bruno@clisp.org>
83895
83896         * lib/hash-pjw.c: Add comment about low quality of this function.
83897
83898 2003-01-13  Bruno Haible  <bruno@clisp.org>
83899
83900         * modules/stpcpy: Distribute lib/stpcpy.h.
83901         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83902
83903 2003-01-13  Bruno Haible  <bruno@clisp.org>
83904
83905         * modules/*: Add a description.
83906         * modules/strpbrk: Fix Makefile.am snippet.
83907         * modules/strtoimax: Fix dependencies.
83908         * modules/strtoumax: Likewise.
83909
83910 2003-01-13  Bruno Haible  <bruno@clisp.org>
83911
83912         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83913         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83914         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83915
83916 2003-01-13  Bruno Haible  <bruno@clisp.org>
83917
83918         * gnulib-tool (func_create_testdir): Store config/* files in the main
83919         directory.
83920         * config.rpath: Move to ...
83921         * config/config.rpath: ... here.
83922         * modules/gettext: Contains config/config.rpath, not config.rpath.
83923         * modules/iconv: Likewise.
83924
83925 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83926
83927         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83928         to avoid collisions with libcurses and libreadline.
83929
83930         * m4/getstr.m4: Remove.
83931         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83932
83933 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83934
83935         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83936         to avoid collisions with libcurses and libreadline.
83937
83938         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83939         * lib/getstr.h, getstr.c: Remove.
83940         * lib/getline.c: Include "getline.h", to check interface.
83941         Move body of old getstr.c here: this defines MIN_CHUNK and
83942         declares getdelim2, which is renamed from getstr.
83943         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83944
83945         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83946         All uses changed.
83947         * lib/linebuffer.h: Likewise.
83948         (readline): Remove backward-compatibility macro.
83949
83950 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83951
83952         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83953         to avoid collisions with libcurses and libreadline.
83954         * getstr: Remove.
83955         * MODULES.html.sh: Remove getstr.
83956         * modules/getline: Depend on unlocked-io, not getstr.
83957
83958 2003-01-12  Jim Meyering  <jim@meyering.net>
83959
83960         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83961
83962 2003-01-10  Bruno Haible  <bruno@clisp.org>
83963
83964         * modules/alloca: Change Makefile.am requirements. Simplify Include
83965         requirements. Add lib/alloca_.h to file list.
83966
83967 2003-01-10  Bruno Haible  <bruno@clisp.org>
83968
83969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83970
83971 2003-01-10  Bruno Haible  <bruno@clisp.org>
83972
83973         * lib/alloca_.h: New file.
83974         * lib/getdate.y: Unconditionally include alloca.h.
83975         * lib/makepath.c: Likewise.
83976         * lib/setenv.c: Likewise.
83977         * lib/userspec.c: Likewise.
83978
83979 2003-01-09  Karl Berry  <karl@gnu.org>
83980
83981         * MODULES.html.sh: include `dirname $0` in PATH, to find
83982         gnulib-tool.
83983
83984 2003-01-09  Bruno Haible  <bruno@clisp.org>
83985
83986         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83987         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83988
83989 2003-01-09  Bruno Haible  <bruno@clisp.org>
83990
83991         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83992
83993 2003-01-09  Bruno Haible  <bruno@clisp.org>
83994
83995         * lib/stdbool.h.in: New file.
83996
83997 2003-01-09  Bruno Haible  <bruno@clisp.org>
83998
83999         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84000         * MODULES.html.sh: Likewise.
84001
84002 2003-01-08  Jim Meyering  <jim@meyering.net>
84003
84004         * lib/full-write.c: Undefine and define-away `const' after inclusion
84005         of errno.h, not before.  Suggestion from Bruno Haible.
84006
84007 2003-01-08  Bruno Haible  <bruno@clisp.org>
84008
84009         * modules/full-read: Depend on full-write.
84010
84011 2003-01-08  Bruno Haible  <bruno@clisp.org>
84012
84013         * lib/safe-read.c: Include specification header first, to ensure its
84014         selfcontainedness.
84015         * lib/full-write.c: Likewise.
84016
84017 2003-01-07  Jim Meyering  <jim@meyering.net>
84018
84019         * lib/full-write.c: Rework so that it may serve to define full_read,
84020         too.
84021         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84022
84023 2003-01-07  Bruno Haible  <bruno@clisp.org>
84024
84025         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84026         <inttypes.h>.
84027         * lib/xstrtol.h: Likewise.
84028         * lib/xstrtoimax.c: Likewise.
84029         * lib/xstrtoumax.c: Likewise.
84030         * lib/human.h: Likewise.
84031
84032         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84033         on systems that have <inttypes.h> but not <stdint.h>.
84034
84035 2003-01-07  Bruno Haible  <bruno@clisp.org>
84036
84037         * MODULES.html.sh: Add copyright notice.
84038         (missed_files): Omit CVS directory entries.
84039         (func_module): Make it work with sed-3.02.
84040         * MODULES.txt: Remove file.
84041
84042 2003-01-06  Jim Meyering  <jim@meyering.net>
84043
84044         * lib/version-etc.c: Update year in translatable copyright string.
84045
84046 2003-01-03  Karl Berry  <karl@gnu.org>
84047
84048         * config/config.{guess,sub}: update from prep.
84049
84050 2003-01-02  Karl Berry  <karl@gnu.org>
84051
84052         * doc/COPYING.DOC: belatedly updated to 1.2.
84053
84054 2003-01-01  Karl Berry  <karl@gnu.org>
84055
84056         * gnulib-tool (func_verify_module): report module name $module in
84057         error message, not $1.
84058         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84059         be created, only if it doesn't exist.
84060         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84061
84062 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84063
84064         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84065
84066 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84067
84068         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84069         memcmp if strcoll doesn't work.
84070
84071 2002-12-31  Bruno Haible  <bruno@clisp.org>
84072
84073         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84074         nonempty.
84075
84076 2002-12-31  Bruno Haible  <bruno@clisp.org>
84077
84078         * lib/memcoll.c (STRCOLL): New macro.
84079         (memcoll): Use it.
84080
84081 2002-12-31  Bruno Haible  <bruno@clisp.org>
84082
84083         * lib/localcharset.h: New file.
84084         * lib/localcharset.c: Include it.
84085         * lib/unicodeio.c: Likewise.
84086
84087 2002-12-31  Bruno Haible  <bruno@clisp.org>
84088
84089         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84090         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84091
84092 2002-12-31  Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/getline.h: Include <stddef.h>, for size_t.
84095
84096         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84097         * lib/unicodeio.c: Don't include <stddef.h>.
84098
84099 2002-12-31  Bruno Haible  <bruno@clisp.org>
84100
84101         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84102         HAVE_TM_ZONE.
84103
84104 2002-12-24  Karl Berry  <karl@gnu.org>
84105
84106         * config/config.guess: update from prep.
84107
84108 2002-12-24  Bruno Haible  <bruno@clisp.org>
84109
84110         General infrasructure.
84111         * m4/README: Rewritten.
84112         * m4/onceonly.m4: New file.
84113         * m4/onceonly_2_57.m4: New file.
84114
84115         Module atexit.
84116         * m4/atexit.m4: New file.
84117
84118         Module strtod.
84119         * m4/strtod.m4: New file.
84120
84121         Module strtol.
84122         * m4/strtol.m4: New file.
84123
84124         Module strtoul.
84125         * m4/strtoul.m4: New file.
84126
84127         Module memchr.
84128         * m4/memchr.m4: New file.
84129
84130         Module memcmp.
84131         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84132         (jm_FUNC_MEMCMP): Invoke it.
84133
84134         Module memcpy.
84135         * m4/memcpy.m4: New file.
84136
84137         Module memmove.
84138         * m4/memmove.m4: New file.
84139
84140         Module memset.
84141         * m4/memset.m4: New file.
84142
84143         Module strcspn.
84144         * m4/strcspn.m4: New file.
84145
84146         Module strpbrk.
84147         * m4/strpbrk.m4: New file.
84148
84149         Module strstr.
84150         * m4/strstr.m4: New file.
84151
84152         Module strerror.
84153         * m4/strerror.m4: New file.
84154
84155         Module mktime.
84156         * m4/mktime.m4: Renamed from jm-mktime.m4.
84157         (gl_PREREQ_MKTIME): New macro.
84158         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84159
84160         Module malloc.
84161         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84162         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84163         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84164
84165         Module realloc.
84166         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84167         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84168         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84169
84170         Module strftime.
84171         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84172         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84173         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84174         gl_TM_GMTOFF.
84175         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84176
84177         Module xalloc.
84178         * m4/xalloc.m4: New file.
84179
84180         Module alloca.
84181         * m4/alloca.m4: New file.
84182
84183         Module putenv.
84184         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84185         (jm_FUNC_PUTENV): Invoke it.
84186
84187         Module setenv.
84188         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84189         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84190         when invoked twice.
84191         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84192         gt_FUNC_SETENV.
84193
84194         Module memrchr.
84195         * m4/memrchr.m4: New file.
84196
84197         Module stpcpy.
84198         * m4/stpcpy.m4: New file.
84199
84200         Module strcase.
84201         * m4/strcase.m4: New file.
84202
84203         Module strdup.
84204         * m4/strdup.m4: New file.
84205
84206         Module strnlen.
84207         * m4/strnlen.m4: New file.
84208
84209         Module strndup.
84210         * m4/strndup.m4: New file.
84211
84212         Module xstrtod.
84213         * m4/xstrtod.m4: New file.
84214
84215         Module xstrtol.
84216         * m4/xstrtol.m4: New file.
84217
84218         Module getdate.
84219         * m4/getdate.m4: New file.
84220
84221         Module unlocked-io.
84222         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84223         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84224         * m4/jm-glibc-io.m4n: Remove file.
84225
84226         Module long-options.
84227         * m4/long-options.m4: New file.
84228
84229         Module md5.
84230         * m4/md5.m4: New file.
84231
84232         Module sha.
84233         * m4/sha.m4: New file.
84234
84235         Module getstr.
84236         * m4/getstr.m4: New file.
84237
84238         Module getline.
84239         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84240         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84241         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84242         simply getline. Infoke gl_PREREQ_GETLINE.
84243
84244         Module obstack.
84245         * m4/obstack.m4: New file.
84246
84247         Module hash.
84248         * m4/hash.m4: New file.
84249
84250         Module readtokens.
84251         * m4/readtokens.m4: New file.
84252
84253         Module strverscmp.
84254         * m4/strverscmp.m4: New file.
84255
84256         Module stdbool.
84257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84258         OSF/1.
84259
84260         Module strtoll.
84261         * m4/strtoll.m4: New file.
84262
84263         Module strtoull.
84264         * m4/strtoull.m4: New file.
84265
84266         Module strtoimax.
84267         * m4/strtoimax.m4: New file.
84268
84269         Module strtoumax.
84270         * m4/strtoumax.m4: New file.
84271
84272         Module xstrtoimax.
84273         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84274         jm_AC_PREREQ_XSTRTOIMAX.
84275         Moved the strtol prerequisites to strtol.m4.
84276         Moved the strtoll prerequisites to strtoll.m4.
84277         Moved the strtoimax prerequisites to strtoimax.m4.
84278
84279         Module xstrtoumax.
84280         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84281         jm_AC_PREREQ_XSTRTOUMAX.
84282         Moved the strtoul prerequisites to strtoul.m4.
84283         Moved the strtoull prerequisites to strtoull.m4.
84284         Moved the strtoumax prerequisites to strtoumax.m4.
84285
84286         Module chown.
84287         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84288         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84289
84290         Module dup2.
84291         * m4/dup2.m4: New file.
84292
84293         Module ftruncate.
84294         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84295         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84296
84297         Module getgroups.
84298         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84299         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84300
84301         Module gettimeofday.
84302         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84303         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84304         gl_PREREQ_GETTIMEOFDAY.
84305
84306         Module mkdir.
84307         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84308         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84309
84310         Module mkstemp.
84311         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84312         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84313         jm_AC_TYPE_UINTMAX_T.
84314         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84315
84316         Module stat.
84317         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84318         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84319
84320         Module lstat.
84321         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84322         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84323
84324         Module timespec.
84325         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84326         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84327         * m4/st_mtim.m4: Indentation.
84328
84329         Module nanosleep.
84330         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84331         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84332         gl_PREREQ_NANOSLEEP.
84333
84334         Module regex.
84335         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84336         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84337         (gl_REGEX): New macro.
84338
84339         Module rename.
84340         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84341         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84342
84343         Module rmdir.
84344         * m4/rmdir.m4: New file.
84345
84346         Module utime.
84347         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84348         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84349         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84350
84351         Module dirname.
84352         * m4/dirname.m4: New file.
84353
84354         Module getopt.
84355         * m4/getopt.m4: New file.
84356
84357         Module unistd-safer.
84358         * m4/unistd-safer.m4: New file.
84359
84360         Module fnmatch.
84361         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84362         declaration.
84363         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84364         (gl_FUNC_FNMATCH_POSIX): New macro.
84365         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84366         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84367         simply fnmatch.
84368
84369         Module exclude.
84370         * m4/exclude.m4: New file.
84371
84372         Module human.
84373         * m4/human.m4: New file.
84374
84375         Module acl.
84376         * m4/acl.m4: Nop.
84377
84378         Module backupfile.
84379         * m4/backupfile.m4: New file.
84380         * m4/d-ino.m4: Indentation.
84381
84382         Module fsusage.
84383         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84384         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84385         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84386
84387         Module dirfd.
84388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84389         requirements.
84390
84391         Module euidaccess.
84392         * m4/euidaccess.m4: New file.
84393
84394         Module file-type.
84395         * m4/file-type.m4: New file.
84396
84397         Module fileblocks.
84398         * m4/fileblocks.m4: New file.
84399
84400         Module filemode.
84401         * m4/filemode.m4: New file.
84402
84403         Module isdir.
84404         * m4/isdir.m4: New file.
84405
84406         Module lchown.
84407         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84408         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84409
84410         Module makepath.
84411         * m4/makepath.m4: New file.
84412
84413         Module modechange.
84414         * m4/modechange.m4: New file.
84415
84416         Module mountlist.
84417         * m4/mountlist.m4: New file.
84418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84419         Indentation.
84420
84421         Module path-concat.
84422         * m4/path-concat.m4: New file.
84423
84424         Module pathmax.
84425         * m4/pathmax.m4: New file.
84426
84427         Module same.
84428         * m4/same.m4: New file.
84429
84430         Module save-cwd.
84431         * m4/save-cwd.m4: New file.
84432
84433         Module savedir.
84434         * m4/savedir.m4: New file.
84435
84436         Module xgetcwd.
84437         * m4/xgetcwd.m4: New file.
84438         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84439
84440         Module xreadlink.
84441         * m4/xreadlink.m4: New file.
84442
84443         Module safe-read.
84444         * m4/safe-read.m4: New file.
84445
84446         Module safe-write.
84447         * m4/safe-write.m4: New file.
84448
84449         Module closeout.
84450         * m4/closeout.m4: New file.
84451
84452         Module stdio-safer.
84453         * m4/stdio-safer.m4: New file.
84454
84455         Module getpass.
84456         * m4/getpass.m4: New file.
84457
84458         Module getugroups.
84459         * m4/getugroups.m4: New file.
84460
84461         Module group-member.
84462         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84463         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84464
84465         Module idcache.
84466         * m4/idcache.m4: New file.
84467
84468         Module userspec.
84469         * m4/userspec.m4: New file.
84470
84471         Module gettime.
84472         * m4/clock_time.m4: New file.
84473         * m4/gettime.m4: New file.
84474
84475         Module settime.
84476         * m4/settime.m4: New file.
84477
84478         Module posixtm.
84479         * m4/posixtm.m4: New file.
84480
84481         Module gethostname.
84482         * m4/gethostname.m4: New file.
84483
84484         Module canon-host.
84485         * m4/canon-host.m4: New file.
84486
84487         Module gettext.
84488         * m4/codeset.m4: New file, from gettext-0.11.5.
84489         * m4/gettext.m4: New file, from gettext-0.11.5.
84490         * m4/glibc21.m4: New file, from gettext-0.11.5.
84491         * m4/iconv.m4: New file, from gettext-0.11.5.
84492         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84493         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84494         * m4/inttypes.m4: New file, from gettext-0.11.5.
84495         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84496         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84497         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84498         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84499         * m4/lib-link.m4: New file, from gettext-0.11.5.
84500         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84501         * m4/progtest.m4: New file, from gettext-0.11.5.
84502         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84503         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84504         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84505
84506         Module localcharset.
84507         * m4/localcharset.m4: New file.
84508
84509         Module hard-locale.
84510         * m4/hard-locale.m4: New file.
84511
84512         Module mbswidth.
84513         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84514         onceonly macros.
84515         * m4/mbrtowc.m4: Add comment.
84516
84517         Module memcasecmp.
84518         * m4/memcasecmp.m4: New file.
84519
84520         Module memcoll.
84521         * m4/memcoll.m4: New file.
84522
84523         Module unicodeio.
84524         * m4/unicodeio.m4: New file.
84525
84526         Module rpmatch.
84527         * m4/rpmatch.m4: New file.
84528
84529         Module yesno.
84530         * m4/yesno.m4: New file.
84531
84532         Module exitfail.
84533         * m4/exitfail.m4: New file.
84534
84535         Module c-stack.
84536         * m4/c-stack.m4 (gl_C_STACK): New macro.
84537         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84538
84539         Module error.
84540         * m4/error.m4 (gl_ERROR): New macro.
84541         (jm_PREREQ_ERROR): Use onceonly macros.
84542
84543         Module fatal.
84544         * m4/fatal.m4: New file.
84545
84546         Module getloadavg.
84547         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84548         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84549
84550         Module getpagesize.
84551         * m4/getpagesize.m4: New file.
84552
84553         Module getusershell.
84554         * m4/getusershell.m4: New file.
84555
84556         Module physmem.
84557         * m4/physmem.m4: New file.
84558
84559         Module posixver.
84560         * m4/posixver.m4: New file.
84561
84562         Module quotearg.
84563         * m4/quotearg.m4: New file.
84564
84565         Module quote.
84566         * m4/quote.m4: New file.
84567
84568         Module readutmp.
84569         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84570
84571         Module sig2str.
84572         * m4/sig2str.m4: New file.
84573
84574         Other.
84575         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84576         ulonglong.m4.
84577         * m4/intmax_t.m4: New file.
84578         * m4/d-type.m4: Indentation.
84579         * m4/jm-macros.m4: Update.
84580         * m4/prereq.m4 (jm_PREREQ): Update.
84581         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84582         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84583         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84584         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84585         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84586         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84587         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84588         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84589         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84590         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84591         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84592         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84593         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84594         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84595         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84596         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84597         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84598         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84599         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84600
84601 2002-12-24  Bruno Haible  <bruno@clisp.org>
84602
84603         * MODULES.txt: Update according to m4/ changes.
84604
84605         Module gettext.
84606         * config.rpath: New file, from gettext-0.11.5.
84607
84608         * modules/*: New module descriptions.
84609         * gnulib-tool: New file.
84610         * MODULES.html.sh: New file.
84611
84612 2002-12-21  Karl Berry  <karl@gnu.org>
84613
84614         * doc/fdl.texi: update to version 1.2.
84615
84616 2002-12-19  Karl Berry  <karl@gnu.org>
84617
84618         * config/config.guess: update from prep.
84619
84620 2002-12-18  Bruno Haible  <bruno@clisp.org>
84621
84622         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84623         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84624
84625 2002-12-17  Bruno Haible  <bruno@clisp.org>
84626
84627         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84628         stdlib.h, string.h.
84629
84630 2002-12-17  Bruno Haible  <bruno@clisp.org>
84631
84632         * lib/canon-host.c (strdup): Remove unused declaration.
84633
84634         * lib/fsusage.c: Include full_read.h.
84635         (get_fs_usage): Use full_read instead of safe_read.
84636
84637         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84638
84639 2002-12-12  Karl Berry  <karl@gnu.org>
84640
84641         * config/config.guess: update from prep.
84642
84643 2002-12-11  Bruno Haible  <bruno@clisp.org>
84644
84645         * m4/setenv.m4: New file, from gettext-0.11.5.
84646
84647 2002-12-11  Bruno Haible  <bruno@clisp.org>
84648
84649         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84650         not unsetenv().
84651         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84652         modifications:
84653
84654         2002-12-11  Bruno Haible  <bruno@clisp.org>
84655
84656                 * setenv.c (alloca): Fall back to malloc.
84657                 (freea): New macro.
84658                 (setenv): Use freea() to free memory allocated with alloca().
84659
84660         2002-11-13  Bruno Haible  <bruno@clisp.org>
84661
84662                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84663                 function declarations.
84664                 * unsetenv.c (unsetenv): Likewise.
84665
84666         2002-03-04  Bruno Haible  <bruno@clisp.org>
84667
84668                 Portability to AIX 4.3.3.
84669                 * unsetenv.c: New file, extracted from setenv.c.
84670                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84671
84672         2001-12-20  Bruno Haible  <bruno@clisp.org>
84673
84674                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84675                 use malloc instead. For SunOS 4.
84676
84677         2001-12-11  Bruno Haible  <bruno@clisp.org>
84678
84679                 * setenv.c: Declare alloca.
84680                 (compar_fn_t): New typedef.
84681                 (KNOWN_VALUE, STORE_VALUE): Use it.
84682
84683         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84684         setenv.h.
84685
84686 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84687
84688         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84689         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84690         Choose values that are less likely to collide with system fnmatch
84691         options.
84692         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84693         defined (e.g., a pure POSIX system).
84694         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84695         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84696
84697 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84698
84699         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84700         a pain in practice to deal with generated m4 files.  This change
84701         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84702
84703         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84704         and jm-glibc-io.m4, as they are no longer a special case.
84705         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84706         kludge and the auto-generation stuff.  Check only whether the
84707         functions are declared, not whether they exist, since older hosts
84708         that don't declare the functions can't use the optimization anyway.
84709
84710 2002-12-06  Jim Meyering  <jim@meyering.net>
84711
84712         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84713
84714         Merge in changes from libc's misc/error.c, in preparation
84715         for the merge of gnulib's changes back into libc.
84716
84717         * lib/error.c (_): Define only if not already defined.
84718         Move definition to follow all #include directives.
84719         Include unlocked-io.h only if !_LIBC.
84720         [_LIBC]: Include <libio/libioP.h>.
84721         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84722         (fflush): Tweak definition to use INTUSE.
84723         (putc): Define.
84724
84725 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84726
84727         * lib/alloca.c [defined emacs]: Include "lisp.h".
84728         (xalloc_die) [defined emacs]: New macro.
84729         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84730         [! defined emacs]: Include <xalloc.h>.
84731         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84732         (pointer): Typedef to POINTER_TYPE *.
84733         (malloc): Remove decl; we now always use xmalloc.
84734         (alloca): Use old-style definition, since Emacs needs this.
84735         Check for arithmetic overflow when computing combined size.
84736
84737 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84738
84739         Do not generate unlocked-io.h automatically, since it's easier to
84740         maintain it by hand.
84741
84742         * lib/unlocked-io.h: New file, from GNU diffutils,
84743         but with proper copyright notice and attribution.
84744         * lib/gen-uio: Remove.
84745         * lib/Makefile.am: Add copyright notice.
84746         (libfetish_a_SOURCES): Add unlocked-io.h.
84747         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84748         (DISTCLEANFILES, io_functions): Remove macros.
84749         (EXTRA_DIST): Remove gen_uio.
84750         (unlocked-io.h): Remove rule.
84751
84752 2002-12-04  Jim Meyering  <jim@meyering.net>
84753
84754         Reflect the fact that stat.c and lstat.c are no longer generated.
84755         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84756         (DISTCLEANFILES): Likewise.
84757         (EXTRA_DIST): Likewise.
84758         (all_local): Don't depend on stat.c or lstat.c.
84759         (stat.c, lstat.c): Remove rules.
84760         (EXTRA_DIST): Remove xstat.in.
84761
84762         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84763         * lib/stat.c: New file.  Contents mostly from xstat.in.
84764         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84765         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84766
84767         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84768         too.
84769         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84770
84771 2002-12-03  Jim Meyering  <jim@meyering.net>
84772
84773         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84774         but not semantics, to minimize the differences between these two files.
84775         (safe_read): Change comment to mention SAFE_READ_ERROR.
84776
84777         * lib/safe-read.c (IS_EINTR): Define.
84778         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84779
84780 2002-12-02  Jim Meyering  <jim@meyering.net>
84781
84782         * lib/safe-read.c (EINTR): Define.
84783         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84784         (INT_MAX): Provide fallback.
84785         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84786
84787         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84788
84789 2002-12-02  Bruno Haible  <bruno@clisp.org>
84790
84791         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84792         Define, taken from safe-read.c.
84793         (INT_MAX): Provide fallback.
84794         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84795         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84796
84797         * lib/safe-read.c (EINTR): Remove definition.
84798         (safe_read): Don't use EINTR if it is absent.
84799
84800 2002-12-01  Jim Meyering  <jim@meyering.net>
84801
84802         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84803         zero.
84804         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84805
84806 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84807
84808         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84809         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84810         with `if (! (value < limit)) abort ();', for readability.
84811
84812 2002-11-26  Karl Berry  <karl@gnu.org>
84813
84814         * lib/strdup.c: copy from libc again, with jim's ok.
84815         * lib/.cppi-disable: re-add strdup.c
84816
84817 2002-11-25  Karl Berry  <karl@gnu.org>
84818
84819         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84820         instead of "strtol.c".
84821
84822 2002-11-25  Karl Berry  <karl@gnu.org>
84823
84824         * config/install-sh: update from automake for variable quoting, $0 in
84825         error msgs, etc.
84826
84827         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84828         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84829         entry.
84830
84831 2002-11-25  Jim Meyering  <jim@meyering.net>
84832
84833         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84834
84835 2002-11-24  Karl Berry  <karl@gnu.org>
84836
84837         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84838         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84839
84840 2002-11-24  Jim Meyering  <jim@meyering.net>
84841
84842         Update from coreutils:
84843
84844         * lib/mktime.c: Merge in changes from libc.
84845
84846         Avoid a link-time failure on some Linux systems.
84847         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84848         (otherwise).
84849         (__mon_yday): Declare with the STATIC attribute.
84850         (__mktime_internal): Likewise.
84851         Based on a report from Greg Schafer.
84852
84853 2002-11-23  Jim Meyering  <jim@meyering.net>
84854
84855         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84856         Use `unsigned', not `int', as type of index.
84857
84858         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84859
84860         * lib/fsusage.c: Remove unneeded parentheses around operands of
84861         `defined'.
84862
84863 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84864
84865         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84866         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84867         so that we can be included first.
84868         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84869         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84870         No need to include stddef.h or sys/types.h any more.
84871         Surround local include files with "", not "<>".
84872         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84873         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84874         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84875         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84876         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84877         (ISPRINT): Remove; no longer needed now that we assume C89.
84878
84879         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84880         Preserve errno.
84881
84882         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84883         quotearg_char): Use SIZE_MAX rather than
84884         (size_t) -1 when we are talking about "infinity".
84885
84886         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84887
84888 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84889
84890         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84891         hint that one should use `if (! x) abort ();' rather than `assert
84892         (x);', and anyway it's one less thing to worry about configuring.
84893         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84894         hash_rehash, hash_insert): Use abort rather than assert.
84895
84896 2002-11-22  Bruno Haible  <bruno@clisp.org>
84897
84898         * lib/safe-read.h: Assume C89. Add comments.
84899         (safe_read): Change return type to size_t.
84900         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84901         byte counts > SSIZE_MAX correctly.
84902         * lib/safe-write.h: New file.
84903         * lib/safe-write.c: New file.
84904         * lib/full-read.h: New file.
84905         * lib/full-read.c: New file.
84906         * lib/full-write.h: Assume C89. Add comments.
84907         * lib/full-write.c: Include safe-write.h.
84908         (full_write): Rewritten to use safe_write.
84909         Suggested by Jim Meyering and Paul Eggert.
84910
84911 2002-11-21  Jim Meyering  <jim@meyering.net>
84912
84913         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84914
84915         Merge in changes from the coreutils.
84916
84917         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84918         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84919         <stdint.h>.
84920         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84921         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84922         int.  Work more efficiently if X is the same width as uintmax_t.
84923         Do not compare X to -1, to avoid bogus compiler warning.
84924         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84925         Don't assume that f_frsize and f_bsize are the same type.
84926
84927         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84928         warning on FreeBSD.
84929
84930         * lib/makepath.c (make_path): Restore umask *before* creating the final
84931         component.
84932         (make_path): Minor reformatting.
84933
84934         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84935         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84936         HAVE_MALLOC/HAVE_REALLOC.
84937
84938         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84939         dummy ones.  At least on GNU/Linux systems, `auto' means something
84940         else.
84941         From Michael Stone.
84942
84943 2002-11-21  Bruno Haible  <bruno@clisp.org>
84944
84945         Remove case insensitive option matching.
84946         * lib/argmatch.h (argcasematch): Remove declaration.
84947         (ARGCASEMATCH): Remove macro.
84948         (__xargmatch_internal): Remove case_sensitive argument.
84949         (XARGMATCH): Update.
84950         (XARGCASEMATCH): Remove macro.
84951         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84952         case_sensitive argument.
84953         (argcasematch): Remove function.
84954         (__xargmatch_internal): Remove case_sensitive argument.
84955         (main): Use XARGMATCH instead of XARGCASEMATCH.
84956
84957         * lib/xmalloc.c: Change compile-time error message. Add comment about
84958         required autoconf version.
84959
84960 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84961
84962         Merge argmatch cleanups from Bison.  Assume C89.
84963
84964         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84965         Include stdlib.h, for EXIT_FAILURE.
84966         Always include <string.h>, since we assume C89.
84967         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84968         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84969         Include <stddef.h> instead, since it's all we need for size_t.
84970         (PARAMS): Remove.  All uses removed.
84971         (ARRAY_CARDINALITY): Do not bother to #undef.
84972         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84973         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84974         Remove unnecessary parentheses.
84975         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84976         Insert necessary parentheses.
84977         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84978         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84979
84980 2002-11-19  Bruno Haible  <bruno@clisp.org>
84981
84982         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84983         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84984
84985         * lib/mbswidth.h (PARAMS): Remove macro.
84986         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84987         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84988
84989         * lib/gcd.h (PARAMS): Remove macro.
84990         (gcd): Use ANSI C function declarations.
84991         * lib/gcd.c (gcd): Likewise.
84992
84993 2002-11-15  Bruno Haible  <bruno@clisp.org>
84994
84995         * lib/strcspn.c: Include <stddef.h>.
84996         (strcspn): Use ANSI C function declaration. Change return type to
84997         size_t. Use NULL.
84998         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84999         (strpbrk): Use NULL.
85000         * lib/strpbrk.h (PARAMS): Remove macro.
85001         (strpbrk): Use ANSI C function declaration.
85002         * lib/strstr.c: Don't include <sys/types.h>.
85003         * lib/strstr.h (PARAMS): Remove macro.
85004         (strstr): Use ANSI C function declarations.
85005
85006 2002-11-14  Karl Berry  <karl@gnu.org>
85007
85008         * config/mkinstalldirs: `do' on separate line, instead of
85009         `for var; do'.
85010
85011 2002-11-06  Bruno Haible  <bruno@clisp.org>
85012
85013         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85014         * lib/gcd.c (gcd): Likewise.
85015
85016 2002-11-05  Bruno Haible  <bruno@clisp.org>
85017
85018         * lib/gcd.h: New file, from gettext-0.11.5.
85019         * lib/gcd.c: New file, from gettext-0.11.5.
85020
85021 2002-11-05  Bruno Haible  <bruno@clisp.org>
85022
85023         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85024         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85025         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85026         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85027
85028         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85029         <libintl.h>.
85030         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85031         <libintl.h>.
85032
85033         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85034         * lib/human.c: Include gettext.h instead of <libintl.h>.
85035         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85036         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85037         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85038         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85039         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85040         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85041         (textdomain): Remove definition.
85042         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85043
85044         * lib/long-options.c: Remove include of <libintl.h> and definition of
85045         _.
85046         * lib/same.c: Remove include of <libintl.h> and definition of _.
85047
85048 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85049
85050         * lib/config.charset: A few additions for Solaris.
85051
85052 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85053
85054         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85055         * lib/localcharset.c (locale_charset): Declare as extern "C".
85056
85057 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85058
85059         * lib/config.charset: msdos in uk_UA uses CP1125.
85060
85061 2002-11-04  Bruno Haible  <bruno@clisp.org>
85062
85063         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85064         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85065         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85066         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85067         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85068
85069 2002-11-04  Bruno Haible  <bruno@clisp.org>
85070
85071         * lib/localcharset.c (locale_charset): Don't return an empty string.
85072
85073 2002-11-04  Bruno Haible  <bruno@clisp.org>
85074
85075         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85076         aliases.
85077
85078 2002-11-04  Bruno Haible  <bruno@clisp.org>
85079
85080         * lib/config.charset: Update for newest glibc. Add canonical names
85081         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85082
85083 2002-11-04  Bruno Haible  <bruno@clisp.org>
85084
85085         * lib/config.charset: Add support for NetBSD.
85086
85087 2002-11-04  Bruno Haible  <bruno@clisp.org>
85088
85089         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85090
85091 2002-11-01  Bruno Haible  <bruno@clisp.org>
85092
85093         * configure.in: Add AC_CONFIG_AUX_DIR call.
85094         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85095         test/Makefile.
85096         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85097
85098 2002-09-28  Karl Berry  <karl@gnu.org>
85099
85100         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85101         installed automake until the next release, since changes have been
85102         made.
85103
85104 2002-09-25  Karl Berry  <karl@gnu.org>
85105
85106         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85107         * lib/getopt*: copy from libc/posix.
85108         * lib/gettext.h: copy from gettext.
85109         * lib/.cppi-disable: add strdup.c, gettext.h.
85110
85111 2002-09-25  Karl Berry  <karl@gnu.org>
85112
85113         * config/srclist.txt: enable gettext.h check.
85114         * config/config.{guess,sub}: update from prep.
85115         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85116                 from automake 1.6.3.
85117         See srclist*.
85118
85119 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85120
85121         * regex.c (PATFETCH): Remove the translating fetch.
85122         (PATFETCH_RAW): Rename to PATFETCH.
85123         (set_image_of_range): New fun.
85124         (SET_RANGE_TABLE_WORK_AREA): Use it.
85125         (regex_compile): Don't translate the pattern chars so eagerly.
85126         Only do it when inserting an `exactn' bytecode or when handling
85127         a char-range.
85128         (mutually_exclusive_p): Avoid empty statement.
85129
85130 2002-07-06  Jim Meyering  <meyering@lucent.com>
85131
85132         * m4/README: Don't mention Makefile.am.in.
85133         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85134
85135 2002-07-01  Jim Meyering  <meyering@lucent.com>
85136
85137         * lib/c-stack.c: Include sys/time.h.
85138         From Volker Borchert.
85139
85140 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85141
85142         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85143
85144 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85145
85146         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85147         New macro.  Use it uniformly instead of
85148         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85149         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85150         reported by Vin Shelton.
85151
85152 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85153
85154         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85155         Do not assume SA_SIGINFO behavior.
85156         Bug reported by Jim Meyering on NetBSD 1.5.2.
85157
85158 2002-06-22  Jim Meyering  <meyering@lucent.com>
85159
85160         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85161         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85162
85163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85164         now that configure.ac uses AC_GNU_SOURCE.
85165         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85166         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85167
85168         Update to latest tools.  Suggestions from Paul Eggert.
85169         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85170         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85171         * m4/fnmatch.m4: Likewise.
85172         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85173         to AC_HEADER_STDBOOL
85174
85175 2002-06-22  Jim Meyering  <meyering@lucent.com>
85176
85177         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85178         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85179
85180 2002-06-22  Jim Meyering  <meyering@lucent.com>
85181
85182         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85183
85184         * lib/exitfail.c, exitfail.h: Likewise.
85185         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85186
85187         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85188         of fnmatch.h.
85189         (EXTRA_DIST): Add fnmatch_loop.c.
85190         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85191
85192         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85193         * lib/fnmatch.c: Update from diffutils-2.8.2.
85194         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85195         * lib/fnmatch.h: Remove file.
85196
85197 2002-06-21  Jim Meyering  <meyering@lucent.com>
85198
85199         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85200         * m4/mbrtowc.m4: Likewise.
85201
85202         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85203         * m4/mbswidth.m4: Reflect name change:
85204         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85205         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85206
85207         * m4/lib-link.m4: Update from gettext-0.11.2.
85208         * m4/gettext.m4: Likewise.
85209
85210         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85211         From Alfred M. Szmidt.
85212
85213 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85214
85215         * lib/file-type.h: Report an error if neither S_ISREG nor
85216         S_IFREG is defined, instead of using a test specific to glibc
85217         2.2.  This should be safe, since POSIX requires S_ISREG and
85218         Unix Version 7 had S_IFREG.  We don't need to check for
85219         <sys/types.h> since we don't use any symbols that it defines.
85220
85221 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85222
85223         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85224         $@-t, so that each temporary file name is unique and valid in the first
85225         8 characters, for operation under DOS.
85226
85227 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85228
85229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85230
85231 2002-06-15  Jim Meyering  <meyering@lucent.com>
85232
85233         Work even with DJGPP 2.03, which lacks support for symlinks.
85234         From Richard Dawe.
85235         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85236         is defined.
85237         * lib/lchown.c (S_ISLNK): Likewise.
85238
85239 2002-06-15  Jim Meyering  <meyering@lucent.com>
85240
85241         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85242         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85243         have been included before this file.
85244
85245 2002-06-14  Jim Meyering  <meyering@lucent.com>
85246
85247         * lib/file-type.h: Use the version from diffutils-2.8.2.
85248         * lib/file-type.c: Likewise.
85249
85250 2002-06-07  Jim Meyering  <meyering@lucent.com>
85251
85252         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85253         They're needed at least for NetBSD 1.5.2.
85254         ($statxfs_includes): Include those same headers.
85255         ($statxfs_includes): Include sys/vfs.h if available.
85256         ($statxfs_includes): Likewise for sys/statvfs.h.
85257         Check for the following members in both structs statfs and statvfs:
85258         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85259
85260 2002-06-01  Jim Meyering  <meyering@lucent.com>
85261
85262         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85263         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85264
85265 2002-05-28  Jim Meyering  <meyering@lucent.com>
85266
85267         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85268         Reported by Volker Borchert.
85269
85270 2002-05-27  Jim Meyering  <meyering@lucent.com>
85271
85272         Fix a problem seen only on nonconforming systems whereby ls.c's
85273         use of localtime, and then of gettimeofday would cause trouble:
85274         the localtime call used to initialize rpl_gettimeofday's save
85275         mechanism would clobber ls's current local time information so
85276         that in any long listing the first file would always be listed
85277         with date 1970-01-01.  Analysis by Volker Borchert.
85278
85279         * lib/gettimeofday.c (localtime): Undefine.
85280         (rpl_localtime): New function.
85281
85282 2002-05-27  Jim Meyering  <meyering@lucent.com>
85283
85284         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85285         localtime.
85286
85287         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85288         use the replacement function; it wouldn't resolve at link time.
85289         Reported by Volker Borchert.
85290
85291 2002-05-22  Jim Meyering  <meyering@lucent.com>
85292
85293         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85294         file-type.h.
85295         * lib/file-type.h: New file.
85296         * lib/file-type.c (file_type): New file/function.  Extracted from
85297         diffutils.
85298
85299 2002-04-30  Jim Meyering  <meyering@lucent.com>
85300
85301         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85302
85303 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85304
85305         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85306
85307 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85308
85309         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85310         Do not check for alloca.h (no longer used) or stdbool.h (was never
85311         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85312
85313 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85314
85315         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85316
85317 2002-04-29  Jim Meyering  <meyering@lucent.com>
85318
85319         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85320         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85321         Use AC_FUNC_STRNLEN here instead.
85322
85323         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85324         With autoconf-2.53a, it's part of AC_PROG_CC.
85325
85326 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85327
85328         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85330
85331 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85332
85333         * lib/sig2str.h, lib/sig2str.c: New files.
85334         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85335
85336 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85337
85338         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85339         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85340         of 127, since 64 is the largest conceivable number for ancient
85341         nonstandard hosts.
85342         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85343
85344 2002-04-28  Jim Meyering  <meyering@lucent.com>
85345
85346         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85347
85348 2002-04-24  Jim Meyering  <meyering@lucent.com>
85349
85350         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85351         (jm_PREREQ): Use it.
85352
85353         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85354         mach/mach.h fcntl.h.
85355         Check for this function: setlocale.
85356
85357 2002-04-24  Jim Meyering  <meyering@lucent.com>
85358
85359         * lib/gettext.h: New file, from Gettext.
85360         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85361         (libfetish_a_SOURCES): Add gettext.h.
85362
85363 2002-04-16  Jim Meyering  <meyering@lucent.com>
85364
85365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85366         ut_pid, ut_id, ut_exit.
85367
85368 2002-04-16  Jim Meyering  <meyering@lucent.com>
85369
85370         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85371         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85372         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85373
85374 2002-04-12  Jim Meyering  <meyering@lucent.com>
85375
85376         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85377         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85378         existence of the getmntinfo function.  Needed for Darwin 5.3.
85379
85380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85381         This is necessary at least on Darwin 5.3.
85382
85383         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85384         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85385         strnlen.o in the library, and that makes some versions of ranlib
85386         object.
85387
85388 2002-04-12  Jim Meyering  <meyering@lucent.com>
85389
85390         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85391
85392 2002-04-09  Jim Meyering  <meyering@lucent.com>
85393
85394         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85395         to be more precise.  Rather than saying we're checking whether the
85396         function `works', say what we're testing.
85397         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85398         Reported by Bruno Haible.
85399
85400 2002-03-10  Jim Meyering  <meyering@lucent.com>
85401
85402         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85403         Suggestion from Santiago Vila.
85404
85405 2002-03-08  Jim Meyering  <meyering@lucent.com>
85406
85407         * lib/rename.c: Mention that this wrapper is needed also on
85408         mips-dec-ultrix4.4 systems.
85409
85410 2002-03-02  Jim Meyering  <meyering@lucent.com>
85411
85412         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85413         not HAVE_CLOCK_SETTIME.
85414
85415 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85416
85417         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85418         Check for clock_settime.
85419
85420 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85421
85422         * lib/nanosleep.h: Rename to....
85423         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85424
85425         * lib/gettime.c: New file.
85426         * lib/settime.c: New file.
85427         * lib/stime.c: Remove.
85428
85429         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85430         timespec.h.  Remove nanosleep.h.
85431
85432 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85433
85434         * m4/acl.m4: New file.
85435         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85436         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85437
85438 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85439
85440         * lib/acl.c, lib/acl.h: New files.
85441         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85442
85443 2002-02-24  Jim Meyering  <meyering@lucent.com>
85444
85445         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85446         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85447         cause trouble.  Reported by Nelson Beebe.
85448
85449 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85450
85451         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85452         compilers that don't know that xalloc_die never returns.
85453
85454 2002-02-20  Jim Meyering  <meyering@lucent.com>
85455
85456         * lib/getdate.c: Regenerate using bison-1.33.
85457
85458 2002-02-17  Jim Meyering  <meyering@lucent.com>
85459
85460         * config/config.guess (main): Don't use `head -1'; it's no longer
85461         portable. Use `sed 1q' instead.
85462
85463 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85464
85465         * m4/codeset.m4: Upgrade to gettext-0.11.
85466         * m4/gettext.m4: Upgrade to gettext-0.11.
85467         * m4/glibc21.m4: Upgrade to gettext-0.11.
85468         * m4/iconv.m4: Upgrade to gettext-0.11.
85469         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85470         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85471         * m4/lib-ld.m4: New file, from gettext-0.11.
85472         * m4/lib-link.m4: New file, from gettext-0.11.
85473         * m4/lib-prefix.m4: New file, from gettext-0.11.
85474         * m4/progtest.m4: Upgrade to gettext-0.11.
85475
85476 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85477
85478         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85479         (jm_PREREQ): Use it.
85480
85481 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85482
85483         * lib/posixver.c, lib/posixver.h: New files.
85484         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85485
85486 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85487             Bruno Haible  <bruno@clisp.org>
85488
85489         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85490         (fwrite_success_callback): New declaration.
85491         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85492         print_unicode_char. Call failure callback instead of error.
85493         (fwrite_success_callback): New function.
85494         (exit_failure_callback): New function.
85495         (fallback_failure_callback): New function.
85496         (print_unicode_char): Call unicode_to_mb.
85497
85498 2002-01-26  Jim Meyering  <meyering@lucent.com>
85499
85500         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85501         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85502
85503 2002-01-26  Jim Meyering  <meyering@lucent.com>
85504
85505         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85506
85507 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85508
85509         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85510
85511 2002-01-22  Jim Meyering  <meyering@lucent.com>
85512
85513         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85514         Otherwise, some versions of automake would omit the rule that makes
85515         Makefile from Makefile.in.
85516
85517 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85518
85519         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85520         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85521         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85522         (memcoll): Set errno to zero if there is no error.
85523
85524         * lib/quotearg.c (quotearg_buffer_restyled):
85525         Fix bug with quoting buffers containing NUL when backslashing escapes.
85526         This bug was exposed by the other changes in this patch.
85527         (quotearg_n_options): New arg ARGSIZE.
85528         All callers changed.
85529         (quoting_options_from_style): New function.
85530         (quotearg_n_style): Use it.
85531         (quotearg_n_style_mem): New function.
85532
85533         * lib/quotearg.h (quotearg_n_style_mem): New function.
85534
85535 2002-01-19  Jim Meyering  <meyering@lucent.com>
85536
85537         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85538         Remove useless quotes: DF_PROG="df".
85539         * m4/strnlen.m4: New file.
85540
85541 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85542
85543         * lib/backupfile.c (ISDIGIT): Comment fix.
85544         * lib/getdate.y (ISDIGIT): Likewise.
85545         * lib/posixtm.c (ISDIGIT, year): Likewise.
85546         * lib/strverscmp.c (ISDIGIT): Likewise.
85547         * lib/userspec.c (ISDIGIT): Likewise.
85548
85549 2002-01-16  Jim Meyering  <meyering@lucent.com>
85550
85551         * lib/getdate.y: Add three semicolons, each just before a closing
85552         brace. Bison (as of version 1.31) no longer papers over that mistake.
85553
85554 2002-01-05  Jim Meyering  <meyering@lucent.com>
85555
85556         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85557
85558 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85559
85560         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85561         not silently exit merely because the output buffer happens to
85562         have nothing pending.
85563
85564 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85565
85566         See the big note in ../ChangeLog.
85567         * lib/human.c (suffixes): Prefer K to k for 1024.
85568         (generate_suffix_backwards): New function.
85569         (human_readable_inexact): Use it.
85570         * lib/xstrtol.c (__xstrtol): If there is no number but there
85571         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85572         Accept 'K' as well as 'k'.
85573
85574 2001-12-15  Jim Meyering  <meyering@lucent.com>
85575
85576         * lib/regex.h (__restrict_arr): Update from libc.
85577
85578         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85579         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85580         (STREQ): Define.
85581
85582 2001-12-14  Jim Meyering  <meyering@lucent.com>
85583
85584         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85585         Suggestion from Bruno Haible.
85586
85587 2001-12-10  Jim Meyering  <meyering@lucent.com>
85588
85589         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85590         xrealloc, Instead, include "xalloc.h".
85591         (initbuffer): Don't cast xmalloc return value to char*.
85592         (readline): Reword comment.
85593         Don't cast xrealloc return value to char*
85594         Return NULL, not 0.
85595
85596 2001-12-09  Jim Meyering  <meyering@lucent.com>
85597
85598         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85599         about `signed and unsigned type in conditional expression'.
85600         * lib/posixtm.c (posix_time_parse): Likewise.
85601
85602         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85603
85604         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85605         to avoid a pedantic warning.
85606
85607         * lib/getstr.c: Don't include assert.h.
85608         (getstr): Remove warning-evoking assertions.
85609         Return -1 if offset parameter is out of bounds.
85610         Change the type of a local from int to size_t.
85611
85612         * lib/strftime.c (my_strftime_localtime_r): Include this function
85613         definition in the `#if ! HAVE_TM_GMTOFF' block.
85614
85615         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85616         Include xalloc.h instead.
85617
85618 2001-12-02  Jim Meyering  <meyering@lucent.com>
85619
85620         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85621         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85622         included.
85623
85624         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85625         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85626
85627 2001-11-30  Akim Demaille  <akim@epita.fr>
85628
85629         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85630         before being defined.
85631
85632 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85633
85634         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85635         First arg is int, not unsigned.
85636         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85637         (SIZE_MAX, UINT_MAX): New macros.
85638         (quotearg_n_options): Abort if N is negative.
85639         Avoid overflow check on hosts where size_t is 64 bits and int
85640         is 32 bits, as overflow is impossible there.
85641         Fix off-by-one typo that caused unnecessary reallocation.
85642
85643 2001-11-27  Jim Meyering  <meyering@lucent.com>
85644
85645         * lib/tempname.c: Merge with version from libc.
85646         * lib/regex.c: Likewise.
85647
85648         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85649         systems for which STDC_HEADERS is 0, it was not included, resulting in
85650         a warning about an integer-to-pointer conversion problem with getenv.
85651         Reported by Volker Borchert.
85652
85653 2001-11-26  Jim Meyering  <meyering@lucent.com>
85654
85655         * lib/gtod.h: Remove file.
85656         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85657         * lib/gettimeofday.c: Don't include gtod.h.
85658         (GTOD_init): Remove function.
85659         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85660         Suggestion from Volker Borchert.
85661
85662 2001-11-23  Jim Meyering  <meyering@lucent.com>
85663
85664         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85665         it.
85666         * lib/hash.c (struct hash_table): Define it here instead.
85667
85668 2001-11-22  Jim Meyering  <meyering@lucent.com>
85669
85670         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85671
85672 2001-11-20  Jim Meyering  <meyering@lucent.com>
85673
85674         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85675         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85676
85677 2001-11-19  Jim Meyering  <meyering@lucent.com>
85678
85679         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85680         directory.  Use "conftestXXXXXX" as the template.
85681         Suggestion from Paul Eggert.
85682
85683         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85684         immediately, so the test doesn't mistakenly hit the max-open-files
85685         limit.
85686
85687 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85688
85689         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85690         (TEMPORARIES): New macro.
85691         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85692         removes an artificial limitation (e.g. HP-UX 10.20, where
85693         TMP_MAX is 17576).
85694
85695 2001-11-18  Jim Meyering  <meyering@lucent.com>
85696
85697         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85698
85699 2001-11-18  Jim Meyering  <meyering@lucent.com>
85700
85701         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85702         on SunOS 4.
85703
85704         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85705         files will be created before anything else.
85706
85707 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85708
85709         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85710         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85711
85712 2001-11-17  Jim Meyering  <meyering@lucent.com>
85713
85714         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85715         Prompted by a report from Bob Proulx.
85716
85717         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85718         Instead, require UTILS_FUNC_MKSTEMP.
85719
85720 2001-11-17  Jim Meyering  <meyering@lucent.com>
85721
85722         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85723         Now, that's done as part of AC_FUNC_STRTOD.
85724
85725 2001-11-17  Jim Meyering  <meyering@lucent.com>
85726
85727         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85728         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85729         rather than group writable.  Patch by Juan F. Codagnone.
85730
85731         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85732         xrealloc, Instead, include "xalloc.h".
85733
85734         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85735         Remove explicit declarations of xmalloc, xrealloc,
85736         and xstrdup.  Instead, include "xalloc.h".
85737
85738         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85739         unlocked-io.h.
85740         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85741         Likewise.
85742         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85743
85744         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85745         Reported by Padraig Brady.
85746
85747         * lib/mkstemp.c: #undef mkstemp.
85748         Include config.h.
85749         (rpl_mkstemp): Rename from mkstemp.
85750         Protoize.
85751
85752 2001-11-16  Jim Meyering  <meyering@lucent.com>
85753
85754         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85755         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85756         determine the amount of total physical memory, use pstat_getstatic.
85757         HPUX-11 doesn't define _SC_PHYS_PAGES.
85758         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85759         If sysconf couldn't be used to determine the amount of available
85760         physical memory, use both pstat_getstatic and pstat_getdynamic.
85761         Based on a patch from Bob Proulx.
85762
85763 2001-11-10  Jim Meyering  <meyering@lucent.com>
85764
85765         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85766         (jm_PREREQ): Use it.
85767
85768 2001-11-09  Jim Meyering  <meyering@lucent.com>
85769
85770         * m4/jm-macros.m4: Require autoconf-2.52f.
85771         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85772         Use these AC_-prefixed names, not the AM_-prefixed ones.
85773
85774         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85775
85776 2001-11-05  Jim Meyering  <meyering@lucent.com>
85777
85778         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85779
85780 2001-11-04  Jim Meyering  <meyering@lucent.com>
85781
85782         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85783         $DEFS.
85784
85785 2001-11-03  Jim Meyering  <meyering@lucent.com>
85786
85787         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85788         of AC_DEFUN.
85789
85790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85791         know the name of the variable in the macro definition.
85792
85793 2001-11-03  Jim Meyering  <meyering@lucent.com>
85794
85795         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85796         in argmatch_to_argument call.
85797
85798         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85799         argument.
85800
85801         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85802         e.g., a fault due to an attempt to free a NULL pointer.
85803
85804 2001-11-01  Jim Meyering  <meyering@lucent.com>
85805
85806         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85807         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85808
85809 2001-11-01  Jim Meyering  <meyering@lucent.com>
85810
85811         * lib/dirfd.c, lib/dirfd.h: New files.
85812         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85813
85814         * lib/hash.c (hash_print) [TESTING]: Clean up.
85815
85816 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85817
85818         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85819         to avoid a warning if -Wall.
85820
85821 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85822
85823         * README: New file
85824         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85825         (per RMS's instructions, this is now the canonical source)
85826         * lgpl/, gpl/: New directories.
85827
85828 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85829
85830         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85831
85832 2001-10-21  Jim Meyering  <meyering@lucent.com>
85833
85834         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85835         this code would end up calling gettext even in packages built
85836         with --disable-nls.
85837         * lib/getopt.c (_): Likewise.
85838         * lib/regex.c (_): Likewise.
85839
85840 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85841
85842         * m4/error.m4 (jm_PREREQ_ERROR):
85843         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85844         AC_FUNC_STRERROR_R does that.
85845         Check for strerror declaration.
85846
85847         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85848         are supposed to have them these days.
85849         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85850         Merge changes from latest Autoconf CVS.
85851         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85852         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85853         POSIX decided to standardize on the int flavor of strerror_r.
85854
85855 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85856
85857         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85858         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85859         Use strerror_r that is only a macro, even if it is not a function.
85860         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85861         (private_strerror): Use prototypes, not old-style function definition.
85862         (print_errno_message): New function.
85863         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85864         char*-flavored one.
85865         (error_tail, error, error_at_line): Use it.
85866
85867 2001-10-11  Jim Meyering  <meyering@lucent.com>
85868
85869         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85870         and quote_n (1, ... to avoid clobbering a buffer.
85871
85872 2001-10-05  Jim Meyering  <meyering@lucent.com>
85873
85874         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85875         hash-pjw.h.
85876         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85877         * lib/hash-pjw.h: New file.
85878
85879 2001-09-30  Jim Meyering  <meyering@lucent.com>
85880
85881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85882         `struct fsstat' has the `f_fstypename' member.
85883         Use that to define FS_TYPE, which is now used to make
85884         the getfsstat link test tighter.
85885
85886 2001-09-30  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85889         Include <sys/ucred.h>, for Apple Darwin.
85890         Include sys/mount.h and sys/fs_types.h only if available.
85891         (FS_TYPE): Define.
85892         (read_filesystem_list): Use FS_TYPE.
85893
85894 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85895
85896         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85897         a boolean context.
85898
85899 2001-09-29  Jim Meyering  <meyering@lucent.com>
85900
85901         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85902         [one-argument getmntent function]): Include stdio.h before mntent.h.
85903         SunOS 4.1.x needs it for the declaration of `FILE'.
85904         Patch by Volker Borchert.
85905
85906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85907         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85908         sys/fs_types.h, and make the link-test for getfsstat guard #include
85909         directives with appropriate #if HAVE_*_H tests so that we can
85910         detect getfsstat on Apple Darwin1.3.7 systems.
85911         Reported by Nelson Beebe.
85912         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85913
85914 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85915
85916         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85917         #defines strtoimax.  Also treat the other strto* functions
85918         like strtoimax.
85919
85920         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85921         Check for strtoul and strtoumax,
85922         as those declarations are made even in the signed case.
85923         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85924         Likewise, for strtol and strtoimax.
85925
85926 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85927
85928         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85929         #defines strtoimax.  Also treat the other strto* functions
85930         like strtoimax.
85931
85932         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85933         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85934         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85935
85936 2001-09-26  Jim Meyering  <meyering@lucent.com>
85937
85938         Most macros in unlocked-io.h had the wrong number of arguments.
85939         * lib/gen-uio: New script.
85940         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85941         * lib/unlocked-io.hin: Remove file.
85942         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85943         rather than trying to embed it here.
85944         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85945         Reported by Padraig Brady.
85946
85947 2001-09-25  Volker Borchert  <bt@teknon.de>
85948
85949         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85950         `result'.
85951
85952 2001-09-24  Jim Meyering  <meyering@lucent.com>
85953
85954         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85955
85956 2001-09-23  Jim Meyering  <meyering@lucent.com>
85957
85958         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85959         instead of the mere test for existence of mntent.h.  The latter
85960         would get a false-positive on AIX 3.4 systems.
85961         In the outer getmntent if-block, don't die if neither of the getmntent
85962         tests succeeds.  Instead, just fall through and continue with the
85963         remaining tests.
85964
85965 2001-09-23  Jim Meyering  <meyering@lucent.com>
85966
85967         * lib/mountlist.c: Remove useless parentheses in #if directives.
85968         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85969         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85970
85971 2001-09-22  Jim Meyering  <meyering@lucent.com>
85972
85973         * m4/gettext.m4: New file.  From gettext.
85974         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85975         * m4/progtest.m4: Likewise
85976         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85977         * m4/glibc21.m4: Likewise.
85978
85979         * m4/libintl.m4: Remove.  No longer used.
85980
85981 2001-09-22  Jim Meyering  <meyering@lucent.com>
85982
85983         * lib/localcharset.c: Update from latest gettext.
85984         * lib/config.charset: Likewise.
85985
85986 2001-09-20  Jim Meyering  <meyering@lucent.com>
85987
85988         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85989         strtoimax.
85990         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85991         strtoumax.
85992
85993 2001-09-20  Jim Meyering  <meyering@lucent.com>
85994
85995         * lib/xstrtol.c (strtoimax): Guard declaration with
85996         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85997         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85998         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85999         (strtoumax): Likewise, for completeness (it wasn't necessary).
86000
86001 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86002
86003         * lib/strtoimax.c (HAVE_LONG_LONG):
86004         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86005         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86006         to work around bug in IBM C compiler.
86007
86008 2001-09-17  Jim Meyering  <meyering@lucent.com>
86009
86010         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86011         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86012         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86013         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86014         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86015         whenever the right hand side need not be expanded by the shell.
86016
86017 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86018
86019         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86020         library.  It's not correct, as some older glibcs are buggy.
86021         fnmatch wasn't fixed until glibc 2.2.
86022
86023         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86024         special shell magic here.
86025
86026 2001-09-16  Jim Meyering  <meyering@lucent.com>
86027
86028         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86029         * m4/jm-macros.m4: Require it.
86030
86031 2001-09-16  Jim Meyering  <meyering@lucent.com>
86032
86033         * lib/mkdir.c: New file.
86034
86035 2001-09-15  Jim Meyering  <meyering@lucent.com>
86036
86037         * m4/jm-macros.m4: Check for help2man.
86038
86039 2001-09-11  Jim Meyering  <meyering@lucent.com>
86040
86041         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86042         The body, by Paul Eggert, was moved here from configure.in.
86043         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86044
86045 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86046
86047         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86048         (jm_PREREQ): Use it.
86049
86050 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86051
86052         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86053         Use ssize_t, not int, to store result of readlink.
86054         Check for ssize_t overflow as well as size_t overflow,
86055         as POSIX says the result of readlink is implementation-defined
86056         when ssize_t overflows.
86057         Remove unnecessary cast to char*.
86058         Use free+malloc instead of realloc, as the storage doesn't need
86059         to be preserved and it's clearer and can be more efficient that way.
86060         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86061         * lib/xreadlink.h (xreadlink): Update prototype.
86062
86063 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86064
86065         * lib/xgetcwd.c: Revert some of the previous change; intead,
86066         fix the HAVE_GETCWD_NULL code to behave more like the
86067         !HAVE_GETCWD_NULL code used to.
86068
86069         Include "xalloc.h".
86070         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86071         invoke xalloc_die.
86072
86073 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86074
86075         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86076         sys/param.h, as pathmax.h includes them.
86077
86078 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86079
86080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86081         (jm_PREREQ_XGETCWD): New macro.
86082
86083         * m4/getcwd.m4: New file.
86084
86085 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86086
86087         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86088         like the HAVE_GETCWD_NULL code.
86089         Include pathmax.h if not HAVE_GETCWD.
86090         Do not include xalloc.h.
86091         (INITIAL_BUFFER_SIZE): New symbol.
86092         Do not use xmalloc / xrealloc, since the caller is responsible for
86093         handling errors.  Preserve errno around `free' during failure.
86094         Do not overrun buffer when using getwd.
86095
86096 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86097
86098         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86099         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86100         getcwd (NULL, 0).
86101
86102 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86103
86104         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86105         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86106         spotted by Jim Meyering.
86107
86108 2001-09-03  Jim Meyering  <meyering@lucent.com>
86109
86110         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86111         failure.
86112
86113 2001-09-02  Jim Meyering  <meyering@lucent.com>
86114
86115         * lib/error.c: Update from GNU libc.
86116
86117 2001-09-01  Jim Meyering  <meyering@lucent.com>
86118
86119         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86120         Used by df.
86121
86122 2001-09-01  Jim Meyering  <meyering@lucent.com>
86123
86124         * lib/xreadlink.c: New file.
86125         * lib/xreadlink.h: New file.
86126         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86127         xreadlink.h.
86128
86129         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86130         doesn't conflict with sparc Solaris 7's definition in
86131         /usr/include/sys/int_types.h.
86132
86133         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86134         files.
86135         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86136         and strncasecmp as r-values.  Unixware didn't have declarations.
86137
86138 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86139
86140         * lib/xstrtol.h: Add copyright notice.
86141         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86142         LONGINT_INVALID_SUFFIX_CHAR.
86143
86144 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86145
86146         * lib/xstrtol.c (strtoimax): New decl.
86147
86148 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86149
86150         * lib/xgetcwd.c: Don't include pathmax.h.
86151         Include stdlib.h and unistd.h if available.
86152         Include xalloc.h.
86153         (xmalloc, xstrdup, free): Remove decls.
86154         (xgetcwd): Don't assume sizes fit in unsigned.
86155         Check for overflow when computing sizes.
86156         Simplify reallocation code.
86157
86158 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86159
86160         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86161         a directory's st_size can have an arbitrary value, so the old
86162         usage could waste an arbitrary amount of memory.  All uses
86163         changed.
86164         * lib/savedir.h: Update prototype.
86165
86166 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86167
86168         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86169
86170         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86171         old strtoimax.c.
86172
86173         Also, make the following further changes to make this file's
86174         configuration more similar to that of strtol.c:
86175         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86176         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86177         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86178         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86179         changed to signed values.
86180
86181         And make the following changes as well:
86182         Fix copyright notice, as 1999 was missing.
86183         (verify): New macro.
86184         (strtoimax): Check sizes at compile-time, not run-time.
86185         Prefer strtol to strtoll if both work.
86186         (main): Remove; it was not that useful and was a pain to maintain.
86187
86188         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86189
86190 2001-08-31  Jim Meyering  <meyering@lucent.com>
86191
86192         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86193         Use an initial, malloc'd, buffer of length 128 rather than
86194         a statically allocated one of length 1024.
86195
86196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86197
86198         Simplify code, partly by assuming autoconf 2.52 semantics.
86199
86200         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86201
86202         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86203         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86204         All uses removed.
86205         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86206         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86207         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86208         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86209         jm_AC_HEADER_INTTYPES_H.
86210         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86211
86212         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86213
86214         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86215         Quote first arg of AC_DEFUN.
86216         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86217         since they are needed to parse the include file even if we need
86218         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86219         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86220         but with opposite signedness.
86221
86222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86223
86224         Merge 'exclude' changes from tar 1.13.22.
86225         This fixes one or two unlikely storage allocation overflow bugs,
86226         but doesn't change user-visible behavior otherwise.
86227
86228 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86229
86230         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86231         (jm_PREREQ_EXCLUDE): New macro.
86232
86233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86234
86235         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86236         tm to be declared.
86237
86238 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86239
86240         * lib/hash.c: Remove '2001' from copyright notice.
86241
86242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86243
86244         * lib/full-write.h: New file.
86245         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86246         * lib/full-write.c: Correct credits, as cccp.c no longer
86247         exists and anyway it was so heavily changed from the old cccp
86248         code as to be unrecognizable.  Include full-write.h.
86249         (full_write): Return size_t, with short writes meaning failure.
86250         All callers changed.  This fixes a bug with large buffers
86251         on 64-bit hosts.
86252         * lib/utime.c: Include full-write.h.
86253
86254 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86255
86256         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86257         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86258         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86259         Include if available.
86260         (<xalloc.h>): Include
86261         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86262         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86263         collide with FNM macros.
86264         (struct patopts): New struct.
86265         (struct exclude): Use it, as exclude patterns now come with options.
86266         (new_exclude): Support above changes.
86267         (new_exclude, add_exclude_file):
86268         Initial size must now be a power of two to simplify overflow checking.
86269         (free_exclude, fnmatch_no_wildcards): New function.
86270         (excluded_filename): No longer requires options arg, as the options
86271         are determined by add_exclude.  Now returns bool, not int.
86272         (excluded_filename, add_exclude):
86273         Add support for the fancy new exclusion options.
86274         (add_exclude, add_exclude_file): Now takes int options arg.
86275         Check for arithmetic overflow when computing sizes.
86276         (add_exclude_file): xrealloc might modify errno, so don't
86277         realloc until after errno might be used.
86278
86279         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86280         New macros.
86281         (free_exclude): New decl.
86282         (add_exclude, add_exclude_file): Now takes int options arg.
86283         (excluded_filename): No longer requires options arg, as the options
86284         are determined by add_exclude.  Now returns bool, not int.
86285
86286 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86287
86288         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86289
86290 2001-08-27  Jim Meyering  <meyering@lucent.com>
86291
86292         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86293
86294         * lib/version-etc.c (N_): Remove definition.
86295         Revert most of last change.
86296         Instead, simply don't mark the `Copyright...' string for translation.
86297         Based on advice from Paul Eggert.
86298
86299         * lib/strtoxmax.c: Tweak comment.
86300
86301 2001-08-26  Jim Meyering  <meyering@lucent.com>
86302
86303         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86304
86305         * m4/xstrtoimax.m4: New file.
86306         * m4/xstrtoumax.m4: Add comments explaining why we
86307         AC_REPLACE_FUNCS(strtol).
86308
86309 2001-08-26  Jim Meyering  <meyering@lucent.com>
86310
86311         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86312         of copyright with `%s' so translators don't get an untranslated
86313         message in 2002.
86314         (COPYRIGHT_YEAR): Define.
86315         (version_etc): Use fprintf rather than fputs.
86316         Suggestion from Ulrich Drepper.
86317
86318         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86319
86320         * lib/strtoll.c: New file, from GNU libc.
86321         * lib/xstrtoimax.c: New file.
86322
86323         * lib/xstrtol.h: Add xstrtoimax.
86324         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86325         * lib/strtoimax.c: New file.  Likewise, but first define
86326         STRTOUXMAX_SIGNED.
86327
86328         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86329         ...
86330         * lib/strtoxmax.c: ... then renamed to this.
86331
86332 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86333
86334         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86335         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86336         (jm_AC_TYPE_INTMAX_T): New macro.
86337         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86338
86339         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86340
86341         * m4/longlong.m4: Renamed from ulonglong.m4.
86342         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86343         * m4/uintmax_t.m4: Removed.
86344
86345 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86346
86347         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86348         Port to Solaris 8, where 'sed' requires a space after the 'r'
86349         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86350         Redirect output to $tmp just once.
86351
86352 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86353
86354         * lib/addext.c (<errno.h>): Include.
86355         (errno): Declare if not defined.
86356         (addext): Work correctly when pathconf returns -1 and leaves
86357         errno alone because there is no limit.  Also, work even if
86358         pathconf returns a value greater than SIZE_MAX.
86359
86360 2001-08-12  Jim Meyering  <meyering@lucent.com>
86361
86362         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86363         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86364         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86365         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86366         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86367         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86368         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86369         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86370         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86371         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86372         utime.m4, utimes.m4, xstrtoumax.m4:
86373         Quote the first argument in each use of AC_DEFUN.
86374
86375 2001-08-12  Jim Meyering  <meyering@lucent.com>
86376
86377         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86378         Simply `return getcwd (NULL, 0);'.
86379         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86380         Use 1300 as initial value for length, not PATH_MAX.
86381
86382         * lib/pathmax.h: Clean up cpp syntax.
86383
86384 2001-08-12  Jim Meyering  <meyering@lucent.com>
86385
86386         * lib/gettimeofday.c: New file.
86387         * lib/gtod.h: New file.
86388         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86389
86390 2001-08-05  Jim Meyering  <meyering@lucent.com>
86391
86392         * m4/jm-macros.m4: Require autoconf-2.52.
86393
86394 2001-08-04  Jim Meyering  <meyering@lucent.com>
86395
86396         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86397         stmt, to get in sync with glibc.
86398
86399 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86400
86401         The following changes are from gettext 0.10.39 as maintained by
86402         Bruno Haible.
86403
86404         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86405         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86406         with inverted sense.  All uses changed.
86407
86408         * lib/mbswidth.c: Don't include <limits.h>.
86409         Include <stdlib.h> and <string.h> unconditionally.
86410         (iswcntrl, mbsinit, ISCNTRL): New macros.
86411         (mbsnwidth): Use K&R style function declarations.
86412         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86413         can optimize it when MB_CUR_MAX == 1.
86414         The width of control characters is zero, not 1.
86415
86416 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86417
86418         The following changes are from gettext 0.10.39 as maintained by
86419         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86420
86421         * m4/codeset.m4: Upgrade to serial AM1.
86422         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86423         all uses changed.  Quote first arg of AC_DEFUN.
86424         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86425
86426         * m4/iconv.m4: Upgrade to serial AM2.
86427         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86428         Add --with-libconv-prefix.
86429         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86430         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86431         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86432         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86433         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86434
86435         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86436         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86437         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86438         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86439         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86440         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86441         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86442         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86443         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86444
86445         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86446         string.h any more.
86447
86448         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86449         not the default value.
86450
86451         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86452         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86453         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86454         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86455         Also check for iswcntrl, used for wcwidth fallback.
86456         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86457         to Autoconf 2.13.
86458
86459 2001-08-03  Jim Meyering  <meyering@lucent.com>
86460
86461         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86462         as it was in the original.  Reported by Paul Eggert.
86463
86464 2001-07-16  Jim Meyering  <meyering@lucent.com>
86465
86466         * m4/gettimeofday.m4: New file.
86467         Prompted by a report from Bernhard Baehr.
86468
86469 2001-07-15  Jim Meyering  <meyering@lucent.com>
86470
86471         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86472         stuff. Now it's in ../Makefile.cfg.
86473
86474 2001-07-15  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86477         (BUILT_SOURCES): Add unlocked-io.h.
86478         (io_functions): Define.
86479         (unlocked-io.h): New rule.
86480         (DISTCLEANFILES): Add unlocked-io.h.
86481         (all-local): Depend on unlocked-io.h, to ensure it is created.
86482
86483         * lib/unlocked-io.hin: New file
86484
86485         * lib/regex.c: Update from glibc.
86486
86487 2001-07-05  Jim Meyering  <meyering@lucent.com>
86488
86489         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86490         recommendation.
86491         (libfetish_a_SOURCES): Put all .h files here instead.
86492         Remove a thus-exposed (better checks in automake) duplicate and
86493         two unnecessary .h files.
86494
86495 2001-07-04  Jim Meyering  <meyering@lucent.com>
86496
86497         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86498         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86499         distcheck failure.
86500
86501 2001-07-02  Jim Meyering  <meyering@lucent.com>
86502
86503         The following changes were prompted by suggestions from Bruno Haible.
86504
86505         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86506         is now generated.
86507         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86508         definition of EXTRA_DIST.
86509         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86510         ensure that the generated file is created/updated whenever the list
86511         of $(unlocked_functions) is changed.
86512         (jm-glibc-io.m4): New rule.
86513         (unlocked-io.h): New rule -- currently unused.
86514
86515 2001-06-24  Jim Meyering  <meyering@lucent.com>
86516
86517         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86518         unmatched right bracket, rather than kludging it with an extra,
86519         falsely-matching quote in a comment.  Patch by Akim Demaille.
86520
86521 2001-06-11  Jim Meyering  <meyering@lucent.com>
86522
86523         * lib/regex.c: Update from GNU libc.
86524
86525 2001-05-27  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86528         Check for ut_type in struct utmp.
86529
86530 2001-05-27  Jim Meyering  <meyering@lucent.com>
86531
86532         * lib/readutmp.h (UT_TYPE): Define.
86533
86534 2001-05-24  Jim Meyering  <meyering@lucent.com>
86535
86536         * lib/argmatch.c: Include "quote.h".
86537         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86538         quote function.  Reported by Göran Uddeborg.
86539
86540 2001-05-22  Jim Meyering  <meyering@lucent.com>
86541
86542         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86543         now that we use the package-supplied version unconditionally.
86544         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86545
86546 2001-05-21  Jim Meyering  <meyering@lucent.com>
86547
86548         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86549         shell syntax errors.
86550
86551 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86552
86553         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86554
86555 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86556
86557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86558         Don't bother to check library strftime, since
86559         we'll be using our own my_strftime function anyway.
86560         Define my_strftime instead of strftime.
86561
86562 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86563
86564         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86565         which is not yet declared.
86566
86567 2001-05-15  Jim Meyering  <meyering@lucent.com>
86568
86569         * m4/regex.m4: Use proper quoting so brackets appear in the test
86570         program.
86571         Reported by, and with help from, Bruno Haible.
86572
86573 2001-05-13  Jim Meyering  <meyering@lucent.com>
86574
86575         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86576         undefined.
86577
86578 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86579
86580         dirname code cleanup.  base_name now behaves more compatibly
86581         with POSIX basename when given file names that have trailing
86582         slashes, and similarly for dir_name.  Add new primitives
86583         base_len and dir_len.  Put the directory-name-related decls
86584         into dirname.h.
86585
86586         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86587         * lib/backupfile.c (base_name): Likewise.
86588         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86589         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86590         * lib/makepath.c (strip_trailing_slashes): Likewise.
86591         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86592         ISSLASH): Likewise.
86593         * lib/rename.c (strip_trailing_slashes): Likewise.
86594         * lib/same.c (base_name): Likewise.
86595         * lib/stripslash.c (ISSLASH): Likewise.
86596
86597         * lib/addext.c: Include <dirname.h> after size_t is defined.
86598         * lib/backupfile.c: Likewise.
86599
86600         * lib/addext.c (addext): Use base_len to trim redundant
86601         trailing slashes instead of doing it ourselves.
86602         But do not trim the last slash if it is not redundant.
86603
86604         * lib/backupfile.c (find_backup_file_name,
86605         max_backup_version): Use base_len instead of rolling it ourselves.
86606         Handle the case of "" and (on DOS) "C:" correctly.
86607
86608         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86609         needed. Include <string.h>, <dirname.h>.
86610         (base_name): Allow file names ending in slashes, other than names
86611         that are all slashes.  In this case, return the basename followed
86612         by the slashes.  This is more general, and can be used in places
86613         where the original base_name purposely had an assertion failure.
86614         (base_len): New function.
86615
86616         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86617         Do not include <assert.h>; no longer needed.
86618         Include xalloc.h.
86619         (memrchr): Remove decl.
86620         (dir_name_r): Remove.
86621         (dir_len): Renamed from dirlen.  All callers changed.
86622         Rewrite in terms of base_name, for simplicity and consistency.
86623         (dir_name): Never return NULL.  All callers changed.
86624         Do not include <stdlib.h> in test program; no longer needed.
86625         return 0; is fine for test program.
86626
86627         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86628         New macros.
86629         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86630
86631         * lib/path-concat.c (path_concat): Use base_len to compute
86632         base length, not strlen; this means we cannot rely on memcpy
86633         to null-terminate.
86634
86635         * lib/same.c (STREQ): Remove.
86636         (same_name): Handle the case where the basename ends in trailing '/'.
86637
86638         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86639         a slash was stripped.  Do not strip the last slash after a
86640         file system prefix.
86641
86642 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86643
86644         * lib/Makefile.am (libfetish_a_SOURCES):
86645         Add strftime.c, since we now compile it on all hosts.
86646
86647         * lib/strftime.c (my_strftime):
86648         Define to nstrftime if emacs, but only if my_strftime is not defined.
86649         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86650         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86651         Add one more extra argument: a nanoseconds value.
86652         All uses changed.
86653         (ns): New macro.
86654         (my_strftime function): Add %N format.
86655         (emacs_strftimeu): Renamed from emacs_strftime,
86656         with extra ut argument.
86657
86658 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86659
86660         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86661
86662 2001-04-21  Jim Meyering  <meyering@lucent.com>
86663
86664         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86665         doesn't interfere.
86666
86667 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86668
86669         * m4/ftruncate.m4: Check for chsize.
86670         Link with ftruncate.o unconditionally if ftruncate is missing.
86671         This was required when cross-compiling to i586-mingw32msvc.
86672
86673 2001-04-08  Jim Meyering  <meyering@lucent.com>
86674
86675         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86676         recomputed; that's necessary when the offset spans a DST transition.
86677         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86678
86679 2001-04-02  Jim Meyering  <meyering@lucent.com>
86680
86681         * lib/regex.h, regex.c: Update from GNU libc.
86682
86683 2001-03-24  Jim Meyering  <meyering@lucent.com>
86684
86685         * m4/jm-macros.m4: Require autoconf-2.49d.
86686
86687 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86688
86689         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86690
86691 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86692
86693         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86694
86695 2001-03-17  Jim Meyering  <meyering@lucent.com>
86696
86697         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86698         now that the version in autoconf is equivalent.
86699         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86700
86701         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86702         Suggestion from Akim Demaille.
86703
86704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86705         (jm_PREREQ_TEMPNAME): New function.
86706
86707 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86708
86709         * lib/tempname.c (uint64_t): Define to uintmax_t if
86710         not defined, and if UINT64_MAX is not defined.
86711         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86712         Reported by John David Anglin.
86713
86714 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86715
86716         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86717         resolve alias if codeset is empty.
86718         * lib/config.charset (BeOS): Use wildcard syntax.
86719
86720 2001-03-13  Jim Meyering  <meyering@lucent.com>
86721
86722         * lib/path-concat.c (path_concat)
86723         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86724         concatenating e.g., `C:' and `foo'.
86725         From Bruno Haible.
86726
86727 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86728
86729         * lib/localcharset.c (locale_charset): Don't use
86730         setlocale(LC_CTYPE,NULL). Don't return NULL.
86731         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86732
86733 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86734
86735         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86736         support for DOS/DJGPP.
86737
86738 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86739
86740         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86741         lacks mkstemp.  Compile our own tempname.c if we compile our own
86742         mkstemp.c, as mkstemp relies on tempname.
86743
86744 2001-03-01  Jim Meyering  <meyering@lucent.com>
86745
86746         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86747         AH_VERBATIM really does output its argument verbatim.
86748
86749 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86750
86751         * lib/Makefile.am (libfetish_a_SOURCES):
86752         Add dup-safer.c, fopen-safer.c.
86753         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86754
86755         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86756         * lib/unistd-safer.h: New files.
86757
86758 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86759
86760         The mkstemp replacement is taken from glibc 2.2.2, with some
86761         portability fixes for use outside glibc, as follows:
86762
86763         * lib/tempname.c (struct_stat64): New macro.
86764         (direxists, __gen_tempname): Use it.
86765         This avoids a portability problem with Solaris 8.
86766
86767         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86768         (<stddef.h>, <stdint.h>, <string.h>):
86769         Include only if STDC_HEADERS || _LIBC.
86770         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86771         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86772         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86773         (__set_errno): Define this macro if <errno.h> doesn't.
86774         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86775         Define these macros if <stdio.h> doesn't.
86776         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86777         Define these macros if <sys/stat.h>
86778         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86779         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86780         __xstat64): Define if not _LIBC.
86781         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86782         (__gen_tempname): Invoke gettimeofday only if
86783         HAVE_GETTIMEOFDAY || _LIBC;
86784         otherwise, fall back on plain "time".
86785         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86786
86787         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86788
86789         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86790
86791 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86792
86793         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86794
86795 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86796
86797         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86798         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86799         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86800         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86801
86802 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86803
86804         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86805         Remove workaround macros for hosts that have mbrtowc but not
86806         mbstate_t, as we now insist on proper declarations for both
86807         before using mbrtowc.
86808
86809 2001-02-17  Jim Meyering  <meyering@lucent.com>
86810
86811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86812         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86813         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86814         UnixWare 7.1.1.
86815
86816         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86817         rather than AC_CACHE_VAL.
86818
86819 2001-02-17  Jim Meyering  <meyering@lucent.com>
86820
86821         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86822         around included file name.
86823
86824         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86825
86826         * lib/strftime.c: Update from GNU libc (the only changes were to
86827         comments).
86828
86829 2001-02-17  Jim Meyering  <meyering@lucent.com>
86830
86831         * lib/regex.c: Update from libc.
86832
86833 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86834
86835         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86836         clash.
86837
86838 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86839
86840         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86841         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86842         Reported by Mark Hounschell via Paul Eggert.
86843
86844 2001-02-07  Jim Meyering  <meyering@lucent.com>
86845
86846         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86847
86848 2001-02-05  Jim Meyering  <meyering@lucent.com>
86849
86850         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86851         it includes the patch required for `large file' support with at least
86852         HP-UX's 10.20 /bin/cc.
86853
86854 2001-02-03  Jim Meyering  <meyering@lucent.com>
86855
86856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86857         AS_IF, now that it works once again (mysteriously).
86858         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86859
86860 2001-01-30  Jim Meyering  <meyering@lucent.com>
86861
86862         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86863         * m4/chown.m4: Rename conftestchown to conftest.chown.
86864         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86865         s/conftestdir2/conftest.d2/.
86866         * m4/utimes.m4: s/conftestdata/conftest.data/
86867         Inspired by Pavel Roskin's change in autoconf.
86868
86869 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86870
86871         * lib/config.charset: Update for FreeBSD 4.2.
86872
86873 2001-01-27  Jim Meyering  <meyering@lucent.com>
86874
86875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86876         a use of AS_IF.
86877         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86878
86879 2001-01-26  Jim Meyering  <meyering@lucent.com>
86880
86881         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86882         quotearg.c includes it.
86883
86884 2001-01-26  Jim Meyering  <meyering@lucent.com>
86885
86886         * lib/quotearg.c: Include stddef.h.
86887         * lib/quote.c: Include stddef.h.
86888         Reported by Axel Kittenberger.
86889
86890         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86891         line in double quotes so that it evokes a better diagnostic.
86892         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86893         Reported by Axel Kittenberger.
86894
86895 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86896
86897         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86898         as if it was a `charset'.
86899
86900 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86901
86902         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86903         has const.
86904
86905 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86906
86907         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86908         to avoid a warning.  Add back 'const' to inptr.
86909
86910 2001-01-20  Jim Meyering  <meyering@lucent.com>
86911
86912         Be sure that headers are checked before used in code compiled
86913         for the type checks.
86914         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86915         In place of that, invoke jm_CHECK_ALL_TYPES.
86916         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86917         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86918         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86919         The check for ssize_t was mistakenly run before the test for unistd.h.
86920
86921         The configure-time check for stdbool.h was missing.
86922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86923         (jm_PREREQ_HASH): New function.
86924
86925 2001-01-17  Jim Meyering  <meyering@lucent.com>
86926
86927         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86928         for autoconf-2.49c.
86929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86930
86931 2001-01-16  Jim Meyering  <meyering@lucent.com>
86932
86933         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86934         From Bruno Haible.
86935
86936 2001-01-14  Jim Meyering  <meyering@lucent.com>
86937
86938         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86939         foo and bar.  Create conftestdir/ in the script, not in the C code.
86940         Remove directories in the script, not in the C code.
86941         Remove conftestdir{,2} before trying to create the directory.
86942         Make the entire configure script fail if the mkdir fails.
86943
86944 2001-01-14  Jim Meyering  <meyering@lucent.com>
86945
86946         * lib/rename.c: New file.  From Volker Borchert.
86947         Include stdlib.h, string.h or strings.h, and xalloc.h.
86948         Use strip_trailing_slashes rather than open-coding it.
86949
86950 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86951
86952         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86953
86954 2001-01-03  Jim Meyering  <meyering@lucent.com>
86955
86956         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86957         of local `inptr' to avoid warning with some system declarations of
86958         iconv.
86959
86960 2001-01-02  Volker Borchert  <bt@teknon.de>
86961
86962         * m4/rename.m4: New file.
86963         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86964
86965 2001-01-01  Jim Meyering  <meyering@lucent.com>
86966
86967         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86968         even on systems with utmpx.h.  It's necessary for the declaration of
86969         utmp's ut_user member.  Reported by Andreas Jaeger.
86970
86971         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86972         available. They are required for the declarations of getgrgid and
86973         getpwuid resp.
86974         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86975         Reported by Andreas Jaeger.
86976
86977 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86978
86979         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86980         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86981         so `make install' also works in VPATH builds.
86982
86983 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86984
86985         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86986         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86987         can be used in subdirectories.
86988
86989 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/modechange.c: Do not assume that mode_t uses the
86992         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86993         the other-execute bit of FOO even if S_IXOTH != 1.
86994
86995         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86996         WOTH, XOTH, ALLM): New macros.
86997         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86998          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86999         Use them.
87000         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87001         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87002         (mode_compile):
87003         No need to use uintmax_t; unsigned long is long enough.
87004         Don't bother to get suffix since we don't use it.
87005
87006 2000-12-26  Jim Meyering  <meyering@lucent.com>
87007
87008         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87009         better with autoheader.
87010
87011 2000-12-24  Jim Meyering  <meyering@lucent.com>
87012
87013         * lib/hash.c (is_prime): Return explicit boolean values.
87014         (hash_get_first): Return NULL to appease Irix5.6's 89.
87015         Reported by Nelson Beebe.
87016
87017 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87018
87019         * lib/localcharset.c (locale_charset): Add support for Win32.
87020
87021 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87022
87023         * lib/physmem.h, lib/physmem.c: New files.
87024
87025         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87026         (noinst_HEADERS): Add physmem.h.
87027
87028         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87029         't' for compatibility with Solaris 8 sort.
87030
87031 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87032
87033         * lib/config.charset: Add support for BeOS.
87034
87035 2000-12-17  Jim Meyering  <meyering@lucent.com>
87036
87037         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87038         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87039
87040 2000-12-16  Jim Meyering  <meyering@lucent.com>
87041
87042         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87043         N and M) would have treated it like `chown N:N FILE'.
87044
87045         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87046
87047 2000-12-16  Jim Meyering  <meyering@lucent.com>
87048
87049         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87050         SHELLS_FILE to a file name that's useful on djgpp systems.
87051         Include stdlib.h.
87052         (ADDITIONAL_DEFAULT_SHELLS): Define.
87053         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87054         Based mostly on a patch from Prashant TR.
87055
87056 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87057
87058         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87059         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87060         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87061
87062 2000-12-08  Andreas Schwab  <schwab@suse.de>
87063
87064         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87065         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87066
87067 2000-12-07  Jim Meyering  <meyering@lucent.com>
87068
87069         * lib/stripslash.c (ISSLASH): Define.
87070         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87071         `/'.
87072         From Prashant TR.
87073
87074         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87075         (dir_name_r): Declare this function as static.
87076         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87077         manifest itself on a name containing a mix of slashes and
87078         backslashes.
87079         Make this function work with names starting with a DOS-style
87080         drive letter and colon prefix.
87081         (dir_name): Append `.' if necessary.
87082         Based mostly on patches from Prashant TR and Eli Zaretskii.
87083
87084         * lib/dirname.h (dir_name_r): Remove prototype.
87085
87086 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87087
87088         * m4/off_t-format.m4: Remove this file.
87089         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87090
87091 2000-12-06  Jim Meyering  <meyering@lucent.com>
87092
87093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87094         replacement strtoull, we may well need the replacement strtoul, too.
87095         Check for declarations of strtoul and strtoull.
87096         Check for strtol.  Mainly as a cue to cause automake to include
87097         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87098         Check for limits.h -- strtol.c needs it.
87099
87100 2000-12-05  Jim Meyering  <meyering@lucent.com>
87101
87102         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87103
87104 2000-12-04  Jim Meyering  <meyering@lucent.com>
87105
87106         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87107         Also include memory.h, stdlib.h, unistd.h if appropriate.
87108         Reported by Andreas Jaeger (conflicting declaration of malloc).
87109
87110 2000-12-02  Jim Meyering  <meyering@lucent.com>
87111
87112         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87113         * m4/jm-macros.m4 (jm_MACROS): require it.
87114
87115 2000-12-02  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87118
87119 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87120
87121         * lib/memrchr.c: Include <config.h> before any system include file.
87122
87123 2000-11-30  Jim Meyering  <meyering@lucent.com>
87124
87125         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87126
87127 2000-11-30  Jim Meyering  <meyering@lucent.com>
87128
87129         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87130
87131 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87132
87133         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87134
87135 2000-11-26  Jim Meyering  <meyering@lucent.com>
87136
87137         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87138
87139 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87140
87141         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87142         size of (size_t) -1; it's not portable.
87143
87144 2000-11-17  Jim Meyering  <meyering@lucent.com>
87145
87146         * lib/strstr.c: Update from GNU libc.
87147
87148 2000-11-17  Akim Demaille  <akim@epita.fr>
87149
87150         * lib/obstack.h: Formatting changes.
87151         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87152         prevent type checking.
87153         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87154         cast the value to (void *): assigning a `foo *' to a `void *'
87155         variable is valid.
87156         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87157
87158 2000-11-16  Jim Meyering  <meyering@lucent.com>
87159
87160         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87161
87162 2000-11-11  Jim Meyering  <meyering@lucent.com>
87163
87164         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87165
87166 2000-11-10  Jim Meyering  <meyering@lucent.com>
87167
87168         * lib/obstack.h: Update from GNU libc.
87169         * lib/obstack.c: Likewise.
87170
87171 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87172
87173         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87174
87175 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87176
87177         * lib/getusershell.c (setusershell): Use rewind rather than
87178         fseek/fseeko, to avoid configuration hassles with fseeko.
87179         Don't bother opening SHELLS_FILE if shellstream is NULL;
87180         it's not necessary.
87181
87182 2000-11-05  Jim Meyering  <meyering@lucent.com>
87183
87184         * lib/makepath.h (make_dir): Declare.
87185         * lib/makepath.c (make_dir): Remove `static' attribute.
87186         Tweak a comment.
87187
87188 2000-11-04  Jim Meyering  <meyering@lucent.com>
87189
87190         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87191
87192 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87193
87194         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87195         last one in a bucket, advance to the next bucket.
87196
87197 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87198
87199         * lib/fnmatch.c: Do not comment out all the code if we are using
87200         the GNU C library, because in some cases we are replacing buggy
87201         code in the GNU C library itself.
87202
87203 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87204
87205         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87206         (regex_compile): Catch bogus \(\1\).
87207
87208 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87209
87210         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87211         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87212         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87213
87214 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87215
87216         * lib/error.h, getline.h, modechange.h:
87217         Remove "2000" from Copyright line, as the file hasn't been
87218         changed this year other than in the copyright notice.
87219
87220         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87221         was changed this year.
87222
87223 2000-10-29  Jim Meyering  <meyering@lucent.com>
87224
87225         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87226         renaming.
87227         * m4/ls-mntd-fs.m4: Likewise
87228
87229 2000-10-29  Jim Meyering  <meyering@lucent.com>
87230
87231         * lib/xstat.in: Fix grammar in comment.
87232
87233 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87234
87235         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87236         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87237         doesn't define __restrict_arr.
87238
87239 2000-10-28  Jim Meyering  <meyering@lucent.com>
87240
87241         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87242         (jm_PREREQ_MEMCHR): New function.
87243
87244 2000-10-28  Jim Meyering  <meyering@lucent.com>
87245
87246         * lib/memchr.c: Update from libc.
87247         Adjust for portability:
87248         [HAVE_STDLIB_H]: Include stdlib.h.
87249         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87250         Undef __memchr, too.
87251         [!weak_alias]: Define __memchr to memchr.
87252
87253         * lib/regex.c: Update from libc.
87254         * lib/regex.h: Likewise.
87255         * lib/getopt1.c: Likewise.
87256         * lib/memcmp.c: Likewise.
87257
87258         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87259         Avoid using fseek, when possible -- it's broken by design.
87260         Patch by Ulrich Drepper.
87261
87262 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87263
87264         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87265         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87266         Giving in to popular pressure to shut up the compiler with casts.
87267
87268 2000-10-26  Jim Meyering  <meyering@lucent.com>
87269
87270         * lib/strftime.c: Update from libc.
87271
87272 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87273
87274         * regex.c: More `unsigned char' -> `re_char' changes.
87275         Also change several `int' into `re_wchar_t'.
87276         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87277         (PUSH_FAILURE_POINTER): Don't cast any more.
87278         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87279         We want GCC to complain, since this piece of code makes
87280         re_match non-reentrant, which *should* be fixed.
87281         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87282         (EXTEND_BUFFER): Use RETALLOC.
87283         (SET_LIST_BIT): Don't cast.
87284         (re_wchar_t): New type.
87285         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87286         that those two functions will always properly return.
87287         (IMMEDIATE_QUIT_CHECK): Cast to void.
87288         (analyse_first): Use recursion rather than an explicit stack.
87289         (re_compile_fastmap): Can't fail anymore.
87290         (re_search_2): Don't check re_compile_fastmap for failure.
87291         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87292         Now also sets the new value (passed in a new argument).
87293         (re_match_2_internal): Use it.
87294         Also, use a new var `reg' of type size_t when looping through regs
87295         rather than reuse the inappropriate `mcnt'.
87296
87297 2000-10-25  Jim Meyering  <meyering@lucent.com>
87298
87299         * lib/obstack.c: Update from libc.
87300
87301 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87302
87303         * regex.c (regex_compile): Change the way of handling a range from
87304         a char less than 256 to a char not less than 256.
87305
87306 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87307
87308         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87309         NT-Emacs only.
87310         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87311         so that re_search functions only quit when callers expect them to.
87312
87313 2000-10-23  Jim Meyering  <meyering@lucent.com>
87314
87315         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87316         wrong.  That set_locale call must not have any side effects.
87317         From Paul Eggert.
87318
87319 2000-10-22  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87322         [CYCLIC]: Remove now-unused definition.
87323
87324         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87325         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87326         Suggestion from Ulrich Drepper.
87327
87328 2000-10-21  Jim Meyering  <meyering@lucent.com>
87329
87330         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87331         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87332         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87333
87334 2000-10-21  Jim Meyering  <meyering@lucent.com>
87335
87336         * lib/dirname.c (memrchr): Declare if necessary.
87337         (dir_name): Remove the restriction that there be no
87338         trailing slashes.  Now, this code skips past them, effectively
87339         ignoring them.
87340         [TEST_DIRNAME] (main): New unit tests.
87341
87342         * lib/memrchr.c: New file from GNU libc.
87343         Undef __memrchr, too.
87344         [!weak_alias]: Define __memrchr to memrchr.
87345         Guard weak_alias use with `#ifdef weak_alias'.
87346
87347 2000-10-21  Jim Meyering  <meyering@lucent.com>
87348
87349         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87350         (dir_name): Use dir_name_r.
87351         * lib/dirname.h (dir_name_r): Declare it.
87352
87353 2000-10-17  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/quote.h (PARAMS): Define and use.
87356         Reported by Akim Demaille.
87357
87358         * lib/getopt.c: Update from libc.
87359
87360 2000-10-16  Jim Meyering  <meyering@lucent.com>
87361
87362         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87363         setlocale.
87364         From Jan Fedak.
87365
87366 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87367
87368         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87369
87370 2000-09-25  Jim Meyering  <meyering@lucent.com>
87371
87372         * lib/md5.h (rol): Define (from GnuPG).
87373
87374         * lib/sha.c: Give credit (GnuPG) where due.
87375         (M): Use rol rather than open-coding it.
87376         Add a FIXME comment.
87377
87378 2000-09-21  Jim Meyering  <meyering@lucent.com>
87379
87380         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87381         Reported by Michael Stone.
87382
87383 2000-09-20  Jim Meyering  <meyering@lucent.com>
87384
87385         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87386         (noinst_HEADERS): Add sha.h.
87387         Based on code from Scott G. Miller and from GnuPG.
87388
87389 2000-09-18  Jim Meyering  <meyering@lucent.com>
87390
87391         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87392         LIBS. Otherwise, everyone ends up linking with -lelf for some
87393         configurations.
87394         Reported by Mike Stone.
87395
87396 2000-09-15  Jim Meyering  <meyering@lucent.com>
87397
87398         * lib/regex.c: Update from libc.
87399
87400 2000-09-10  Jim Meyering  <meyering@lucent.com>
87401
87402         * lib/getopt.c (_getopt_internal): Update from glibc.
87403
87404 2000-09-09  Jim Meyering  <meyering@lucent.com>
87405
87406         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87407         think it should be used as a general replacement for isascii.
87408         * lib/fnmatch.c: Likewise.
87409         * lib/mbswidth.c: Likewise
87410         * lib/regex.c: Likewise.
87411
87412         Don't use atoi.
87413         * lib/userspec.c: Include sys/param.h and limits.h.
87414         Include xstrtol.h.
87415         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87416         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87417         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87418         UID, GID.  Check range.
87419
87420 2000-09-06  Jim Meyering  <meyering@lucent.com>
87421
87422         * lib/getopt.c (_getopt_internal): Update from glibc.
87423
87424 2000-08-30  Jim Meyering  <meyering@lucent.com>
87425
87426         * lib/strftime.c: Merge in changes from GNU libc.
87427
87428 2000-08-26  Jim Meyering  <meyering@lucent.com>
87429
87430         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87431         * m4/fpending.m4: New file.
87432
87433 2000-08-26  Jim Meyering  <meyering@lucent.com>
87434
87435         * lib/closeout.c: Include "__fpending.h".
87436         (close_stdout_status): Return right away if there's nothing to flush.
87437
87438         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87439         * lib/__fpending.c: New file.
87440         * lib/__fpending.h: New file.
87441
87442 2000-08-20  Jim Meyering  <meyering@lucent.com>
87443
87444         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87445         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87446         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87447
87448 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87449
87450         Improve fileutils installation on systems where running
87451         programs (like install) can't be unlinked.
87452         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87453         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87454
87455 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87456
87457         Standardize on "memory exhausted" instead of "Memory exhausted"
87458         or "virtual memory exhausted".
87459         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87460         "virtual memory exhausted".
87461         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87462         our own message.
87463         * lib/userspec.c (parse_user_spec): Likewise.
87464         * lib/bumpalloc.h: comment fix
87465         * lib/same.c, userspec.c: Include xalloc.h.
87466
87467         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87468         not char *const and pointing to a constant array.
87469         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87470         (xrealloc): Comment fix.
87471
87472         * lib/userspec.c (parse_user_spec):
87473         Don't translate a message until just before returning,
87474         to avoid unnecessary translation.
87475
87476 2000-08-07  Jim Meyering  <meyering@lucent.com>
87477
87478         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87479         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87480         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87481         getgroups.c, gethostname.c, getopt.h, group-member.c,
87482         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87483         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87484         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87485         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87486         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87487         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87488         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87489         yesno.c: Back out Copyright date changes for each file with no change
87490         this year.  This eases coordination with other programs using the same
87491         source code modules.  From Paul Eggert.
87492
87493 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87494
87495         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87496         not char, for compatibility with glibc 2.1.3 strftime.c.
87497
87498 2000-08-03  Greg McGary  <greg@mcgary.org>
87499
87500         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87501         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87502         (EXTEND_BUFFER): Use them.
87503
87504 2000-08-01  Jim Meyering  <meyering@lucent.com>
87505
87506         * lib/dirname.c (ISSLASH): Define.
87507         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87508         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87509         both `\' and `/' may be use as path separators.
87510         Based on a patch from Prashant TR.
87511
87512 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87513
87514         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87515         slot vector a constant, since it might get modified.
87516
87517 2000-07-31  Jim Meyering  <meyering@lucent.com>
87518
87519         * lib/xmalloc.c: Use `virtual memory exhausted', not
87520         `Memory exhausted'.
87521         * lib/obstack.c (print_and_abort): Likewise.
87522
87523 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87524
87525         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87526         buffer, so that the caller can always quote one small
87527         component of a "memory exhausted" message in slot 0.
87528         From a suggestion by Jim Meyering.
87529
87530 2000-07-30  Jim Meyering  <meyering@lucent.com>
87531
87532         * lib/makepath.c (make_path): Quote the other instance, too.
87533
87534         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87535         (STATIC_BUF_SIZE): Define.
87536         (quotearg_n_options): Use only statically allocated storage when
87537         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87538         than STATIC_BUF_SIZE.
87539
87540 2000-07-29  Jim Meyering  <meyering@lucent.com>
87541
87542         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87543         * lib/dirname.c (dir_name): Likewise.
87544
87545         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87546         `/'.
87547
87548         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87549         (dir_name): Assert that there are no trailing slashes.
87550
87551 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87552
87553         * lib/mbswidth.h (mbswidth): Add a flags argument.
87554         (mbswidth): New declaration.
87555         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87556         * lib/mbswidth.c (mbswidth): Add a flags argument.
87557         (mbsnwidth): New function.
87558
87559 2000-07-24  Jim Meyering  <meyering@lucent.com>
87560
87561         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87562
87563 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87564
87565         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87566
87567 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87568
87569         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87570         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87571         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87572         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87573         invoke multibyte primitives.
87574
87575 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87576
87577         * lib/quotearg.c:
87578         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87579         so that mbstate_t is always defined.
87580
87581         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87582         be 1 in at least one GCC installation, and this configuration
87583         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87584         performance on hosts that have mbrtowc but have only unibyte
87585         locales, but I assume these hosts are rare.
87586
87587 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87588
87589         * lib/mbswidth.c (_XOPEN_SOURCE):
87590         Don't define; this causes problems on Solaris 7.
87591         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87592
87593 2000-07-23  Jim Meyering  <meyering@lucent.com>
87594
87595         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87596         too: getgrgid, getpwuid, getuid.
87597
87598 2000-07-23  Jim Meyering  <meyering@lucent.com>
87599
87600         * lib/basename.c (base_name): Add an assertion.
87601
87602 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87603
87604         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87605         shadow its mbsinit function.
87606
87607 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87608
87609         * lib/mbswidth.h: New file.
87610         * lib/mbswidth.c: New file.
87611         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87612         (noinst_HEADERS): Add mbswidth.h.
87613
87614 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87615
87616         * lib/config.charset: Add support for FreeBSD. Improve support for
87617         HP-UX and IRIX 6.
87618
87619 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87620
87621         * m4/mbswidth.m4: New file.
87622         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87623
87624 2000-07-15  Jim Meyering  <meyering@lucent.com>
87625
87626         * lib/makepath.c: Include quote.h.
87627         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87628         corresponding argument in a `quote (...)' call.
87629         Give better diagnostics.
87630
87631         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87632         (noinst_HEADERS): Add quote.h.
87633
87634         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87635         from tar's src/misc.c.
87636         * lib/quote.h: New file.  Prototypes for same.
87637
87638 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87639
87640         From a suggestion by Bruno Haible.
87641         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87642         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87643         to decide whether to define the BeOS workaround macro;
87644         this adjusts to the change to AC_MBSTATE_T.
87645
87646 2000-07-14  Jim Meyering  <meyering@lucent.com>
87647
87648         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87649         jm_AC_TYPE_UINTMAX_T.
87650
87651 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87652
87653         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87654
87655         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87656         quotearg_buffer_restyled): Add support for
87657         clocale_quoting_style.  Undo previous change to
87658         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87659         and "{RIGHT QUOTATION MARK}" msgids.
87660
87661 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87662
87663         From a suggestion by Bruno Haible.
87664         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87665         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87666         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87667         and mbstate_t, to a single-part test that simply defines mbstate_t.
87668         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87669         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87670
87671 2000-07-10  Jim Meyering  <meyering@lucent.com>
87672
87673         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87674
87675         * m4/gnu-source.m4: Output to confdefs.h directly.
87676         Suggestion from Akim Demaille.
87677
87678 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87679
87680         The old behavior of quoting `like this' doesn't look good with
87681         newer, ISO-style fonts.  See:
87682         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87683
87684         Instead, quote "like this" by default.  Let the translator
87685         tailor the locale-specific quoting behavior by providing
87686         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87687
87688         * lib/quotearg.c (N_): New macro.
87689         (gettext_default): New function.
87690         (quotearg_buffer_restyled): Use
87691         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87692         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87693
87694 2000-07-09  Jim Meyering  <meyering@lucent.com>
87695
87696         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87697         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87698
87699         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87701
87702 2000-07-09  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/Most files: Update copyright dates to include 2000.
87705
87706 2000-07-08  Jim Meyering  <meyering@lucent.com>
87707
87708         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87709         if not defined.
87710         (xgethostname): Remove now-unnecessary #ifdef.
87711         Move declaration of `err' into loop where it's used.
87712
87713 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87714         and Bruno Haible  <haible@clisp.cons.org>
87715
87716         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87717         only if the test for an object-type mbstate_t fails.  This
87718         prevents us from mistakenly reporting that mbstate_t is a
87719         system object type after we "#define mbstate_t int" to work
87720         around its lack.
87721
87722 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87723         and Bruno Haible  <haible@clisp.cons.org>
87724
87725         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87726
87727 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87728
87729         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87730         to strerror_r.
87731         Include <ctype.h> for use of isalpha.
87732
87733 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87734
87735         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87736         by allocating a larger buffer. Test the gethostname return value for
87737         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87738         returns an error and ENAMETOOLONG isn't defined.
87739
87740 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87741
87742         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87743         dimension.
87744
87745 2000-07-04  Jim Meyering  <meyering@lucent.com>
87746
87747         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87748         of the deprecated AC_CHECKING.
87749
87750 2000-07-04  Jim Meyering  <meyering@lucent.com>
87751
87752         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87753         Reported by Bruno Haible.
87754
87755 2000-07-04  Jim Meyering  <meyering@lucent.com>
87756
87757         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87758         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87759         lacks mbrtowc.
87760
87761 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87762
87763         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87764         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87765
87766 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87767         and Bruno Haible  <haible@clisp.cons.org>
87768
87769         * lib/quotearg.c (mbrtowc):
87770         Assign to *pwc, and return 1 only if result is nonzero.
87771         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87772
87773 2000-07-03  Jim Meyering  <meyering@lucent.com>
87774
87775         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87776
87777 2000-07-03  Jim Meyering  <meyering@lucent.com>
87778
87779         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87780         This is necessary to get a definition of e.g., UTMP_FILE on
87781         HP-UX 10.20.
87782         From Bob Proulx.
87783
87784 2000-07-02  Jim Meyering  <meyering@lucent.com>
87785
87786         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87787
87788         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87789         AC_LIBOBJ(function_name).
87790         * m4/chown.m4: Likewise.
87791         * m4/fnmatch.m4: Likewise.
87792         * m4/ftruncate.m4: Likewise.
87793         * m4/getgroups.m4: Likewise.
87794         * m4/getline.m4: Likewise.
87795         * m4/group-member.m4: Likewise.
87796         * m4/jm-macros.m4: Likewise.
87797         * m4/lstat.m4: Likewise.
87798         * m4/malloc.m4: Likewise.
87799         * m4/memcmp.m4: Likewise.
87800         * m4/nanosleep.m4: Likewise.
87801         * m4/putenv.m4: Likewise.
87802         * m4/realloc.m4: Likewise.
87803         * m4/regex.m4: Likewise.
87804         * m4/stat.m4: Likewise.
87805         * m4/strftime.m4: Likewise.
87806
87807 2000-07-02  Jim Meyering  <meyering@lucent.com>
87808
87809         * lib/quotearg.c (mbstate_t): Don't define here.
87810
87811 2000-07-02  Jim Meyering  <meyering@lucent.com>
87812
87813         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87814
87815 2000-07-01  Jim Meyering  <meyering@lucent.com>
87816
87817         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87818
87819 2000-07-01  Jim Meyering  <meyering@lucent.com>
87820
87821         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87822         problem.
87823
87824 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87825
87826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87827         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87828
87829 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87830
87831         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87832         per change in ../m4/ls-mntd-fs.m4.
87833         (read_filesystem_list): Ignore symbolic links.
87834
87835 2000-06-29  Jim Meyering  <meyering@lucent.com>
87836
87837         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87838         for declaration of strcmp.
87839
87840         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87841
87842         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87843         Avoid warning by casting result to `char *' to remove `const'.
87844
87845 2000-06-28  Jim Meyering  <meyering@lucent.com>
87846
87847         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87848         included by quotearg.c, for which we perform this test.  From
87849         Bruno Haible.
87850
87851 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87852
87853         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87854         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87855         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87856
87857 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87858
87859         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87860
87861 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87862
87863         savedir now sets errno on failure and invokes xmalloc to get memory.
87864         Fix a couple of other minor bugs while we're at it.
87865
87866         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87867         (NAMLEN): Remove macro.
87868         (malloc, realloc): Remove decls.
87869         (stpcpy): Likewise.
87870         ("xalloc.h"): Include.
87871         (NAME_SIZE_DEFAULT): New macro.
87872         (savedir): Use xmalloc / xrealloc to allocate memory.
87873         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87874         Skip "" directory entries.
87875         Use strlen to calculate directory entry length, since the old method
87876         is rarely used these days and isn't worth supporting.
87877         Don't use a pointer after freeing it.
87878         Check for integer overflow when calculating allocation size.
87879         Use memcpy to copy entries, instead of stpcpy.
87880         Set errno properly when returning NULL.
87881         Check for readdir error.
87882
87883 2000-06-26  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87886
87887 2000-06-25  Jim Meyering  <meyering@lucent.com>
87888
87889         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87890         Linux header bug when _XOPEN_SOURCE is defined to 500.
87891
87892 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87893
87894         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87895         deficiency.
87896
87897 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87898
87899         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87900         Include xalloc.h.
87901         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87902
87903 2000-06-24  Jim Meyering  <meyering@lucent.com>
87904
87905         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87906         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87907         for which strerror does return char*, but which lacks a conveniently
87908         accessible declaration of the function.  If the compile-test says
87909         strerror_r doesn't work, then resort to a `run'-test that works on
87910         BeOS and segfaults on DEC Unix.
87911
87912 2000-06-24  Jim Meyering  <meyering@lucent.com>
87913
87914         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87915
87916 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87917
87918         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87919         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87920
87921 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87922
87923         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87924         (mbrtowc, mbstate_t): Define substitutes if
87925         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87926         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87927         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87928
87929 2000-06-23  Jim Meyering  <meyering@lucent.com>
87930
87931         * m4/afs.m4: Add missing AC_MSG_RESULT.
87932         Reported by Bruno Haible.
87933
87934         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87935         Suggestion from Bruno Haible.
87936
87937 2000-06-23  Jim Meyering  <meyering@lucent.com>
87938
87939         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87940
87941 2000-06-21  Jim Meyering  <meyering@lucent.com>
87942
87943         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87944
87945 2000-06-21  Jim Meyering  <meyering@lucent.com>
87946
87947         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87948         (noinst_HEADERS): Add getstr.h.
87949
87950         * lib/getline.c (getstr): Move into a separate file.
87951         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87952         the following changes: new parameter, delim2; both delim[12]
87953         parameters have type `int', not `char'.  The latter would lose
87954         with 8-bit delimiters.
87955         * lib/getstr.h: New file.
87956
87957 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87958
87959         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87960         than 1024, return a memory chunk of least possible size, instead
87961         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87962         Use free/xmalloc instead of xrealloc to avoid copying for very long
87963         paths.
87964
87965 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87966
87967         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87968         the empty string.
87969
87970 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87971
87972         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87973         address, not strdup.  Include <stdlib.h> and don't declare free().
87974
87975 2000-06-19  Jim Meyering  <meyering@lucent.com>
87976
87977         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87978
87979 2000-06-18  Jim Meyering  <meyering@lucent.com>
87980
87981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87982
87983         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87984         `checking whether...' message to be consistent with that of the
87985         lstat test.
87986
87987 2000-06-18  Jim Meyering  <meyering@lucent.com>
87988
87989         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87990         Besides, these days every porting target provides a mkdir function.
87991
87992         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87993         needed. (this snippet comes from src/system.h).
87994
87995 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87996
87997         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87998
87999 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88000
88001         * lib/human.c (adjust_value): New function.
88002         (human_readable_inexact): Apply rounding style even when
88003         printing approximate values.
88004
88005 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88006
88007         * lib/human.c (human_readable_inexact): Allow an input block
88008         size that is not a multiple of the output block size, and vice versa.
88009         Reported by Piergiorgio Sartor.
88010
88011 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88012
88013         * lib/getdate.y (get_date): Apply relative times after time
88014         zone indicator, not before.  Reported by Todd A. Jacobs.
88015
88016 2000-06-13  Jim Meyering  <meyering@lucent.com>
88017
88018         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88019
88020         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88021
88022 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88023
88024         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88025
88026 2000-06-12  Jim Meyering  <meyering@lucent.com>
88027
88028         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88029         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88030         optional argument.
88031         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88032         the optional argument, `lib'.
88033
88034 2000-06-08  Jim Meyering  <meyering@lucent.com>
88035
88036         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88037
88038 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88039
88040         Rewrite largefile configuration so that we don't need to run
88041         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88042         AC_CANONICAL_HOST in configure.in -- jmm]
88043
88044         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88045         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88046         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88047         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88048         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88049         All uses changed.
88050         Instead of inspecting the output of getconf, try to compile the
88051         test program without and with the macro definition.
88052         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88053         for getconf.  Instead, check for the needed flags by compiling
88054         test programs.
88055
88056 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88057
88058         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88059
88060 2000-06-04  Jim Meyering  <meyering@lucent.com>
88061
88062         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88063         SunOS 4.1.4 for which gid_t is an unsigned type.
88064
88065 2000-06-03  Jim Meyering  <meyering@lucent.com>
88066
88067         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88068         now that autoconf requires that.
88069
88070         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88071         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88072         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88073
88074 2000-06-03  Jim Meyering  <meyering@lucent.com>
88075
88076         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88077
88078 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88079
88080         * m4/glibc21.m4: New file.
88081         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88082
88083 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88084
88085         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88086         newer, don't install charset.alias.
88087         * lib/config.charset: Change the Linux/glibc rules so they become empty
88088         on glibc-2.1 or newer.
88089
88090 2000-06-02  Jim Meyering  <meyering@lucent.com>
88091
88092         * lib/mountlist.c: Back out last change.  Instead, do this...
88093         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88094         me_dummy member using the same `ignore'-testing code.
88095         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88096         fs_type strings.
88097         From Mark D. Roth.
88098
88099 2000-05-29  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88102         mounts with the `ignore' attribute.  Based on a patch from
88103         Mark D. Roth.
88104
88105 2000-05-28  Jim Meyering  <meyering@lucent.com>
88106
88107         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88108         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88109         * m4/stat.m4: Likewise.
88110         * m4/lstat.m4: Likewise.
88111         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88112
88113         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88114         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88115
88116 2000-05-26  Jim Meyering  <meyering@lucent.com>
88117
88118         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88119
88120 2000-05-24  Jim Meyering  <meyering@lucent.com>
88121
88122         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88123         autoconf requires that.
88124         * m4/lib-check.m4: Likewise.
88125         * m4/jm-macros.m4: Likewise.
88126         * m4/strftime.m4: Likewise.
88127
88128         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88129         AC_CHECK_DECLS, now that autoconf requires that.
88130
88131 2000-05-22  Jim Meyering  <meyering@lucent.com>
88132
88133         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88134         * m4/lstat.m4: Likewise.
88135
88136 2000-05-22  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88139
88140 2000-05-20  Jim Meyering  <meyering@lucent.com>
88141
88142         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88143         (jm_PREREQ): Use it.
88144
88145 2000-05-18  Jim Meyering  <meyering@lucent.com>
88146
88147         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88148         back, too, since it may have been modified by allocate_entry.
88149         (hash_delete): Rewrite to use neither the assignment operator
88150         nor the comma operator in an if-expression.
88151
88152 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88153
88154         * lib/closeout.c:
88155         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88156         Remove; no longer needed.
88157         "quotearg.h": Add include.
88158         (file_name): Do not bother to explicitly initialize to NULL; it's less
88159         efficient on some hosts.
88160         (close_stdout_status): Remove test as to whether stdout was already
88161         closed; it breaks for the case "echo x | sort >&-".
88162         Quote file name colons.
88163         Do not assume that _("write error") lacks format strings.
88164
88165 2000-05-15  Jim Meyering  <meyering@lucent.com>
88166
88167         * lib/version-etc.c (version_etc_copyright): Update the copyright
88168         string used in all --version output.
88169
88170 2000-05-14  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/closeout.c (close_stdout_set_file_name): New function.
88173         (close_stdout_status): Use new file-scoped global.
88174         Return right away if fstat says the stdout file descriptor is invalid.
88175         * lib/closeout.h (close_stdout_set_file_name): Declare.
88176
88177 2000-05-10  Jim Meyering  <meyering@lucent.com>
88178
88179         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88180         (close_stdout_set_status): New function.
88181         * lib/closeout.h (close_stdout_set_status): Declare.
88182
88183 2000-05-09  Jim Meyering  <meyering@lucent.com>
88184
88185         * m4/gettext.m4: Rename this...
88186         * m4/libintl.m4: ...to this.
88187
88188 2000-05-08  Jim Meyering  <meyering@lucent.com>
88189
88190         * lib/long-options.c: Don't include closeout.h.
88191         (parse_long_options): Don't call close_stdout for --version.
88192
88193 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88194
88195         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88196         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88197         2.1.3 bug.  This avoids a clash when files like regex.c define
88198         _GNU_SOURCE.
88199
88200 2000-05-06  Jim Meyering  <meyering@lucent.com>
88201
88202         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88203         (AC_REPLACE_FUNCS): Add strnlen.
88204
88205         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88206         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88207
88208         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88209         AC_SEARCH_LIBS call for nanosleep.
88210         (LIB_NANOSLEEP): Set and AC_SUBST.
88211
88212 2000-05-06  Jim Meyering  <meyering@lucent.com>
88213
88214         * lib/strnlen.c: Undefine __strnlen and strnlen.
88215         [!weak_alias]: Define __strnlen to strnlen.
88216
88217         * lib/atexit.c: New file, from libiberty.
88218
88219 2000-05-06  Jim Meyering  <meyering@lucent.com>
88220
88221         * lib/closeout.c (close_stdout_status): Also check for errors on the
88222         stderr stream.
88223
88224 2000-05-05  Jim Meyering  <meyering@lucent.com>
88225
88226         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88227         AC_SEARCH_LIBS call for clock_gettime.
88228         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88229
88230         * m4/search-libs.m4: Update from autoconf.
88231
88232         su doesn't work on Solaris 2.6.
88233         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88234         <shadow.h>.  Reported by Dragos Harabor.
88235
88236 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88237
88238         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88239         memcpy instead of xmalloc, xrealloc, path_concat.
88240         (locale_charset): Treat empty environment variables as absent.
88241         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88242
88243 2000-05-04  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/getopt.c: Update from glibc.
88246         * lib/obstack.c: Likewise.
88247         * lib/obstack.h: Likewise.
88248         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88249         file
88250
88251         * lib/regex.h: Likewise.
88252         * lib/strndup.c: Likewise.
88253         * lib/strnlen.c: New file, from glibc.
88254
88255 2000-05-03  Jim Meyering  <meyering@lucent.com>
88256
88257         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88258
88259 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88260
88261         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88262         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88263         compile-time test, rather than inspecting host and OS, to
88264         decide whether to define _LARGEFILE_SOURCE.
88265
88266 2000-05-01  Jim Meyering  <meyering@lucent.com>
88267
88268         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88269
88270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88271         Based on a patch from Bruno Haible.
88272
88273 2000-05-01  Jim Meyering  <meyering@lucent.com>
88274
88275         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88276
88277 2000-04-29  Jim Meyering  <meyering@lucent.com>
88278
88279         * lib/path-concat.c: Declare strdup only if it's not defined.
88280         * lib/canon-host.c: Likewise.
88281
88282 2000-04-28  Jim Meyering  <meyering@lucent.com>
88283
88284         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88285         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88286         is included first, then limits.h is included by locale.h by libintl.h.
88287         From John David Anglin.
88288
88289 2000-04-25  Jim Meyering  <meyering@lucent.com>
88290
88291         * lib/makepath.c (S_IRWXUGO): Define.
88292         (make_path): Always perform explicit chmod if MODE specifies any
88293         of the `special' permission bits.  Prompted by a bug report against
88294         install from Mate Wierdl and Joost van Baal.
88295
88296 2000-04-18  Jim Meyering  <meyering@lucent.com>
88297
88298         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88299         (jm_PREREQ): Use it.
88300
88301 2000-04-18  Jim Meyering  <meyering@lucent.com>
88302
88303         * lib/README: New file.
88304
88305         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88306         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88307
88308 2000-04-17  Jim Meyering  <meyering@lucent.com>
88309
88310         Get it right :-)
88311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88312         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88313         Suggestion from Akim Demaille.
88314
88315 2000-04-17  Jim Meyering  <meyering@lucent.com>
88316
88317         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88318         the definition of it to rpl_strftime also defined-away the system's
88319         declaration.
88320
88321 2000-04-15  Jim Meyering  <meyering@lucent.com>
88322
88323         Use `C' to denote so-called `contiguous' files, the same way
88324         that tar does.
88325         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88326         (ftypelet): Use S_ISCTG.
88327         From Michael Deutschmann.
88328
88329 2000-04-14  Jim Meyering  <meyering@lucent.com>
88330
88331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88332         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88333         clobbered.
88334
88335 2000-04-14  Jim Meyering  <meyering@lucent.com>
88336
88337         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88338
88339 2000-04-13  Jim Meyering  <meyering@lucent.com>
88340
88341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88342         AH_VERBATIM to insert required #ifndef into config.h.in.
88343         Suggestion from Akim Demaille.
88344
88345 2000-04-12  Jim Meyering  <meyering@lucent.com>
88346
88347         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88348         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88349         Christian Krackowizer.
88350
88351         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88352         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88353         (AC_SYS_LARGEFILE): Require.
88354         (AM_C_PROTOTYPES): Require.
88355
88356 2000-04-08  Jim Meyering  <meyering@lucent.com>
88357
88358         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88359         names don't conflict.  Reported by Eli Zaretskii.
88360
88361 2000-04-07  Jim Meyering  <meyering@lucent.com>
88362
88363         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88364         sys/types.h, to work around system header problems on AIX 3.2.5.
88365         From Bruno Haible.
88366
88367 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88368
88369         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88370         bug.  Deal with the different error behavior of Irix iconv.
88371
88372 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88373
88374         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88375         IRIX if the installer said otherwise.
88376
88377 2000-04-05  Jim Meyering  <meyering@lucent.com>
88378
88379         Portability tweaks required for ultrix4.3.
88380         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88381         (jm_CHECK_DECLS): Add getutent to the list of functions.
88382         (_jm_DECL_HEADERS): Add utmpx.h.
88383         From John David Anglin.
88384
88385         * m4/strftime.m4: Back out the 2000-04-02 change.
88386         Instead of that change, simply undefine putenv in the test program.
88387
88388 2000-04-05  Jim Meyering  <meyering@lucent.com>
88389
88390         Portability tweaks required for ultrix4.3.
88391         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88392         getutent.
88393         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88394         * lib/canon-host.c: Declare strdup.
88395         * lib/path-concat.c: Likewise.
88396         From John David Anglin.
88397
88398 2000-04-04  Jim Meyering  <meyering@lucent.com>
88399
88400         Be more DOS 8.3-friendly.
88401         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88402         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88403         * lib/Makefile.am: Reflect renaming.
88404         Reported by Eli Zaretskii.
88405
88406         Use a temporary file name that won't clash with `charset.alias'
88407         in the DOS 8.3 name space.
88408         * lib/Makefile.am (charset_tmp): Define.
88409         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88410         (uninstall-local): Likewise.
88411         Reported by Eli Zaretskii.
88412
88413 2000-04-03  Jim Meyering  <meyering@lucent.com>
88414
88415         * m4/gettext.m4: Fix typo in comment.
88416
88417         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88418         textutils/configure.in).  Suggestion from Paul Eggert.
88419         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88420
88421 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88422
88423         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88424         variable in the shell rather than using putenv, which isn't
88425         portable.  This avoids the configure-time inter-test dependency
88426         on the potentially-renamed putenv function.
88427
88428 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88429
88430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88431         before checking struct stat.st_blksize, so that
88432         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88433
88434 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88435
88436         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88437         since strftime.c uses HAVE_STRFTIME to decide whether to use
88438         the underlying strftime.
88439
88440 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88441
88442         * lib/time/strftime.c (my_strftime): Make sure we call the system
88443         strftime, not ourselves, when invoking the underlying strftime.
88444
88445 2000-03-24  Jim Meyering  <meyering@lucent.com>
88446
88447         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88448         (charset_alias): Define.
88449         (install-exec-local): Factor out common code.
88450         (uninstall-local): Split lines longer than 80.
88451         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88452         (SUFFIXES): Define.
88453         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88454         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88455
88456 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88457
88458         * lib/config.charset: Output a line containing "Packages using this
88459         file".
88460         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88461         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88462         ref-del.sed): New rules.
88463
88464 2000-03-17  Jim Meyering  <meyering@lucent.com>
88465
88466         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88467         Otherwise, include <strings.h>
88468
88469 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88470
88471         * lib/unicodeio.c (utf8_wctomb): New function.
88472         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88473         format instead of in UCS-4 with platform dependent endianness.
88474
88475 2000-03-10  Jim Meyering  <meyering@lucent.com>
88476
88477         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88478         From Marco Franzen.
88479
88480 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88481
88482         * lib/savedir.c (savedir): Work even if directory size is
88483         negative; this can happen with some screwy NFS configurations.
88484
88485 2000-03-06  Jim Meyering  <meyering@lucent.com>
88486
88487         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88488         if it's NULL (because we ran out of memory).  From Bruno Haible.
88489
88490 2000-03-05  Jim Meyering  <meyering@lucent.com>
88491
88492         * lib/localcharset.c ("path-concat.h"): Include.
88493         (get_charset_aliases): Use path_concat instead of ANSI string
88494         concatenation.
88495
88496         * lib/unicodeio.h (PARAMS): Define.
88497         Use it to guard prototype.
88498
88499 2000-03-04  Jim Meyering  <meyering@lucent.com>
88500
88501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88502         for lib/localcharset.c.
88503
88504 2000-03-04  Jim Meyering  <meyering@lucent.com>
88505
88506         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88507         installing into it.
88508         (uninstall-local): Uncomment this rule so `make distcheck' works
88509         once again.
88510
88511         * lib/unicodeio.c (<errno.h>): Include it.
88512         (errno): Declare if not defined.
88513
88514         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88515
88516         * lib/config.charset: New version, incorporating remarks from a linux
88517         i18n mailing list.  From Bruno Haible.
88518
88519 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88520
88521         * m4/codeset.m4: New file.
88522         * m4/iconv.m4: New file.
88523         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88524
88525 2000-03-03  Jim Meyering  <meyering@lucent.com>
88526
88527         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88528
88529 2000-03-02  Jim Meyering  <meyering@lucent.com>
88530
88531         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88532         the messages come out on separate lines.
88533
88534         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88535         rather than jm_CHECK_DECLARATIONS.
88536         * m4/decl.m4: Remove now-unused file.
88537
88538         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88539         geteuid.
88540
88541 2000-03-02  Jim Meyering  <meyering@lucent.com>
88542
88543         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88544
88545 2000-03-01  Jim Meyering  <meyering@lucent.com>
88546
88547         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88548         * lib/unicodeio.c: Likewise.
88549
88550 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88551
88552         * lib/config.charset: New file.
88553         * lib/localcharset.c: New file.
88554         * lib/unicodeio.h, lib/unicodeio.c: New files.
88555         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88556         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88557         (noinst_HEADERS): Add unicodeio.h.
88558         (all-local, install-exec-local, charset.alias): New targets.
88559
88560 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88561
88562         * lib/quotearg.c (ALERT_CHAR): New macro.
88563         (quotearg_buffer_restyled): Use it.
88564
88565 2000-02-27  Jim Meyering  <meyering@lucent.com>
88566
88567         * m4/check-decl.m4: Add getenv to the list.
88568
88569 2000-02-27  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88572         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88573
88574         * lib/backupfile.c: Guard inclusion of stdlib.h with
88575         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88576         Declare malloc if needed.
88577
88578         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88579         `#ifndef HAVE_DECL..'
88580         now that autoconf always defines the HAVE_DECL_ symbols.
88581         * lib/human.c: Likewise.
88582         * lib/same.c: Likewise.
88583         * lib/strtoumax.c: Likewise.
88584
88585         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88586         declaration check was not run.
88587         * lib/hash.c: Likewise.
88588         * lib/human.c: Likewise.
88589         * lib/same.c: Likewise.
88590         * lib/strtoumax.c: Likewise.
88591
88592         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88593         `.', then first look up the entire `.'-containing string as a login
88594         name.
88595
88596 2000-02-23  Jim Meyering  <meyering@lucent.com>
88597
88598         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88599         in place of my hack.
88600
88601 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88602
88603         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88604         (textint): New typedef.
88605         (parser_control): Member year changed from int to textint.
88606         All uses changed.
88607         (YYSTYPE): Removed; replaced by %union with int and textint members.
88608         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88609         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88610         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88611         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88612         (date, number, to_year): Use width of number in digits, not its value,
88613         to determine whether it's a 2-digit year, or a 2-digit time.
88614         (yylex): Store number of digits of numeric tokens.
88615         Reported by John Kendall.
88616
88617         (parser_control): Changed from struct parser_control to typedef (for
88618         consistency).  All uses changed.
88619
88620         (tID): Removed; not used.
88621         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88622
88623 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88624
88625         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88626         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88627
88628 2000-02-12  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/userspec.c (ISDIGIT): Define it.
88631         (isdigit): Remove definition.
88632         (is_number): Use ISDIGIT, not isdigit.
88633         <libintl.h>: Include.
88634         (_ and N_): Define.
88635         (parse_user_spec): Mark translatable strings.
88636
88637 2000-02-10  Jim Meyering  <meyering@lucent.com>
88638
88639         With these changes, nanosleep.[ch] are finally enough like the other
88640         lib/* replacement files to compile on a few more losing systems.
88641
88642         * lib/nanosleep.h: Don't include config.h.
88643         Remove prototype from declaration of nanosleep.
88644         (PARAMS): Remove now-unneeded definition.
88645         * lib/nanosleep.c: #undef nanosleep.
88646         (rpl_nanosleep): Rename from nanosleep.
88647
88648 2000-02-10  Jim Meyering  <meyering@lucent.com>
88649
88650         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88651         gnu_nanosleep to rpl_nanosleep.
88652
88653 2000-02-09  Jim Meyering  <meyering@lucent.com>
88654
88655         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88656         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88657
88658 2000-02-08  Akim Demaille  <akim@epita.fr>
88659
88660         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88661         `[' and `]' and remove uses of `changequote'.
88662         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88663         (AC_SYS_LARGEFILE): Likewise.
88664         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88665         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88666         of changequote.
88667         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88668         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88669         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88670         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88671
88672 2000-02-05  Jim Meyering  <meyering@lucent.com>
88673
88674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88675         Remove explicit use of AC_HEADER_TIME.  It is required by
88676         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88677         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88678         in autoconf whereby the expansion of the latter ended up preceding
88679         the expansion of its prerequisite, AC_HEADER_TIME.
88680         Reported by Volker Borchert.
88681
88682 2000-02-03  Jim Meyering  <meyering@lucent.com>
88683
88684         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88685
88686 2000-02-03  Jim Meyering  <meyering@lucent.com>
88687
88688         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88689         rather than with `#if HAVE_UTMPNAME'.
88690
88691 2000-02-02  Jim Meyering  <meyering@lucent.com>
88692
88693         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88694         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88695         Reported by Eli Zaretskii.
88696
88697 2000-02-01  Jim Meyering  <meyering@lucent.com>
88698
88699         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88700
88701 2000-01-31  Jim Meyering  <meyering@lucent.com>
88702
88703         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88704         functions.  Add the time.h and sys/time.h headers along with the
88705         AC_REQUIRE'ment of AC_HEADER_TIME.
88706
88707 2000-01-31  Jim Meyering  <meyering@lucent.com>
88708
88709         * lib/nanosleep.h (nanosleep): Guard declaration with
88710         `#if ! HAVE_DECL_NANOSLEEP'.
88711         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88712         the declaration in that vendor's sys/timers.h.
88713         Reported by Christian Krackowizer.
88714
88715         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88716         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88717         (ISPRINT): Likewise.
88718         Reported by Tom Tromey.
88719
88720 2000-01-30  Jim Meyering  <meyering@lucent.com>
88721
88722         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88723
88724         * m4/prereq.m4 (utmp_includes): Define.
88725         Check for ut_user and ut_name members in both struct utmpx
88726         and struct utmp.
88727
88728 2000-01-30  Jim Meyering  <meyering@lucent.com>
88729
88730         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88731         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88732         header files where only utmpx.ut_user is declared.
88733
88734         * lib/readutmp.h (UT_USER): Define.
88735
88736 2000-01-29  Jim Meyering  <meyering@lucent.com>
88737
88738         * m4/lib-check.m4: New file containing library-related checks from
88739         fileutils and sh-utils (textutils had none).
88740
88741 2000-01-28  Jim Meyering  <meyering@lucent.com>
88742
88743         * m4/perl.m4: Change format of warning message to look more like that
88744         from the missing script.  Suggestion from François Pinard.
88745
88746 2000-01-25  Jim Meyering  <meyering@lucent.com>
88747
88748         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88749         well as time.h in the compile check.
88750         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88751         Fix typo in cross-compiling case: s/yes/no/.
88752
88753 2000-01-23  Jim Meyering  <meyering@lucent.com>
88754
88755         * m4/jm-macros.m4: Move df-related tests here from
88756         fileutils/configure.in
88757
88758         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88759         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88760
88761         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88762         s/space/ac_fsusage_space/.
88763         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88764
88765         * m4/ftruncate.m4: New file (derived from part of
88766         fileutils/configure.in).
88767         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88768         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88769
88770         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88771         AC_SUBST these here, rather than just in sh-util/configure.in, so
88772         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88773         all the same.
88774         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88775         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88776         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88777         (AC_SUBST(POW_LIBM)): Likewise.
88778         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88779
88780 2000-01-23  Jim Meyering  <meyering@lucent.com>
88781
88782         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88783         obstack.c.
88784
88785 2000-01-22  Jim Meyering  <meyering@lucent.com>
88786
88787         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88788
88789         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88790
88791         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88792         configure.in
88793         (AC_CHECK_HEADERS): Likewise for sh-utils.
88794         (AC_CHECK_HEADERS): Likewise for textutils.
88795         Merge the three lists of headers.
88796
88797         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88798         from fileutils' configure.in.
88799
88800         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88801         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88802         check-decl.m4.
88803
88804         * m4/check-decl.m4: Use #if rather than #ifdef.
88805         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88806         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88807         (_jm_DECL_HEADERS): Define new function.
88808         (jm_CHECK_DECLARATIONS): Require it.
88809
88810 2000-01-22  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88813         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88814         Required for some AIX systems.  Reported by Christian Krackowizer.
88815         [TESTING] (main): New function.
88816
88817         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88818         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88819         letters.
88820
88821         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88822         iswprint.
88823
88824         * lib/strverscmp.c (ISDIGIT): Define.
88825         (strverscmp): Use ISDIGIT, not isdigit.
88826
88827 2000-01-19  Jim Meyering  <meyering@lucent.com>
88828
88829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88830         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88831         defines `struct timespec' in <sys/time.h>
88832
88833         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88834         Thanks to Akim for explaining.
88835
88836 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88837
88838         * lib/nanosleep.c (nanosleep):
88839         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88840         POSIX.1 doesn't require SA_INTERRUPT and some systems
88841         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88842         it's been part of POSIX.1 since day 1 (in 1988).
88843
88844 2000-01-17  Jim Meyering  <meyering@lucent.com>
88845
88846         * lib/interlock: Remove unused file.  Reported by François Pinard.
88847
88848 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88849
88850         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88851         alert, backslash, formfeed, and vertical tab unnecessarily in
88852         shell quoting style.
88853
88854 2000-01-16  Jim Meyering  <meyering@lucent.com>
88855
88856         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88857         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88858         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88859         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88860
88861 2000-01-16  Jim Meyering  <meyering@lucent.com>
88862
88863         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88864         because the latter didn't work.
88865
88866 2000-01-15  Jim Meyering  <meyering@lucent.com>
88867
88868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88869         (AC_REPLACE_FUNCS): Add memcpy and memset.
88870         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88871         Add strpbrk.
88872         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88873
88874 2000-01-12  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88877         (jm_PREREQ): Use it.
88878         (jm_PREREQ_READUTMP): New macro.
88879         (jm_PREREQ): Use it.
88880
88881 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88882
88883         Quote multibyte characters correctly.
88884         * m4/c-bs-a.m4: New file.
88885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88886         (jm_PREREQ): Use it.
88887
88888 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88889
88890         * m4/uintmax_t.m4: Port to autoconf 2.13.
88891
88892 2000-01-08  Jim Meyering  <meyering@ascend.com>
88893
88894         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88895         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88896
88897 2000-01-04  Jim Meyering  <meyering@ascend.com>
88898
88899         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88900         jm_STRUCT_DIRENT_D_TYPE.
88901         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88902         jm_STRUCT_DIRENT_D_INO.
88903         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88904         jm_STRUCT_UTIMBUF.
88905         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88906         renamings.
88907         * m4/utime.m4: Likewise.
88908
88909         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88910         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88911
88912 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88913
88914         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88915         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88916
88917 2000-01-02  Jim Meyering  <meyering@ascend.com>
88918
88919         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88920         remember if this is necessary.
88921
88922 1999-12-26  Jim Meyering  <meyering@ascend.com>
88923
88924         * m4/jm-macros.m4: Use it here.
88925         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88926
88927 1999-12-23  Jim Meyering  <meyering@ascend.com>
88928
88929         * m4/jm-macros.m4: Check for clock_gettime (moved from
88930         fileutils/configure.in)
88931         Check for gettimeofday.
88932
88933 1999-12-20  Jim Meyering  <meyering@ascend.com>
88934
88935         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88936         autoconf-2.14a-1999-12-20.
88937
88938 1999-12-19  Jim Meyering  <meyering@ascend.com>
88939
88940         * m4/lstat-slash.m4: New file.
88941         * m4/jm-macros.m4: Use the new macro:
88942         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88943
88944 1999-12-07  Jim Meyering  <meyering@ascend.com>
88945
88946         * m4/perl.m4: Require that File::Compare be available, too.
88947         Too many systems seem to lack it.
88948
88949         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88950         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88951
88952 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88953
88954         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88955         problem with the QNX 4.25 shell, which doesn't propagate exit
88956         status of failed commands inside shell assignments.
88957
88958 1999-11-17  Jim Meyering  <meyering@ascend.com>
88959
88960         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88961
88962 1999-11-07  Jim Meyering  <meyering@ascend.com>
88963
88964         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88965
88966 1999-11-06  Jim Meyering  <meyering@ascend.com>
88967
88968         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88969         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88970
88971 1999-11-05  Jim Meyering  <meyering@ascend.com>
88972
88973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88974         configure.in of textutils, fileutils, and sh-utils into this one
88975         (shared between those packages) file.
88976         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88977         AC_STRUCT_ST_BLKSIZE.
88978
88979 1999-11-03  Jim Meyering  <meyering@ascend.com>
88980
88981         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88982         of AC_CHECK_TYPE checks includes unistd.h.
88983         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88984         Suggestion from Akim Demaille.
88985
88986 1999-10-30  Jim Meyering  <meyering@ascend.com>
88987
88988         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88989         m4-quoted string.
88990         * m4/ls-mntd-fs.m4: Likewise.
88991         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88992         * m4/jm-winsz1.m4: Likewise.
88993
88994         * m4/const.m4: Remove file, since the fix made it into the experimental
88995         version of autoconf.
88996         * m4/mktime.m4: Likewise.
88997
88998         * m4/check-type.m4: Remove file, now that the latest version of
88999         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89000
89001         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89002         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89003         AC_CHECK_TYPE.
89004
89005 1999-10-04  Jim Meyering  <meyering@ascend.com>
89006
89007         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89008
89009 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89010
89011         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89012         2.95.1 bug with HP-UX 10.20.
89013
89014 1999-09-17  Jim Meyering  <meyering@ascend.com>
89015
89016         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89017         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89018         due to missing strdup (against sh-utils-2.0).
89019
89020 1999-08-29  Jim Meyering  <meyering@ascend.com>
89021
89022         * m4/jm-macros.m4: Require jm_BISON.
89023         * m4/bison.m4: New file.
89024
89025 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89026
89027         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89028         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89029
89030 1999-08-05  Jim Meyering  <meyering@ascend.com>
89031
89032         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89033         to avoid conflicts with `conftest' on 8+3 filesystems.
89034         Suggestion from Eli Zaretskii.
89035
89036 1999-08-04  Jim Meyering  <meyering@ascend.com>
89037
89038         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89039         fileutils and sh-utils (textutils's getline test was inadequate).
89040         (AM_FUNC_GETLINE): Run this test.
89041         (AC_CHECK_FUNCS): Check for getdelim.
89042         Reported by Bob Proulx.
89043
89044 1999-08-02  Jim Meyering  <meyering@ascend.com>
89045
89046         * m4/jm-macros.m4: Add a comment.
89047
89048 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89049
89050         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89051         <inttypes.h> defines strtoumax as a macro (and not as a
89052         function).
89053
89054 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89055
89056         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89057         that we can shift, multiply and divide unsigned long long
89058         values; Ultrix cc can't do it.
89059
89060 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89061
89062         * m4/mktime.m4: New file, which is a preview of what should appear
89063         in the next public autoconf release.
89064
89065 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89066
89067         * m4/lfs.m4: Remove this file.
89068         * m4/largefile.m4: New file.  It contains the old contents of
89069         lfs.m4, except that all names with prefix AC_LFS have been
89070         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89071         compatible with future autoconf versions.  Also, some minor m4
89072         quoting problems have been fixed.
89073
89074 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89075
89076         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89077         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89078         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89079         and simplify the shell code.
89080
89081 1999-08-01  Jim Meyering  <meyering@ascend.com>
89082
89083         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89084         m4.
89085
89086 1999-07-20  Jim Meyering  <meyering@ascend.com>
89087
89088         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89089
89090 1999-07-15  Jim Meyering  <meyering@ascend.com>
89091
89092         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89093
89094 1999-05-22  Jim Meyering  <meyering@ascend.com>
89095
89096         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89097
89098 1999-05-20  Jim Meyering  <meyering@ascend.com>
89099
89100         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89101         Add a colon after each `then' in case $4 is empty.
89102
89103 1999-05-16  Jim Meyering  <meyering@ascend.com>
89104
89105         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89106
89107 1999-05-10  Jim Meyering  <meyering@ascend.com>
89108
89109         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89110
89111         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89112         AC_FUNC_MKTIME.
89113
89114 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89115
89116         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89117
89118 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89119
89120         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89121         not CPPFLAGS, so that linking works correctly in IRIX.
89122
89123 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89124
89125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89126
89127 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89128
89129         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89130         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89132         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89133         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89134
89135         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89136
89137 1999-04-20  Jim Meyering  <meyering@ascend.com>
89138
89139         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89140         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89141         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89142
89143 1999-04-18  Jim Meyering  <meyering@ascend.com>
89144
89145         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89146         * m4/jm-macros.m4: Use it.
89147
89148 1999-04-06  Jim Meyering  <meyering@ascend.com>
89149
89150         * m4/strftime.m4: Remove test for %f.
89151
89152 1999-03-29  Jim Meyering  <meyering@ascend.com>
89153
89154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89155         superset of the AC_TYPE_* checks in the textutils, fileutils,
89156         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89157         AC_TYPE_PID_T.
89158
89159 1999-03-28  Jim Meyering  <meyering@ascend.com>
89160
89161         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89162         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89163         replaced e.g., in the *.sh files of the sh-utils.
89164
89165 1999-03-20  Jim Meyering  <meyering@ascend.com>
89166
89167         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89168         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89169         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89170
89171 1999-03-19  Jim Meyering  <meyering@ascend.com>
89172
89173         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89174
89175 1999-03-12  Jim Meyering  <meyering@ascend.com>
89176
89177         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89178
89179 1999-03-07  Jim Meyering  <meyering@ascend.com>
89180
89181         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89182         declared.
89183
89184 1999-02-17  Jim Meyering  <meyering@ascend.com>
89185
89186         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89187         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89188
89189 1999-02-07  Jim Meyering  <meyering@ascend.com>
89190
89191         * m4/group-member.m4: New file -- extracted from sh-utils'
89192         configure.in.
89193
89194         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89195         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89196
89197 1999-02-06  Jim Meyering  <meyering@ascend.com>
89198
89199         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89200         * m4/fnmatch.m4: Likewise.
89201         * m4/getgroups.m4: Likewise.
89202         * m4/lstat.m4: Likewise.
89203         * m4/malloc.m4: Likewise.
89204         * m4/putenv.m4: Likewise.
89205         * m4/realloc.m4: Likewise.
89206         * m4/regex.m4: Likewise.
89207         * m4/stat.m4: Likewise.
89208         * m4/strftime.m4: Likewise.
89209         Suggestion from Alain Magloire.
89210
89211         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89212         * m4/fnmatch.m4: Likewise.
89213         * m4/getgroups.m4: Likewise.
89214         * m4/getline.m4: Likewise.
89215         * m4/lstat.m4: Likewise.
89216         * m4/malloc.m4: Likewise.
89217         * m4/memcmp.m4: Likewise.
89218         * m4/putenv.m4: Likewise.
89219         * m4/realloc.m4: Likewise.
89220         * m4/regex.m4: Likewise.
89221         * m4/stat.m4: Likewise.
89222         * m4/strftime.m4: Likewise.
89223         Suggestion from Alain Magloire.
89224
89225         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89226         an argument.
89227
89228         * m4/regex.m4: Add a run-time Test for proper operation of
89229         re_compile_pattern.
89230
89231 1999-01-31  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89234
89235 1999-01-30  Jim Meyering  <meyering@ascend.com>
89236
89237         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89238
89239         * m4/jm-mktime.m4: Make this a wrapper around the official
89240         AM_FUNC_MKTIME rather than my private copy, now that the official one
89241         is up to date.
89242         * m4/mktime.m4: Remove file.
89243
89244         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89245         * m4/uptime.m4: Likewise.
89246         * m4/uintmax_t.m4: Likewise.
89247
89248 1999-01-28  Jim Meyering  <meyering@ascend.com>
89249
89250         * m4/jm-macros.m4: Use jm_AFS.
89251         * m4/afs.m4: New file (from fileutils' configure.in).
89252
89253         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89254         * m4/chown.m4: Likewise.
89255         * m4/d-ino.m4: Likewise.
89256         * m4/d-type.m4: Likewise.
89257         * m4/fnmatch.m4: Likewise.
89258         * m4/getgroups.m4: Likewise.
89259         * m4/gettext.m4: Likewise.
89260         * m4/jm-mktime.m4: Likewise.
89261         * m4/jm-winsz2.m4: Likewise.
89262         * m4/lcmessage.m4: Likewise.
89263         * m4/ls-mntd-fs.m4: Likewise.
89264         * m4/malloc.m4: Likewise.
89265         * m4/memcmp.m4: Likewise.
89266         * m4/putenv.m4: Likewise.
89267         * m4/realloc.m4: Likewise.
89268         * m4/st_mtim.m4: Likewise.
89269         * m4/strftime.m4: Likewise.
89270
89271 1999-01-16  Jim Meyering  <meyering@ascend.com>
89272
89273         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89274         (ARGMATCH_DIE_DECL): Define.
89275
89276 1999-01-12  Jim Meyering  <meyering@ascend.com>
89277
89278         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89279         Reported by Lars Hecking.
89280
89281 1999-01-10  Jim Meyering  <meyering@ascend.com>
89282
89283         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89284         gross kludge.
89285         * m4/inttypes_h.m4: Likewise.
89286         * m4/lstat.m4: Likewise.
89287         * m4/malloc.m4: Likewise.
89288         * m4/readdir.m4: Likewise.
89289         * m4/realloc.m4: Likewise.
89290         * m4/st_dm_mode.m4: Likewise.
89291         * m4/stat.m4: Likewise.
89292         * m4/utimbuf.m4: Likewise.
89293         * m4/utimes.m4: Likewise.
89294
89295         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89296         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89297         comments in config.h.in are meaningful.
89298
89299         * m4/jm-macros.m4: Require autoconf-2.13 here.
89300
89301         * m4/regex.m4: By default, don't use the included regex.c on systems
89302         with glibc 2.  Suggestion from Uli Drepper.
89303
89304 1999-01-02  Jim Meyering  <meyering@ascend.com>
89305
89306         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89307
89308 1998-12-18  Jim Meyering  <meyering@ascend.com>
89309
89310         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89311         Based on a suggestion from Lars Hecking.
89312
89313 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89314
89315         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89316
89317 1998-11-16  Jim Meyering  <meyering@ascend.com>
89318
89319         * m4/lfs.m4: Double-quote the `uname...` expression.
89320
89321 1998-11-14  Jim Meyering  <meyering@ascend.com>
89322
89323         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89324         * m4/stat.m4: Likewise.
89325
89326 1998-11-03  Jim Meyering  <meyering@ascend.com>
89327
89328         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89329         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89330
89331 1998-10-18  Jim Meyering  <meyering@ascend.com>
89332
89333         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89334
89335 1998-10-17  Jim Meyering  <meyering@ascend.com>
89336
89337         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89338         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89339         calls for those previously hard-coded headers.  Instead, take a new
89340         parameter.
89341         (jm_CHECK_DECLARATIONS): Reflect interface change.
89342         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89343         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89344
89345         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89346
89347 1998-10-14  Jim Meyering  <meyering@ascend.com>
89348
89349         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89350         instead of "TZ=America/Vancouver".  From Paul Eggert.
89351
89352 1998-10-11  Jim Meyering  <meyering@ascend.com>
89353
89354         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89355         This adds a test for a recently added compatibility fix for mktime.c.
89356         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89357
89358 1998-09-27  Jim Meyering  <meyering@ascend.com>
89359
89360         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89361
89362         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89363         ../configure.in, including a change from Gordon Matzigkeit to allow
89364         cross-compiling for the Hurd.
89365
89366         * m4/glibc.m4: New file/macro to test for the GNU C Library
89367         versions 1 and 2.  From Gordon Matzigkeit.
89368         Indent.
89369
89370 1998-09-21  Jim Meyering  <meyering@ascend.com>
89371
89372         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89373
89374 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89375
89376         Port nanosecond-resolution times to UnixWare 2.1.2 and
89377         pedantic Solaris 2.6.
89378
89379         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89380         AC_STRUCT_ST_MTIM.
89381         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89382         Generate name of ns member, instead of just 1 or undef.
89383         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89384
89385 1998-08-15  Jim Meyering  <meyering@ascend.com>
89386
89387         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89388         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89389         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89390         instead of jm_TYPE_SSIZE_T.
89391
89392 1998-08-12  Jim Meyering  <meyering@ascend.com>
89393
89394         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89395
89396 1998-08-02  Jim Meyering  <meyering@ascend.com>
89397
89398         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89399         in acconfig.h manually.
89400
89401 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89402
89403         * m4/st_mtim.m4: New file.
89404
89405 1998-07-28  Jim Meyering  <meyering@ascend.com>
89406
89407         * m4/utimes.m4: Undef stat.
89408
89409 1998-07-25  Jim Meyering  <meyering@ascend.com>
89410
89411         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89412         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89413
89414 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89415
89416         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89417         uid and gid actually remain unchanged.
89418
89419 1998-07-07  Jim Meyering  <meyering@ascend.com>
89420
89421         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89422
89423 1998-07-04  Jim Meyering  <meyering@ascend.com>
89424
89425         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89426         to prove that this macro can be used in packages without regex.c.
89427
89428 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89429
89430         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89431         is to be used.
89432
89433 1998-07-03  Jim Meyering  <meyering@ascend.com>
89434
89435         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89436
89437         * m4/gettext.m4: New file -- from gettext-0.10.35.
89438         * m4/lcmessage.m4: Likewise.
89439         * m4/progtest.m4: Likewise.
89440
89441         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89442         * m4/jm-macros.m4: Require the new macro.
89443
89444 1998-06-29  Jim Meyering  <meyering@ascend.com>
89445
89446         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89447         for the definition of NGROUPS (used in a system header included
89448         by sys/mount.h).
89449
89450 1998-06-28  Jim Meyering  <meyering@ascend.com>
89451
89452         * m4/ls-mntd-fs.m4: New file.
89453         * m4/fstypename.m4: New file.
89454
89455         * m4/jm-macros.m4: Require the new macro.
89456         * m4/jm-glibc-io.m4: New file.
89457
89458 1998-05-19  Jim Meyering  <meyering@ascend.com>
89459
89460         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89461         * m4/lchown.m4: New file.
89462
89463         * m4/Makefile.am.in: New file.
89464         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89465
89466 1998-05-14  Jim Meyering  <meyering@ascend.com>
89467
89468         * m4/Makefile.am (EXTRA_DIST): Add them.
89469         * m4/jm-macros.m4: New file.
89470         * m4/utimbuf.m4: New file.
89471
89472 1998-05-12  Jim Meyering  <meyering@ascend.com>
89473
89474         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89475
89476 1998-05-11  Jim Meyering  <meyering@ascend.com>
89477
89478         * m4/isc-posix.m4: New file.
89479
89480 1998-05-10  Jim Meyering  <meyering@ascend.com>
89481
89482         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89483
89484 1998-05-09  Jim Meyering  <meyering@ascend.com>
89485
89486         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89487         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89488         with automake.
89489
89490         * m4/ssize_t.m4: New file.
89491         * m4/mktime.m4: Remove file -- the new automake has this now.
89492
89493 1998-04-26  Jim Meyering  <meyering@ascend.com>
89494
89495         * m4/assert.m4: New file.
89496         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89497
89498 1998-04-05  Jim Meyering  <meyering@ascend.com>
89499
89500         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89501         (jm_PREREQ): Use it here.
89502
89503 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89504
89505         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89506         in acconfig.h.
89507
89508 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89509
89510         * m4/prereq.m4: New file.
89511         * m4/error.m4: New file.
89512         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89513
89514 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89515
89516         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89517         cache-check for the same variable -- that defeated the purpose of
89518         the test; the test program was never run.  This was a problem only
89519         on systems with losing getline functions -- HP-UX 10.20 is one.
89520         Reported by Bjorn Helgaas.
89521
89522 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89523
89524         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89525
89526 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89527
89528         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89529
89530         * m4/const.m4: New file.  Use an initializer in this declaration
89531         typedef int charset[2]; const charset x;
89532         Reported by Bob Glickstein.
89533
89534 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89535
89536         * m4/chown.m4: Fix reversed types on -1 args to chown.
89537         From Kaveh Ghazi.
89538
89539 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89540
89541         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89542         Add lseek and memchr.
89543
89544         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89545         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89546         have a 20-character limit on names.
89547
89548 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89549
89550         * m4/inttypes_h.m4: New file.
89551         * m4/uintmax_t.m4: New file.
89552         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89553
89554
89555         -----
89556
89557         Local Variables:
89558         coding: utf-8
89559         End:
89560
89561         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89562
89563         Copying and distribution of this file, with or without
89564         modification, are permitted provided the copyright notice
89565         and this notice are preserved.